CN113901166A - Electronic map construction method, device, equipment and storage medium - Google Patents

Electronic map construction method, device, equipment and storage medium Download PDF

Info

Publication number
CN113901166A
CN113901166A CN202111260832.3A CN202111260832A CN113901166A CN 113901166 A CN113901166 A CN 113901166A CN 202111260832 A CN202111260832 A CN 202111260832A CN 113901166 A CN113901166 A CN 113901166A
Authority
CN
China
Prior art keywords
layer
electronic
data
target
constructed
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
CN202111260832.3A
Other languages
Chinese (zh)
Other versions
CN113901166B (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.)
Ping An Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty Insurance Company of China 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 Ping An Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN202111260832.3A priority Critical patent/CN113901166B/en
Priority claimed from CN202111260832.3A external-priority patent/CN113901166B/en
Publication of CN113901166A publication Critical patent/CN113901166A/en
Application granted granted Critical
Publication of CN113901166B publication Critical patent/CN113901166B/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/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • 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
    • 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/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

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)
  • Computing Systems (AREA)
  • Remote Sensing (AREA)
  • Computational Linguistics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a data visualization technology, and discloses an electronic map construction method, which comprises the following steps: extracting a target blank layer from a geographic information system, and extracting a field label set of the target blank layer; performing task allocation query on the field label set to obtain a bottom layer data set; parallelly loading the bottom data set into a target blank layer to obtain a target electronic layer, and storing the target electronic layer into a layer cache space; and selecting target electronic layers of various types required by service requirements from the layer cache space to obtain an electronic layer set, and carrying out layer combination on the electronic layer set to obtain the disaster electronic map. In addition, the invention also relates to a block chain technology, and the generated target electronic layer can be stored for a long time through the node of the block chain. The invention also provides an electronic map construction device, electronic equipment and a storage medium. The invention can improve the loading speed of the electronic map service construction.

Description

Electronic map construction method, device, equipment and storage medium
Technical Field
The present invention relates to the field of data visualization, and in particular, to a method and an apparatus for constructing an electronic map, an electronic device, and a computer-readable storage medium.
Background
An Electronic map (digital map) is a map that is digitally stored and referred to using computer technology. The natural disaster electronic map is one kind of electronic map, and is a map for visualizing combination of real-time data of natural disasters and geographic information. The natural disaster electronic map can emphatically show the regional distribution characteristics of various natural disaster electrons in a target region, is beneficial to increasing the consciousness of the citizen disaster electronic method, is convenient for the government to carry out community disaster reduction on the target region, and can provide scientific basis for the financial industries such as banks, insurance and the like to make development strategies for various electronic regions.
With the increasing accuracy requirement of the society on the electronic map, the types and magnitude of bottom layer data of the electronic map are more and more, so that the rendering of the electronic map has the problems of delay, pause and even breakdown.
The current solution is mainly to limit the magnitude of the underlying data. However, the electronic map service functions are single and independent through fewer bottom layer data levels, so that an interface needs to be redeveloped every time an electronic map is developed, and the code repetition degree is high, so that the method for limiting the level of the bottom layer data cannot adapt to the rapid updating rhythm of the current products.
Disclosure of Invention
The invention provides an electronic map construction method, an electronic map construction device and a computer readable storage medium, and mainly aims to solve the problem of low data loading speed in electronic map service.
In order to achieve the above object, the present invention provides an electronic map construction method, including:
extracting a target blank layer from a pre-constructed configuration file packet of a geographic information system, and extracting a field label set contained in the target blank layer;
performing task allocation query on the field tag set by using a pre-constructed database cluster to obtain a bottom layer data set;
parallelly loading each bottom data in the bottom data set into the target blank layer to obtain a target electronic layer, and storing the target electronic layer into a pre-constructed layer cache space;
and responding to a service requirement sent by a pre-constructed service interface, selecting target electronic layers of various types required by the service requirement from the layer cache space to obtain an electronic layer set, and carrying out layer combination on the electronic layer set to obtain a target electronic map corresponding to the service requirement.
Optionally, the performing task allocation query on the field tag set by using a pre-constructed database cluster to obtain a bottom layer data set includes:
carrying out node configuration on the database cluster to obtain a main node and a plurality of slave nodes;
importing the field label set into the main node, and grouping each field label in the field label set according to a pre-constructed key-value corresponding relation to obtain each chunk;
and according to a preset slave node distribution rule, distributing a slave node to each chunk, and executing a data extraction task of each chunk by using each slave node to obtain a bottom layer data set.
Optionally, the executing, by using each slave node, a data extraction task for each chunk to obtain a bottom-layer data set includes:
taking the field label in the chunk as a keyword, and inquiring a pre-constructed database management system to obtain a data storage address of the bottom layer data corresponding to the field label;
extracting each data block under the storage address according to the storage address;
and performing matrix inverse operation on each data block by using the preset erasure codes in the database cluster to obtain source codes corresponding to each data block, and decoding the source codes by using a pre-constructed decoder to obtain bottom layer data corresponding to the chunks.
Optionally, the parallel loading of each bottom layer data in the bottom layer data set into the target blank layer to obtain a target electronic layer includes:
classifying each bottom layer data in the bottom layer data set according to a preset data use division rule to obtain a mathematical element data set, a graphic element data set and an off-graph element data set;
selecting each event in the target blank layer according to the mathematical element data set for positioning to obtain each event point;
visually marking the type of each event point in the target blank layer according to the graphic element data set;
and filling the remark information of each event point in the target blank layer according to the off-map element data set to obtain a target electronic layer.
Optionally, the step of, in response to a service requirement sent by a pre-constructed service interface, selecting target electronic layers of various types required by the service requirement from the layer cache space to obtain an electronic layer set, and performing layer merging on the electronic layer set to obtain a target electronic map corresponding to the service requirement includes:
analyzing a service requirement sent by a pre-constructed service interface by using a pre-constructed back-end service to obtain a layer keyword sequence, and inquiring the layer cache space by using the layer keyword sequence to obtain an electronic layer set;
carrying out scaling operation on each electronic layer in the electronic layer set according to a preset scaling strategy to obtain an equal-proportion layer set;
and performing primary and secondary configuration on each equal proportion layer in the equal proportion layer set according to the sequence of each layer keyword in the layer keyword sequence to obtain a main layer and a plurality of auxiliary layers, and mapping the plurality of auxiliary layers onto the main layer to obtain a target electronic map corresponding to the service requirement.
Optionally, before the data extraction task for each chunk is executed by using each slave node to obtain a bottom-layer data set, the method further includes:
acquiring a bottom layer data table of each preset type by using a pre-constructed recall engine to obtain a bottom layer data set;
and storing the bottom layer data sets into the database cluster in a distributed manner, and storing the key-value corresponding relation of each bottom layer data table into a main node of the database cluster.
Optionally, after the target electronic layer is stored in the layer cache space that is pre-constructed, the method further includes:
carrying out Hash operation on the target electronic layer by using an information abstract algorithm to obtain a storage signature;
and storing the target electronic layer into a pre-constructed block link point by using the storage signature.
In order to solve the above problem, the present invention also provides an electronic map construction apparatus, including:
the system comprises a label acquisition module, a label extraction module and a data processing module, wherein the label acquisition module is used for extracting a target blank layer from a pre-constructed configuration file packet of a geographic information system and extracting a field label set contained in the target blank layer;
the block extraction module is used for carrying out task allocation query on the field tag set by utilizing a pre-constructed database cluster to obtain a bottom layer data set;
the parallel loading module is used for loading each bottom layer data in the bottom layer data set into the target blank layer in parallel to obtain a target electronic layer, and storing the target electronic layer into a pre-constructed layer cache space;
and the management issuing module is used for responding to a service requirement sent by a pre-constructed service interface, selecting target electronic layers of various types required by the service requirement from the layer cache space to obtain an electronic layer set, and performing layer combination on the electronic layer set to obtain a target electronic map corresponding to the service requirement.
In order to solve the above problem, the present invention also provides an electronic device, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the electronic map construction method described above.
In order to solve the above problem, the present invention also provides a computer-readable storage medium having at least one computer program stored therein, the at least one computer program being executed by a processor in an electronic device to implement the electronic map construction method described above.
In the embodiment of the invention, a pre-constructed database cluster is utilized to perform task allocation query on the field tag set to obtain a bottom layer data set, wherein the task allocation query refers to querying different data contents by utilizing different groups of databases, so that the query function of the databases can be enhanced, and the database cluster is in distributed storage, so that the extraction efficiency of the databases can be increased through transverse expansion; furthermore, the invention utilizes the geographic information system to load all the bottom data in parallel, increases the loading speed and the fluency of the electronic map layer, stores the electronic map layer in the pre-constructed map layer cache space, and can carry out unified management and release on all the constructed electronic map layers, so that the compatibility of all the electronic map services is stronger, and the code repetition degree of the bottom data calling function is reduced. Therefore, the electronic map construction method, the electronic map construction device, the electronic equipment and the computer readable storage medium can solve the problem of low data loading speed in electronic map service.
Drawings
Fig. 1 is a database framework diagram in an electronic map building method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of an electronic map construction method according to an embodiment of the present invention;
fig. 3 is a detailed flowchart illustrating a step in an electronic map construction method according to an embodiment of the present invention;
FIG. 4 is a functional block diagram of an electronic map construction apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device for implementing the electronic map building method according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the application provides an electronic map construction method. The execution subject of the electronic map construction method includes, but is not limited to, at least one of electronic devices that can be configured to execute the method provided by the embodiments of the present application, such as a server, a terminal, and the like. In other words, the electronic map construction method may be performed by software or hardware installed in the terminal device or the server device, and the software may be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like. The server may be an independent server, or may be a cloud server that provides basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like.
In order to solve the problem of slow data loading speed in the electronic map service, the embodiment of the invention constructs a large-scale parallel database framework to execute the construction of the electronic map. Referring to fig. 1, the database framework 1 includes a database cluster 2, a Geographic Information System 3 (GIS), and a SpringBoot 6.
In the embodiment of the present invention, a plurality of conventional PG (posigrasssql, PG) databases may be clustered in a horizontal extension manner to obtain a distributed database cluster 2, where the database cluster 2 is configured to store bottom layer data, such as geographic data (rivers, lakes, and the like), administrative region data, AOI (area of interest) POI (point of interest) data, flooding range, and the like, where a POI is an interest point, such as a position point of a house, a cell doorway, and the like, and an AOI is an interest plane, such as a surface point of a comprehensive market, an industrial park, and the like;
further, the geographic information system 3 is a technical system for collecting, storing, managing, calculating, analyzing, displaying and describing relevant geographic distribution data in the whole or a part of the space of the earth surface layer (including the atmosphere), and includes a GeoServer 4 and a PostGis 5, wherein the PostGis 5 is used for loading and rendering the bottom layer data to a specific layer (such as a chinese city distribution layer, a chinese earthquake history distribution layer, etc.), and the GeoServer 4 is used for combining, publishing and storing each layer;
in addition, the Spring boot 6 is an improvement of Spring, and can be configured in a specific manner, so that developers do not need to define configuration and construction of each layer any more, and only need to process service logic, wherein the Spring is a software development tool facing a server side. Fig. 2 is a schematic flow chart of an electronic map building method according to an embodiment of the present invention. In the embodiment of the present invention, the electronic map construction method is applied to the database framework 1, and includes:
s1, extracting a target blank layer from a pre-constructed configuration file package of the geographic information system, and extracting a field label set contained in the target blank layer.
In the embodiment of the present invention, the configuration file package is located in a PostGis 5 plug-in of the geographic information system 3, and is used for constructing multiple image layers of the most basic type, such as a chinese longitude and latitude image layer, a city and province city distribution image layer, a lake and river image layer, a traffic route image layer, and the like, through a basic template. The basic template can be a pre-constructed automatic template with a Chinese homeland shape, and various labels can be added to form different types of geographical map layers.
Further, the embodiment of the present invention takes the construction of an electronic map of natural disaster risks in the insurance industry as an example, so that the target blank layer needs to be loaded with two basic layers, namely a seismic distribution blank layer with detailed bottom data and an insurance service distribution blank layer.
Specifically, in one application scenario of the present invention, if the blank layer is an insurance service distribution blank layer, the field tags may be divided into five categories, such as insurance policy data category, geographic data category, administrative division data category, POI | AOI data category, and natural disaster information category, where the insurance policy data category is used for hyperlink service data, and the remaining four categories are used to construct a map structure.
The insurance policy data comprises policy numbers, premium amount, customer information, insurance policy insurance information and the like. The geographic data comprises graphic information, names, areas, depths and other extension information of rivers and lakes. The administrative division data comprises administrative region names, codes, province and city hierarchical relations and the like. The POI | AOI data includes POI | AOI name, address text, latitude and longitude, and the like.
And S2, performing task allocation query on the field label set by using a pre-constructed database cluster to obtain a bottom layer data set.
The method comprises the steps of carrying out role distribution on a plurality of PG databases in a database cluster, defining a main node and a plurality of slave nodes, evaluating the size of data to be inquired by using the main node when data is inquired, obtaining the inquiry capacity required by the data to be inquired, and inquiring the data to be inquired by using the slave nodes.
In detail, in the embodiment of the present invention, the performing task allocation query on the field tag set by using a pre-constructed database cluster to obtain a bottom layer data set includes:
step A: carrying out node configuration on the database cluster to obtain a main node and a plurality of slave nodes;
in the embodiment of the invention, the main node can randomly select one PG database to play a role, and the rest PG databases are all used as slave nodes;
and B: importing the field label set into the main node, and grouping each field label in the field label set according to a pre-constructed key-value corresponding relation to obtain each chunk;
in detail, in order to increase the data retrieval speed, the embodiments of the present invention divide each field tag stored in one data table into one chunk according to a pre-constructed key-value correspondence, then analyze the data size corresponding to each field tag in each chunk, and determine the difficulty level of extracting data corresponding to each field tag in the chunk, thereby analyzing the query capability of how many slave nodes need to be configured for each chunk.
In one application scenario of the present invention, when the target blank layer is a map layer of a Chinese earthquake occurrence place, the field tag may be roughly divided into two task blocks [ locations of various cities in China and earthquake source ground latitude ].
And C: and according to a preset slave node distribution rule, distributing a slave node to each chunk, and executing a data extraction task of each chunk by using each slave node to obtain a bottom layer data set.
In the application scenario of step B, if the key-value correspondence is used to query that the task block at each urban position in china includes administrative division data, geographic data, and POI | AOI, the embodiment of the present invention configures three slave nodes to respectively perform the task of querying and extracting the bottom layer data of the administrative division data, the geographic data, and the POI | AOI, and the seismic source only has POI | AOI and seismic data via the latitude block, and configures two slave nodes to respectively perform the task of querying and extracting the bottom layer data of the POI | AOI and the seismic data.
And when all the slave nodes finish the bottom layer data query and extraction tasks of all the chunks, obtaining a bottom layer data set.
Further, after a bottom layer data set is obtained, the data size of each table data in the bottom layer data set is judged, a data quantity value of each table data is obtained, a key-value corresponding relation is built by using a header of each table data, the data quantity value is stored in the key-value corresponding relation, the key-value corresponding relation is stored in a master node, and each table data is stored in each slave node in a distributed manner, wherein the key-value corresponding relation is a total table capable of representing the data size of each table.
Further, in another embodiment of the present invention, before the performing, by each slave node, a data extraction task on each chunk to obtain an underlying data set, the method further includes:
acquiring a bottom layer data table of each preset type by using a pre-constructed recall engine to obtain a bottom layer data set;
and storing the bottom layer data sets into the database cluster in a distributed manner, and storing the key-value corresponding relation of each bottom layer data table into a main node of the database cluster.
The recall engine is a multi-element single data interface and is used for periodically receiving data output by various authorities or business departments and the like and ensuring that the disaster electronic map can update the first data.
Further, in this embodiment of the present invention, the obtaining a bottom-layer data set by using each slave node to execute a data extraction task on each chunk includes:
taking the field label in the chunk as a keyword, and inquiring a pre-constructed database management system to obtain a data storage address of the bottom layer data corresponding to the field label;
extracting each data block under the storage address according to the storage address;
and performing matrix inverse operation on each data block by using the preset erasure codes in the database cluster to obtain source codes corresponding to each data block, and decoding the source codes by using a pre-constructed decoder to obtain bottom layer data corresponding to the chunks.
The erasure code is a coding matrix, matrix operation can be performed on coded bottom layer data so as to achieve an encryption effect, and a matrix operation result can be divided into segments and stored in different positions.
According to the embodiment of the invention, one of the chunks is taken as an example, a storage address corresponding to a field tag in one chunk is obtained by querying the field tag, each segmented data block is obtained according to the storage address, a preset number of data blocks are extracted from each data block according to the working principle of erasure codes, matrix inversion operation can be carried out, a reduced bottom layer data code is obtained, and the bottom layer data can be recovered by using a pre-constructed decoder.
S3, parallelly loading each bottom layer data in the bottom layer data set to the target blank layer to obtain a target electronic layer, and storing the target electronic layer to a pre-constructed layer cache space.
In detail, as shown in fig. 3, in the embodiment of the present invention, the parallel loading of each piece of bottom layer data in the bottom layer data set into the target blank layer to obtain the target electronic layer includes:
s31, classifying each bottom layer data in the bottom layer data set according to a preset data use division rule to obtain a mathematical element data set, a graph element data set and an off-graph element data set;
in the embodiment of the present invention, the PostGis 5 plug-in may be used to perform data purpose division on the underlying data set according to the configuration file of the geographic information system itself, so as to obtain a mathematical element data set, a graphic element data set, and an off-graphic element data set. The mathematical element data set can select the proceeding position of each event in the target blank layer to obtain each event point; the graphic element data set can mark patterns with different colors and shapes for each event point; the off-graph element data set can establish hyperlinks for each event point, and is used for storing service and time information corresponding to each event point.
S32, selecting and positioning each event in the target blank layer according to the mathematical element data set to obtain each event point;
s33, visually marking the type of each event point in the target blank layer according to the graphic element data set;
and S34, filling the remark information of each event point in the target blank layer according to the off-graph element data set to obtain a target electronic layer.
In addition, in another embodiment of the present invention, after the target electronic layer is stored in a layer cache space that is pre-constructed, the method further includes:
carrying out Hash operation on the target electronic layer by using an information abstract algorithm to obtain a storage signature;
and storing the target electronic layer into a pre-constructed block link point by using the storage signature.
It should be noted that the GeoServer 4 includes a layer cache space for allowing each service to call layers for multiple times, but in a special case, for example, a snow disaster distribution layer in summer may not be used, which may cause information of the snow disaster distribution layer to be gradually lost over time, so that in another embodiment of the present invention, a target electronic layer that has not been called within a preset time may be stored in a cloud end block chain node for a long time.
The information digest algorithm (MD5) is an encryption algorithm that can extract fingerprint information from the data in the target electronic layer to implement functions such as data signature and data integrity check. According to the embodiment of the invention, the target electronic layer is encrypted according to the information abstract algorithm to obtain the storage signature, and the storage signature is configured to the target electronic layer and then is linked to the block chain node for long-term storage.
S4, responding to a service requirement sent by a pre-constructed service interface, selecting target electronic layers of various types required by the service requirement from the layer cache space to obtain an electronic layer set, and performing layer merging on the electronic layer set to obtain a target electronic map corresponding to the service requirement.
In detail, in the embodiment of the present invention, in response to a service request sent by a service interface that is pre-constructed, selecting a target electronic layer of each type required by the service request from the layer cache space to obtain an electronic layer set, and performing layer merging on the electronic layer set to obtain a disaster electronic map, includes:
analyzing a service requirement sent by a pre-constructed service interface by using a pre-constructed back-end service to obtain a layer keyword sequence, and inquiring the layer cache space by using the layer keyword sequence to obtain an electronic layer set;
carrying out scaling operation on each electronic layer in the electronic layer set according to a preset scaling strategy to obtain an equal-proportion layer set;
and performing primary and secondary configuration on each equal proportion layer in the equal proportion layer set according to the sequence of each layer keyword in the layer keyword sequence to obtain a main layer and a plurality of auxiliary layers, and mapping the plurality of auxiliary layers onto the main layer to obtain a target electronic map corresponding to the service requirement.
In the embodiment of the present invention, the springbook 6 is used to analyze the service requirements sent by the preset service interface, such as a disaster electronic map based on natural disasters and insurance services, to obtain the layer keyword sequence, such as a chinese map, a city position, a service singular number, and a seismic source position … …, the layer keyword sequence may be queried to obtain a corresponding electronic layer set, such as each city position layer, a seismic distribution layer, a insurance singular number distribution layer, and … … of china, and finally each layer is mapped to the main map layer of each city position layer of china in an equal proportion, so as to obtain a disaster electronic map capable of checking natural disaster distribution and service distribution.
Fig. 4 is a functional block diagram of an electronic map building apparatus according to an embodiment of the present invention.
The electronic map construction apparatus 100 according to the present invention may be installed in an electronic device. According to the realized functions, the electronic map building apparatus 100 may include a tag obtaining module 101, a block extracting module 102, a parallel loading module 103, and a management issuing module 104. The module of the present invention, which may also be referred to as a unit, refers to a series of computer program segments that can be executed by a processor of an electronic device and that can perform a fixed function, and that are stored in a memory of the electronic device.
In the present embodiment, the functions regarding the respective modules/units are as follows:
the tag obtaining module 101 is configured to extract a target blank layer from a pre-constructed configuration file package of a geographic information system, and extract a field tag set included in the target blank layer;
the block extraction module 102 is configured to perform task allocation query on the field tag set by using a pre-constructed database cluster to obtain a bottom layer data set;
the parallel loading module 103 is configured to load each piece of bottom data in the bottom data set into the target blank layer in parallel to obtain a target electronic layer, and store the target electronic layer in a pre-constructed layer cache space;
the management issuing module 104 is configured to, in response to a service request sent by a service interface that is pre-constructed, select a target electronic layer of each type required by the service request from the layer cache space to obtain an electronic layer set, and perform layer merging on the electronic layer set to obtain a target electronic map corresponding to the service request.
In detail, when the modules in the electronic map building apparatus 100 according to the embodiment of the present invention are used, the same technical means as the electronic map building method described in fig. 1 to 3 are adopted, and the same technical effects can be produced, which is not described herein again.
Fig. 5 is a schematic structural diagram of an electronic device for implementing an electronic map building method according to an embodiment of the present invention.
The electronic device 1 may comprise a processor 10, a memory 11, a communication bus 12 and a communication interface 13, and may further comprise a computer program, such as an electronic map building program, stored in the memory 11 and executable on the processor 10.
In some embodiments, the processor 10 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same function or different functions, and includes one or more Central Processing Units (CPUs), a microprocessor, a digital Processing chip, a graphics processor, a combination of various control chips, and the like. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the whole electronic device by using various interfaces and lines, and executes various functions and processes data of the electronic device by running or executing programs or modules (e.g., executing an electronic map building program, etc.) stored in the memory 11 and calling data stored in the memory 11.
The memory 11 includes at least one type of readable storage medium including flash memory, removable hard disks, multimedia cards, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disks, optical disks, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device, for example a removable hard disk of the electronic device. The memory 11 may also be an external storage device of the electronic device in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device. The memory 11 may be used not only to store application software installed in the electronic device and various types of data, such as codes of an electronic map construction program, etc., but also to temporarily store data that has been output or is to be output.
The communication bus 12 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is arranged to enable connection communication between the memory 11 and at least one processor 10 or the like.
The communication interface 13 is used for communication between the electronic device and other devices, and includes a network interface and a user interface. Optionally, the network interface may include a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), which are typically used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a Display (Display), an input unit such as a Keyboard (Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable, among other things, for displaying information processed in the electronic device and for displaying a visualized user interface.
Fig. 5 only shows an electronic device with components, and it will be understood by a person skilled in the art that the structure shown in fig. 5 does not constitute a limitation of the electronic device 1, and may comprise fewer or more components than shown, or a combination of certain components, or a different arrangement of components.
For example, although not shown, the electronic device may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so that functions of charge management, discharge management, power consumption management and the like are realized through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The electronic device may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
The electronic map building program stored in the memory 11 of the electronic device 1 is a combination of instructions that, when executed in the processor 10, may implement:
extracting a target blank layer from a pre-constructed configuration file packet of a geographic information system, and extracting a field label set contained in the target blank layer;
performing task allocation query on the field tag set by using a pre-constructed database cluster to obtain a bottom layer data set;
parallelly loading each bottom data in the bottom data set into the target blank layer to obtain a target electronic layer, and storing the target electronic layer into a pre-constructed layer cache space;
and responding to a service requirement sent by a pre-constructed service interface, selecting target electronic layers of various types required by the service requirement from the layer cache space to obtain an electronic layer set, and carrying out layer combination on the electronic layer set to obtain a target electronic map corresponding to the service requirement.
Specifically, the specific implementation method of the instruction by the processor 10 may refer to the description of the relevant steps in the embodiment corresponding to the drawings, which is not described herein again.
Further, the integrated modules/units of the electronic device 1, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. The computer readable storage medium may be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM).
The present invention also provides a computer-readable storage medium, storing a computer program which, when executed by a processor of an electronic device, may implement:
extracting a target blank layer from a pre-constructed configuration file packet of a geographic information system, and extracting a field label set contained in the target blank layer;
performing task allocation query on the field tag set by using a pre-constructed database cluster to obtain a bottom layer data set;
parallelly loading each bottom data in the bottom data set into the target blank layer to obtain a target electronic layer, and storing the target electronic layer into a pre-constructed layer cache space;
and responding to a service requirement sent by a pre-constructed service interface, selecting target electronic layers of various types required by the service requirement from the layer cache space to obtain an electronic layer set, and carrying out layer combination on the electronic layer set to obtain a target electronic map corresponding to the service requirement.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention 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 invention 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 signs in the claims shall not be construed as limiting the claim concerned.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
The embodiment of the application can acquire and process related data based on an artificial intelligence technology. Among them, Artificial Intelligence (AI) is a theory, method, technique and application system that simulates, extends and expands human Intelligence using a digital computer or a machine controlled by a digital computer, senses the environment, acquires knowledge and uses the knowledge to obtain the best result.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. An electronic map construction method, characterized in that the method comprises:
extracting a target blank layer from a pre-constructed configuration file packet of a geographic information system, and extracting a field label set contained in the target blank layer;
performing task allocation query on the field tag set by using a pre-constructed database cluster to obtain a bottom layer data set;
parallelly loading each bottom data in the bottom data set into the target blank layer to obtain a target electronic layer, and storing the target electronic layer into a pre-constructed layer cache space;
and responding to a service requirement sent by a pre-constructed service interface, selecting target electronic layers of various types required by the service requirement from the layer cache space to obtain an electronic layer set, and carrying out layer combination on the electronic layer set to obtain a target electronic map corresponding to the service requirement.
2. The electronic map construction method of claim 1, wherein the task allocation query on the field tag set using a pre-constructed database cluster to obtain an underlying data set comprises:
carrying out node configuration on the database cluster to obtain a main node and a plurality of slave nodes;
importing the field label set into the main node, and grouping each field label in the field label set according to a pre-constructed key-value corresponding relation to obtain each chunk;
and according to a preset slave node distribution rule, distributing a slave node to each chunk, and executing a data extraction task of each chunk by using each slave node to obtain a bottom layer data set.
3. The electronic map construction method of claim 2, wherein said performing a data extraction task for each of said chunks with each of said slave nodes, resulting in an underlying data set, comprises:
taking the field label in the chunk as a keyword, and inquiring a pre-constructed database management system to obtain a data storage address of the bottom layer data corresponding to the field label;
extracting each data block under the storage address according to the storage address;
and performing matrix inverse operation on each data block by using the preset erasure codes in the database cluster to obtain source codes corresponding to each data block, and decoding the source codes by using a pre-constructed decoder to obtain bottom layer data corresponding to the chunks.
4. The electronic map construction method according to claim 1, wherein the loading each bottom layer data in the bottom layer data set into the target blank layer in parallel to obtain a target electronic layer comprises:
classifying each bottom layer data in the bottom layer data set according to a preset data use division rule to obtain a mathematical element data set, a graphic element data set and an off-graph element data set;
selecting each event in the target blank layer according to the mathematical element data set for positioning to obtain each event point;
visually marking the type of each event point in the target blank layer according to the graphic element data set;
and filling the remark information of each event point in the target blank layer according to the off-map element data set to obtain a target electronic layer.
5. The method according to claim 1, wherein the step of, in response to a service requirement sent by a service interface that is pre-constructed, selecting target electronic layers of various types required by the service requirement from the layer cache space to obtain an electronic layer set, and performing layer merging on the electronic layer set to obtain a target electronic map corresponding to the service requirement includes:
analyzing a service requirement sent by a pre-constructed service interface by using a pre-constructed back-end service to obtain a layer keyword sequence, and inquiring the layer cache space by using the layer keyword sequence to obtain an electronic layer set;
carrying out scaling operation on each electronic layer in the electronic layer set according to a preset scaling strategy to obtain an equal-proportion layer set;
and performing primary and secondary configuration on each equal proportion layer in the equal proportion layer set according to the sequence of each layer keyword in the layer keyword sequence to obtain a main layer and a plurality of auxiliary layers, and mapping the plurality of auxiliary layers onto the main layer to obtain a target electronic map corresponding to the service requirement.
6. The electronic map construction method of claim 2, wherein before performing the data extraction task for each chunk with each slave node, resulting in an underlying data set, the method further comprises:
acquiring a bottom layer data table of each preset type by using a pre-constructed recall engine to obtain a bottom layer data set;
and storing the bottom layer data sets into the database cluster in a distributed manner, and storing the key-value corresponding relation of each bottom layer data table into a main node of the database cluster.
7. The electronic map construction method according to claim 1, wherein after saving the target electronic map layer into a pre-constructed layer buffer space, the method further comprises:
carrying out Hash operation on the target electronic layer by using an information abstract algorithm to obtain a storage signature;
and storing the target electronic layer into a pre-constructed block link point by using the storage signature.
8. An electronic map construction apparatus, characterized in that the apparatus comprises:
the system comprises a label acquisition module, a label extraction module and a data processing module, wherein the label acquisition module is used for extracting a target blank layer from a pre-constructed configuration file packet of a geographic information system and extracting a field label set contained in the target blank layer;
the block extraction module is used for carrying out task allocation query on the field tag set by utilizing a pre-constructed database cluster to obtain a bottom layer data set;
the parallel loading module is used for loading each bottom layer data in the bottom layer data set into the target blank layer in parallel to obtain a target electronic layer, and storing the target electronic layer into a pre-constructed layer cache space;
and the management issuing module is used for responding to a service requirement sent by a pre-constructed service interface, selecting target electronic layers of various types required by the service requirement from the layer cache space to obtain an electronic layer set, and performing layer combination on the electronic layer set to obtain a target electronic map corresponding to the service requirement.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the electronic map construction method of any one of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, implements an electronic map construction method according to any one of claims 1 to 7.
CN202111260832.3A 2021-10-28 Electronic map construction method, device, equipment and storage medium Active CN113901166B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111260832.3A CN113901166B (en) 2021-10-28 Electronic map construction method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111260832.3A CN113901166B (en) 2021-10-28 Electronic map construction method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113901166A true CN113901166A (en) 2022-01-07
CN113901166B CN113901166B (en) 2024-06-28

Family

ID=

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117216339A (en) * 2023-09-07 2023-12-12 武汉北极光数字科技有限公司 Digital twinning-based electronic sand table system construction method and device
CN117573781A (en) * 2024-01-17 2024-02-20 成都小步创想慧联科技有限公司 Map multi-level data display method based on hash algorithm

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080059889A1 (en) * 2006-09-01 2008-03-06 Cheryl Parker System and Method of Overlaying and Integrating Data with Geographic Mapping Applications
CN101706809A (en) * 2009-11-17 2010-05-12 北京灵图软件技术有限公司 Method, device and system for processing multi-source map data
CN104301354A (en) * 2013-07-16 2015-01-21 杭州鹏信科技有限公司 Space type business data GIS service realization method and system based on cloud calculation
CN111723171A (en) * 2020-05-25 2020-09-29 王兴贵 New capital construction project investigation system based on public map development
CN112149027A (en) * 2020-10-28 2020-12-29 云赛智联股份有限公司 City operation data visual management system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080059889A1 (en) * 2006-09-01 2008-03-06 Cheryl Parker System and Method of Overlaying and Integrating Data with Geographic Mapping Applications
CN101706809A (en) * 2009-11-17 2010-05-12 北京灵图软件技术有限公司 Method, device and system for processing multi-source map data
CN104301354A (en) * 2013-07-16 2015-01-21 杭州鹏信科技有限公司 Space type business data GIS service realization method and system based on cloud calculation
CN111723171A (en) * 2020-05-25 2020-09-29 王兴贵 New capital construction project investigation system based on public map development
CN112149027A (en) * 2020-10-28 2020-12-29 云赛智联股份有限公司 City operation data visual management system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117216339A (en) * 2023-09-07 2023-12-12 武汉北极光数字科技有限公司 Digital twinning-based electronic sand table system construction method and device
CN117216339B (en) * 2023-09-07 2024-02-09 武汉北极光数字科技有限公司 Digital twinning-based electronic sand table system construction method and device
CN117573781A (en) * 2024-01-17 2024-02-20 成都小步创想慧联科技有限公司 Map multi-level data display method based on hash algorithm

Similar Documents

Publication Publication Date Title
CN112347214B (en) Target area dividing method and device, electronic equipment and storage medium
CN112050820B (en) Road matching method, device, electronic equipment and readable storage medium
CN112528616A (en) Business form generation method and device, electronic equipment and computer storage medium
CN113946690A (en) Potential customer mining method and device, electronic equipment and storage medium
CN114185895A (en) Data import and export method and device, electronic equipment and storage medium
CN115829124A (en) Charging pile address selection method, device, equipment and storage medium
CN113868529A (en) Knowledge recommendation method and device, electronic equipment and readable storage medium
CN114612194A (en) Product recommendation method and device, electronic equipment and storage medium
CN114186132A (en) Information recommendation method and device, electronic equipment and storage medium
CN112699142A (en) Cold and hot data processing method and device, electronic equipment and storage medium
CN114219023A (en) Data clustering method and device, electronic equipment and readable storage medium
CN114398346A (en) Data migration method, device, equipment and storage medium
CN114840631A (en) Spatial text query method and device, electronic equipment and storage medium
CN113901166B (en) Electronic map construction method, device, equipment and storage medium
CN113901166A (en) Electronic map construction method, device, equipment and storage medium
CN114518993A (en) System performance monitoring method, device, equipment and medium based on business characteristics
CN114840388A (en) Data monitoring method and device, electronic equipment and storage medium
CN114201482A (en) Dynamic population distribution statistical method and device, electronic equipment and readable storage medium
CN113657546A (en) Information classification method and device, electronic equipment and readable storage medium
CN114139623B (en) Natural disaster risk assessment method, device, electronic equipment and storage medium
CN113360505B (en) Time sequence data-based data processing method and device, electronic equipment and readable storage medium
CN113434365B (en) Data characteristic monitoring method and device, electronic equipment and storage medium
CN113627800B (en) Water source land inspection point position determining method and device, electronic equipment and medium
CN113448933B (en) Service data processing method, device, electronic equipment and medium
CN112966013B (en) Knowledge display method, device, equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant