CN113761101B - Custom map matching system and method for vector tile electronic map - Google Patents

Custom map matching system and method for vector tile electronic map Download PDF

Info

Publication number
CN113761101B
CN113761101B CN202111193935.2A CN202111193935A CN113761101B CN 113761101 B CN113761101 B CN 113761101B CN 202111193935 A CN202111193935 A CN 202111193935A CN 113761101 B CN113761101 B CN 113761101B
Authority
CN
China
Prior art keywords
vector
data
tile
map
layer
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
Application number
CN202111193935.2A
Other languages
Chinese (zh)
Other versions
CN113761101A (en
Inventor
史原东
王葱
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN202111193935.2A priority Critical patent/CN113761101B/en
Publication of CN113761101A publication Critical patent/CN113761101A/en
Application granted granted Critical
Publication of CN113761101B publication Critical patent/CN113761101B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/56Information retrieval; Database structures therefor; File system structures therefor of still image data having vectorial format
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/05Geographic models

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Geometry (AREA)
  • Remote Sensing (AREA)
  • Software Systems (AREA)
  • Computer Graphics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention provides a self-defined map matching system and method for a vector tile electronic map, and relates to the technical field of geographic information. The vector tile module is used for obtaining the vector tile data and creating a vector tile database according to the vector data by adopting a vector slicing technology; the TMS tile service construction module constructs TMS tile services; the front-end creation layer interface creation module creates a front-end creation layer interface according to the vector tile database; the parameter information acquisition module acquires parameter information to be created through a front-end creation layer interface in TMS tile service; the initial layer creation module creates an initial layer according to the parameter information to be created; the layer attribute configuration module carries out data configuration on the initial layer; the map layer ordering module orders the preprocessed map layers according to the map layer covering order to generate a personalized map, so that any thematic electronic map which is suitable for individuation and high performance of the industry is configured, and the custom vector tile electronic map is manufactured.

Description

Custom map matching system and method for vector tile electronic map
Technical Field
The invention relates to the technical field of geographic information, in particular to a self-defined map matching system and method for a vector tile electronic map.
Background
At present, two modes of electronic map Tiles are mainly used, namely a traditional grid tile and a Vector tile (Vector Tiles), wherein the traditional mode is a hierarchical mode of a quadtree pyramid model, a map is cut into innumerable rectangular grid pictures with equal size, and the rectangular grid pictures are spliced into map displays of different levels according to a certain rule. The vector tiles are similar to grid tiles, vector data are divided into vector element description files by using a multi-level model and are stored in a server side, then the vector element description files are rendered and mapped by a client side according to a specified style, and geometric information and attribute information projected into a rectangular area are stored on a single vector tile. And after the client acquires data such as vector tiles, map labeling fonts, icons, style files and the like through the distributed network, rendering and outputting the map at the client. Vector tiles have no unified data labels, mapbox established the MAPBOX CECTOR TILE SPECIFICATION universal vector tile data standard based on Google protocol buffers, and are adopted by many companies and organizations. The vector tiles can be quickly rendered on the client, which mainly benefits from the development of the client graphics rendering technology, so that the quick development of map rendering engines is promoted, common graphics rendering technologies are OpenGL/WebGL and the like, while OpenGL and WebGL are bottom 3D drawing technology labels, many map rendering engines are derived according to the standards, such as an open source 3D rendering engine Tangram (including a browser rendering engine Tangram-JS and a mobile terminal rendering engine Tangram-ES provided by mapzen) using an OpenGL graphics API, and a Mapbox GL map rendering engine (including a browser rendering engine Mapbox GL JS and a mobile terminal rendering engine Mapbox GL Native) used by Mapbox.
The grid tiles are rendered in advance, so that the performance requirement on the client is low, and the performance is stable. The tile occupation space is high, the tile pattern cutting efficiency is low, the map pattern cannot be dynamically adjusted at any time, the map resolution is low, and the loading speed is relatively slow. The vector tiles occupy low space, the tile pattern cutting efficiency is high, the map rendering effect is quick, the map pattern can be dynamically adjusted at any time, and the map resolution is high. The performance requirement on the client is high, and the compatibility of the old equipment is problematic. Although the vector tile open source technique blooms throughout, the creation of custom vector tile electronic maps cannot be achieved.
Disclosure of Invention
The invention aims to provide a custom map matching system and method for a vector tile electronic map, which are used for solving the problem that the custom vector tile electronic map can not be manufactured in the prior art.
In a first aspect, an embodiment of the present application provides a vector tile electronic map custom map matching system, including:
the vector tile creating module is used for acquiring and creating a vector tile database according to vector data by adopting a vector slicing technology;
The TMS tile service construction module is used for constructing TMS tile services according to the vector tile database;
The front-end creation layer interface creation module is used for building a front-end creation layer interface according to the vector tile database;
the parameter information acquisition module is used for acquiring parameter information to be created through a front-end creation layer interface in TMS tile service;
the initial layer creation module is used for creating an initial layer according to the parameter information to be created;
the layer attribute configuration module is used for carrying out data configuration on the initial layer and generating a preprocessing layer;
and the layer ordering module is used for ordering the preprocessed layers according to the layer covering order to generate the personalized map.
In the implementation process, a vector tile database is obtained through a vector tile creating module and is created by adopting a vector slicing technology according to vector data; the vector tiles occupy low space, the tile pattern cutting efficiency is high, the map rendering effect is quick, the map pattern can be dynamically adjusted at any time, and the map resolution is high; the TMS tile service construction module constructs TMS tile service according to the vector tile database; thereby providing real-time vector data adding and deleting and checking service, rendering attribute adding and deleting and checking service, user information adding and deleting and checking service and related functions and services integrated by various slicing functions for the front end. The front-end creation layer interface creation module creates a front-end creation layer interface according to the vector tile database; the parameter information acquisition module acquires parameter information to be created through a front-end creation layer interface in TMS tile service; the parameter information may be user-defined; the initial layer creation module creates an initial layer according to the parameter information to be created; the layer attribute configuration module carries out data configuration on the initial layer to generate a preprocessing layer; and the layer ordering module orders the preprocessed layers according to the layer covering order, and generates the personalized map. The user can configure any thematic electronic map suitable for the individuation and high performance of the industry by the system only by providing the vector data source which is hoped to be displayed, thereby realizing the manufacture of the custom vector tile electronic map.
Based on the first aspect, in some embodiments of the invention, further comprising:
And the personalized map code generation module is used for generating and deriving a corresponding personalized map code according to the personalized map.
Based on the first aspect, in some embodiments of the invention, further comprising:
a symbol and font importing module, configured to import symbol data and font data in the TMS tile service, respectively;
And the font and symbol micro-service interface generation module is used for generating font and symbol micro-service interfaces according to the symbol data and the font data.
Based on the first aspect, in some embodiments of the invention, further comprising:
A symbol font acquiring module for acquiring a new symbol and a new font;
the symbol library updating module is used for updating a preset symbol library according to the new symbol so as to generate a new symbol library;
And the font library updating module is used for updating the preset font library according to the new fonts so as to generate the new font library.
Based on the first aspect, in some embodiments of the invention, creating the vector tile module comprises:
The vector data acquisition unit is used for acquiring vector data and importing the vector data into a preset PostgreSQL database in batches;
geojson data generating unit, which is used for generating geojson data according to the vector data and storing the geojson data;
the vector slicing unit is used for carrying out vector slicing on geojson data needing slicing by utilizing a function command of vector slicing to generate a slicing database;
the vector tile database generating unit is used for importing the slice database into a preset MongoDB database to generate a vector tile database.
Based on the first aspect, in some embodiments of the invention, geojson data generation unit includes:
The first geojson data subunit is configured to generate geojson data according to vector data by using QGIS open source software, and store the geojson data in a file form in batches.
Based on the first aspect, in some embodiments of the invention, geojson data generation unit includes:
A second geojson data subunit for generating geojson data using Postgis and storing in file form.
In a second aspect, an embodiment of the present application provides a custom map matching method for a vector tile electronic map, including the following steps:
Acquiring and creating a vector tile database by adopting a vector slicing technology according to vector data;
Constructing TMS tile service according to the vector tile database;
constructing a front-end creation layer interface according to the vector tile database;
acquiring parameter information to be created through a front-end creation layer interface in TMS tile service;
creating an initial layer according to the parameter information to be created;
Carrying out data configuration on the initial layer to generate a preprocessing layer;
and sequencing the pretreatment layers according to the layer coverage sequence of the layers to generate the personalized map.
In the implementation process, a vector tile database is created by acquiring and adopting a vector slicing technology according to vector data; the vector tiles occupy low space, the tile pattern cutting efficiency is high, the map rendering effect is quick, the map pattern can be dynamically adjusted at any time, and the map resolution is high; then constructing TMS tile service according to the vector tile database; thereby providing real-time vector data adding and deleting and checking service, rendering attribute adding and deleting and checking service, user information adding and deleting and checking service and related functions and services integrated by various slicing functions for the front end. Then constructing a front-end creation layer interface according to the vector tile database; then, parameter information to be created is obtained through a front-end creation layer interface in TMS tile service; the parameter information may be user-defined; then, an initial layer is established according to the parameter information to be established; then, carrying out data configuration on the initial layer to generate a preprocessing layer; and finally, sorting the pretreatment layers according to the layer coverage sequence of the layers to generate the personalized map. The user can configure any thematic electronic map suitable for the individuation and high performance of the industry by the system only by providing the vector data source which is hoped to be displayed, thereby realizing the manufacture of the custom vector tile electronic map.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory for storing one or more programs; a processor. The method as in the second aspect described above is implemented when one or more programs are executed by a processor.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having stored thereon a computer program which when executed by a processor implements a method as in the second aspect described above.
The embodiment of the invention has at least the following advantages or beneficial effects:
The embodiment of the invention provides a self-defined map matching system and a self-defined map matching method for a vector tile electronic map, wherein a vector tile database is obtained by a vector tile creating module and is created by adopting a vector slicing technology according to vector data; the vector tiles occupy low space, the tile pattern cutting efficiency is high, the map rendering effect is quick, the map pattern can be dynamically adjusted at any time, and the map resolution is high; the TMS tile service construction module constructs TMS tile service according to the vector tile database; thereby providing real-time vector data adding and deleting and checking service, rendering attribute adding and deleting and checking service, user information adding and deleting and checking service and related functions and services integrated by various slicing functions for the front end. The front-end creation layer interface creation module creates a front-end creation layer interface according to the vector tile database; the parameter information acquisition module acquires parameter information to be created through a front-end creation layer interface in TMS tile service; the parameter information may be user-defined; the initial layer creation module creates an initial layer according to the parameter information to be created; the layer attribute configuration module carries out data configuration on the initial layer to generate a preprocessing layer; and the layer ordering module orders the preprocessed layers according to the layer covering order, and generates the personalized map. The user can configure any thematic electronic map suitable for the individuation and high performance of the industry by the system only by providing the vector data source which is hoped to be displayed, thereby realizing the manufacture of the custom vector tile electronic map. The personalized map code can be used in any map engine platform based on MapBox GL, so that the user can conveniently use the map engine platform on each platform. The system logs in by using the computer browser without installing an application program, thereby being more convenient and efficient.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a block diagram of a custom map matching system for a vector tile electronic map according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for custom map matching of a vector tile electronic map according to an embodiment of the present invention;
fig. 3 is a block diagram of an electronic device according to an embodiment of the present invention.
Icon: 1100-creating a vector tile module; 1110-a vector data acquisition unit; 1120-geojson data generating unit; 1130-a vector slicing unit; 1140-vector tile database generation unit; 1121-a first geojson data subunit; 1122-a second geojson data subunit; a 1200-TMS tile service construction module; 1300-a front-end creation layer interface creation module; 1400-parameter information acquisition module; 1500-an initial layer creation module; 1600-layer attribute configuration module; 1700-layer ordering module; 1800-personalized map code generation module; 1900-symbol and font importation module; 2000-a micro-service interface generation module of fonts and symbols; 2100-symbol font acquisition module; 2200-a symbol library update module; 2300-a font library updating module; 101-memory; 102-a processor; 103-communication interface.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Examples
Some embodiments of the present application are described in detail below with reference to the accompanying drawings. The various embodiments and features of the embodiments described below may be combined with one another without conflict.
Referring to fig. 1, fig. 1 is a block diagram of a customized map matching system of a vector tile electronic map according to an embodiment of the present invention. The self-defined map matching system of the vector tile electronic map comprises:
A vector tile creation module 1100, configured to acquire and create a vector tile database according to vector data by using a vector slicing technique; the vector slicing technology can comprise two implementations of pre-slicing and real-time slicing: the pre-slicing requires a user to produce vector tiles in advance, and has the advantages of stable browsing and supporting of electronic map configuration with large data volume; the disadvantage is the longer slicing time used compared to real-time slicing; the method is suitable for users with enough slicing time, large data volume and stable browsing requirement. The real-time slicing can start the graph matching use only by uploading vector data to a database by a user, and has the advantages of no need of slicing waiting time, instantaneity and poor stability of vector data with large data quantity; the method is suitable for users with small data volume and small waiting time. The implementation manner of the pre-slicing and the real-time slicing belongs to the prior art, and will not be described herein. The process of creating the vector tile database described above may be accomplished by the vector data acquisition unit 1110 and geojson data generation unit, where:
A vector data acquiring unit 1110, configured to acquire vector data and import the vector data into a preset PostgreSQL database in batch; the vector data batch warehouse entry can use postgis vector warehouse entry tools: postGIS PostGIS Bundle 3for PostgreSQLx64 12Shapefile and DBF Loader Exporter, note that: the name of the vector layer in the warehouse-in can not be Chinese, and the path of the vector layer in the warehouse-in can not contain Chinese, otherwise, the import fails.
Geojson data generating unit, which is used for generating geojson data according to the vector data and storing the geojson data; the generation geojson of data refers to the conversion of vector data into geojson type data by utilizing postgis open source technology. The storing can be performed in two ways, and the storing can be respectively performed by the following two subunits, wherein the first geojson data subunit 1121 is used for generating geojson data according to vector data by utilizing QGIS open source software and storing the geojson data in a file form in batches, so that the storing speed can be improved, the integrity of the data can be ensured, and the storing can be performed at a certain position in Centos. A second geojson data subunit 1122, configured to generate geojson data by using Postgis, and store the 5225 data in a file form, where the geojson data is single geojson data, so as to improve data accuracy, and the storage may be a location stored in Centos 7.
Vector slicing unit 1130, configured to perform vector slicing on geojson data to be sliced by using a function command of vector slicing, and generate a slice database; vector slicing may refer to vector tile operation on geojson data by using tippecanoe open source technology, the back end is connected to tippecanoe installed in Centos7 through socket, and geojson data needing slicing is sliced by using a function command of vector slicing of tippecanoe, so as to obtain a slice database.
The vector slicing process is carried out in the form of steps, and each step is carried out correctly before the next step, so that the correct result of vector slicing is ensured. Care is taken in generating geojson to select the vector data source and slice type; in the vector slicing process, attention is paid to selection of a slice range, and a proper range is selected to avoid redundant slices; and finally clicking a button in the slicing and warehousing process, wherein the waiting time of vector slicing and warehousing is long, the waiting time is needed, and the interface is not closed for re-slicing. The interface may be prompted after slicing is completed.
Vector tile database generation unit 1140 is configured to import the slice database into a preset mongo db database, and generate a vector tile database. The slice data is mbtiles-format slice data, and the produced mbtiles-format slice data is imported into a monglodb database by using a tilelive open source technology, so that a vector tile database is generated.
The TMS tile service construction module is used for constructing TMS tile services according to the vector tile database; the TMS tile service is constructed by connecting the MongoDB database through the rear end, searching the corresponding slice data, constructing a persistent layer, and distributing the TMS tile service for front-end calling. The method comprises the steps of constructing micro services such as adding, deleting, checking and the like of the related attribute contents of the back-end vector tile drawing by utilizing springboot open source frames, java languages, postgresql and mongolib databases. The TMS tile construction service is a back-end service for the service construction of the whole system and comprises map services with a plurality of functions such as user registration, user login, map editing, map modification, map visualization, automatic generation of an electronic thematic map and the like.
The front-end creation layer interface creation module 1300 is configured to build a front-end creation layer interface according to the vector tile database; the construction of the front-end creation layer interface means that the back-end is connected to the vector tile database and the postgreSQL database, so that a micro-service interface, a user information interface and a rendering attribute interface required by the front-end creation layer and the corresponding addition, deletion and verification interfaces are constructed.
The parameter information obtaining module 1400 is configured to obtain parameter information to be created through a front-end creation layer interface in TMS tile service; the step of obtaining the parameter information to be created refers to that the front end inputs parameters, data source parameters and rendering attribute parameters corresponding to the vector tile set to be created in the layer creation window, so as to be used for layer creation. The parameter information includes parameters, data source parameters, and rendering attribute parameters. The system utilizes a plurality of open source libraries such as vue frames, javaScript languages, mapBox GL and the like to construct the front end of the vector tile map mapping system, utilizes open source Element UI and HTML languages, CSS languages and JavaScript languages to jointly construct a system interface and a man-machine interaction function, designs a login interface and function, a main interface and function, a map editing interface and function, different types of rendering configuration interfaces and functions of map dotted lines and planes, a symbol and font uploading/deleting interface and function, a use description interface and function, a user feedback interface and function, a map layer creation window interface and function, a map export function, a thematic map generation interface and function, a map layer dragging interface and function, a fixed map layer group interface and function, a dynamic map layer group interface and function, interaction between a dynamic map layer group and a fixed map layer group and the like.
An initial layer creation module 1500, configured to create an initial layer according to parameter information to be created; the creating an initial layer refers to creating an initial layer according to parameter information to be created, specifically, clicking a map creation button on a map set module, selecting a map blank template corresponding to a theme in a pop-up box, and inputting a name of a map to be created, wherein a name naming rule is generally as follows: region name + rendering style + creation time (year, month, day); compliance with rules facilitates management. And clicking to create the map can find a new empty template in the map set, clicking a corresponding editing button, and then starting map matching.
The layer attribute configuration module 1600 is configured to perform data configuration on the initial layer to generate a preprocessed layer; the data configuration refers to adding the created initial layer into a dynamic layer editing window, performing configuration of layer attribute, map rendering attribute, coincidence, font and map display level, generating a preprocessing layer after completion, and storing the preprocessing layer into a fixed layer group. When the map matching system is operated, an empty map is started, a newly built layer is clicked, a newly built layer is started, the map matching system designs a dynamic layer and a fixed layer, the dynamic layer is used for configuring a plurality of layers, the layers are called as layer groups, the layer groups can be stored in the fixed layer after being configured, and the layer groups are used in the final thematic map configuration. The map rendering attribute can be set to be classified, and different attributes can be displayed in maps of different levels after the classification is set, so that the configured style can be changed in a great deal. The layer creation work is temporarily free of batch operations, and the steps are repeated until all the layers are added.
The layer ordering module 1700 is configured to order the preprocessed layers according to the layer coverage order, and generate a personalized map. In the fixed layer, the configured layer groups are added into the panel once according to the layer cover sequence, so that personalized map distribution is generated, the personalized map distribution can be displayed by clicking preview, and legends, scales, thematic map names, other map components and the like are automatically generated. If the three-dimensional white mold is required, a plane vector file with height attribute can be provided and displayed in the form of 3 dtiles.
In the implementation process, a vector tile database is obtained through a vector tile creating module 1100 and is created by adopting a vector slicing technology according to vector data; the vector tiles occupy low space, the tile pattern cutting efficiency is high, the map rendering effect is quick, the map pattern can be dynamically adjusted at any time, and the map resolution is high; the TMS tile service construction module constructs TMS tile service according to the vector tile database; thereby providing real-time vector data adding and deleting and checking service, rendering attribute adding and deleting and checking service, user information adding and deleting and checking service and related functions and services integrated by various slicing functions for the front end. The front-end creation layer interface creation module 1300 builds a front-end creation layer interface according to the vector tile database; the parameter information acquisition module 1400 acquires parameter information to be created through a front-end creation layer interface in TMS tile service; the parameter information may be user-defined; the initial layer creation module 1500 creates an initial layer according to the parameter information to be created; the layer attribute configuration module 1600 performs data configuration on the initial layer to generate a preprocessing layer; the layer ordering module 1700 orders the preprocessed layers in the layer-by-layer overlay order, generating a personalized join in marriage. The user can configure any thematic electronic map suitable for the individuation and high performance of the industry by the system only by providing the vector data source which is hoped to be displayed, thereby realizing the manufacture of the custom vector tile electronic map.
Wherein, still include:
The personalized map code generation module 1800 is configured to generate and derive a corresponding personalized map code according to the personalized map. The derived personalized Map code can be a personalized Map code corresponding to the personalized Map generated by clicking a Map button, and can be used in any platform based on MapBox GL Map engine through the personalized Map code, so that a user can conveniently use the personalized Map code in each platform.
Wherein, still include:
A symbol and font importing module 1900, configured to import symbol data and font data in the TMS tile service, respectively; symbols and fonts related in the map-matching system can be that symbols are stored into a database in an image binary stream through TMS tile service issued by the back end, the fonts are processed by genfontgl open source plug-ins to generate files in a pbf format, and the files are stored into the database through the back end. In the electronic map, the map mark is the most visual expression mode for marking the ground feature on the map, and is an important component of the aesthetic degree of the electronic map; the graphic matching system can directly upload symbol files in svg format and font files in pbf format to realize custom personalized electronic map labeling.
The font and symbol micro service interface generating module 2000 is configured to generate a font and symbol micro service interface according to the symbol data and the font data. The font and symbol microservice interface is generated by saving the symbol data and the font data to a database for front-end call.
Wherein, still include:
A symbol font acquiring module 2100, configured to acquire a new symbol and a new font; the obtaining may be uploading new symbols and new fonts on a symbol library interface and a font library interface of the map-making system main interface.
The symbol library updating module 2200 is configured to update a preset symbol library according to a new symbol to generate a new symbol library; the updating can delete the symbol or add a new symbol so as to be convenient for use in the map making process.
A font library updating module 2300, configured to update a preset font library according to a new font to generate a new font library; the updating can delete fonts or add new fonts so as to be convenient for use in the map making process.
It should be noted that the system can be deployed in any network environment, the deployed server environment is Centos system (Linux system), postgresql database (version postgis is more than 3.0), mongoDB database, tippecanoe plugin, nodejs plugin, tilelive plugin, JAVA 1.8 environment and nginx plugin need of being installed in Centos system, front-end JAVA package needs to be run in JAVA 1.8 environment after front-end and back-end JAVA package is packaged, front-end needs to use ginx reverse web server to issue front-end, needs to open ports set for each database, back-end operation and front-end operation of the back-end, and ensures that the databases are accessed in internal network environment and that the front-end and back-end can be accessed in external network. After software deployment is completed, the http:// + network IP+ port can be accessed directly, the user can enter the main interface after inputting a correct account number and password, the user can select the use instruction of the left side sidebar after entering the main interface, and the user-defined map can be formally manufactured after detailed reading. The vector tile map mapping system is an online map mapping system for slicing vector data, configuring attributes and rendering patterns to form an electronic map, and can enable a user to customize a personalized map more conveniently and automatically according to own requirements. The system logs in by using the computer browser without installing an application program, thereby being more convenient and efficient.
Based on the same inventive concept, the invention also provides a self-defining map matching method of the vector tile electronic map, please refer to fig. 2, and fig. 2 is a flowchart of the self-defining map matching method of the vector tile electronic map provided by the embodiment of the invention. The self-defined map matching method of the vector tile electronic map comprises the following steps of:
Step S110, a vector tile database is obtained and created by adopting a vector slicing technology according to vector data;
Step S120, constructing TMS tile service according to the vector tile database;
step S130, constructing a front-end creation layer interface according to the vector tile database;
Step 140, acquiring parameter information to be created through a front-end creation layer interface in TMS tile service;
step S150, an initial layer is created according to the parameter information to be created;
Step S160, carrying out data configuration on the initial layer to generate a preprocessing layer;
step S170, sorting the pretreatment layers according to the layer cover sequence to generate personalized map.
In the implementation process, a vector tile database is created by acquiring and adopting a vector slicing technology according to vector data; the vector tiles occupy low space, the tile pattern cutting efficiency is high, the map rendering effect is quick, the map pattern can be dynamically adjusted at any time, and the map resolution is high; then constructing TMS tile service according to the vector tile database; thereby providing real-time vector data adding and deleting and checking service, rendering attribute adding and deleting and checking service, user information adding and deleting and checking service and related functions and services integrated by various slicing functions for the front end. Then constructing a front-end creation layer interface according to the vector tile database; then, parameter information to be created is obtained through a front-end creation layer interface in TMS tile service; the parameter information may be user-defined; then, an initial layer is established according to the parameter information to be established; then, carrying out data configuration on the initial layer to generate a preprocessing layer; and finally, sorting the pretreatment layers according to the layer coverage sequence of the layers to generate the personalized map. The user can configure any thematic electronic map suitable for the individuation and high performance of the industry by the system only by providing the vector data source which is hoped to be displayed, thereby realizing the manufacture of the custom vector tile electronic map.
Wherein, still include the following step: and generating and deriving a corresponding personalized map code according to the personalized map. The personalized map code can be used in any map engine platform based on MapBox GL, so that the user can conveniently use the map engine platform on each platform.
Wherein, still include the following step:
Firstly, respectively importing symbol data and font data into TMS tile service;
a font-to-symbol microservice interface is then generated from the symbol data and the font data.
Wherein, still include the following step:
Firstly, acquiring a new symbol and a new font;
then, updating a preset symbol library according to the new symbol to generate a new symbol library;
And finally, updating the preset font library according to the new fonts to generate a new font library.
The step of obtaining and creating the vector tile database according to the vector data by adopting a vector slicing technology further comprises the following steps:
Firstly, vector data are acquired and are imported into a preset PostgreSQL database in batches;
Then, geojson data are generated and stored according to the vector data; wherein geojson data may be generated and stored in two ways: the first is to generate geojson data from vector data using QGIS open source software and store the data in file form in batches. The second is to generate geojson data using Postgis and store it in a file.
Then vector slicing is carried out on geojson data needing slicing by utilizing a function command of vector slicing, and a slicing database is generated;
and finally, importing the slice database into a preset MongoDB database to generate a vector tile database.
Referring to fig. 3, fig. 3 is a schematic block diagram of an electronic device according to an embodiment of the present application. The electronic device comprises a memory 101, a processor 102 and a communication interface 103, wherein the memory 101, the processor 102 and the communication interface 103 are electrically connected with each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The memory 101 may be used to store software programs and modules, such as program instructions/modules corresponding to a custom map distribution system for vector tile electronic map provided in an embodiment of the present application, and the processor 102 executes the software programs and modules stored in the memory 101, thereby executing various functional applications and data processing. The communication interface 103 may be used for communication of signaling or data with other node devices.
The Memory 101 may be, but is not limited to, random access Memory (Random Access Memory, RAM), read Only Memory (ROM), programmable Read Only Memory (Programmable Read-Only Memory, PROM), erasable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), electrically erasable Read Only Memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc.
The processor 102 may be an integrated circuit chip with signal processing capabilities. The processor 102 may be a general-purpose processor including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but may also be a digital signal processor (DIGITAL SIGNAL Processing, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components.
It will be appreciated that the configuration shown in fig. 3 is merely illustrative, and that the electronic device may also include more or fewer components than shown in fig. 3, or have a different configuration than shown in fig. 3. The components shown in fig. 3 may be implemented in hardware, software, or a combination thereof.
In the embodiments provided in the present application, it should be understood that the disclosed system and method may be implemented in other manners as well. The system embodiments described above are merely illustrative, for example, of the flowcharts and block diagrams in the figures that illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored on a computer readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method of the embodiments of the present application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In summary, the system and the method for custom mapping of the vector tile electronic map provided by the embodiment of the application acquire the vector tile creation module 1100 and create a vector tile database according to vector data by adopting a vector slicing technology; the vector tiles occupy low space, the tile pattern cutting efficiency is high, the map rendering effect is quick, the map pattern can be dynamically adjusted at any time, and the map resolution is high; the TMS tile service construction module constructs TMS tile service according to the vector tile database; thereby providing real-time vector data adding and deleting and checking service, rendering attribute adding and deleting and checking service, user information adding and deleting and checking service and related functions and services integrated by various slicing functions for the front end. The front-end creation layer interface creation module 1300 builds a front-end creation layer interface according to the vector tile database; the parameter information acquisition module 1400 acquires parameter information to be created through a front-end creation layer interface in TMS tile service; the parameter information may be user-defined; the initial layer creation module 1500 creates an initial layer according to the parameter information to be created; the layer attribute configuration module 1600 performs data configuration on the initial layer to generate a preprocessing layer; the layer ordering module 1700 orders the preprocessed layers in the layer-by-layer overlay order, generating a personalized join in marriage. The user can configure any thematic electronic map suitable for the individuation and high performance of the industry by the system only by providing the vector data source which is hoped to be displayed, thereby realizing the manufacture of the custom vector tile electronic map. The personalized map code can be used in any map engine platform based on MapBox GL, so that the user can conveniently use the map engine platform on each platform. The system logs in by using the computer browser without installing an application program, thereby being more convenient and efficient.
The above is only a preferred embodiment of the present application, and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.
It will be evident to those skilled in the art that the application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (7)

1. The utility model provides a vector tile electronic map custom join in marriage drawing system which characterized in that includes:
The vector tile creating module is used for acquiring and creating a vector tile database according to vector data by adopting a vector slicing technology; comprising the following steps: the vector data acquisition unit is used for acquiring vector data and importing the vector data into a preset PostgreSQL database in batches; geojson data generating unit, which is used for generating geojson data according to the vector data and storing the geojson data; the vector slicing unit is used for carrying out vector slicing on geojson data needing slicing by utilizing a function command of vector slicing to generate a slicing database; the vector tile database generating unit is used for importing the slice database into a preset MongoDB database to generate a vector tile database; the geojson data generation unit includes: the first geojson data subunit is used for generating geojson data according to vector data by utilizing QGIS open source software and storing the geojson data in a file form in batches; a second geojson data subunit for generating geojson data using Postgis and storing in file form;
The TMS tile service construction module is used for constructing TMS tile services according to the vector tile database;
The front-end creation layer interface creation module is used for building a front-end creation layer interface according to the vector tile database;
the parameter information acquisition module is used for acquiring parameter information to be created through a front-end creation layer interface in TMS tile service;
the initial layer creation module is used for creating an initial layer according to the parameter information to be created;
the layer attribute configuration module is used for carrying out data configuration on the initial layer and generating a preprocessing layer;
and the layer ordering module is used for ordering the preprocessed layers according to the layer covering order to generate the personalized map.
2. The vector tile electronic map custom map distribution system of claim 1, further comprising:
And the personalized map code generation module is used for generating and deriving a corresponding personalized map code according to the personalized map.
3. The vector tile electronic map custom map distribution system of claim 1, further comprising:
a symbol and font importing module, configured to import symbol data and font data in the TMS tile service, respectively;
And the font and symbol micro-service interface generation module is used for generating font and symbol micro-service interfaces according to the symbol data and the font data.
4. The vector tile electronic map custom map distribution system of claim 1, further comprising:
A symbol font acquiring module for acquiring a new symbol and a new font;
the symbol library updating module is used for updating a preset symbol library according to the new symbol so as to generate a new symbol library;
And the font library updating module is used for updating the preset font library according to the new fonts so as to generate the new font library.
5. The self-defining map matching method for the vector tile electronic map is characterized by comprising the following steps of:
Acquiring and creating a vector tile database by adopting a vector slicing technology according to vector data; comprising the following steps: vector data are obtained and are imported into a preset PostgreSQL database in batches; generating geojson data according to the vector data and storing the data; vector slicing is carried out on geojson data to be sliced by utilizing a function command of vector slicing, and a slice database is generated; importing the slice database into a preset MongoDB database to generate a vector tile database; the generating geojson data from the vector data and storing includes: generating geojson data according to the vector data by using QGIS open source software, and storing the geojson data in a file form in batches; generating geojson data using Postgis and storing in a file;
Constructing TMS tile service according to the vector tile database;
constructing a front-end creation layer interface according to the vector tile database;
acquiring parameter information to be created through a front-end creation layer interface in TMS tile service;
creating an initial layer according to the parameter information to be created;
Carrying out data configuration on the initial layer to generate a preprocessing layer;
and sequencing the pretreatment layers according to the layer coverage sequence of the layers to generate the personalized map.
6. An electronic device, comprising:
A memory for storing one or more programs;
A processor;
The method of claim 5 is implemented when the one or more programs are executed by the processor.
7. A computer readable storage medium, on which a computer program is stored which, when being executed by a processor, implements the method according to claim 5.
CN202111193935.2A 2021-10-13 2021-10-13 Custom map matching system and method for vector tile electronic map Active CN113761101B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111193935.2A CN113761101B (en) 2021-10-13 2021-10-13 Custom map matching system and method for vector tile electronic map

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111193935.2A CN113761101B (en) 2021-10-13 2021-10-13 Custom map matching system and method for vector tile electronic map

Publications (2)

Publication Number Publication Date
CN113761101A CN113761101A (en) 2021-12-07
CN113761101B true CN113761101B (en) 2024-07-02

Family

ID=78799293

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111193935.2A Active CN113761101B (en) 2021-10-13 2021-10-13 Custom map matching system and method for vector tile electronic map

Country Status (1)

Country Link
CN (1) CN113761101B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114972671B (en) * 2022-07-06 2024-04-30 中煤(西安)地下空间科技发展有限公司 Vector tile rendering method based on hypergraph desktop fusion open source software
CN115049758A (en) * 2022-08-15 2022-09-13 中国电子科技集团公司第十五研究所 WebGIS-based thematic map making method, server and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108256127A (en) * 2018-03-06 2018-07-06 北京工业大学 A kind of weather-map system of customizable pattern
CN109408657A (en) * 2018-11-13 2019-03-01 国家基础地理信息中心 A kind of ultra-large spatial data rapid drafting method and system

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5337338B2 (en) * 2005-07-29 2013-11-06 ヤフー株式会社 Map overlay system and method
KR20120034383A (en) * 2010-10-01 2012-04-12 엔에이치엔(주) Automatic map update system and method thereof
EP3133510A1 (en) * 2015-08-17 2017-02-22 Palantir Technologies, Inc. Interactive geospatial map
US10921136B2 (en) * 2017-10-27 2021-02-16 Mapbox, Inc. Efficient processing for vector tile generation
CN110347769B (en) * 2019-07-09 2021-03-30 东方网力科技股份有限公司 Processing method, device, equipment and storage medium for multi-level map tiles
CN111090716B (en) * 2019-12-31 2023-05-05 方正国际软件(北京)有限公司 Vector tile data processing method, device, equipment and storage medium
CN111666367A (en) * 2020-06-08 2020-09-15 武汉中海庭数据技术有限公司 High-precision map automatic compiling method and device
CN112598793B (en) * 2020-12-31 2023-02-17 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Three-dimensional map tile vector grid integrated system and method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108256127A (en) * 2018-03-06 2018-07-06 北京工业大学 A kind of weather-map system of customizable pattern
CN109408657A (en) * 2018-11-13 2019-03-01 国家基础地理信息中心 A kind of ultra-large spatial data rapid drafting method and system

Also Published As

Publication number Publication date
CN113761101A (en) 2021-12-07

Similar Documents

Publication Publication Date Title
CN108228169B (en) Chart making method, device, equipment and medium based on eCharts tool
CN112559667B (en) Map editor, map engine, map editing system, map editing method, and storage medium
CN113761101B (en) Custom map matching system and method for vector tile electronic map
US9530250B2 (en) Augmented reality updating of 3D CAD models
US20180052593A1 (en) Providing visual selection of map data for a digital map
Graser Learning QGIS 2.0
US20080115049A1 (en) Dynamically generating mini-graphs to represent style and template icons
CN105069118A (en) GIS configuration-based application scene management method and system
US11281742B2 (en) Interactive and selective coloring of digital vector glyphs
CN113535165A (en) Interface generation method and device, electronic equipment and computer readable storage medium
US8743134B2 (en) Interactive comparative analysis of multiple object data visualizations
CN108846893A (en) Trivector ground drawing generating method and device
US10067950B1 (en) Systems and methods for efficiently organizing map styling information
Westra Python Geospatial Analysis Essentials
CN108153572A (en) GIS display methods, device and system
CN114332439A (en) Three-dimensional data editing and generating system
CN117032666A (en) Page editing method and device based on editor, terminal equipment and storage medium
CN110457408B (en) Personalized map downloading method, device, equipment and storage medium
CN115810064A (en) Map making and publishing platform construction method based on open source GIS technology
CN115827809A (en) Method and device for generating Geographic Information System (GIS) application
Farkas Practical GIS
Hayat et al. Extension of interaction flow modeling language for geographical information systems
KR20200058205A (en) Automated symbolization of 1:25,000 map based on domestic geometric characteristic
CA3105227A1 (en) Techniques for extraction of vectorized content of an oil and gas play within an unstructured file
CN111408135B (en) Method and device for adding environmental sound source, electronic equipment and storage medium

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
GR01 Patent grant