CN111666367A - High-precision map automatic compiling method and device - Google Patents
High-precision map automatic compiling method and device Download PDFInfo
- Publication number
- CN111666367A CN111666367A CN202010515245.3A CN202010515245A CN111666367A CN 111666367 A CN111666367 A CN 111666367A CN 202010515245 A CN202010515245 A CN 202010515245A CN 111666367 A CN111666367 A CN 111666367A
- Authority
- CN
- China
- Prior art keywords
- data
- compiling
- precision
- precision map
- file
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 238000012545 processing Methods 0.000 claims abstract description 7
- 238000005520 cutting process Methods 0.000 claims abstract description 5
- 238000004590 computer program Methods 0.000 claims description 10
- 230000007246 mechanism Effects 0.000 claims description 5
- 230000008859 change Effects 0.000 claims description 4
- 238000003860 storage Methods 0.000 claims description 4
- 238000004519 manufacturing process Methods 0.000 abstract description 5
- 230000008569 process Effects 0.000 description 6
- 238000006243 chemical reaction Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 2
- 238000007405 data analysis Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000003203 everyday effect Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012797 qualification Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
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/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
-
- 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/25—Integrating or interfacing systems involving database management systems
- G06F16/258—Data format conversion from or to a database
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Quality & Reliability (AREA)
- Remote Sensing (AREA)
- Processing Or Creating Images (AREA)
- Instructional Devices (AREA)
Abstract
The invention provides a high-precision map automatic compiling method and a high-precision map automatic compiling device, wherein the method comprises the following steps: after a high-precision map database file is obtained through an ftp command, the database file is compiled into a data file in an shp format through a gdal tool, and then the data file in the shp format is converted into high-precision data in a geojson format; cutting the high-precision data in the geojson format into vector tile data through a tipplecoe tool; and uploading the vector tile data generated by the latest compiling to a cloud server. The problem of low production efficiency of manual compiling is solved through the scheme, manual compiling errors can be reduced, compiling efficiency is improved, and real-time efficient processing of mass data is guaranteed.
Description
Technical Field
The invention relates to the field of map production, in particular to a high-precision map automatic compiling method and device.
Background
With the content of high-precision data becoming richer and the magnitude becoming larger, in order to meet the requirement of displaying the high-precision data, mother data of a database can be converted into vector tile data to be displayed on a map, a database file needs to be compiled in a general data conversion process, currently, a compiling method of the high-precision map data generally needs manual compiling, format conversion and updating display of control data are achieved, and the working efficiency is low for compiling and updating mass data.
Disclosure of Invention
In view of this, embodiments of the present invention provide a high-precision map automatic compiling method and device, so as to solve the problem of low compiling efficiency of high-precision map data.
In a first aspect of the embodiments of the present invention, there is provided a high-precision map automated compiling method, including:
after a high-precision map database file is obtained through an ftp command, the database file is compiled into a data file in an shp format through a gdal tool, and then the data file in the shp format is converted into high-precision data in a geojson format;
cutting the high-precision data in the geojson format into vector tile data through a tipplecoe tool;
and uploading the vector tile data generated by the latest compiling to a cloud server.
In a second aspect of the embodiments of the present invention, there is provided an apparatus for high-precision map automated compilation, including:
the compiling module is used for compiling the database file into a data file in a shp format through a gdal tool after acquiring the high-precision map database file through an ftp command, and then converting the data file in the shp format into high-precision data in a geojson format;
the slicing module is used for slicing the high-precision data in the geojson format into vector tile data through a tippecanoe tool;
and the uploading module is used for uploading the vector tile data generated by the latest compiling to the cloud server.
In a third aspect of the embodiments of the present invention, there is provided an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the steps of the method according to the first aspect of the embodiments of the present invention.
In a fourth aspect of the embodiments of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the method provided in the first aspect of the embodiments of the present invention.
In the embodiment of the invention, after a high-precision map database file is obtained through an ftp command, the database file is compiled into a data file in a shp format through a gdal tool, and then the data file in the shp format is converted into high-precision data in a geojson format; cutting the high-precision data in the geojson format into vector tile data through a tipplecoe tool; and uploading the vector tile data generated by the latest compiling to a cloud server so as to backup and display the updated vector tile data. Therefore, the problem of low efficiency of compiling and updating the high-precision map is solved, manual intervention in the compiling process is reduced, the error rate of compiling the data is reduced, the updating efficiency is improved, and better use experience is brought to users.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings described below are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a high-precision map automated compiling method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an apparatus for high-precision map automated compilation according to an embodiment of the present invention.
Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the embodiments described below are only a part of the embodiments of the present invention, and not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons skilled in the art without any inventive work shall fall within the protection scope of the present invention, and the principle and features of the present invention shall be described below with reference to the accompanying drawings.
The terms "comprises" and "comprising," when used in this specification and claims, and in the accompanying drawings and figures, are intended to cover non-exclusive inclusions, such that a process, method or system, or apparatus that comprises a list of steps or elements is not limited to the listed steps or elements.
Referring to fig. 1, fig. 1 is a schematic flow chart of a high-precision map automatic updating method according to an embodiment of the present invention, including:
s101, after a high-precision map database file is obtained through an ftp command, compiling the database file into a data file in a shp format through a gdal tool, and converting the data file in the shp format into high-precision data in a geojson format;
and the data acquisition end acquires the first-level surveying and mapping qualification, acquires national high-precision data through the data acquisition vehicle, accesses the national high-precision data into the database, and deploys the database in the local server. The method comprises the steps that a high-precision map data file in a database is obtained through an ftp command, the ftp command is used for achieving data interaction between a client and a server, the method is widely used in operating systems such as DOS and Unix, specifically, a script file can be created, and the database file data can be accessed based on a shell script.
The gdal (geographic Data Abstraction Library) tool supports the processing of various raster files, and produces database files corresponding to Data sources into high-precision Data files in shp format by the method provided by gdal. And then, converting the shp format data into data in a geojson format through a gdal command, wherein the geojson is a format for coding various geographic data structures and can represent geometric shapes, characteristics and characteristic sets, and the conversion into the geojson format can facilitate data analysis and slicing.
Preferably, a triggering mechanism for access processing of the high-precision map data file is set according to user requirements, and automatic compiling, uploading and updating of the high-precision map data file are achieved. For example, data access processing, automatic compiling and automatic updating are triggered regularly every day, the production time can be controlled through a triggering mechanism, and the influence of map updating on customers is reduced.
S102, cutting high-precision data in a geojson format into vector tile data through a tippecanoe tool;
the tippecanoe tool can create vector tiles based on geojson data, create a corresponding layer for each file, and support free scaling. The vector tile data is composed of a group of named layers, each layer comprises geometric elements and metadata information, the layer data are arranged in a memory in sequence, each vector tile at least comprises one layer, and each layer at least comprises one element.
And slicing the data in the geojson format into vector tile data in the pbf format, wherein the vector tile data can be conveniently used by a user as compiled data and can be loaded and displayed.
And calling a script file in the data production conversion process based on the created Qt program to automatically compile the acquired high-precision map data so as to obtain vector tile data.
And S103, uploading the vector tile data generated by the latest compiling to a cloud server.
Optionally, the vector tile data of the cloud server is backed up by the scp command. The scp command can realize file copying among remote hosts, and can prevent data loss for uploaded tile data backup.
Optionally, the vector tile data of the cloud server is read by a display device connected to the cloud server for display, and when the data file is automatically updated, the latest vector tile data is displayed according to the change of the data file.
After the vector tile data generated by automatic compiling is uploaded to the cloud, the display end can acquire the updated tile data in real time for displaying, compiling and updating contents can be conveniently known, and the actual display effect can be obtained by loading.
By the method provided by the embodiment, errors caused by manual compiling can be avoided, compiling time can be conveniently controlled, and influences on normal use of a client are reduced. The automatic compiling production and the automatic updating effectively improve the compiling efficiency, have no manual intervention and improve the use experience of users.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Fig. 2 is a schematic structural diagram of an apparatus for automatically compiling a high-precision map according to an embodiment of the present invention, where the apparatus includes:
the compiling module 210 is configured to compile the database file into a data file in a shp format by using a gdal tool after acquiring the high-precision map database file by using an ftp command, and then convert the data file in the shp format into high-precision data in a geojson format;
preferably, the compiling module 210 further includes:
and the trigger module is used for setting a trigger mechanism of the access processing of the high-precision map data file according to the user requirements, and realizing the automatic compiling, uploading and updating of the high-precision map data file.
A slicing module 220 for slicing the geojson format high precision data into vector tile data by tippecanoe tool;
the uploading module 230 is configured to upload the newly compiled vector tile data to the cloud server to display the updated vector tile data.
Optionally, the uploading module 230 further includes:
and the backup module is used for backing up the vector tile data of the cloud server through the scp command.
Optionally, the display module is further configured to read and display the vector tile data of the cloud server through a display device accessing the cloud server, and when the data file is automatically updated, display the latest vector tile data according to the change of the data file.
It is understood that, in one embodiment, the electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program executes the steps S101 to S103 in the first embodiment, and the processor implements high-precision map automatic compiling and updating when executing the computer program.
Those skilled in the art will understand that all or part of the steps in the method for implementing the above embodiments may be implemented by a program to instruct associated hardware, where the program may be stored in a computer-readable storage medium, and when executed, the program includes steps S101 to S103, where the storage medium includes, for example: ROM/RAM, magnetic disk, optical disk, etc.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. A high-precision map automatic compiling method is characterized by comprising the following steps:
after a high-precision map database file is obtained through an ftp command, the database file is compiled into a data file in an shp format through a gdal tool, and then the data file in the shp format is converted into high-precision data in a geojson format;
cutting the high-precision data in the geojson format into vector tile data through a tipplecoe tool;
and uploading the vector tile data generated by the latest compiling to a cloud server.
2. The method of claim 1, wherein the obtaining a high-precision map database file by an ftp command further comprises:
and setting a trigger mechanism for access processing of the high-precision map data file according to the user requirements, and realizing automatic compiling, uploading and updating of the high-precision map data file.
3. The method of claim 1, wherein uploading the most recently compiled tile data to a cloud server comprises:
and backing up the vector tile data of the cloud server through the scp command.
4. The method of claim 1, wherein uploading the most recently compiled tile data to a cloud server comprises:
and reading the vector tile data of the cloud server for display through the display terminal equipment accessed to the cloud server, and displaying the latest vector tile data according to the change of the data file when the data file is automatically updated.
5. An apparatus for automated compilation of high precision maps, comprising:
the compiling module is used for compiling the database file into a data file in a shp format through a gdal tool after acquiring the high-precision map database file through an ftp command, and then converting the data file in the shp format into high-precision data in a geojson format;
the slicing module is used for slicing the high-precision data in the geojson format into vector tile data through a tippecanoe tool;
and the uploading module is used for uploading the vector tile data generated by the latest compiling to the cloud server.
6. The apparatus of claim 5, wherein the compiling module further comprises:
and the trigger module is used for setting a trigger mechanism of the access processing of the high-precision map data file according to the user requirements, and realizing the automatic compiling, uploading and updating of the high-precision map data file.
7. The apparatus of claim 5, wherein the upload module further comprises:
and the backup module is used for backing up the vector tile data of the cloud server through the scp command.
8. The apparatus of claim 5, wherein the upload module further comprises:
and the display module is used for reading the vector tile data of the cloud server through display end equipment accessed to the cloud server for displaying, and displaying the latest vector tile data according to the change of the data file when the data file is automatically updated.
9. An electronic device comprising a processor, a memory, and a computer program stored in and run on the memory, wherein the steps of the high precision map automated compilation method of any one of claims 1 to 4 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the high-precision map automated compiling method according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010515245.3A CN111666367A (en) | 2020-06-08 | 2020-06-08 | High-precision map automatic compiling method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010515245.3A CN111666367A (en) | 2020-06-08 | 2020-06-08 | High-precision map automatic compiling method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111666367A true CN111666367A (en) | 2020-09-15 |
Family
ID=72385946
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010515245.3A Pending CN111666367A (en) | 2020-06-08 | 2020-06-08 | High-precision map automatic compiling method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111666367A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112000764A (en) * | 2020-10-28 | 2020-11-27 | 成都四方伟业软件股份有限公司 | Method and device for generating visual scene based on SHP data |
CN112269849A (en) * | 2020-10-31 | 2021-01-26 | 武汉中海庭数据技术有限公司 | Three-dimensional map display method, system, electronic equipment and storage medium |
CN113761101A (en) * | 2021-10-13 | 2021-12-07 | 史原东 | System and method for custom map matching of vector tile electronic map |
CN115022033A (en) * | 2022-06-01 | 2022-09-06 | 浙江省测绘科学技术研究院 | Non-invasive dynamic adjustment method and system for time-space information service precision |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106953906A (en) * | 2017-03-15 | 2017-07-14 | 北京天创金农科技有限公司 | A kind of system and method for deployment server |
CN111104613A (en) * | 2019-12-05 | 2020-05-05 | 深圳市普天宜通技术股份有限公司 | Spatial data analysis method, storage medium and terminal device |
-
2020
- 2020-06-08 CN CN202010515245.3A patent/CN111666367A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106953906A (en) * | 2017-03-15 | 2017-07-14 | 北京天创金农科技有限公司 | A kind of system and method for deployment server |
CN111104613A (en) * | 2019-12-05 | 2020-05-05 | 深圳市普天宜通技术股份有限公司 | Spatial data analysis method, storage medium and terminal device |
Non-Patent Citations (1)
Title |
---|
追风筝的摆渡人: "独立坐标的栅格瓦片与矢量(geoJson)地图在Leaflet下加载", 《BLOG.CSDN.NET/A748448660/ARTICLE/DETAILS/81414009》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112000764A (en) * | 2020-10-28 | 2020-11-27 | 成都四方伟业软件股份有限公司 | Method and device for generating visual scene based on SHP data |
CN112269849A (en) * | 2020-10-31 | 2021-01-26 | 武汉中海庭数据技术有限公司 | Three-dimensional map display method, system, electronic equipment and storage medium |
CN113761101A (en) * | 2021-10-13 | 2021-12-07 | 史原东 | System and method for custom map matching of vector tile electronic map |
CN115022033A (en) * | 2022-06-01 | 2022-09-06 | 浙江省测绘科学技术研究院 | Non-invasive dynamic adjustment method and system for time-space information service precision |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111666367A (en) | High-precision map automatic compiling method and device | |
Xu et al. | ANUCLIM version 6.1 user guide | |
US9519692B2 (en) | Visualizing related events within a timeline | |
CN103902589B (en) | Management method and device for downloaded files | |
EP2003579A1 (en) | Method and system for data processing with database update for the same | |
CN103902562A (en) | Method and device for upgrading terminal databases | |
CN104216802A (en) | Memory database recovery method and device | |
CN110309239B (en) | Visual map editing method and device | |
CN114138558A (en) | Object storage method and device, electronic equipment and storage medium | |
CN112000971B (en) | File permission recording method, system and related device | |
CN112632303A (en) | Distributed storage method, analysis method and device for image data | |
CN103809915B (en) | The reading/writing method of a kind of disk file and device | |
CN116756261A (en) | GIS data processing method based on relational database management tool | |
CN115586872A (en) | Container mirror image management method, device, equipment and storage medium | |
US20020154149A1 (en) | System, method and computer program product for associative region generation and modification | |
CN112132339A (en) | Weather forecasting method, device, equipment and storage medium | |
CN103164765A (en) | Patent management method and management system | |
CN111399975A (en) | Virtual machine snapshot management method, device and system based on cloud computing management platform | |
CN113222905B (en) | Opennsfm and thread.js-based structural damage information updating three-dimensional display method | |
CN110309594B (en) | Cable tray model processing method, system, equipment and storage medium | |
Murphy et al. | Subsampling large-scale digital elevation models to expedite geospatial analyses in coastal regions | |
CN116149561B (en) | Tile data transmission method and device, electronic equipment and storage medium | |
CN113448472B (en) | Binding method of GIS data and three-dimensional model interaction behavior and related device | |
CN117270854B (en) | UGUI-based tree-shaped folding structure tab creation method and system | |
CN112765295B (en) | Regional meteorological data splicing system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200915 |
|
RJ01 | Rejection of invention patent application after publication |