CN113901166B - 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
CN113901166B
CN113901166B CN202111260832.3A CN202111260832A CN113901166B CN 113901166 B CN113901166 B CN 113901166B CN 202111260832 A CN202111260832 A CN 202111260832A CN 113901166 B CN113901166 B CN 113901166B
Authority
CN
China
Prior art keywords
layer
electronic
target
constructed
data set
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111260832.3A
Other languages
Chinese (zh)
Other versions
CN113901166A (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
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

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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

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; task allocation inquiry is carried out on the field tag set to obtain a bottom data set; loading the bottom data set into the target blank image layer in parallel to obtain a target electronic image layer, and storing the target electronic image layer into an image 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 merging on the electronic layer set to obtain the disaster electronic map. In addition, the invention also relates to a blockchain technology, and the generated target electronic sub-layer can be stored for a long time through nodes of the blockchain. 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 apparatus for electronic map construction, an electronic device, and a computer readable storage medium.
Background
An Electronic map (Electronic map), i.e., a digital map, is a map stored and referred to digitally using computer technology. The natural disaster electronic map is one of electronic maps, and is a map for visualizing the combination of real-time data and geographic information of natural disasters. The natural disaster electronic map can emphasize the regional distribution characteristics of various natural disaster electrons in the target region, is beneficial to increasing the awareness of citizen disaster electronic methods, is convenient for governments to develop community disaster reduction for the target region, and can provide scientific basis for developing development strategies for various electronic regions in banking, insurance and other financial industries.
Along with the gradual improvement of the accuracy requirements of society on the electronic map, the bottom data types of the electronic map are more and more, the magnitude is more and more, and the problems of delay, clamping and even breakdown of the rendering of the electronic map can occur.
The current solution is mainly to limit the magnitude of the underlying data. However, the service functions of each electronic map are single and independent through the small number of the bottom data, so that an interface is redeveloped every time an electronic map is developed, the code repeatability is high, and therefore, the method for limiting the number of the bottom data cannot adapt to the rapid update 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, which mainly aim to solve the problem of low data loading speed in an electronic map service.
In order to achieve the above object, the present invention provides a method for constructing an electronic map, including:
extracting a target blank layer from a configuration file packet of a pre-constructed 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 utilizing a pre-constructed database cluster to obtain a bottom data set;
Loading each bottom data in the bottom data set into the target blank image layer in parallel to obtain a target electronic image layer, and storing the target electronic image layer into a pre-constructed image layer cache space;
And responding to the service requirements sent by the pre-constructed service interface, selecting target electronic layers of various types required by the service requirements from the layer cache space to obtain an electronic layer set, and carrying out layer merging on the electronic layer set to obtain a target electronic map corresponding to the service requirements.
Optionally, the task allocation query is performed on the field tag set by using a pre-constructed database cluster to obtain a bottom data set, including:
performing node configuration on the database cluster to obtain a master node and a plurality of slave nodes;
importing the field tag set into the master node, and grouping all field tags in the field tag set according to a pre-constructed key-value corresponding relation to obtain all chunks;
And distributing a slave node to each chunk according to a preset slave node distribution rule, and executing a data extraction task for each chunk by using each slave node to obtain a bottom data set.
Optionally, the performing, by using each slave node, a task of extracting data from each chunk to obtain an underlying data set includes:
Taking a field tag in the block as a key word, and inquiring a pre-constructed database management system to obtain a data storage address of bottom data corresponding to the field tag;
extracting each data block under the storage address according to the storage address;
and performing matrix inversion 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 data corresponding to the blocks.
Optionally, the loading each piece of bottom data in the bottom data set into the target blank layer in parallel to obtain a target electronic layer includes:
classifying each piece of bottom data in the bottom data set according to a preset data usage dividing 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 to locate so as to obtain each event point;
visually marking the types of the event points in the target blank layer according to the graphic element data set;
filling remark information of each event point in the target blank image layer according to the out-of-view element data set to obtain a target electronic image layer.
Optionally, the responding to the service requirement sent by the pre-built service interface selects each kind of target electronic layer required by the service requirement from the layer cache space to obtain an electronic layer set, and performs layer merging on the electronic layer set to obtain a target electronic map corresponding to the service requirement, including:
Analyzing service requirements sent by a pre-constructed service interface by utilizing pre-constructed back-end service to obtain a layer keyword sequence, and inquiring the layer cache space by utilizing the layer keyword sequence to obtain an electronic layer set;
According to a preset scaling strategy, scaling operation is carried out on each electronic image layer in the electronic image layer set to obtain an equal-proportion image layer set;
And performing primary and secondary configuration on each equal proportion map layer in the equal proportion map layer set according to the sequence of each map layer keyword in the map layer keyword sequence to obtain a primary map layer and a plurality of secondary map layers, and mapping the plurality of secondary map layers onto the primary map layer to obtain a target electronic map corresponding to the service requirement.
Optionally, before the performing, by using each slave node, a task of extracting data from each chunk to obtain an underlying data set, the method further includes:
Obtaining a bottom data set by using a pre-built recall engine to obtain bottom data forms of all preset types;
And the bottom data set is stored in the database cluster in a distributed mode, and key-value corresponding relations of all bottom data tables are stored in a main node of the database cluster.
Optionally, after the target electronic layer is saved in the pre-built layer cache space, the method further includes:
Carrying out hash operation on the target electronic layer by utilizing a message digest algorithm to obtain a storage signature;
And storing the target electronic sub-layer into a pre-built blockchain node by using the storage signature.
In order to solve the above problems, the present invention also provides an electronic map construction apparatus, the apparatus comprising:
The label acquisition module is used for extracting a target blank layer from a configuration file packet of a pre-constructed 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 the pre-constructed database cluster to obtain a bottom data set;
The parallel loading module is used for loading each piece of bottom data in the bottom data set into the target blank image layer in parallel to obtain a target electronic image layer, and storing the target electronic image layer into a pre-constructed image layer cache space;
And the management release module is used for responding to service requirements sent by a pre-constructed service interface, selecting target electronic layers of various types required by the service requirements from the layer cache space to obtain an electronic layer set, and carrying out layer merging on the electronic layer set to obtain a target electronic map corresponding to the service requirements.
In order to solve the above-mentioned problems, the present invention also provides an electronic apparatus including:
At least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
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 described above.
In order to solve the above-mentioned problems, the present invention also provides a computer-readable storage medium having stored therein at least one computer program that is executed by a processor in an electronic device to implement the above-mentioned electronic map construction method.
In the embodiment of the invention, the task allocation query is carried out on the field tag set by utilizing the pre-constructed database cluster to obtain the bottom data set, wherein the task allocation query refers to the query of different data contents by utilizing different groups of databases, so that the query function of the databases can be enhanced, the database cluster is stored in a distributed mode, and the extraction efficiency of the databases can be increased by transverse expansion; furthermore, the invention utilizes the geographic information system to load each bottom layer data in parallel, increases the loading speed and fluency of the electronic image layers, stores the electronic image layers in the pre-constructed image layer buffer space, and can uniformly manage and release each constructed electronic image layer, so that the compatibility of each electronic map service is stronger, and the code repeatability of the bottom layer data retrieval 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 the electronic map service.
Drawings
FIG. 1 is a diagram of a database in a method for constructing an electronic map according to an embodiment of the present invention;
Fig. 2 is a 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 the method for constructing an electronic map 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 construction method according to an embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of 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 a server, a terminal, and the like, which can be configured to execute the method provided by the embodiment of the application. In other words, the electronic map construction method may be performed by software or hardware installed in a terminal device or a server device, and the software may be a blockchain platform. The service end 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 cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms.
In order to solve the problem of low data loading speed in the electronic map service, the embodiment of the invention constructs a large-scale parallelizable 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 (Geographic Information System, abbreviated as GIS) and SpringBoot.
The embodiment of the invention can perform clustering processing on a plurality of traditional PG (postgreSQL, PG) databases in a transverse expansion mode to obtain a distributed database cluster 2, wherein the database cluster 2 is used for storing bottom data such as geographic data (river, lake and the like), administrative division data, AOI (Area of Interest) | POI (Point of Interest) data, flooding range and the like, wherein the POI is a point of interest, such as a position point of a house, a cell gate and the like, and the AOI is an area point of interest, such as a comprehensive market, an industrial park and the like;
Further, the geographic information system 3 is a technical system for collecting, storing, managing, operating, analyzing, displaying and describing related geographic distribution data in the whole or part of the earth surface (including the atmosphere) space, and comprises GeoServer and PostGis, wherein the PostGis 5 is used for loading, rendering the bottom layer data to a specific layer (such as a chinese city distribution map layer, a chinese earthquake history distribution map layer, etc.), and the GeoServer is used for combining, publishing and storing each layer;
In addition, springBoot is an improvement of Spring, and a specific mode can be used for configuration, so that a developer does not need to define configuration and construction of each layer, and only needs to process business logic, wherein Spring is a software development tool facing to a server side. Referring to fig. 2, a flow chart of an electronic map construction method according to an embodiment of the invention is shown. In the embodiment of the present invention, the electronic map construction method is applied to the database frame 1, and includes:
s1, 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.
In the embodiment of the present invention, the configuration file package is located in PostGis plug-ins of the geographic information system 3, and is used for constructing multiple layers of the most basic type, such as a china longitude and latitude layer, a provincial city distribution map layer, a lake and river map layer, a traffic route map layer, and the like, through a basic template. The basic template can be an automatic template in the shape of the prefabricated Chinese homeland, and various labels can be added to form different types of geographic layers.
Further, in the embodiment of the present invention, the electronic map construction of natural disaster risk in insurance industry is taken as an example, so that the target blank layer needs to be loaded with two basic layers, namely, an earthquake distribution blank layer with detailed bottom layer 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 labels may be divided into five major 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 other four categories are used for building map structures.
The insurance policy data comprises policy numbers, premium, insurance amount, customer information, policy adventure 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 includes administrative area names, codes, provincial and municipal hierarchical relationships, and the like. The POI|AOI data comprises POI|AOI names, address texts, longitude and latitude and the like.
S2, performing task allocation query on the field tag set by utilizing the pre-constructed database cluster to obtain a bottom data set.
According to the embodiment of the invention, role distribution is carried out on a plurality of PG databases in the database cluster, a master node and a plurality of slave nodes are defined, when data are queried, the size of the data to be queried can be evaluated by the master node, the query capability required by the data to be queried is obtained, and the data to be queried is queried by the slave nodes.
In detail, in the embodiment of the present invention, the task allocation query is performed on the field tag set by using the pre-constructed database cluster to obtain a bottom data set, including:
Step A: performing node configuration on the database cluster to obtain a master node and a plurality of slave nodes;
in the embodiment of the invention, the master node can randomly select one PG database to play a role, and all the remaining PG databases are used as slave nodes;
and (B) step (B): importing the field tag set into the master node, and grouping all field tags in the field tag set according to a pre-constructed key-value corresponding relation to obtain all chunks;
In detail, in the embodiment of the invention, in order to increase the data retrieval speed, each field tag stored in a data table is divided into a block according to a pre-constructed key-value corresponding relation, then the data size corresponding to each field tag in each block is analyzed, and the extraction difficulty degree of the data corresponding to each field tag in the block is judged, so that the query capability of how many slave nodes need to be configured in each block is analyzed.
In one application scenario of the invention, when the target blank map layer is a map layer of China earthquake occurrence map layer, the field labels can be roughly divided into two task blocks, namely, each city position of China and the longitude and latitude of the earthquake focus.
Step C: and distributing a slave node to each chunk according to a preset slave node distribution rule, and executing a data extraction task for each chunk by using each slave node to obtain a bottom data set.
In the application scenario described in the above step B, query that the task blocks of each city location in china include administrative division data, geographic data and poi|aoi according to the key-value correspondence relation, then the embodiment of the present invention configures three slave nodes to perform query and extraction tasks on the bottom data of the administrative division data, the geographic data and poi|aoi, respectively, and the seismic source latitude and longitude block has only poi|aoi and magnitude data, and then the embodiment of the present invention configures two slave nodes to perform query and extraction tasks on the bottom data of poi|aoi and magnitude data, respectively.
And after each slave node executes the query and extraction task of the bottom data of all the blocks, obtaining a bottom data set.
Further, after obtaining a bottom data set, the embodiment of the invention judges the data size of each table data in the bottom data set to obtain a data value of each table data, constructs a key-value corresponding relation by using the table head of each table data, stores the data value in the key-value corresponding relation, stores the key-value corresponding relation in a master node, and stores each table data 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.
In another embodiment of the present invention, before the performing, by the slave nodes, a task of extracting data from each chunk to obtain an underlying data set, the method further includes:
Obtaining a bottom data set by using a pre-built recall engine to obtain bottom data forms of all preset types;
And the bottom data set is stored in the database cluster in a distributed mode, and key-value corresponding relations of all bottom data tables are stored in a main node of the database cluster.
The recall engine is a multi-element single data interface and is used for regularly receiving data output by various authorities or business departments and the like, so that the disaster electronic map can update the first data.
Further, in an embodiment of the present invention, the performing, by using each slave node, a task of extracting data from each chunk to obtain a bottom data set includes:
Taking a field tag in the block as a key word, and inquiring a pre-constructed database management system to obtain a data storage address of bottom data corresponding to the field tag;
extracting each data block under the storage address according to the storage address;
and performing matrix inversion 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 data corresponding to the blocks.
The erasure code is a coding matrix, the coded bottom data can be subjected to matrix operation so as to realize encryption effect, and the matrix operation result can be divided into fragments and stored in different positions.
Taking one chunk as an example, the embodiment of the invention obtains a storage address corresponding to a field label in one chunk by inquiring the field label, obtains each segmented data block according to the storage address, extracts a preset number of data blocks from each data block according to the working principle of the erasure code, performs matrix inversion operation to obtain the code of restored bottom data, and then restores the restored bottom data by using a pre-constructed decoder.
S3, loading all the bottom data in the bottom data set into the target blank image layer in parallel to obtain a target electronic image layer, and storing the target electronic image layer into a pre-built image layer cache space.
In detail, as shown in fig. 3, in the embodiment of the present invention, loading each piece of bottom data in the bottom data set into the target blank layer in parallel to obtain a target electronic sub-layer includes:
S31, classifying each piece of bottom data in the bottom data set according to a preset data usage division rule to obtain a mathematical element data set, a graphic element data set and an off-graph element data set;
In the embodiment of the invention, the PostGis plugin can be utilized to divide the data usage of the bottom data set according to the configuration file of the geographic information system, so as to obtain a mathematical element data set, a graphic element data set and an off-graph 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 business and time information corresponding to each event point.
S32, selecting each event in the target blank layer according to the mathematical element data set to locate, and obtaining each event point;
s33, visually marking the types of the event points in the target blank layer according to the graphic element data set;
And S34, filling remark information of each event point in the target blank image layer according to the out-of-figure element data set to obtain a target electronic image layer.
In addition, in another embodiment of the present invention, after the target electronic layer is saved in the pre-built layer buffer space, the method further includes:
Carrying out hash operation on the target electronic layer by utilizing a message digest algorithm to obtain a storage signature;
And storing the target electronic sub-layer into a pre-built blockchain node by using the storage signature.
It should be noted that, the GeoServer includes a layer cache space for multiple call of the layers by each service, but in special cases, such as a snowdisaster distribution layer in summer, the information of the snowdisaster distribution layer may not be used, so that the information of the snowdisaster distribution layer is gradually lost with time.
The message digest algorithm (MD 5) is an encryption algorithm capable of extracting fingerprint information of the data of the target electronic layer so as to realize functions of data signature, data integrity verification and the like. According to the embodiment of the invention, the target electronic image layer is encrypted according to the information abstract algorithm to obtain the storage signature, and the storage signature is configured to the target electronic image layer and then is uploaded to a blockchain node for long-term storage.
S4, responding to service requirements sent by a pre-built service interface, selecting target electronic layers of various types required by the service requirements from the layer cache space to obtain an electronic layer set, and carrying out layer merging on the electronic layer set to obtain a target electronic map corresponding to the service requirements.
In detail, in the embodiment of the present invention, in response to a service requirement sent by a pre-constructed service interface, each kind of target electronic layer required by the service requirement is selected from the layer cache space to obtain an electronic layer set, and the electronic layer set is subjected to layer merging to obtain a disaster electronic map, including:
Analyzing service requirements sent by a pre-constructed service interface by utilizing pre-constructed back-end service to obtain a layer keyword sequence, and inquiring the layer cache space by utilizing the layer keyword sequence to obtain an electronic layer set;
According to a preset scaling strategy, scaling operation is carried out on each electronic image layer in the electronic image layer set to obtain an equal-proportion image layer set;
And performing primary and secondary configuration on each equal proportion map layer in the equal proportion map layer set according to the sequence of each map layer keyword in the map layer keyword sequence to obtain a primary map layer and a plurality of secondary map layers, and mapping the plurality of secondary map layers onto the primary map layer to obtain a target electronic map corresponding to the service requirement.
According to the embodiment of the invention, the service requirements sent by the preset service interface are analyzed by utilizing SpringBoot, such as a disaster electronic map based on natural disasters and insurance services, a layer keyword sequence is obtained, such as a Chinese map, a city position, a service singular number and an earthquake focus position … …, the layer keyword sequence can be queried to obtain a corresponding electronic layer set, such as a Chinese city position layer, an earthquake distribution map layer, an insurance singular number distribution map layer and … …, and finally, each layer is mapped to a main layer of each city position layer in equal proportion, so that the disaster electronic map capable of viewing natural disasters and service distribution is obtained.
Fig. 4 is a functional block diagram of an electronic map construction device according to an embodiment of the present invention.
The electronic map construction apparatus 100 of the present invention may be installed in an electronic device. The electronic map construction device 100 may include a tag acquisition module 101, a block extraction module 102, a parallel loading module 103, and a management release module 104 according to the implemented functions. The module of the invention, which may also be referred to as a unit, refers to a series of computer program segments, which are stored in the memory of the electronic device, capable of being executed by the processor of the electronic device and of performing a fixed function.
In the present embodiment, the functions concerning the respective modules/units are as follows:
the tag acquisition module 101 is configured to extract a target blank layer from a configuration file packet of a pre-constructed geographic information system, and extract a field tag set contained 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 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, obtain a target electronic layer, and store the target electronic layer into a pre-constructed layer cache space;
The management publishing module 104 is configured to respond to a service requirement sent by a pre-built service interface, select each kind of target electronic layer required by the service requirement from the layer cache space, obtain an electronic layer set, and perform layer merging on the electronic layer set to obtain a target electronic map corresponding to the service requirement.
In detail, each module in the electronic map construction device 100 in the embodiment of the present invention adopts the same technical means as the electronic map construction method described in fig. 1 to 3, and can produce the same technical effects, which are not described herein.
Fig. 5 is a schematic structural diagram of an electronic device for implementing the method for constructing an electronic map 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.
The processor 10 may be formed by an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or may be formed by a plurality of integrated circuits packaged with the same function or different functions, including one or more central processing units (Central Processing unit, CPU), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the entire electronic device using various interfaces and lines, and executes various functions of the electronic device and processes data by running or executing programs or modules (e.g., executing an electronic map construction 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, a removable hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device, such as a mobile 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 memory card (SMART MEDIA CARD, SMC), a Secure Digital (SD) card, a flash memory card (FLASH CARD) or 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 for storing application software installed in an electronic device and various types of data, such as codes of an electronic map construction program, but also for temporarily storing data that has been output or is to be output.
The communication bus 12 may be a peripheral component interconnect standard (PERIPHERAL COMPONENT INTERCONNECT, PCI) bus, or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. The bus is arranged to enable a connection communication between the memory 11 and at least one processor 10 etc.
The communication interface 13 is used for communication between the electronic device and other devices, including 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.), 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), or alternatively 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, or the like. The display may also be referred to as a display screen or display unit, as appropriate, for displaying information processed in the electronic device and for displaying a visual user interface.
Fig. 5 shows only an electronic device with components, it being 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 may combine certain components, or may be arranged in different components.
For example, although not shown, the electronic device may further include a power source (such as a battery) for supplying power to the respective components, and preferably, the power source 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 implemented through the power management device. The power supply may also include one or more of any of a direct current or alternating current power supply, recharging device, power failure detection circuit, power converter or inverter, power status indicator, etc. The electronic device may further include various sensors, bluetooth modules, wi-Fi modules, etc., which are not described herein.
It should be understood that the embodiments described are for illustrative purposes only and are not limited to this configuration in the scope of the patent application.
The electronic map construction program stored in the memory 11 in the electronic device 1 is a combination of a plurality of instructions, which when executed in the processor 10, can implement:
extracting a target blank layer from a configuration file packet of a pre-constructed 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 utilizing a pre-constructed database cluster to obtain a bottom data set;
Loading each bottom data in the bottom data set into the target blank image layer in parallel to obtain a target electronic image layer, and storing the target electronic image layer into a pre-constructed image layer cache space;
And responding to the service requirements sent by the pre-constructed service interface, selecting target electronic layers of various types required by the service requirements from the layer cache space to obtain an electronic layer set, and carrying out layer merging on the electronic layer set to obtain a target electronic map corresponding to the service requirements.
In particular, the specific implementation method of the above instructions by the processor 10 may refer to the description of the relevant steps in the corresponding embodiment of the drawings, which is not repeated herein.
Further, the modules/units integrated in the electronic device 1 may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as separate products. The computer readable storage medium may be volatile or nonvolatile. For example, the computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a 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, can implement:
extracting a target blank layer from a configuration file packet of a pre-constructed 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 utilizing a pre-constructed database cluster to obtain a bottom data set;
Loading each bottom data in the bottom data set into the target blank image layer in parallel to obtain a target electronic image layer, and storing the target electronic image layer into a pre-constructed image layer cache space;
And responding to the service requirements sent by the pre-constructed service interface, selecting target electronic layers of various types required by the service requirements from the layer cache space to obtain an electronic layer set, and carrying out layer merging on the electronic layer set to obtain a target electronic map corresponding to the service requirements.
In the several embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be other manners of division when actually implemented.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units can be realized in a form of hardware or a form of hardware and a form of software functional modules.
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 characteristics 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 blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The blockchain (Blockchain), essentially a de-centralized database, is a string of data blocks that are generated in association using cryptographic methods, each of which contains information from a batch of network transactions for verifying the validity (anti-counterfeit) of its information and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
The embodiment of the application can acquire and process the related data based on the artificial intelligence technology. Wherein artificial intelligence (ARTIFICIAL INTELLIGENCE, AI) is the theory, method, technique, and application system that uses a digital computer or a digital computer-controlled machine to simulate, extend, and expand human intelligence, sense the environment, acquire knowledge, and use knowledge to obtain optimal results.
Furthermore, it is evident that the word "comprising" does not exclude other elements or steps, and that the singular does not exclude a plurality. A plurality of units or means recited in the system claims can also be implemented by means of software or hardware by means of one unit or means. The terms first, second, etc. are used to denote a name, but not any particular order.
Finally, it should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made to the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention.

Claims (8)

1. The method for constructing the electronic map is characterized by comprising the following steps of:
extracting a target blank layer from a configuration file packet of a pre-constructed 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 utilizing a pre-constructed database cluster to obtain a bottom data set;
Loading each bottom data in the bottom data set into the target blank image layer in parallel to obtain a target electronic image layer, and storing the target electronic image layer into a pre-constructed image layer cache space;
Responding to service requirements sent by a pre-constructed service interface, selecting target electronic layers of various types required by the service requirements from the layer cache space to obtain an electronic layer set, and carrying out layer merging on the electronic layer set to obtain a target electronic map corresponding to the service requirements;
the loading each piece of bottom data in the bottom data set into the target blank layer in parallel to obtain a target electronic layer includes: classifying each piece of bottom data in the bottom data set according to a preset data usage dividing 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 to locate so as to obtain each event point; visually marking the types of the event points in the target blank layer according to the graphic element data set; filling remark information of each event point in the target blank image layer according to the out-of-view element data set to obtain a target electronic image layer;
The responding to the service requirement sent by the pre-constructed service interface, selecting each kind of target electronic layer required by the service requirement from the layer cache space to obtain an electronic layer set, and carrying out layer merging on the electronic layer set to obtain a target electronic map corresponding to the service requirement, comprising: analyzing service requirements sent by a pre-constructed service interface by utilizing pre-constructed back-end service to obtain a layer keyword sequence, and inquiring the layer cache space by utilizing the layer keyword sequence to obtain an electronic layer set; according to a preset scaling strategy, scaling operation is carried out on each electronic image layer in the electronic image layer set to obtain an equal-proportion image layer set; and performing primary and secondary configuration on each equal proportion map layer in the equal proportion map layer set according to the sequence of each map layer keyword in the map layer keyword sequence to obtain a primary map layer and a plurality of secondary map layers, and mapping the plurality of secondary map layers onto the primary map layer to obtain a target electronic map corresponding to the service requirement.
2. The method of claim 1, wherein the task allocation query is performed on the field tag set by using a pre-constructed database cluster to obtain a bottom data set, and the method comprises:
performing node configuration on the database cluster to obtain a master node and a plurality of slave nodes;
importing the field tag set into the master node, and grouping all field tags in the field tag set according to a pre-constructed key-value corresponding relation to obtain all chunks;
And distributing a slave node to each chunk according to a preset slave node distribution rule, and executing a data extraction task for each chunk by using each slave node to obtain a bottom data set.
3. The method of claim 2, wherein said performing, with each of said slave nodes, a data extraction task on each of said chunks to obtain a bottom data set, comprises:
Taking a field tag in the block as a key word, and inquiring a pre-constructed database management system to obtain a data storage address of bottom data corresponding to the field tag;
extracting each data block under the storage address according to the storage address;
and performing matrix inversion 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 data corresponding to the blocks.
4. The method of claim 2, wherein before performing the data extraction task on each of the chunks with each of the slave nodes to obtain the underlying data set, the method further comprises:
Obtaining a bottom data set by using a pre-built recall engine to obtain bottom data forms of all preset types;
And the bottom data set is stored in the database cluster in a distributed mode, and key-value corresponding relations of all bottom data tables are stored in a main node of the database cluster.
5. The method of claim 1, wherein after the target electronic layer is saved in the pre-built layer cache space, the method further comprises:
Carrying out hash operation on the target electronic layer by utilizing a message digest algorithm to obtain a storage signature;
And storing the target electronic sub-layer into a pre-built blockchain node by using the storage signature.
6. An electronic map construction apparatus for implementing the electronic map construction method according to any one of claims 1 to 5, characterized in that the apparatus comprises:
The label acquisition module is used for extracting a target blank layer from a configuration file packet of a pre-constructed 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 the pre-constructed database cluster to obtain a bottom data set;
The parallel loading module is used for loading each piece of bottom data in the bottom data set into the target blank image layer in parallel to obtain a target electronic image layer, and storing the target electronic image layer into a pre-constructed image layer cache space;
And the management release module is used for responding to service requirements sent by a pre-constructed service interface, selecting target electronic layers of various types required by the service requirements from the layer cache space to obtain an electronic layer set, and carrying out layer merging on the electronic layer set to obtain a target electronic map corresponding to the service requirements.
7. An electronic device, the electronic device comprising:
At least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
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 according to any one of claims 1 to 5.
8. A computer-readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the electronic map construction method according to any one of claims 1 to 5.
CN202111260832.3A 2021-10-28 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 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 2021-10-28 Electronic map construction method, device, equipment and storage medium

Publications (2)

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

Family

ID=79026661

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN113901166B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7925982B2 (en) * 2006-09-01 2011-04-12 Cheryl Parker System and method of overlaying and integrating data with geographic mapping applications
CN111723171B (en) * 2020-05-25 2023-06-09 王兴贵 New infrastructure project investigation system based on public map development
CN112149027A (en) * 2020-10-28 2020-12-29 云赛智联股份有限公司 City operation data visual management system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN113901166A (en) 2022-01-07

Similar Documents

Publication Publication Date Title
CN112347214B (en) Target area dividing method and device, electronic equipment and storage medium
CN113901166B (en) Electronic map construction method, device, equipment and storage medium
CN112050820B (en) Road matching method, device, electronic equipment and readable storage medium
CN112464619B (en) Big data processing method, device and equipment and computer readable storage medium
CN114186132B (en) Information recommendation method and device, electronic equipment and storage medium
CN114550076A (en) Method, device and equipment for monitoring area abnormal behaviors and storage medium
CN113868528A (en) Information recommendation method and device, electronic equipment and readable storage medium
CN114219023A (en) Data clustering method and device, electronic equipment and readable storage medium
CN115829124A (en) Charging pile address selection method, device, equipment and storage medium
CN116127689A (en) Digital twin space construction method and device and computing equipment
CN112132037A (en) Sidewalk detection method, device, equipment and medium based on artificial intelligence
CN113704616B (en) Information pushing method and device, electronic equipment and readable storage medium
CN112819593B (en) Data analysis method, device, equipment and medium based on position information
CN114840631A (en) Spatial text query method and device, electronic equipment and storage medium
CN113626605B (en) Information classification method, device, electronic equipment and readable storage medium
CN115174555A (en) File transmission method and device, electronic equipment and storage medium
CN113627800B (en) Water source land inspection point position determining method and device, electronic equipment and medium
CN114139623B (en) Natural disaster risk assessment method, device, electronic equipment and storage medium
CN116418580B (en) Data integrity protection detection method and device for local area network and electronic equipment
CN113448933B (en) Service data processing method, device, electronic equipment and medium
CN113360505B (en) Time sequence data-based data processing method and device, electronic equipment and readable storage medium
CN113934935B (en) Interactive court map generation method, device, equipment and readable storage medium
CN114120122B (en) Disaster damage identification method, device, equipment and storage medium based on remote sensing image
CN116933123A (en) Method, device, equipment and storage medium for predicting liveness of guest user
CN112667570A (en) File access 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
GR01 Patent grant