CN105786954B - Method for presenting intersection point file - Google Patents
Method for presenting intersection point file Download PDFInfo
- Publication number
- CN105786954B CN105786954B CN201610008049.0A CN201610008049A CN105786954B CN 105786954 B CN105786954 B CN 105786954B CN 201610008049 A CN201610008049 A CN 201610008049A CN 105786954 B CN105786954 B CN 105786954B
- Authority
- CN
- China
- Prior art keywords
- pile
- coordinate
- file
- point
- coordinates
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/178—Techniques for file synchronisation in file systems
- G06F16/1794—Details of file format conversion
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Remote Sensing (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention is suitable for the field of surveying and mapping, and provides a method for presenting an intersection point file, which comprises the following steps: calculating the intersection point file to obtain a pile-by-pile coordinate according to a curve equation; judging the coordinate type of the pile-by-pile coordinate, and converting the pile-by-pile coordinate into a set point according to the attributive type and the related attribute for displaying the set point; and combining the set points and generating a KML file, wherein the KML file is in a format used for intelligent terminal display. The presentation method is convenient for the field personnel to combine the line position with the existing topographic map, is convenient for checking the field data acquisition quality, and has remarkable economic benefit and social benefit.
Description
Technical Field
The invention belongs to the field of surveying and mapping, and particularly relates to a method for presenting an intersection point file.
Background
In the field work of measurement, designers often only provide intersection point files, road files are needed to be used in actual measurement, and the conventional method is to convert the intersection point files into the road files by using coordinate conversion software of southern companies.
Disclosure of Invention
The embodiment of the invention aims to provide a method for presenting an intersection point file, which is used for solving the problems that in the prior art, coordinate conversion software is used for converting the intersection point file into a road file, the operation is complex and the difficulty is high in the using process, and the technical requirements on the industry staff are high.
The embodiment of the invention is realized as follows, and provides a method for presenting an intersection point file, which comprises the following steps:
reading the intersection point file, and calculating to obtain pile-by-pile coordinates according to a curve equation;
judging the coordinate type of the pile-by-pile coordinate, and converting the pile-by-pile coordinate into a set point according to the attributive type and the related attribute for displaying the set point;
and combining the set points and generating a KML file, wherein the KML file is in a format used for intelligent terminal display.
Preferably, after the pile-by-pile coordinates are calculated, the method further includes:
setting a CAD style, wherein the CAD style comprises a character direction, a crown word number and a point interval;
judging the line direction, the start point coordinate and the end point coordinate according to the pile-by-pile coordinates; calculating a marking angle by combining the starting point coordinates and adjacent coordinate points;
and establishing an incidence relation between the starting point coordinate and the end point coordinate and the line block attribute and the marking block attribute respectively, and generating a file suitable for CAD.
Preferably, the file suitable for CAD is specifically a DXF format file.
Preferably, the coordinate types of the pile-by-pile coordinates include a longitude and latitude coordinate type and a grid coordinate type.
Preferably, when the coordinate type of the pile-by-pile coordinate is specifically a longitude and latitude coordinate type, the pile-by-pile coordinate is converted into the setting point according to the attribution type and the related attribute for displaying the setting point, specifically:
extracting the coordinates of pile by pile, and converting the coordinates of pile by pile in sexagesimal system into decimal set point coordinates;
acquiring relevant attributes for displaying set points, wherein the relevant attributes comprise point intervals, prefix numbers and label styles;
and establishing an incidence relation between the set point coordinates and the related attributes for displaying the set points.
Preferably, when the coordinate type of the pile-by-pile coordinate is specifically a grid coordinate type, the pile-by-pile coordinate is converted into the set point according to the attribution type and the related attribute for displaying the set point, specifically:
setting a reference ellipsoid, a central meridian and a projection height;
calculating to obtain decimal set point coordinates based on inverse Gaussian calculation according to the reference ellipsoid, the central meridian and the projection height;
acquiring relevant attributes for displaying set points, wherein the relevant attributes comprise point intervals, prefix numbers and label styles;
and establishing an incidence relation between the set point coordinates and the related attributes for displaying the set points.
Preferably, the intersection file types include an XY format intersection file, a DY format intersection file, and an I P format intersection file.
Preferably, the KML file format is used for intelligent terminal display, and specifically includes:
inputting the KML file as a parameter into an intelligent terminal;
the intelligent terminal uses the google satellite map as a base map, and presents in the base map according to the related attributes and the set point coordinates of the display set points.
The method for presenting the intersection point file, provided by the embodiment of the invention, has the beneficial effects that: the intersection point file is converted into the road file to be displayed and positioned in the mobile terminal software or the CAD software, on one hand, the difficulty of searching linear positions or ground objects in the field by field workers is greatly reduced, the time required for searching the linear positions is saved, on the other hand, the linear positions and the existing topographic map are combined by the field workers, the field data acquisition quality is checked conveniently, and the method has remarkable economic and social benefits.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed for the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a flowchart of a method for presenting an intersection file according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for obtaining a CAD coordinate file from a pile-by-pile coordinate file according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for obtaining Kml a coordinate file from a stub-by-stub coordinate file according to an embodiment of the present invention;
FIG. 4 is a flowchart of acquiring a pile-by-pile coordinate file from an intersection file according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating a relationship between different coordinate files converted by the method of the present invention according to an embodiment of the present invention;
fig. 6 is a schematic diagram of an effect of displaying Kml coordinate files on a terminal according to an embodiment of the present invention;
fig. 7 is a schematic diagram illustrating an effect of displaying a CAD coordinate file on a CAD according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Example one
Fig. 1 shows a method for presenting an intersection file provided by the present invention, where the method includes:
in step 201, the intersection point file is read, and a pile-by-pile coordinate is calculated according to a curve equation;
the intersection point file types comprise an XY format intersection point file, a DY format intersection point file and an IP format intersection point file.
In step 202, judging the coordinate type of the pile-by-pile coordinate, and converting the pile-by-pile coordinate into a set point according to the attribution type and the related attribute for displaying the set point;
and the coordinate types of the pile-by-pile coordinates comprise a longitude and latitude coordinate type and a grid coordinate type.
In step 203, the set points are combined and a KML file is generated, wherein the KML file is used for displaying the intelligent terminal.
The embodiment of the invention provides an efficient, rapid and accurate processing method, which converts intersection point files into road files for display and can be used for mobile terminal software positioning, on one hand, the difficulty of searching linear positions or ground objects in the field by field workers is greatly reduced, the time for searching the linear positions is saved, on the other hand, the linear positions and the existing topographic map are combined by field workers conveniently, the field data acquisition quality is checked conveniently, and the method has remarkable economic and social benefits.
With reference to the embodiment of the present invention, there is a preferred implementation scheme, where after the pile-by-pile coordinates are obtained through calculation, a CAD file flowchart is generated with reference to fig. 2, and the method further includes:
setting a CAD style, wherein the CAD style comprises a character direction, a crown word number and a point interval;
judging the line direction, the start point coordinate and the end point coordinate according to the pile-by-pile coordinates; calculating a marking angle by combining the starting point coordinates and adjacent coordinate points;
and establishing an incidence relation between the starting point coordinate and the end point coordinate and the line block attribute and the marking block attribute respectively, and generating a file suitable for CAD. The display effect is shown in fig. 7.
In an embodiment of the present invention, the file suitable for CAD is specifically a DXF format file.
With reference to the embodiment of the present invention, there is a preferred implementation scheme, where when the coordinate type of the pile-by-pile coordinate is specifically a longitude and latitude coordinate type, the pile-by-pile coordinate is converted into the setpoint according to the attribution type and the related attribute for displaying the setpoint, and with reference to a Kml file generation flowchart shown in fig. 3, specifically, the method includes:
extracting the coordinates of pile by pile, and converting the coordinates of pile by pile in sexagesimal system into decimal set point coordinates;
acquiring relevant attributes for displaying set points, wherein the relevant attributes comprise point intervals, prefix numbers and label styles;
and establishing an incidence relation between the set point coordinates and the related attributes for displaying the set points.
With reference to the embodiment of the present invention, there is a preferred implementation scheme, where when the coordinate type of the pile-by-pile coordinate is specifically a grid coordinate type, the pile-by-pile coordinate is converted into the setpoint according to the attribution type of the pile-by-pile coordinate and the related attribute for displaying the setpoint, and with reference to a Kml file generation flowchart shown in fig. 3, specifically:
setting a reference ellipsoid, a central meridian and a projection height;
calculating to obtain decimal set point coordinates based on inverse Gaussian calculation according to the reference ellipsoid, the central meridian and the projection height;
acquiring relevant attributes for displaying set points, wherein the relevant attributes comprise point intervals, prefix numbers and label styles;
and establishing an incidence relation between the set point coordinates and the related attributes for displaying the set points.
With reference to the embodiment of the present invention, there is a preferred implementation scheme, where the KML file format is used for intelligent terminal display, and the implementation scheme specifically includes:
inputting the KML file as a parameter into an intelligent terminal;
the intelligent terminal uses the google satellite map as a base map, and presents in the base map according to the related attributes and the set point coordinates of the display set points. The effect graph is shown in fig. 6.
Example two
Fig. 4 shows a method for acquiring a Rod file or a stub-by-stub coordinate file in a method for presenting an intersection file according to an embodiment of the present invention, where the method can be applied to the first embodiment. The specific contents are as follows:
in step 301, an intersection file is opened.
In step 302, it is determined whether the format of the intersection file is correct, and if so, step 303 is performed, and if not, an error is reported, and the method returns to the starting state.
In step 303, the data needed to compute the Rod file or the pile-by-pile coordinate file is extracted.
In step 304, judging whether the front and rear relaxation curves are consistent, if not, reporting an error, and returning to the starting state; if so, step 305 is entered.
In step 305, a decision is made to calculate curve elements using different formulas in accordance with step 304. Depending on whether the result to be generated is a Rod file and/or a per-pile coordinate file, the selection is to proceed with step 306, or with step 308, or with both step 306 and step 308. .
In step 306, the elements of the Rod file are computed.
In step 307, a Rod format file is generated. Step 301 is entered.
In step 308, the location of the curve at each point is determined.
In step 309, corresponding coordinates are calculated for the different location points and a pile-by-pile coordinate file is generated. Step 301 is entered.
In step 310, it is determined whether the starting point and the ending point of the curve are correct. If so, step 311 is entered, otherwise, the start state is returned to.
Compared with the prior art, the invention has the following advantages:
(1) multiple intersection formats are supported. The current common intersection point format is supported, the use of field work is facilitated, and the use difficulty is reduced. The architectural relationship is shown in fig. 5.
(2) The software has high degree of freedom. Aiming at various limitations of mobile terminal display software, the software can conveniently customize the number of the crown words, different tag types, different point intervals and different line names.
(3) And customizing and generating the CAD file. The number of the crown words, the distance between the points and the marking direction of the words in the CAD circuit file can be customized according to the requirement.
(4) There is no additional cost overhead. No additional cost overhead is incurred as no additional hardware devices are required.
(5) The point searching difficulty is reduced, and the field work efficiency is improved. The position of the user and the point to be searched are visualized, and the google satellite map is used as a base map, so that the reasonable planning of a path going to a target point is facilitated.
It will be further understood by those skilled in the art that all or part of the steps in the method for implementing the above embodiments may be implemented by relevant hardware instructed by a program, and the program may be stored in a computer-readable storage medium, including ROM/RAM, magnetic disk, optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.
Claims (4)
1. A method for presenting a meeting point file, the method comprising:
reading the intersection point file, and calculating to obtain pile-by-pile coordinates according to a curve equation;
setting a CAD style, wherein the CAD style comprises a character direction, a crown word number and a point interval;
judging the line direction, the start point coordinate and the end point coordinate according to the pile-by-pile coordinates; calculating a marking angle by combining the starting point coordinates and adjacent coordinate points;
establishing an incidence relation between the starting point coordinate and the end point coordinate and the line block attribute and the marking block attribute of each coordinate, and generating a file suitable for CAD;
judging the coordinate type of the pile-by-pile coordinate, and converting the pile-by-pile coordinate into a set point according to the attributive type and the related attribute for displaying the set point, specifically: extracting the coordinates of pile by pile, and converting the coordinates of pile by pile in sexagesimal system into decimal set point coordinates; acquiring relevant attributes for displaying set points, wherein the relevant attributes comprise point intervals, prefix numbers and label styles; establishing an incidence relation between the set point coordinates and the related attributes for displaying the set points; setting a reference ellipsoid, a central meridian and a projection height; calculating to obtain decimal set point coordinates based on inverse Gaussian calculation according to the reference ellipsoid, the central meridian and the projection height;
the coordinate types of the pile-by-pile coordinates comprise longitude and latitude coordinate types and grid coordinate types;
and combining the set points and generating a KML file, wherein the KML file is in a format used for intelligent terminal display.
2. Rendering method according to claim 1, wherein the files suitable for CAD are in particular DXF format files.
3. The method according to any one of claims 1-2, wherein the intersection file types include XY format intersection file, DY format intersection file, IP format intersection file.
4. The method according to any one of claims 1-2, wherein the KML file format is used for intelligent terminal display, and specifically comprises:
inputting the KML file as a parameter into an intelligent terminal;
the intelligent terminal uses the google satellite map as a base map, and presents in the base map according to the related attributes and the set point coordinates of the display set points.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610008049.0A CN105786954B (en) | 2016-01-07 | 2016-01-07 | Method for presenting intersection point file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610008049.0A CN105786954B (en) | 2016-01-07 | 2016-01-07 | Method for presenting intersection point file |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105786954A CN105786954A (en) | 2016-07-20 |
CN105786954B true CN105786954B (en) | 2020-09-18 |
Family
ID=56390420
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610008049.0A Active CN105786954B (en) | 2016-01-07 | 2016-01-07 | Method for presenting intersection point file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105786954B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111414701B (en) * | 2020-03-26 | 2023-07-07 | 广西防城港核电有限公司 | Method for extracting CAD file elements and converting relative coordinates |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101685471B (en) * | 2008-09-26 | 2011-11-23 | 黑龙江工程学院 | Highway Route CAD Aided Design System |
US8717193B2 (en) * | 2011-08-23 | 2014-05-06 | Verizon Patent And Licensing Inc. | Method and system for providing traffic alerts |
WO2013043087A1 (en) * | 2011-09-23 | 2013-03-28 | Volvo Construction Equipment Ab | Method for selecting an attack pose for a working machine having a bucket |
CN102759756A (en) * | 2012-06-15 | 2012-10-31 | 中国石油化工股份有限公司 | Method for processing geophysical measured data |
-
2016
- 2016-01-07 CN CN201610008049.0A patent/CN105786954B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN105786954A (en) | 2016-07-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106528762B (en) | Electronic map processing method and processing system for identifying interest points | |
CN106779417A (en) | The collection of engineering investigation information digitalization, management and integrated application method | |
KR20110073713A (en) | River and Road Centerline Creation System and Method for Generating Linear Maps Based on GIS | |
CN110146789B (en) | Intelligent operation and inspection reporting method and device | |
CN106156883A (en) | A kind of work transmission line early stage tower-pole planning method | |
CN106326402A (en) | Power transmission line information inquiry method and device and mobile terminal | |
Jenny | MapAnalyst-A digital tool for the analysis of the planimetric accuracy of historical maps | |
CN115393560A (en) | BIM model drawing marking method, device, equipment and readable storage medium | |
CN115906360A (en) | Drainage system CAD-GIS data conversion and standard marking method and device | |
CN103336807A (en) | Method and system for displaying POI (points of interest) | |
CN105786954B (en) | Method for presenting intersection point file | |
CN112634436A (en) | Equipment lightweight display system of power system BIM model | |
CN114626135A (en) | Linked display method of long-term engineering information based on BIM, GIS and geological profiles | |
JP5081311B2 (en) | Map information processing apparatus, map information processing method, map information processing program, and recording medium | |
CN103345769B (en) | Complete trails remote sensing image thematic charting method | |
CN112182812B (en) | Distribution line design method | |
CN110941688B (en) | Track processing and space management method based on multi-beam discrete data | |
CN109446286B (en) | Visualization method and device for highway road network map | |
CN115712667B (en) | Graph data fusion analysis method, device and storage medium | |
Ti et al. | Automated generation of schematic network maps adaptive to display sizes | |
CN114996886A (en) | Multi-metadata-fused complete automatic drawing system and method for distribution network single line diagram | |
CN116295444B (en) | Navigation method, system, terminal and storage medium for field operation | |
CN106443732B (en) | Path diagram drawing method and system based on GPS | |
CN113610909B (en) | Point cloud profile generation system and method based on distance search | |
CN111833415A (en) | A configuration method and device for combined annotation in an electronic map |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |