CN113761101A - System and method for custom map matching of vector tile electronic map - Google Patents

System and method for custom map matching of vector tile electronic map Download PDF

Info

Publication number
CN113761101A
CN113761101A CN202111193935.2A CN202111193935A CN113761101A CN 113761101 A CN113761101 A CN 113761101A CN 202111193935 A CN202111193935 A CN 202111193935A CN 113761101 A CN113761101 A CN 113761101A
Authority
CN
China
Prior art keywords
vector
tile
data
module
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.)
Pending
Application number
CN202111193935.2A
Other languages
Chinese (zh)
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/CN113761101A/en
Publication of CN113761101A publication Critical patent/CN113761101A/en
Pending legal-status Critical Current

Links

Images

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 system and a method for user-defined map matching of a vector tile electronic map, and relates to the technical field of geographic information. A vector tile database is obtained through a vector tile creating module and created by adopting a vector slicing technology according to vector data; the TMS tile service construction module constructs a TMS tile service; 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 the TMS tile service; the initial layer creating module creates an initial layer according to the parameter information to be created; the layer attribute configuration module performs data configuration on the initial layer; the layer sequencing module sequences the preprocessed layers according to the layer capping sequence to generate a personalized map matching, so that a personalized and high-performance electronic map suitable for the industry of the map matching is configured, and the customized vector tile electronic map is manufactured.

Description

System and method for custom map matching of vector tile electronic map
Technical Field
The invention relates to the technical field of geographic information, in particular to a system and a method for custom map matching of a vector tile electronic map.
Background
At present, the electronic map Tiles mainly adopt two modes, one mode is a traditional grid tile, and the other mode is a Vector tile (Vector Tiles), wherein the traditional grid tile adopts a classification mode of a quadtree pyramid model to cut a map into countless rectangular grid pictures with equal size, and the rectangular grid pictures are spliced into maps with different levels according to certain rules for display. The vector tile is similar to a grid tile, vector data is divided into vector element description files by a multi-level model and stored in a server side, then the vector element description files are rendered and drawn to a client side according to a specified style, and geometric information and attribute information projected in a rectangular area are stored on a single vector tile. And finally, rendering and outputting the map at the client after the client acquires data such as vector tiles, map labeling fonts, icons, style files and the like through a distributed network. The vector TILEs have no unified data labels, and MAPBOX center TILE specific general vector TILE data standard is established by MAPBOX center TILE standards based on Google protocol buffers and is adopted by many companies and organizations. The vector tiles can be rapidly rendered on the client, and the rapid development of a map rendering engine is promoted mainly due to the development of a client graphics rendering technology, common graphics rendering technologies include OpenGL/WebGL and the like, while OpenGL and WebGL are bottom-layer 3D graphics technology labels, and many map rendering engines are derived according to the standards, such as an open-source 3D rendering engine Tangram (including a browser rendering engine Mapbox GL JS and a mobile terminal rendering engine tagram-ES, which are provided by mapzen open sources) 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 nat) used by Mapbox.
The grid tiles are rendered in advance, so that the requirements on the performance of the client are low, and the performance is stable. The tiles have high occupied space, the tile map cutting efficiency is low, the map style cannot be dynamically adjusted at any time, the map resolution is low, and the loading speed is slow. The vector tiles have the advantages of low occupied space, high tile map cutting efficiency, quick map rendering effect, capability of dynamically adjusting the map style at any time and high map resolution. The requirement on the performance of the client is high, and the compatibility of the old equipment is problematic. Although the vector tile open source technology blooms all the time, the custom vector tile electronic map cannot be manufactured.
Disclosure of Invention
The invention aims to provide a system and a method for customizing a map of a vector tile electronic map, which are used for solving the problem that the prior art can not realize the manufacture of the customized vector tile electronic map.
In a first aspect, an embodiment of the present application provides a system for custom map matching of a vector tile electronic map, including:
the vector tile creating module is used for acquiring and creating a vector tile database by adopting a vector slicing technology according to the vector data;
the TMS tile service construction module is used for constructing a TMS tile service according to the vector tile database;
the front-end creation layer interface creation module is used for creating a front-end creation layer interface according to the vector tile database;
the TMS tile service system comprises a parameter information acquisition module, a parameter information acquisition module and a TMS tile service module, wherein the parameter information acquisition module is used for acquiring parameter information to be created through a front-end creation layer interface in the TMS tile service;
the initial layer creating 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 to generate a preprocessed layer;
and the layer sequencing module is used for sequencing the preprocessed layers according to the layer capping sequence to generate the personalized matching map.
In the implementation process, a vector tile database is created by a vector tile creating module and adopting a vector slicing technology according to vector data; the vector tiles have the advantages of low occupied space, high tile map cutting efficiency, quick map rendering effect, capability of dynamically adjusting map styles at any time and high map resolution; the TMS tile service construction module constructs TMS tile service according to the vector tile database; therefore, real-time vector data adding, deleting, modifying and checking service, rendering attribute adding, deleting, modifying and checking service, user information adding, deleting, modifying and checking service and various slicing function integrated related functions and services are provided 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 the TMS tile service; the parameter information may be user-defined; the initial layer creating module creates an initial layer according to the parameter information to be created; the layer attribute configuration module performs data configuration on the initial layer to generate a preprocessed layer; and the layer sequencing module sequences the preprocessed layers according to the layer capping sequence to generate the personalized map matching. A user only needs to provide a vector data source which is expected to be displayed, and an electronic map which is suitable for any special subject with individuation and high performance in the industry can be configured through the system, so that the manufacturing of the customized vector tile electronic map is realized.
Based on the first aspect, in some embodiments of the present invention, the method further includes:
and the personalized map code generation module is used for generating and deriving a corresponding personalized map code according to the personalized matching map.
Based on the first aspect, in some embodiments of the present invention, the method further includes:
the TMS tile service comprises a symbol and font importing module, a TMS tile service module and a TMS tile service module, wherein the symbol and font importing module is used for respectively importing symbol data and font data in the TMS tile service;
and the font and symbol micro service interface generation module is used for generating a font and symbol micro service interface according to the symbol data and the font data.
Based on the first aspect, in some embodiments of the present invention, the method further includes:
the symbol font obtaining module is used for obtaining a new symbol and a new font;
the symbol library updating module is used for updating the 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 font so as to generate a 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;
the geojson data generating unit is used for generating and storing the geojson data according to the vector data;
the vector slicing unit is used for performing vector slicing on the geojson data needing to be sliced by using a function command of the vector slicing to generate a slice database;
and the vector tile database generating unit is used for importing the slice database into a preset MongoDB database to generate the vector tile database.
Based on the first aspect, in some embodiments of the present invention, the geojson data generating unit includes:
and the first geojson data subunit is used for generating geojson data according to the vector data by utilizing QGIS open source software and storing the geojson data in a file form in batches.
Based on the first aspect, in some embodiments of the present invention, the geojson data generating unit includes:
and the second geojson data subunit is used for generating the geojson data by using Postgis and storing the geojson data in a file form.
In a second aspect, an embodiment of the present application provides a method for self-defining map matching of 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 a TMS tile service according to the vector tile database;
constructing a front-end creation layer interface according to a vector tile database;
acquiring parameter information to be created through a front-end creation layer interface in TMS tile service;
establishing an initial layer according to parameter information to be established;
carrying out data configuration on the initial layer to generate a preprocessing layer;
and sequencing the preprocessed image layers according to the image layer capping sequence to generate the personalized matching image.
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 have the advantages of low occupied space, high tile map cutting efficiency, quick map rendering effect, capability of dynamically adjusting map styles at any time and high map resolution; then, TMS tile service is constructed according to the vector tile database; therefore, real-time vector data adding, deleting, modifying and checking service, rendering attribute adding, deleting, modifying and checking service, user information adding, deleting, modifying and checking service and various slicing function integrated related functions and services are provided for the front end. Then, establishing a layer interface at the front end according to the vector tile database; then, acquiring parameter information to be created through a front-end creation layer interface in TMS tile service; the parameter information may be user-defined; then, establishing an initial layer according to the parameter information to be established; then, carrying out data configuration on the initial layer to generate a preprocessing layer; and finally, sequencing the preprocessed image layers according to the image layer capping sequence to generate the personalized matching image. A user only needs to provide a vector data source which is expected to be displayed, and an electronic map which is suitable for any special subject with individuation and high performance in the industry can be configured through the system, so that the manufacturing of the customized vector tile electronic map is realized.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a memory for storing one or more programs; a processor. The method of the second aspect as 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, on which a computer program is stored, which, when executed by a processor, implements the method as in the second aspect described above.
The embodiment of the invention at least has the following advantages or beneficial effects:
the embodiment of the invention provides a system and a method for custom map matching of a vector tile electronic map, which are characterized in that a vector tile database is created by a vector tile creation module and a vector slicing technology according to vector data; the vector tiles have the advantages of low occupied space, high tile map cutting efficiency, quick map rendering effect, capability of dynamically adjusting map styles at any time and high map resolution; the TMS tile service construction module constructs TMS tile service according to the vector tile database; therefore, real-time vector data adding, deleting, modifying and checking service, rendering attribute adding, deleting, modifying and checking service, user information adding, deleting, modifying and checking service and various slicing function integrated related functions and services are provided 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 the TMS tile service; the parameter information may be user-defined; the initial layer creating module creates an initial layer according to the parameter information to be created; the layer attribute configuration module performs data configuration on the initial layer to generate a preprocessed layer; and the layer sequencing module sequences the preprocessed layers according to the layer capping sequence to generate the personalized map matching. A user only needs to provide a vector data source which is expected to be displayed, and an electronic map which is suitable for any special subject with individuation and high performance in the industry can be configured through the system, so that the manufacturing of the customized vector tile electronic map is realized. The personalized map code can be used in any map engine platform based on MapBox GL, and the personalized map code is convenient for users to use in each platform. The system logs in by using the computer browser without additionally installing an application program, and is more convenient and efficient.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
FIG. 1 is a block diagram of a system for custom map matching of a vector tile electronic map according to an embodiment of the present invention;
FIG. 2 is a flow chart 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-create vector tile module; 1110-a vector data acquisition unit; 1120-geojson data generating unit; 1130-vector slice unit; 1140-a vector tile database generating unit; 1121-first geojson data subunit; 1122-a second geojson data subunit; 1200-TMS tile service construction module; 1300-front end creation layer interface creation module; 1400-parameter information acquisition module; 1500-initial layer creation module; 1600-layer attribute configuration module; 1700-layer ordering module; 1800-personalized map code generation module; 1900-sign and font import module; 2000-micro service interface generation module of font and symbol; 2100-symbol font obtaining module; 2200-a symbol library update module; 2300-font library updating module; 101-a memory; 102-a processor; 103-communication interface.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Examples
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the individual features of the embodiments can be combined with one another without conflict.
Referring to fig. 1, fig. 1 is a block diagram of a system for self-defining map matching of a vector tile electronic map according to an embodiment of the present invention. The user-defined map matching system of the vector tile electronic map comprises:
a create vector tile module 1100, configured to obtain and create a vector tile database according to vector data by using a vector slicing technique; the vector slicing technique can be realized in two ways, namely pre-slicing and real-time slicing: the pre-cutting film needs a user to produce the vector tiles in advance, and has the advantages of stable browsing and large data supporting quantity of electronic map configuration; the disadvantage is the longer slicing time compared to real-time slicing; the method is suitable for users who have enough slicing time, large data volume and need to browse stably. The real-time slicing can be used for matching the image only by uploading the vector data to the database by a user, has the advantages of no need of slice waiting time, instantaneity and poor stability of the vector data with large data volume; the method is suitable for users with small data volume and short waiting time. The implementation manners of the pre-slicing and the real-time slicing belong to the prior art, and are not described herein again. The above process of creating the vector tile database may be completed by the vector data obtaining unit 1110 and the geojson data generating unit, wherein:
a vector data obtaining unit 1110, configured to obtain vector data and import the vector data into a preset PostgreSQL database in batch; the vector data batch storage can use postgis vector storage tool: PostGIS PostGIS Bundle 3for PostgreSQL QLx 6412 Shapefile and DBF Loader Exporter, it should be noted that: the warehousing vector layer name cannot be Chinese, the warehousing vector layer path cannot contain Chinese, and otherwise the import fails.
The geojson data generating unit is used for generating and storing the geojson data according to the vector data; the generation of the geojson data refers to the fact that vector data can be converted into geojson type data by using a postgis open source technology. The storage may be performed in two ways, and may be respectively performed by two subunits, where the first geojson data subunit 1121 is configured to generate geojson data according to vector data by using QGIS open source software, and store the geojson data in a file format in batch, so as to improve a storage rate and ensure integrity of the data, and the storage may be stored in a certain position of the centros 7. And a second geojson data subunit 1122 for generating geojson data using Postgis and storing the geojson data in a file form, the geojson data being single geojson data, so that data accuracy can be improved, and the storage being a location in the centros 7.
A vector slicing unit 1130, configured to perform vector slicing on the geojson data to be sliced by using a function command of the vector slicing, so as to generate a slice database; the vector slicing may be to perform a vector tile operation on the geojson data by using a tipplene open source technology, connect the backend to a tipplene installed in the centros 7 through a socket, and slice the geojson data to be sliced by using a function command of the vector slicing of the tipplene, so as to obtain a slice database.
The vector slicing process is carried out in a step form, and each step is executed correctly before the next step, so that the correct result of the vector slicing is ensured. Care is taken in selecting the source of the vector data and the slice type in generating geojson; in the vector slicing process, attention is paid to the selection of the slicing range, and a proper range is selected to avoid redundant slicing; and finally, clicking a button in the slicing and warehousing process, but paying attention to the fact that the waiting time of the vector slicing and the warehousing process is long, waiting for patience is needed, and the interface is not required to be closed for slicing again. The interface may be prompted after slicing is complete.
And a vector tile database generation unit 1140, which is used for importing the slice database into a preset MongoDB database to generate a vector tile database. The slice data is in an mbtiles format, and the produced mbtiles format slice data is imported into a mongodb database by using a tilelive open source technology, so that the vector tile database is generated.
The TMS tile service construction module is used for constructing a TMS tile service according to the vector tile database; the TMS tile service construction means that a MongoDB database is connected through the rear end, corresponding slice data are found, then a persistent layer is constructed, and the TMS tile service is issued for calling by the front end. The method comprises the micro-services of constructing the content of related attributes of the back-end vector tile drawing by utilizing a springboot open source framework, a java language, postgresql and a mongodb database, and the like. The TMS tile building service is a back-end service built for the service of the whole system, and comprises a map service with a plurality of functions of user registration, user login, map editing, map modification, map visualization, automatic generation of an electronic thematic map and the like.
A front-end creation layer interface creation module 1300, configured to create a front-end creation layer interface according to the vector tile database; the front-end layer creation interface is constructed by connecting the back end to the vector tile database and the PostgreSQL database, so that a micro service interface, a user information interface and a rendering attribute interface which are required by the front-end layer creation are constructed, and the corresponding interfaces are added, deleted, modified and checked.
The parameter information obtaining module 1400 is configured to obtain parameter information to be created through a front-end creation layer interface in the TMS tile service; the obtaining of the parameter information to be created refers to inputting, by the front end, a parameter, a data source parameter, and a rendering attribute parameter corresponding to a vector tile set to be created in a window for creating a layer, so as to create the layer. The parameter information includes a parameter, a data source parameter, and a rendering attribute parameter. The system utilizes a plurality of open source libraries such as an vue framework, a JavaScript language, a MapBox GL and the like to construct the front end of a vector tile map mapping system, utilizes an open source Element UI, an HTML language, a CSS language and a JavaScript language to jointly construct a system interface and a human-computer interaction function, designs a login interface and function, a main interface and function, a map editing interface and function, different types of rendering and configuration interfaces and functions of a map point-line surface, a map editing interface and function, a description interface and function, a user feedback interface and function, a map layer creation window interface and function, a map export function, a special topic 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 group and the like.
An initial layer creating module 1500, configured to create an initial layer according to parameter information to be created; the creating of the initial map layer refers to creating the initial map layer according to parameter information to be created, and the specific operation is to click a map creating button on a map set module, select a map empty template corresponding to a theme in a pop-up box, input a name of a map to be newly created, and a name naming rule is generally as follows: region name + rendering style + creation time (year, month, day); compliance with rules facilitates management. And clicking the created map to find a newly-built empty template in the map set, and clicking a corresponding editing button to start 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, configuring layer attributes, map rendering attributes, conformity, fonts and map display levels, and generating a preprocessing layer and storing the preprocessing layer in a fixed map layer after the configuration is completed. During operation, an empty map is entered at first, a new map layer is clicked, the new map layer is started, a dynamic map layer and a fixed map layer are designed in the map matching system, the dynamic map layer is used for configuring the map layers, the map layers are called as map layer groups, and the map layer groups can be stored in the fixed map layer after being configured and used during final thematic map configuration. The map rendering attribute can be configured in a grading manner, different attributes can be displayed in maps of different grades after the grading is set, and the configured style can be changed. The layer creation work is temporarily free of batch operation, and the steps need to be repeated when the number of layers needs to be configured until all the layers are added.
And the layer sequencing module 1700 is configured to sequence the preprocessed layers according to the layer capping order, so as to generate a personalized map. And in the fixed layer, adding a plurality of layer groups which are configured into the panel once and again according to the layer capping sequence, thereby generating a personalized matching picture, displaying the personalized matching picture by clicking the preview, and automatically generating a legend, a scale, a thematic map name, other map components and the like. If the requirement of the three-dimensional white mould exists, a planar vector file with a height attribute can be provided and displayed in a 3dtiles form.
In the implementation process, a vector tile database is created by the vector tile creating module 1100 by using a vector slicing technique according to vector data; the vector tiles have the advantages of low occupied space, high tile map cutting efficiency, quick map rendering effect, capability of dynamically adjusting map styles at any time and high map resolution; the TMS tile service construction module constructs TMS tile service according to the vector tile database; therefore, real-time vector data adding, deleting, modifying and checking service, rendering attribute adding, deleting, modifying and checking service, user information adding, deleting, modifying and checking service and various slicing function integrated related functions and services are provided for the front end. The front-end creation layer interface creation module 1300 creates a front-end creation layer interface according to the vector tile database; the parameter information obtaining module 1400 obtains parameter information to be created through a front-end creation layer interface in the TMS tile service; the parameter information may be user-defined; the initial layer creation module 1500 creates an initial layer according to parameter information to be created; the layer attribute configuration module 1600 performs data configuration on the initial layer to generate a preprocessed layer; the layer sorting module 1700 sorts the preprocessed layers according to the layer capping order to generate the personalized map matching. A user only needs to provide a vector data source which is expected to be displayed, and an electronic map which is suitable for any special subject with individuation and high performance in the industry can be configured through the system, so that the manufacturing of the customized vector tile electronic map is realized.
Wherein, still include:
and a personalized map code generation module 1800, configured to generate and derive a corresponding personalized map code according to the personalized map matching. The personalized Map code can be derived by clicking a Map button, so that a personalized Map code corresponding to a personalized Map can be generated, and the personalized Map code can be used in any Map engine platform based on MapBox GL, so that the use of a user in each platform is facilitated.
Wherein, still include:
a symbol and font import module 1900, configured to import symbol data and font data in the TMS tile service, respectively; the symbols and fonts involved in the mapping system can be stored in a database in an image binary stream through a TMS tile service issued by a back end, and the fonts are processed by a genfontgl open source plug-in to generate files in a pbf format and are stored in the database through the back end. In the electronic map, map marks are the most intuitive expression modes for identifying surface features on the map and are important components of the aesthetic degree of the electronic map; in the map matching system, symbol files in an svg format and font files in a pbf format can be directly uploaded to realize customized 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. And generating a micro service interface of the font and the symbol by storing the symbol data and the font data in a database for being called by a front end.
Wherein, still include:
a symbol font obtaining module 2100, configured to obtain a new symbol and a new font; the obtaining may be uploading a new symbol and a new font on a symbol library interface and a font library interface of the map matching system main interface.
A symbol library updating module 2200, 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 matching 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 the fonts or add new fonts so as to be convenient to use in the map matching process.
It should be noted that the system may be deployed in any network environment, the deployed server environment is a centros 7 system (Linux system), a postgresql database (postgis version is more than 3.0), a mongoDB database, a tippecano plug-in, nodejs plug-in, tilelive plug-in, JAVA 1.8 environment, and nginx plug-in are required to be installed in the centros 7 system, after the front and back end codes are packaged, the back end jar packet needs to be run in JAVA 1.8 environment, the front end needs to release the front end by using a nginx reverse web server, and each database, back end running, and port set for front end running in the front end need to be opened to ensure that the database is accessed in the internal network environment, and ensure that the front end and the back end can be accessed in the external network. After software deployment is completed, direct access can be achieved by accessing http:// + network IP + ports, a main interface can be entered after a correct account number and a password are input, the use description of the left side column is selected after the main interface is entered, and custom map manufacturing can be formally started after detailed reading. The vector tile map matching system is an online map matching system for slicing, attribute configuration and style rendering of vector data to form an electronic map, and can be used for a user to customize an individualized map more conveniently according to the requirement of the user. The system logs in by using the computer browser without additionally installing an application program, and is more convenient and efficient.
Based on the same inventive concept, the invention further provides a customized map matching method for the vector tile electronic map, please refer to fig. 2, and fig. 2 is a flow chart of the customized map matching method for the vector tile electronic map provided by the embodiment of the invention. The user-defined map matching method of the vector tile electronic map comprises the following steps of:
step S110, acquiring and establishing a vector tile database by adopting a vector slicing technology according to vector data;
step S120, TMS tile service is constructed according to the vector tile database;
step S130, constructing a layer interface at the front end according to the vector tile database;
step S140, acquiring parameter information to be created through a front-end creation layer interface in the TMS tile service;
step S150, establishing an initial layer according to the parameter information to be established;
step S160, carrying out data configuration on the initial layer to generate a preprocessing layer;
and S170, sequencing the preprocessed image layers according to the image layer gland sequence to generate the personalized matching image.
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 have the advantages of low occupied space, high tile map cutting efficiency, quick map rendering effect, capability of dynamically adjusting map styles at any time and high map resolution; then, TMS tile service is constructed according to the vector tile database; therefore, real-time vector data adding, deleting, modifying and checking service, rendering attribute adding, deleting, modifying and checking service, user information adding, deleting, modifying and checking service and various slicing function integrated related functions and services are provided for the front end. Then, establishing a layer interface at the front end according to the vector tile database; then, acquiring parameter information to be created through a front-end creation layer interface in TMS tile service; the parameter information may be user-defined; then, establishing an initial layer according to the parameter information to be established; then, carrying out data configuration on the initial layer to generate a preprocessing layer; and finally, sequencing the preprocessed image layers according to the image layer capping sequence to generate the personalized matching image. A user only needs to provide a vector data source which is expected to be displayed, and an electronic map which is suitable for any special subject with individuation and high performance in the industry can be configured through the system, so that the manufacturing of the customized vector tile electronic map is realized.
Wherein, still include the following step: and generating and deriving a corresponding personalized map code according to the personalized map matching. The personalized map code can be used in any map engine platform based on MapBox GL, and the personalized map code is convenient for users to use in each platform.
Wherein, still include the following step:
firstly, respectively importing symbol data and font data in TMS tile service;
then, a font-to-symbol microservice interface is 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 the 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 font to generate a new font library.
The step of obtaining and creating a vector tile database according to the vector data by using a vector slicing technique further comprises the steps of:
firstly, vector data are obtained and are led into a preset PostgreSQL database in batches;
then, generating and storing geojson data according to the vector data; the geojson data can be generated and stored in the following two ways: the first method is 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. The second is to generate geojson data using Postgis and store it in the form of a file.
Then, vector slicing is carried out on the geojson data needing to be sliced by using a function command of the 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 structural block diagram of an electronic device according to an embodiment of the present disclosure. 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 to 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 for storing software programs and modules, such as program instructions/modules corresponding to a system for custom mapping a vector tile electronic map provided by an embodiment of the present application, and the processor 102 executes the software programs and modules stored in the memory 101 to execute various functional applications and data processing. The communication interface 103 may be used for communicating signaling or data with other node devices.
The Memory 101 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like.
The processor 102 may be an integrated circuit chip having signal processing capabilities. The Processor 102 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
It will be appreciated that the configuration shown in fig. 3 is merely illustrative and that the electronic device may 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 ways. The above-described system embodiments are merely illustrative, and for example, the flowchart and block diagrams in the figures 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 an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In summary, the system and the method for user-defined map matching of a vector tile electronic map provided by the embodiment of the present application acquire and create a vector tile database by using a vector slicing technique according to vector data through a vector tile creation module 1100; the vector tiles have the advantages of low occupied space, high tile map cutting efficiency, quick map rendering effect, capability of dynamically adjusting map styles at any time and high map resolution; the TMS tile service construction module constructs TMS tile service according to the vector tile database; therefore, real-time vector data adding, deleting, modifying and checking service, rendering attribute adding, deleting, modifying and checking service, user information adding, deleting, modifying and checking service and various slicing function integrated related functions and services are provided for the front end. The front-end creation layer interface creation module 1300 creates a front-end creation layer interface according to the vector tile database; the parameter information obtaining module 1400 obtains parameter information to be created through a front-end creation layer interface in the TMS tile service; the parameter information may be user-defined; the initial layer creation module 1500 creates an initial layer according to parameter information to be created; the layer attribute configuration module 1600 performs data configuration on the initial layer to generate a preprocessed layer; the layer sorting module 1700 sorts the preprocessed layers according to the layer capping order to generate the personalized map matching. A user only needs to provide a vector data source which is expected to be displayed, and an electronic map which is suitable for any special subject with individuation and high performance in the industry can be configured through the system, so that the manufacturing of the customized vector tile electronic map is realized. The personalized map code can be used in any map engine platform based on MapBox GL, and the personalized map code is convenient for users to use in each platform. The system logs in by using the computer browser without additionally installing an application program, and is more convenient and efficient.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
It will be evident to those skilled in the art that the present 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 attributes 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 (10)

1. A customized mapping system for a vector tile electronic map is characterized by comprising:
the vector tile creating module is used for acquiring and creating a vector tile database by adopting a vector slicing technology according to the vector data;
the TMS tile service construction module is used for constructing a TMS tile service according to the vector tile database;
the front-end creation layer interface creation module is used for creating a front-end creation layer interface according to the vector tile database;
the TMS tile service system comprises a parameter information acquisition module, a parameter information acquisition module and a TMS tile service module, wherein the parameter information acquisition module is used for acquiring parameter information to be created through a front-end creation layer interface in the TMS tile service;
the initial layer creating 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 to generate a preprocessed layer;
and the layer sequencing module is used for sequencing the preprocessed layers according to the layer capping sequence to generate the personalized matching map.
2. The 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 matching map.
3. The system of claim 1, further comprising:
the TMS tile service comprises a symbol and font importing module, a TMS tile service module and a TMS tile service module, wherein the symbol and font importing module is used for respectively importing symbol data and font data in the TMS tile service;
and the font and symbol micro service interface generation module is used for generating a font and symbol micro service interface according to the symbol data and the font data.
4. The system of claim 1, further comprising:
the symbol font obtaining module is used for obtaining a new symbol and a new font;
the symbol library updating module is used for updating the 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 font so as to generate a new font library.
5. The vector tile electronic map custom mapping system of claim 1, wherein said create 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;
the geojson data generating unit is used for generating and storing the geojson data according to the vector data;
the vector slicing unit is used for performing vector slicing on the geojson data needing to be sliced by using a function command of the vector slicing to generate a slice database;
and the vector tile database generating unit is used for importing the slice database into a preset MongoDB database to generate the vector tile database.
6. The system of claim 5, wherein the geojson data generating unit comprises:
and the first geojson data subunit is used for generating geojson data according to the vector data by utilizing QGIS open source software and storing the geojson data in a file form in batches.
7. The system of claim 5, wherein the geojson data generating unit comprises:
and the second geojson data subunit is used for generating the geojson data by using Postgis and storing the geojson data in a file form.
8. A self-defined map matching method for a vector tile electronic map is characterized by comprising the following steps:
acquiring and creating a vector tile database by adopting a vector slicing technology according to vector data;
constructing a TMS tile service according to the vector tile database;
constructing a front-end creation layer interface according to a vector tile database;
acquiring parameter information to be created through a front-end creation layer interface in TMS tile service;
establishing an initial layer according to parameter information to be established;
carrying out data configuration on the initial layer to generate a preprocessing layer;
and sequencing the preprocessed image layers according to the image layer capping sequence to generate the personalized matching image.
9. An electronic device, comprising:
a memory for storing one or more programs;
a processor;
the one or more programs, when executed by the processor, implement the method of claim 8.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method of claim 8.
CN202111193935.2A 2021-10-13 2021-10-13 System and method for custom map matching of vector tile electronic map Pending CN113761101A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111193935.2A CN113761101A (en) 2021-10-13 2021-10-13 System and method for custom map matching of vector tile electronic map

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111193935.2A CN113761101A (en) 2021-10-13 2021-10-13 System and method for custom map matching of vector tile electronic map

Publications (1)

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

Family

ID=78799293

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111193935.2A Pending CN113761101A (en) 2021-10-13 2021-10-13 System and method for custom map matching of vector tile electronic map

Country Status (1)

Country Link
CN (1) CN113761101A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114972671A (en) * 2022-07-06 2022-08-30 中煤(西安)地下空间科技发展有限公司 Vector tile rendering method realized 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 (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007034145A (en) * 2005-07-29 2007-02-08 Alps Sha:Kk Map superimposing 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
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
US20190128679A1 (en) * 2017-10-27 2019-05-02 Mapbox, Inc. Efficient processing for vector tile generation
CN110347769A (en) * 2019-07-09 2019-10-18 东方网力科技股份有限公司 Processing method, device, equipment and the storage medium of multi-layer map tile
CN111090716A (en) * 2019-12-31 2020-05-01 方正国际软件(北京)有限公司 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
CN112598793A (en) * 2020-12-31 2021-04-02 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Three-dimensional map tile vector grid integrated system and method

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007034145A (en) * 2005-07-29 2007-02-08 Alps Sha:Kk Map superimposing 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
US20190128679A1 (en) * 2017-10-27 2019-05-02 Mapbox, Inc. Efficient processing for vector tile generation
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
CN110347769A (en) * 2019-07-09 2019-10-18 东方网力科技股份有限公司 Processing method, device, equipment and the storage medium of multi-layer map tile
CN111090716A (en) * 2019-12-31 2020-05-01 方正国际软件(北京)有限公司 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
CN112598793A (en) * 2020-12-31 2021-04-02 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Three-dimensional map tile vector grid integrated system and method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
曾涛: "基于GIS的电子地图制作方法研究", 建材与装饰, 28 February 2018 (2018-02-28), pages 300 - 301 *
石娜: "面向矢量切片服务的多比例尺电子地图制作方法", 信息技术与信息化, 31 July 2021 (2021-07-31), pages 189 - 191 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114972671A (en) * 2022-07-06 2022-08-30 中煤(西安)地下空间科技发展有限公司 Vector tile rendering method realized based on hypergraph desktop fusion open source software
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

Similar Documents

Publication Publication Date Title
US11460996B2 (en) Modifying style layer properties of a digital map
CN105069118B (en) A kind of application scenarios management method and system based on GIS configurations
CN112559667B (en) Map editor, map engine, map editing system, map editing method, and storage medium
US9696967B2 (en) Generation of an application from data
US11132114B2 (en) Method and apparatus for generating customized visualization component
CN113761101A (en) System and method for custom map matching of vector tile electronic map
CN111611518B (en) Automatic visual display page publishing method and system based on Html5
CN103051652A (en) Mobile terminal cloud commuting delivery platform
US11281742B2 (en) Interactive and selective coloring of digital vector glyphs
US20130167049A1 (en) Geographic information service system
WO2016111975A1 (en) Implementing desktops on a mobile terminal
US20230169729A1 (en) Tile three-dimensional mapping tool
CN112000902B (en) Method, electronic device, and storage medium for mapping an area
US11586695B2 (en) Iterating between a graphical user interface and plain-text code for data visualization
CN113495933A (en) Vector tile display method and system
CN114332439A (en) Three-dimensional data editing and generating system
US20180373422A1 (en) Smart element filtering method via gestures
CN113220381A (en) Click data display method and device
US20170270082A1 (en) Dynamic rendering of geographic data
CN105488146B (en) Courseware material management method and system of computer aided training system
CN115423889A (en) Image processing method and device, electronic equipment and storage medium
CN113781608A (en) Animation editing method and device
CN113947450A (en) Rendering method and editing method and device of seating chart and terminal equipment
CN113343656A (en) Secondary editing method of chart configuration element data model
CN109542442A (en) A kind of display interface edit methods based on ARINC661 standard

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