CN113626547A - Freight industry map vector slicing method and device, storage medium and terminal - Google Patents

Freight industry map vector slicing method and device, storage medium and terminal Download PDF

Info

Publication number
CN113626547A
CN113626547A CN202110866944.7A CN202110866944A CN113626547A CN 113626547 A CN113626547 A CN 113626547A CN 202110866944 A CN202110866944 A CN 202110866944A CN 113626547 A CN113626547 A CN 113626547A
Authority
CN
China
Prior art keywords
data
layers
level
map
generate
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.)
Granted
Application number
CN202110866944.7A
Other languages
Chinese (zh)
Other versions
CN113626547B (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.)
Beijing Transwiseway Information Technology Co Ltd
Original Assignee
Beijing Transwiseway Information Technology Co Ltd
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 Beijing Transwiseway Information Technology Co Ltd filed Critical Beijing Transwiseway Information Technology Co Ltd
Priority to CN202110866944.7A priority Critical patent/CN113626547B/en
Publication of CN113626547A publication Critical patent/CN113626547A/en
Application granted granted Critical
Publication of CN113626547B publication Critical patent/CN113626547B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2237Vectors, bitmaps or matrices
    • 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/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • 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/51Indexing; Data structures therefor; Storage structures
    • 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

Landscapes

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

Abstract

The invention discloses a method, a device, a storage medium and a terminal for slicing a map vector in the freight industry, wherein the method comprises the following steps: generating a graphic format data file according to the current freight service parameters, and inputting a plurality of map servers which are built in advance; creating layers on a plurality of map servers according to the graphic format data files; obtaining a plurality of layers with preset grades from the created layers, and carrying out rectangular grouping on the layers with the preset grades to generate a plurality of groups of layers; acquiring the level of each layer in each group of layers, and performing descending order according to the level sequence to generate the ordered layers; and sequentially slicing the sequenced layers to generate vector tile data in each level of protocol buffer binary format. Therefore, by the method and the device, the rapid vector slicing of the mass data can be realized, and the publishing efficiency of the vector tile data is effectively improved.

Description

Freight industry map vector slicing method and device, storage medium and terminal
Technical Field
The invention relates to the field of Geographic Information Systems (GIS), in particular to a method and a device for slicing a map vector in the freight industry, a storage medium and a terminal.
Background
With the rise of the freight industry, large-scale and multi-type electronic maps applied to the field of the freight industry come into operation, the electronic maps relate to storage and front-end display of massive point-line-surface data, such as a large number of parking surfaces of nationwide trucks, steel company factory roads and ranges, logistics park ranges, a large number of truck parking points and the like, if a slice pyramid model is not adopted, rendering and processing pressure of the front end of a system is high, the loading speed is low, a map slicing technology is needed at this time, the electronic maps need to be zoomed among multiple scale scales, and multiple layers of data sources are arranged in the maps, such as layers of different space element types of point-line surfaces and the like, and sometimes, real-time interaction between the front-end point-line-surface data and a rear-end server is needed in terms of business requirements.
In the current slicing scheme, the most widely used tile slicing tools at the present stage include arcgissesserter software, Mapnik toolkit, slicing tools provided by GeoServer, and the like. The ArcGISServer supports multithreading parallel slicing on a single machine, but the distributed slicing support is poor, and cross-node effective utilization of cluster resources is difficult. Mapnik supports running in a multi-thread environment, supports various operating systems, and can realize parallel slicing on a plurality of nodes through a certain scheduling algorithm. Meanwhile, in the traditional grid slicing technology, the space element acquisition element value is separated from the front-end rendering display, and the interactivity is poor, so that the publishing efficiency of the vector tile data is reduced.
Disclosure of Invention
The embodiment of the application provides a method and a device for slicing a map vector in the freight industry, a storage medium and a terminal. The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview and is intended to neither identify key/critical elements nor delineate the scope of such embodiments. Its sole purpose is to present some concepts in a simplified form as a prelude to the more detailed description that is presented later.
In a first aspect, an embodiment of the present application provides a freight industry map vector slicing method, where the method includes:
generating a graphic format data file according to the current freight service parameters, and inputting a plurality of map servers which are built in advance;
creating layers on a plurality of map servers according to the graphic format data files;
obtaining a plurality of layers with preset grades from the created layers, and carrying out rectangular grouping on the layers with the preset grades to generate a plurality of groups of layers;
acquiring the level of each layer in each group of layers, and performing descending order according to the level sequence to generate the ordered layers;
and sequentially slicing the sequenced layers to generate vector tile data in each level of protocol buffer binary format.
Optionally, the method further comprises:
acquiring a multi-level first directory of a vector map service release model;
acquiring a first directory level of vector tile data in a binary format of each level of protocol buffer area;
vector tile data in binary format of each level of protocol buffer area are stored into a multi-level first directory based on the high-low sequence of the first directory level, and layer cache data are generated;
and releasing the layer cache data.
Optionally, generating a graphic format data file according to the current freight service parameter includes:
acquiring and preprocessing space point line surface data corresponding to the current service parameters to generate graphic format map data;
performing thinning processing on the map data in the graphic format to generate target map data;
creating a second folder, and creating a multi-level second directory for the second folder;
and acquiring the priority of each data in the target map data, and storing each data into a corresponding multi-level second directory based on the high-low order of the priority to generate a graphic format data file.
Optionally, the obtaining and preprocessing the spatial point-line-surface data corresponding to the current service parameter to generate map data in a graphic format includes:
acquiring space point line surface data corresponding to the current service parameters;
analyzing and repairing the space point-line-surface data to generate repaired point-line-surface data;
acquiring a topological structure corresponding to the repaired point line surface data;
splicing the topological structure and the repaired point line surface data to generate model data;
and inputting the model data into a QGIS system, and outputting map data in a graphic format.
Optionally, the obtaining the priority of each data in the target map data includes:
acquiring a second directory level and type of each data in the target map data;
and determining the priority of each data according to the second directory level and the type.
Optionally, sequentially slicing the ordered layers to generate vector tile data in a per-level protocol buffer binary format, where the method includes:
configuring slice parameters on a preset representational state transmission interface to generate a target representational state transmission interface;
calling and executing a target representational state transfer interface to sequentially perform parallel multithread slicing processing on the sequenced layers;
vector tile data in a per-level protocol buffered binary format is generated.
Optionally, the point, line and surface data are point data, line data and surface data respectively; the point data at least comprises point-of-interest information position point data and freight car stop point data; the line data at least comprises road link data and navigation path data inside the factory; the surface data at least comprises aggregated parking surface data and logistics park range data.
In a second aspect, an embodiment of the present application provides a shipping industry map vector slicing apparatus, where the apparatus includes:
the file generation module is used for generating a graphic format data file according to the current freight service parameters and inputting the graphic format data file into a plurality of map servers which are built in advance;
the map layer creating module is used for creating map layers on the map servers according to the graphic format data files;
the layer grouping module is used for acquiring a plurality of layers with preset grades from the created layers, and performing rectangular grouping on the layers with the preset grades to generate a plurality of groups of layers;
the layer sequencing module is used for acquiring the level of each layer in each group of layers and performing descending sequence according to the level sequence to generate the sequenced layers;
and the layer slicing module is used for sequentially slicing the sequenced layers to generate vector tile data in each level of protocol buffer binary format.
In a third aspect, embodiments of the present application provide a computer storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor and to perform the above-mentioned method steps.
In a fourth aspect, an embodiment of the present application provides a terminal, which may include: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
in the embodiment of the application, a map vector slicing device in the freight industry firstly generates graphic format data files according to current freight service parameters, inputs a plurality of map servers which are built in advance, then creates layers on the map servers according to the graphic format data files, then acquires a plurality of layers with preset levels from the created layers, carries out rectangular grouping on the layers with the preset levels to generate a plurality of groups of layers, then acquires the level of each layer in each group of layers, carries out descending order arrangement according to the level sequence to generate the ordered layers, and finally carries out slicing processing on the ordered layers in sequence to generate vector tile data in each level of protocol buffer binary format. According to the method and the device, slicing is carried out in a multi-layer and multi-level off-line slicing mode, and meanwhile vector tile data in each level of protocol buffer binary format generated after slicing are cached and issued, so that rapid vector slicing of mass data can be realized, and the issuing efficiency of the vector tile data is effectively improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a schematic flowchart of a shipping industry map vector slicing method according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a multi-resolution hierarchical model provided by an embodiment of the present application;
fig. 3 is a process diagram of a freight industry map vector slicing process provided by an embodiment of the present application;
fig. 4 is a schematic structural diagram of a shipping industry map vector slicing apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
The following description and the drawings sufficiently illustrate specific embodiments of the invention to enable those skilled in the art to practice them.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. 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 invention.
When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
In the description of the present invention, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art. In addition, in the description of the present invention, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The application provides a method, a device, a storage medium and a terminal for slicing a map vector in the freight industry, so as to solve the problems in the related technical problems. In the technical scheme provided by the application, because the slicing processing is performed by adopting a multi-layer and multi-level offline slicing mode, and the vector tile data in each level of protocol buffer binary format generated after slicing is cached and issued, the fast vector slicing of mass data can be realized, the issuing efficiency of the vector tile data is effectively improved, and the following exemplary embodiment is adopted for detailed description.
The freight industry map vector slicing method provided by the embodiment of the present application will be described in detail below with reference to fig. 1 to 3. The method may be implemented in dependence on a computer program, operable on a freight industry map vector slicing apparatus based on von neumann architecture. The computer program may be integrated into the application or may run as a separate tool-like application. The shipping industry map vector slicing device in the embodiment of the present application may be a user terminal, including but not limited to: personal computers, tablet computers, handheld devices, in-vehicle devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and the like. The user terminals may be called different names in different networks, for example: user equipment, access terminal, subscriber unit, subscriber station, mobile station, remote terminal, mobile device, user terminal, wireless communication device, user agent or user equipment, cellular telephone, cordless telephone, Personal Digital Assistant (PDA), terminal equipment in a 5G network or future evolution network, and the like.
Referring to fig. 1, a schematic flow chart of a method for slicing a map vector in a shipping industry according to an embodiment of the present application is provided. As shown in fig. 1, the method of the embodiment of the present application may include the following steps:
s101, generating a graphic format data file according to current freight service parameters, and inputting the graphic format data file into a plurality of map servers which are built in advance;
the service parameters can be understood as improving the overall performance of the computer application system, facilitating service operation, designing some service data which can be used commonly into a parameter table to be stored in the computer application system, uniformly calling and managing by each service application subsystem to control the normal operation of the service, and the change of the service parameter data can influence the correct processing of the service operation and the safe operation of the system. The graphic format data is shp format data, and the suffix name of the file name ends with shp.
In the embodiment of the application, the freight industry space point line surface data required in a service scene is obtained according to service requirements, shp data containing required space attributes and element attributes are formed, then pre-made different-level thinning processing rules are obtained to perform thinning and other processing on the shp data, and finally the processed shp data are stored in different-level catalogs according to different levels and different types.
In a possible implementation manner, firstly, spatial point-line-surface data corresponding to a current service parameter is obtained and preprocessed, graph format map data is generated, then, the graph format map data is subjected to rarefying processing, target map data is generated, a second folder is created, a multi-level second directory is created for the second folder, finally, the priority of each data in the target map data is obtained, and each data is stored into the corresponding multi-level second directory based on the high-low sequence of the priority to generate a graph format data file.
Specifically, when spatial point-line-surface data corresponding to a current service parameter is acquired and preprocessed to generate graph format map data, the spatial point-line-surface data corresponding to the current service parameter is acquired at first, then the spatial point-line-surface data is analyzed and repaired to generate repaired point-line-surface data, a topological structure corresponding to the repaired point-line-surface data is acquired, then the topological structure and the repaired point-line-surface data are spliced to generate model data, and finally the model data are input into a QGIS system to output the graph format map data.
Specifically, when the priority of each data in the target map data is obtained, a second directory level and a type of each data in the target map data are obtained first, and then the priority of each data is determined according to the second directory level and the type.
Furthermore, after the graphic format data file is generated, a geoserver server needs to be built on a plurality of servers, optimization operations such as parameter configuration are performed on the geoserver server, a plurality of map servers built in advance are obtained after optimization is completed, and the graphic format data file is input into the plurality of map servers built in advance.
Specifically, the point-line-surface data are point data, line data, and surface data, respectively; the point data at least comprises point-of-interest information position point data and freight car stop point data; the line data at least comprises road link data and navigation path data inside the factory; the surface data at least comprises aggregated parking surface data and logistics park range data.
S102, creating layers on a plurality of map servers according to the graphic format data files;
wherein, the layer can be understood as a certain layer of image in the hierarchical structure of the space map. The map server is referred to as a geoserver server for short.
Generally, under unified spatial reference, different resolutions are stored and displayed according to user needs, and a pyramid structure with the resolution from coarse to fine and the data volume from small to large is formed. The represented geographical range does not change. The map information represented by the pyramid toward the bottom layer is more detailed, the scale is larger, the number of zoom levels N is larger, and the map picture with the highest zoom level and the largest map scale is taken as the bottom layer of the pyramid, i.e., the 0 th layer.
In a possible implementation manner, the graphic format data file has multi-level directories, each layer level is determined on a plurality of map servers according to the level of the directory, an initial layer template is established according to the layer level, and finally data in the directory is converted into the corresponding initial layer template to generate a complete layer. Wherein, a plurality of complete image layers can form an image layer group.
Further, when slicing is performed, layers or layer groups can be selected according to the requirements of services to be sliced.
S103, obtaining a plurality of layers with preset grades from the created layers, and performing rectangular grouping on the layers with the preset grades to generate a plurality of groups of layers;
generally, due to the requirement of distributed multi-server parallel slicing, layers from 13 levels to 18 levels need to be selected from created layers when slicing.
In a possible implementation manner, after obtaining layers from 13 to 18 levels from the created layers, a quadtree index algorithm is adopted to divide map planes of each of the layers from 13 to 18 levels, so as to perform rectangular grouping on the layers or layer groups formed in step S102, so as to perform parallel slicing on multiple servers.
S104, acquiring the level of each layer in each group of layers, and performing descending order according to the level sequence to generate the ordered layers;
wherein, the descending order is a process of ordering from high level to low level.
And S105, sequentially slicing the sequenced layers to generate vector tile data in each level of protocol buffer binary format.
In a possible implementation manner, when slicing is performed, firstly, slicing parameters are configured on a preset representational state transfer interface to generate a target representational state transfer interface, then the target representational state transfer interface is called and executed to sequentially perform parallel multithreading slicing processing on the sequenced layers, and finally vector tile data in each level of protocol buffer binary format is generated.
For example, when the slicing process is performed, the map picture with the largest map scale serves as the bottom layer of the pyramid, namely the 0 th layer, and is partitioned, the map picture is cut from the left upper corner to the right and from top to bottom from the left upper corner of the map picture, and is partitioned into square map tiles with the same size (for example, 256 × 256 pixels), so that a 0 th layer tile matrix is formed; on the basis of the map picture of the layer 0, generating the map picture of the layer 1 by a method of synthesizing one pixel by every 2x2 pixels, partitioning the map picture of the layer 1, and dividing the map picture into square map tiles with the same size as the next layer to form a tile matrix of the layer 1; generating a layer 2 tile matrix by the same method; …, respectively; this continues until the Nth 1 layer, which constitutes the entire tile pyramid, as shown in FIG. 2.
Further, after vector tile data in the binary format of each level of protocol buffer are generated, a multi-level first directory of a vector map service publishing model is obtained, then a first directory level of the vector tile data in the binary format of each level of protocol buffer is obtained, the vector tile data in the binary format of each level of protocol buffer is stored into the multi-level first directory based on the high-low sequence of the first directory level, layer cache data are generated, and finally the layer cache data are published.
Specifically, when the layer cache data is released, a new layer group is configured in a configuration file of a geoserver server, attributes such as a projection coordinate system, a layer name, an extent range and a web map service url of the layer group are configured for the layer group in a targeted manner, and after the configuration is finished, the mass map data vector slicing and the service release in the freight industry are completed.
For example, as shown in fig. 3, fig. 3 is a process schematic diagram of a freight industry map vector slicing process provided by the present application, point-line-surface data in a freight industry service scene is obtained first, different types of data at different levels are subjected to thinning and other processing, then a plurality of geoserver servers are built and configured, a corresponding map layer group is built on the geoserver servers according to the thinned data, vector slicing is performed according to the sequence of the map layer levels, and finally data at different levels are copied to form final map layer cache data, and a service is configured and released recently.
In the embodiment of the application, a map vector slicing device in the freight industry firstly generates graphic format data files according to current freight service parameters, inputs a plurality of map servers which are built in advance, then creates layers on the map servers according to the graphic format data files, then acquires a plurality of layers with preset levels from the created layers, carries out rectangular grouping on the layers with the preset levels to generate a plurality of groups of layers, then acquires the level of each layer in each group of layers, carries out descending order arrangement according to the level sequence to generate the ordered layers, and finally carries out slicing processing on the ordered layers in sequence to generate vector tile data in each level of protocol buffer binary format. According to the method and the device, slicing is carried out in a multi-layer and multi-level off-line slicing mode, and meanwhile vector tile data in each level of protocol buffer binary format generated after slicing are cached and issued, so that rapid vector slicing of mass data can be realized, and the issuing efficiency of the vector tile data is effectively improved.
The following are embodiments of the apparatus of the present invention that may be used to perform embodiments of the method of the present invention. For details which are not disclosed in the embodiments of the apparatus of the present invention, reference is made to the embodiments of the method of the present invention.
Referring to fig. 4, a schematic structural diagram of a shipping industry map vector slicing apparatus according to an exemplary embodiment of the present invention is shown. The freight industry map vector slicing device can be realized by software, hardware or a combination of the software and the hardware to form all or part of a terminal. The device 1 comprises a file generation module 10, an image layer creation module 20, an image layer grouping module 30, an image layer sequencing module 40 and an image layer slicing module 50.
The file generation module 10 is used for generating graphic format data files according to the current freight service parameters and inputting the graphic format data files into a plurality of map servers which are built in advance;
the layer creation module 20 is configured to create layers on multiple map servers according to the graphic format data file;
the layer grouping module 30 is configured to obtain a plurality of layers of preset grades from the created layers, and perform rectangular grouping on the plurality of layers of preset grades to generate a plurality of groups of layers;
the layer sequencing module 40 is configured to obtain a level of each layer in each group of layers, and perform descending order arrangement according to a high-low order of the levels to generate sequenced layers;
and the layer slicing module 50 is configured to sequentially slice the sequenced layers to generate vector tile data in a per-level protocol buffer binary format.
It should be noted that, when the shipping industry map vector slicing apparatus provided in the foregoing embodiment executes the shipping industry map vector slicing method, only the division of the above functional modules is taken as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the above described functions. In addition, the embodiment of the map vector slicing device in the freight industry and the embodiment of the map vector slicing method in the freight industry provided by the embodiment belong to the same concept, and the embodiment of the method embodies the implementation process and is not repeated herein.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In the embodiment of the application, a map vector slicing device in the freight industry firstly generates graphic format data files according to current freight service parameters, inputs a plurality of map servers which are built in advance, then creates layers on the map servers according to the graphic format data files, then acquires a plurality of layers with preset levels from the created layers, carries out rectangular grouping on the layers with the preset levels to generate a plurality of groups of layers, then acquires the level of each layer in each group of layers, carries out descending order arrangement according to the level sequence to generate the ordered layers, and finally carries out slicing processing on the ordered layers in sequence to generate vector tile data in each level of protocol buffer binary format. According to the method and the device, slicing is carried out in a multi-layer and multi-level off-line slicing mode, and meanwhile vector tile data in each level of protocol buffer binary format generated after slicing are cached and issued, so that rapid vector slicing of mass data can be realized, and the issuing efficiency of the vector tile data is effectively improved.
The present invention also provides a computer readable medium, on which program instructions are stored, which when executed by a processor implement the freight industry map vector slicing method provided by the above-mentioned method embodiments. The present invention also provides a computer program product containing instructions which, when run on a computer, cause the computer to perform the freight industry map vector slicing method of the various method embodiments described above.
Please refer to fig. 5, which provides a schematic structural diagram of a terminal according to an embodiment of the present application. As shown in fig. 5, terminal 1000 can include: at least one processor 1001, at least one network interface 1004, a user interface 1003, memory 1005, at least one communication bus 1002.
Wherein a communication bus 1002 is used to enable connective communication between these components.
The user interface 1003 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.
The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Processor 1001 may include one or more processing cores, among other things. The processor 1001 interfaces various components throughout the electronic device 1000 using various interfaces and lines to perform various functions of the electronic device 1000 and to process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 1005 and invoking data stored in the memory 1005. Alternatively, the processor 1001 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 1001 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 1001, but may be implemented by a single chip.
The Memory 1005 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 1005 includes a non-transitory computer-readable medium. The memory 1005 may be used to store an instruction, a program, code, a set of codes, or a set of instructions. The memory 1005 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. The memory 1005 may optionally be at least one memory device located remotely from the processor 1001. As shown in fig. 5, the memory 1005, which is one type of computer storage medium, may include an operating system, a network communication module, a user interface module, and a shipping industry map vector slicing application.
In the terminal 1000 shown in fig. 5, the user interface 1003 is mainly used as an interface for providing input for a user, and acquiring data input by the user; and the processor 1001 may be configured to invoke the shipping industry map vector slicing application stored in the memory 1005 and specifically perform the following operations:
generating a graphic format data file according to the current freight service parameters, and inputting a plurality of map servers which are built in advance;
creating layers on a plurality of map servers according to the graphic format data files;
obtaining a plurality of layers with preset grades from the created layers, and carrying out rectangular grouping on the layers with the preset grades to generate a plurality of groups of layers;
acquiring the level of each layer in each group of layers, and performing descending order according to the level sequence to generate the ordered layers;
and sequentially slicing the sequenced layers to generate vector tile data in each level of protocol buffer binary format.
In one embodiment, the processor 1001 further performs the following operations:
acquiring a multi-level first directory of a vector map service release model;
acquiring a first directory level of vector tile data in a binary format of each level of protocol buffer area;
vector tile data in binary format of each level of protocol buffer area are stored into a multi-level first directory based on the high-low sequence of the first directory level, and layer cache data are generated;
and releasing the layer cache data.
In one embodiment, when the processor 1001 generates the graphic format data file according to the current shipping service parameter, the following operations are specifically performed:
acquiring and preprocessing space point line surface data corresponding to the current service parameters to generate graphic format map data;
performing thinning processing on the map data in the graphic format to generate target map data;
creating a second folder, and creating a multi-level second directory for the second folder;
and acquiring the priority of each data in the target map data, and storing each data into a corresponding multi-level second directory based on the high-low order of the priority to generate a graphic format data file.
In an embodiment, when the processor 1001 acquires and preprocesses spatial point-line-plane data corresponding to the current service parameter to generate map data in a graphic format, the following operations are specifically performed:
acquiring space point line surface data corresponding to the current service parameters;
analyzing and repairing the space point-line-surface data to generate repaired point-line-surface data;
acquiring a topological structure corresponding to the repaired point line surface data;
splicing the topological structure and the repaired point line surface data to generate model data;
and inputting the model data into a QGIS system, and outputting map data in a graphic format.
In one embodiment, when the processor 1001 executes the priority of each data in the acquired target map data, the following operations are specifically executed:
acquiring a second directory level and type of each data in the target map data;
and determining the priority of each data according to the second directory level and the type.
In an embodiment, when the processor 1001 performs slicing processing on the ordered image layers in sequence to generate vector tile data in a per-level protocol buffer binary format, the following operations are specifically performed:
configuring slice parameters on a preset representational state transmission interface to generate a target representational state transmission interface;
calling and executing a target representational state transfer interface to sequentially perform parallel multithread slicing processing on the sequenced layers;
vector tile data in a per-level protocol buffered binary format is generated.
In the embodiment of the application, a map vector slicing device in the freight industry firstly generates graphic format data files according to current freight service parameters, inputs a plurality of map servers which are built in advance, then creates layers on the map servers according to the graphic format data files, then acquires a plurality of layers with preset levels from the created layers, carries out rectangular grouping on the layers with the preset levels to generate a plurality of groups of layers, then acquires the level of each layer in each group of layers, carries out descending order arrangement according to the level sequence to generate the ordered layers, and finally carries out slicing processing on the ordered layers in sequence to generate vector tile data in each level of protocol buffer binary format. According to the method and the device, slicing is carried out in a multi-layer and multi-level off-line slicing mode, and meanwhile vector tile data in each level of protocol buffer binary format generated after slicing are cached and issued, so that rapid vector slicing of mass data can be realized, and the issuing efficiency of the vector tile data is effectively improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by a computer program to instruct associated hardware, and the program for the freight industry map vector slicing may be stored in a computer readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory or a random access memory.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present application and is not to be construed as limiting the scope of the present application, so that the present application is not limited thereto, and all equivalent variations and modifications can be made to the present application.

Claims (10)

1. A shipping industry map vector slicing method, the method comprising:
generating a graphic format data file according to the current freight service parameters, and inputting a plurality of map servers which are built in advance;
creating layers on the map servers according to the graphic format data files;
obtaining a plurality of layers with preset grades from the created layers, and carrying out rectangular grouping on the layers with the preset grades to generate a plurality of groups of layers;
acquiring the level of each layer in each group of layers, and performing descending order according to the level sequence to generate the ordered layers;
and sequentially slicing the layers after sequencing to generate vector tile data in a protocol buffer binary format of each level.
2. The method of claim 1, further comprising:
acquiring a multi-level first directory of a vector map service release model;
acquiring a first directory level of the vector tile data in the binary format of the protocol buffer area of each level;
saving the vector tile data in the binary format of the protocol buffer area of each level into the multi-level first directory based on the high-low sequence of the first directory level, and generating layer cache data;
and releasing the layer cache data.
3. The method of claim 1, wherein generating the graphic format data file according to the current shipping service parameters comprises:
acquiring and preprocessing space point line surface data corresponding to the current service parameters to generate graphic format map data;
performing rarefaction processing on the map data in the graphic format to generate target map data;
creating a second folder, and creating a multi-level second directory for the second folder;
and acquiring the priority of each data in the target map data, and storing each data into the corresponding multi-stage second directory based on the high-low sequence of the priority to generate a graphic format data file.
4. The method according to claim 3, wherein the obtaining and preprocessing of the spatial point-line-plane data corresponding to the current service parameter to generate graphic format map data comprises:
acquiring space point line surface data corresponding to the current service parameters;
analyzing and repairing the space point-line-surface data to generate repaired point-line-surface data;
acquiring a topological structure corresponding to the repaired point line surface data;
splicing the topological structure and the repaired point line surface data to generate model data;
and inputting the model data into a QGIS system, and outputting map data in a graphic format.
5. The method of claim 3, wherein the obtaining the priority of each data in the target map data comprises:
acquiring a second directory level and type of each data in the target map data;
and determining the priority of each data according to the second directory level and the type.
6. The method according to claim 1, wherein the sequentially slicing the ordered image layers to generate vector tile data in a per-level protocol buffer binary format comprises:
configuring slice parameters on a preset representational state transmission interface to generate a target representational state transmission interface;
calling and executing the target representational state transfer interface to sequentially perform parallel multithreading slicing processing on the ordered layers;
vector tile data in a per-level protocol buffered binary format is generated.
7. The method of claim 3, wherein the point-line-plane data are point data, line data, and plane data, respectively; the point data at least comprises point-of-interest information position point data and freight car stop point data; the line data at least comprises road link data and navigation path data inside the factory; the surface data at least comprises aggregated parking surface data and logistics park range data.
8. A freight industry map vector slicing apparatus, the apparatus comprising:
the file generation module is used for generating a graphic format data file according to the current freight service parameters and inputting the graphic format data file into a plurality of map servers which are built in advance;
the layer creating module is used for creating layers on the map servers according to the graphic format data files;
the layer grouping module is used for acquiring a plurality of layers with preset grades from the created layers, and performing rectangular grouping on the layers with the preset grades to generate a plurality of groups of layers;
the layer sequencing module is used for acquiring the level of each layer in each group of layers and performing descending sequence according to the level sequence to generate the sequenced layers;
and the layer slicing module is used for sequentially slicing the sequenced layers to generate vector tile data in each level of protocol buffer binary format.
9. A computer storage medium, characterized in that it stores a plurality of instructions adapted to be loaded by a processor and to perform the method steps according to any of claims 1-7.
10. A terminal, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1-7.
CN202110866944.7A 2021-07-29 2021-07-29 Map vector slicing method and device for freight industry, storage medium and terminal Active CN113626547B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110866944.7A CN113626547B (en) 2021-07-29 2021-07-29 Map vector slicing method and device for freight industry, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110866944.7A CN113626547B (en) 2021-07-29 2021-07-29 Map vector slicing method and device for freight industry, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN113626547A true CN113626547A (en) 2021-11-09
CN113626547B CN113626547B (en) 2024-07-02

Family

ID=78381779

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110866944.7A Active CN113626547B (en) 2021-07-29 2021-07-29 Map vector slicing method and device for freight industry, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN113626547B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114742920A (en) * 2022-04-07 2022-07-12 北京掌行通信息技术有限公司 Map layer data generation method and device, storage medium and terminal

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874517A (en) * 2017-03-15 2017-06-20 广州城市信息研究所有限公司 The treating method and apparatus of map vector service
CN108536732A (en) * 2018-02-28 2018-09-14 中国地质大学(武汉) Support the on-line automatic slice method of servicing of tile map and system of MapGIS67 map engineerings
CN109408657A (en) * 2018-11-13 2019-03-01 国家基础地理信息中心 A kind of ultra-large spatial data rapid drafting method and system
CN111913951A (en) * 2019-05-10 2020-11-10 中国电力科学研究院有限公司 Map vector data slicing method for superposing power grid data
CN112347168A (en) * 2020-10-23 2021-02-09 国网天津市电力公司 Automatic data processing and converting method for CAD-GIS system
KR102260071B1 (en) * 2020-10-30 2021-06-03 주식회사 그린블루 Digital map production system using 3d location information
CN112908146A (en) * 2020-12-26 2021-06-04 云景文旅科技有限公司 Hand-drawn map cutting and presenting method and intelligent tour guide and visiting guide system
CN113032513A (en) * 2021-05-21 2021-06-25 北京数字政通科技股份有限公司 Slicing method and rendering method for spatial geographic data

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874517A (en) * 2017-03-15 2017-06-20 广州城市信息研究所有限公司 The treating method and apparatus of map vector service
CN108536732A (en) * 2018-02-28 2018-09-14 中国地质大学(武汉) Support the on-line automatic slice method of servicing of tile map and system of MapGIS67 map engineerings
CN109408657A (en) * 2018-11-13 2019-03-01 国家基础地理信息中心 A kind of ultra-large spatial data rapid drafting method and system
CN111913951A (en) * 2019-05-10 2020-11-10 中国电力科学研究院有限公司 Map vector data slicing method for superposing power grid data
CN112347168A (en) * 2020-10-23 2021-02-09 国网天津市电力公司 Automatic data processing and converting method for CAD-GIS system
KR102260071B1 (en) * 2020-10-30 2021-06-03 주식회사 그린블루 Digital map production system using 3d location information
CN112908146A (en) * 2020-12-26 2021-06-04 云景文旅科技有限公司 Hand-drawn map cutting and presenting method and intelligent tour guide and visiting guide system
CN113032513A (en) * 2021-05-21 2021-06-25 北京数字政通科技股份有限公司 Slicing method and rendering method for spatial geographic data

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114742920A (en) * 2022-04-07 2022-07-12 北京掌行通信息技术有限公司 Map layer data generation method and device, storage medium and terminal

Also Published As

Publication number Publication date
CN113626547B (en) 2024-07-02

Similar Documents

Publication Publication Date Title
CN110990516B (en) Map data processing method, device and server
CN111402390A (en) Model rendering method, device, equipment and storage medium
CN101447091A (en) Method and apparatus for processing graphics
CN114020756B (en) Remote sensing image real-time map service publishing method and device
CN102368259A (en) Electronic map data storage and query method, device and system
CN110599891A (en) Map rendering method for power grid equipment
CN103309943A (en) Three-dimensional geographic information platform and topographic data processing method thereof
CN113256782B (en) Three-dimensional model generation method and device, storage medium and electronic equipment
CN101719148A (en) Three-dimensional spatial information saving method, device, system and dispatching system
CN111899323B (en) Three-dimensional earth drawing method and device
CN110209748B (en) Method and apparatus for indexing geofences
CN115129801A (en) Map data processing method, device, equipment and storage medium
CN113626547B (en) Map vector slicing method and device for freight industry, storage medium and terminal
CN112085826A (en) Efficient three-dimensional space grid rendering method and device
CN104834723A (en) Display processing method and device of map
CN114627239A (en) Bounding box generation method, device, equipment and storage medium
CN112115226B (en) Map rendering method and map rendering device
CN105354326A (en) Spatial position indexing method and system
JP2005055573A (en) High-speed display processor
CN112612427B (en) Vehicle stop data processing method and device, storage medium and terminal
CN115905441A (en) Spatial data processing method, spatial data processing device, electronic device and medium
CN112000669B (en) Environment monitoring data processing method and device, storage medium and terminal
CN111966853B (en) Management method of remote sensing image
JP5940718B2 (en) Information processing apparatus, method, and computer program
CN103092968A (en) Method and system for three-dimensional cadastre panorama show

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