Geological Spatial Data Storage Method, Device and Storage Medium

By analyzing and formatting the geological spatial data, the unified format feature data is generated, and the problem of difficulty in storing data in different formats is solved, and the unified management and sharing of data is realized.

CN118689927BActive Publication Date: 2025-05-30CHINA GEOLOGICAL SURVEY NATURAL RESOURCES COMPREHENSIVE SURVEY COMMAND CENT

Patent Information

Application Number
CN202410778564.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2025-05-30
Estimated Expiration
2044-06-17

AI Technical Summary

Technical Problem

Geological spatial data in different formats is difficult to store unified logical and physically, resulting in difficulty in integrating and sharing data.

Method used

By acquiring geological spatial data, analyzing the feature information, and generating format feature data based on preset feature templates to achieve a unified storage structure.

Benefits of technology

It solves the problem that geological spatial data in different formats is difficult to store uniformly, and realizes unified management and convenient sharing of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118689927B_ABST
    Figure CN118689927B_ABST
Patent Text Reader

Abstract

This application relates to the field of geological information technology and provides a method for storing geological spatial data, including: obtaining geological spatial data; parsing the geological spatial data to obtain feature information; determining formatted feature data based on the feature information and a preset feature template; and storing the formatted feature data. Since the formatted feature data is generated based on the preset feature template, the unity of the logical model and the physical storage model architecture of the geological spatial data is ensured, thus solving the problem of the integrated organization and storage of massive multi-source heterogeneous geological spatial data of multiple specialties, multiple scales, and multiple formats. In addition, an electronic device and a storage medium are also provided. The invention will provide intelligent data access method support for the database construction, processing, mining, sharing, and service of geological big data in the digital background, greatly improving the interoperability of geological big data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of geological information technology, and relates to a method, device, and storage medium for storing geological spatial data. Background Art

[0002] After more than 100 years of geological survey work, nearly 100 important digital core geological databases covering more than 10 types such as regional geology, mineral geology, energy geology, marine geology, hydrogeology, engineering geology, environmental geology, geophysics, geochemistry, remote sensing geology, and natural resources have been accumulated and constructed, and the data volume reaches the PB level. Since 2017, since the "National Geoscience Data Sharing Service Platform - 'Geological Cloud' platform" was developed and launched by the China Geological Survey, more than 4,000 authoritative data services that meet the OGC standard have been released to the industry and society in the fields of national economic construction, energy security, disaster prevention and mitigation, and basic scientific research. The data scope covers the globe, the land area and the ocean of China, and the main data scales include, but are not limited to, 1:50,000, 1:200,000, 1:250,000, 1:500,000, 1:1,000,000, 1:1,500,000, 1:2,000,000, and 1:5,000,000. With the acceleration of the global informatization process, geological data information, as an important basic and strategic information resource for national economic and social development, is being more and more widely applied to all aspects of national economy, social development, national security, and public life.

[0003] Geological spatial data is one of the most important types of geological data, which refers to various professional geological data related to the earth's spatial position generated through various methods such as detection, observation, and monitoring in geological survey work, involving various types of original data, result data, and derivative data with multiple scales and multiple formats. Due to the problems of being unscientific and imperfect in the previous geological spatial data standard system, there are problems such as duplication, contradiction, and lack in the standards for geological data collection, storage, exchange, and processing, and the data base management software cannot be interconnected and interoperable, resulting in semantic differences, storage structure differences, and storage format differences in the accumulated massive geological spatial data, which greatly hinders the digital transformation of geological work supported by geological data. Making full use of new-generation information technologies such as the Internet, big data, databases, and artificial intelligence to research and build unified storage, management, integration, and integration methods and technologies for geological spatial data, and improving the usability, accessibility, integration, service, and sharing capabilities of geological spatial data are the top priorities of geological informatization work in the new era, which can effectively help solve the problems of "data islands", "information islands", "system islands", and "knowledge islands", support the new round of strategic mineral resource evaluation in the country, and play a promoting role of geological informatization in the digital transformation of geological work.

[0004] In traditional technical methods, the storage of geological spatial data is often directly stored as a dedicated data format supported by different commercial GIS software through software such as Mapgis, Arcgis, and Qgis. Then, combined with different programming languages, different database management systems, and the development toolkits provided by each commercial GIS software, secondary development of the program is carried out to form unique logical storage and physical storage for different professional geological spatial data, and finally, methods and systems for storing and managing geological spatial data in multiple non-interoperable and multiple modes are realized.

[0005] Among them, the data of the geological map spatial database is mainly stored in the file format of Mapgis version 6.7. The geological map database mainly focuses on the data of the Chinese land area, including more than 8,000 pieces of 1:50,000 geological map spatial data, more than 1,000 pieces of 1:200,000 geological map spatial data, more than 300 pieces of 1:250,000 geological map spatial data, and 1:500,000, 1:1,000,000, 1:2,500,000, 1:5,000,000 geological map spatial data, etc. When building this database, the standards referred to for data storage are "Implementation Rules for the Construction of 1:50,000 Regional Geological Map Spatial Database (by Province)", "Work Guide for the Construction of Geological Map Spatial Database (Draft for Comment)", "DD2006-06 Digital Geological Map Spatial Database Standard", and "Technical Requirements and Implementation Rules for the Construction of 1:250,000 Regional Geological Map Spatial Database". The data of single map sheets such as sedimentary strata, metamorphic strata, volcanic rocks, intrusive rocks, dike rocks, faults, and fossil sampling points included in the geological map spatial database of each scale are mainly saved in the layer formats such as wp, wt, and wl of Mapgis version 6.7, and different scale databases are managed in different ways of windows folders.

[0006] The data of the gravity survey database is mainly stored in the Access format. The gravity survey database covers the 1:200,000, 1:500,000, and 1:1,000,000 regional gravity survey data of the Chinese land area. The data volume involves millions of high-precision gravity measurement point data information and work area information, and the data is widely used in geological structure research, mineral resource potential evaluation, oil and gas exploration, geoid measurement, and military geology fields. When building this database, it mainly follows the "DD2010-02 Regional Gravity Database Standard". The database is established in the form of a relational database. The database tables include a measurement point data table and a work area information table, and the work area information table and the measurement point data table are in a one-to-many relationship. The database data storage is mainly saved as an Access database format through the developed RGIS software.

[0007] The data of the aeromagnetic database is mainly stored in the formats of Oracle and Arcgis software. The data of the aeromagnetic database basically covers the entire land area of the country, involving more than 400 survey areas, with measurement scales ranging from 1:10,000 to 1:1,000,000. The data volume is at the GB level, and the data is widely used in mineral resource exploration and mineral resource potential evaluation. The database is built based on the Oracle database management system, Mapgis software, and Arcgis software. Among them, the spatial data in Mapgis format is saved in the form of windows system files, and the metadata and spatial range information are saved in Oracle using Arcgis's SDE.

[0008] The geochemical database is mainly stored using SQL Server and Arcgis. The data of the geochemical database is mainly obtained through the national geochemical survey work, including land quality geochemical data, multi-objective geochemical data, and geochemical scanning data. The data covers nearly 70% of the land area of the country, and the number of data points and records is in the millions. It is widely used in the fields of national mineral resource potential evaluation, environmental and land governance evaluation, and basic geological research. The database construction mainly follows the "DD2010-04 Multi-objective Regional Geochemical Survey Database Standard" and the "Technical Specification for the Construction of Land Quality Geochemical Survey and Evaluation Database (Trial Draft)". The data tables include stream sediment data tables, land quality geochemical survey data tables, etc., and are stored using the relational database Microsoft SQL Server and Arcgis.

[0009] In addition, the data of the China Water Resources Survey and Monitoring Database is stored using Oracle and MySQL, the data of the National Geological Work Degree Database is stored in the form of files of Access and Mapgis6.7, the data of the Geological Disaster Survey and Monitoring Database is stored using SQL Server and Mysql, and the data of the National Mineral Occurrence Database is stored in the form of files of Access and Mapgis6.7.

[0010] Due to the lack of constraints and support from a unified geological data logical model and physical storage model framework, different geological spatial databases are built using a variety of GIS software, database management systems, file management systems, etc. This has caused a large amount of geological spatial data to have differences in data models, query exchanges, data formats, system structures, etc., resulting in the problem that it is difficult to achieve unified logical storage and physical storage for different formats of geological spatial data during data integration, which has increased the difficulty of integrating, integrating, sharing, and serving geological spatial data. Summary of the Invention

[0011] To help solve the problem that it is difficult to uniformly store geological spatial data in logical and physical forms in different formats, this application provides a method, device, and storage medium for storing geological spatial data.

[0012] In a first aspect, this application provides a method for storing geological spatial data, adopting the following technical solution:

[0013] A method for storing geological spatial data, the method comprising:

[0014] Obtain geological spatial data;

[0015] Analyze the geological spatial data to obtain feature information;

[0016] Determine formatted feature data based on the feature information and a preset feature template;

[0017] Store the formatted feature data.

[0018] By adopting the above technical solution, the problem that it is difficult to uniformly store geological spatial data in different formats can be solved. Since the geological spatial data is analyzed to obtain feature information and the formatted feature data is generated based on a preset feature template, the geological spatial data can be stored in a unified structure, thus facilitating the unified logical and physical storage of geological spatial data in different formats.

[0019] Optionally, the analyzing the geological spatial data to obtain feature information includes:

[0020] Determine the target parsing method corresponding to the geological spatial data;

[0021] Analyze the geological spatial data based on the target parsing method to obtain the feature information.

[0022] By adopting the above technical solution, the problem that it is easy to encounter situations such as inability to parse, difficult parsing, or parsing errors when using a single parsing method to analyze different geological spatial data due to inconsistent data formats and data standards of different geological spatial data can be solved. Therefore, since the corresponding target parsing method is matched for the geological spatial data for parsing, different types of geological spatial data can be adapted, and the applicable scope of the method for storing geological spatial data can be broadened.

[0023] Optionally, the geological spatial data includes geological spatial instance data, and the determining the target parsing method corresponding to the geological spatial data includes:

[0024] Determine the target parsing method based on the data format of the geological spatial instance data.

[0025] By adopting the above technical solution, when storing a geological space model, a corresponding parsing method can be matched for the data model for parsing, so as to realize the storage of models exported by other geological information systems, solve the problem that different types of geological information systems cannot interoperate, and realize the management of multi-source data.

[0026] Optionally, determining the format element data based on the element information and a preset element template includes:

[0027] Determining the target storage type of the geological space data;

[0028] Determining the format element data based on the element information and the preset element template corresponding to the target storage type.

[0029] By adopting the above technical solution, different preset element templates can be set for different storage scenarios, so as to meet the requirements of different storage scenarios and realize the diversified storage of geological space data.

[0030] Optionally, the element information includes element class information, the preset element template includes an element class template, the format element data includes format element class data, and determining the format element data based on the element information and the preset element template includes:

[0031] Generating the format element class data based on the element class information and the element class template.

[0032] By adopting the above technical solution, unified formatted storage of element class information in different formats in different geological space data can be realized, which is convenient for the management and utilization of geological space data.

[0033] Optionally, the element information includes attribute item information of the element class indicated by the element class information, the preset element template includes an attribute item template, the format element data further includes format attribute item data of the element class, and determining the format element data based on the element information and the preset element template includes:

[0034] Determining the format attribute item data based on the attribute item information and the attribute item template.

[0035] By adopting the above technical solution, it is convenient to extract the attribute item data corresponding to the element class data, so as to realize the associated storage of the element class data and the attribute item data, and it is convenient for the management and utilization of geological space data.

[0036] Optionally, the element information includes topological relationship information of the element class indicated by the element class information, and the preset element template includes a topological relationship template; the formatted element data further includes formatted topological relationship data of the element class, and determining the formatted element data based on the element information and the preset element template includes:

[0037] Determining the formatted topological relationship data based on the topological relationship information and the topological relationship template.

[0038] By adopting the above technical solution, it is convenient to extract the topological relationship data corresponding to the element class data, so as to realize the associated storage of the element class data and the topological relationship data, and it is convenient to manage and utilize the geological spatial data.

[0039] Optionally, storing the formatted element data includes:

[0040] Establishing a sub-database in the target database;

[0041] Storing the formatted element data into the sub-database.

[0042] By adopting the above technical solution, the sub-database can be accessed based on the connection with the target database. Therefore, the number of database connections can be reduced, and the efficiency of database switching can be accelerated.

[0043] In a second aspect, the present application provides an electronic device, adopting the following technical solution:

[0044] An electronic device, the electronic device includes:

[0045] At least one processor;

[0046] A memory;

[0047] At least one application program, where at least one application program is stored in the memory and is configured to be executed by at least one processor, and the at least one application program is configured to: execute any one of the geological spatial data storage methods provided in the first aspect.

[0048] In a third aspect, the present application provides a computer-readable storage medium, adopting the following technical solution:

[0049] A computer-readable storage medium, on which a computer program is stored, and when the computer program is executed in a computer, the computer is made to execute any one of the geological spatial data storage methods provided in the first aspect.

[0050] In summary, the present application includes at least one of the following beneficial technical effects:

[0051] 1. Since the element information is obtained by parsing geological spatial data and the formatted element data is generated based on a preset element template, the geological spatial data can be stored in a unified format, thus facilitating the unified storage of geological spatial data in different formats.

[0052] 2. Since the geological spatial data of various types is stored in a unified form, it is convenient to manage the geological spatial data using a unified management method, thereby solving the problem that it is difficult to uniformly manage the geological spatial data in different formats. Therefore, it is convenient to uniformly manage the geological spatial data in different formats. Description of the Drawings

[0053] Figure 1 is a schematic flowchart of the geological spatial data storage method provided by an embodiment of the present application;

[0054] Figure 2 is a schematic structural diagram of the geological spatial data storage system provided by an embodiment of the present application;

[0055] Figure 3 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. Detailed Embodiments

[0056] In order to make the objectives, technical solutions and advantages of the present application clearer, the following further describes the present application in detail with reference to the Figures 1-3 drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0057] To improve the interoperability of geological spatial data and give full play to the driving role of data and models, the present application provides a method, device and storage medium for storing geological spatial data to unify the logical model and physical storage model architecture of geological spatial data, thereby solving the integrated organization and storage of massive multi-source heterogeneous multi-professional, multi-scale and multi-format geological spatial data.

[0058] An embodiment of the present application discloses a method for storing geological spatial data, which is executed by an electronic device. The electronic device is a terminal or a server. The terminal can be a computer, a mobile phone, a tablet computer, etc. The embodiment of the present application does not limit the type of the electronic device. Referring to Figure 1 , the method for storing geological spatial data at least includes the following steps:

[0059] Step 101, obtain geological spatial data.

[0060] Optionally, the geological spatial data includes geological spatial instance data. Obtaining the geological spatial data includes: obtaining the pre-created geological spatial instance data.

[0061] Specifically, the geological spatial instance data can be created based on geographic information system (GIS) platforms such as MapGIS and ArcGIS. This embodiment does not limit the creation method of the geological data model.

[0062] In one example, the geological spatial instance data is created based on the MapGIS platform. At this time, the data format of the geological spatial instance data is the mapgis format.

[0063] In another example, the geological spatial instance data is created based on the ArcGIS platform. At this time, the data format of the geological spatial instance data is the Shapefile format, Coverage format, or Geodatabase format.

[0064] In actual implementation, the geological spatial data can also include other types of data without spatial information. This embodiment does not limit the type of geological spatial data.

[0065] Step 102: Parse the geological spatial data to obtain feature information.

[0066] Optionally, the types of feature information include but are not limited to the following:

[0067] First, model information, which is used to indicate the information of the geological spatial logic model to which the geological spatial data belongs.

[0068] Optionally, the model information includes information such as the model name and remarks information.

[0069] Second, feature class information, which is used to indicate the feature class information in the geological spatial data.

[0070] Among them, a feature class refers to a collection of geometric features with the same geometric form, such as a collection of points, a collection of lines, or a collection of surfaces, etc.

[0071] Optionally, the feature class information includes information such as the feature class name, feature class type, and feature class classification. Among them, the feature class type refers to the type of geometric features in the feature class, such as points, lines, or surfaces, etc.

[0072] In one example, a feature class is a layer in the geological spatial data.

[0073] Third, attribute item information, which is used to indicate the attribute items included in the feature class.

[0074] Optionally, the attribute item information includes information such as the feature class identifier, data type, and data item identifier (such as data item name and / or data item code) for describing the attributes of the data item.

[0075] The fourth type is topological relationship information, which is used to indicate the topological relationship of the feature class.

[0076] Optionally, the topological relationship information includes: node check information, duplicate point check information, and / or self-intersecting line check information of the feature class, etc., which can reflect the topological relationship of each feature in the feature class. The type of topological relationship information is limited in this embodiment.

[0077] Optionally, the topological information can be the topological information in a certain feature class, or it can also be the topological information between different feature classes. This embodiment does not limit this. In actual implementation, the feature information can also include other information, such as: fault rule information, file-type result organization information, etc. The type of feature information is not limited in this embodiment.

[0078] Optionally, parsing the geological spatial data to obtain feature information includes: determining the target parsing method corresponding to the geological spatial data; parsing the geological spatial data based on the target parsing method to obtain feature information.

[0079] Since matching the corresponding target parsing method for the geological spatial data for parsing can solve the problem that it is easy to be unable to parse, difficult to parse, or parse incorrectly when using a single parsing method to parse different geological spatial data due to different data formats and inconsistent data standards, it can thus adapt to different types of geological spatial data and broaden the applicable range of the geological spatial data storage method.

[0080] In one example, the geological spatial data includes geological spatial instance data. Determining the target parsing method corresponding to the geological spatial data includes: determining the target parsing method based on the data format of the geological spatial instance data.

[0081] Optionally, determining the target parsing method based on the data format of the geological spatial model includes: determining the parsing module corresponding to the data format of the geological spatial model. Correspondingly, parsing the geological spatial data based on the target parsing method to obtain feature information includes: using the parsing module corresponding to the data format of the spatial model to parse the geological spatial data to obtain feature information.

[0082] Since the data organization method in the geological spatial model can be determined based on the data format, when storing the geological spatial model, a corresponding parsing method can be matched for the data model for parsing, so as to realize the storage of the model exported from other geological information systems, solve the problem that different types of geological information systems cannot interoperate, and realize the management of multi-source data.

[0083] In another example, determining the target parsing method corresponding to the geological spatial data includes: determining the target parsing method corresponding to the geological spatial data based on the data parameters of the geological spatial data.

[0084] Among them, the data parameters can be information affecting data parsing such as the type, scale ratio, accuracy, etc. of the geological spatial data. The type of data parameters is not limited in this embodiment.

[0085] In actual implementation, other methods can also be used to determine the target parsing method corresponding to the geological spatial data. The method for determining the target parsing method is not limited in this embodiment.

[0086] Step 103, determining the formatted feature data based on the feature information and the preset feature template.

[0087] Among them, the preset feature template is constructed based on the logical storage model of the geological spatial data.

[0088] In one example, the preset feature template is stored in the form of a table. The fields in the table match the content of the feature information, and the feature data is stored in the table.

[0089] Optionally, the method for determining the formatted feature data based on the feature information and the preset feature template includes, but is not limited to, the following several types:

[0090] First, the feature information includes feature class information, the preset feature template includes a feature class template, and the formatted feature data includes formatted feature class data. Determining the formatted feature data based on the feature information and the preset feature template includes: generating the formatted feature class data based on the feature class information and the feature class template.

[0091] In one example, the feature class template includes a feature class table template, the formatted feature class data includes a feature class table, and determining the formatted feature data based on the feature information and the preset feature template includes: generating a feature class table based on the feature class information and the feature class table template.

[0092] In this embodiment, the feature class template may include fields such as a feature class identifier (such as: feature class name, feature class code, etc.), feature class type, feature class classification, model identifier, data set, etc. Among them, the feature class identifier is used to uniquely identify the feature class. Optionally, the fields corresponding to different feature class templates are different.

[0093] In one example, the feature class code is a universally unique identifier.

[0094] In one example, the feature class name in the feature class table is determined based on the feature class name in the feature class information. The feature class code can be determined based on the feature class information or can also be automatically generated. The feature class type and feature class classification are determined based on the feature class information.

[0095] Since the feature class information in the geological spatial data is parsed and the formatted feature class data is determined by combining with the feature class template, it is possible to uniformly format and store the feature class information in different formats in different geological spatial data, facilitating the management and utilization of the geological spatial data.

[0096] Second, the feature information includes the attribute item information of the feature class indicated by the feature class information, the preset feature template includes the attribute item template, and the formatted feature data includes the formatted attribute item data corresponding to the feature class. Determining the formatted feature data based on the feature information and the preset feature template includes: determining the formatted attribute item data based on the attribute item information and the attribute item template.

[0097] Optionally, the attribute item template includes an attribute item table template, the formatted feature class data includes an attribute item table, and determining the formatted feature data based on the feature information and the preset feature template includes: generating an attribute item table based on the attribute item information and the attribute item table template.

[0098] In this embodiment, the attribute item template may include fields such as feature class identifier, serial number, data item identifier (such as: data item name, data item code, etc.), data type, length, precision, number of decimal places, dictionary code item, etc. Among them, the data item identifier is used to uniquely identify the data item. Optionally, the fields corresponding to different attribute item templates are different.

[0099] In one example, the data item code is a universally unique identifier.

[0100] In one example, the feature class identifier in the attribute item table is determined based on the feature class identifier of the attribute item's affiliated feature class in the feature class table. The data item identifier can be determined based on the data item identifier in the data item information or can also be automatically generated. The data type, length, precision, and number of decimal places are determined based on the data item information, and the dictionary code item is determined based on the data type.

[0101] Optionally, the feature class identifier field in the attribute item table is associated with the feature class identifier field in the feature class table. In one example, the feature class name field in the attribute item table is associated with the feature class name field in the feature class table.

[0102] Since the attribute item information of the feature class indicated by the parsed feature class information is used and the formatted feature class data is determined using the attribute item template, it is possible to facilitate the extraction of the attribute item data corresponding to the feature class data as needed, thereby realizing the associated storage of the feature class data and the attribute item data, and facilitating the management and utilization of the geological spatial data.

[0103] Thirdly, the element information includes the topological relationship information of the element class indicated by the element class information, the preset element template includes a topological relationship template; the formatted element data includes the formatted topological relationship data of the element class. Determining the formatted element data based on the element information and the preset element template includes: generating the formatted topological relationship data based on the topological relationship information and the topological relationship template.

[0104] In an example, the element template includes a topological relationship table template, the formatted element class data includes a topological relationship table, and determining the formatted element data based on the element information and the preset element template includes: generating a topological relationship table based on the topological relationship information and the topological relationship template.

[0105] In this embodiment, the topological relationship template may include fields such as element class identifier, model identifier, database identifier, element type, node check information, duplicate point check information, self-intersecting line check information, etc. Optionally, the fields corresponding to different topological relationship templates are different.

[0106] In an example, the element class identifier in the topological relationship table is determined based on the element class identifier of the element class corresponding to the topological relationship in the element class table, and the element type, node check information, duplicate point check information, and / or self-intersecting line check information are determined based on the topological information.

[0107] Optionally, the element class identifier field in the topological relationship table is associated with the element class identifier field in the element class table.

[0108] By parsing the topological relationship information of the element class indicated by the element class information and using the topological relationship template to determine the formatted topological relationship data, it is possible to facilitate the extraction of the topological relationship data corresponding to the element class data, thereby realizing the associated storage of the element class data and the topological relationship data, and facilitating the management and utilization of geological spatial data.

[0109] In actual implementation, the formatted element information may also include other information, such as: formatted dataset information. This embodiment does not limit the type of the formatted element information.

[0110] In an example, determining the element data based on the element information and the preset element template includes: determining the target storage type of the geological spatial data; determining the element data based on the element information and the preset element template corresponding to the target storage type.

[0111] Among them, the storage type can be determined based on factors such as data nature, scale, and / or accuracy that affect the storage method of geological spatial data. This embodiment does not limit the determination method of the storage type.

[0112] In an example, the storage type is determined based on different scales.

[0113] Optionally, the preset element templates corresponding to different target storage types are different.

[0114] Since the element data required for different storage scenarios is different, for example, the element data corresponding to different scales is different. By matching the corresponding preset element template based on the target storage type, different preset element templates can be set for different storage scenarios, so as to meet the requirements of different storage scenarios and achieve diversified storage of geological spatial data.

[0115] Optionally, when there are multiple target storage types, the element data is determined based on the feature class information and the preset element templates corresponding to each target storage type respectively.

[0116] Step 104, store the formatted element data.

[0117] Optionally, storing the formatted element data includes: storing the formatted data in the geological spatial database management system.

[0118] In one example, the geological spatial database management system is implemented based on the PostgreSQL database management system.

[0119] Optionally, the geological spatial database management system can be stored in an electronic device, or it can also be stored in other devices, such as: stored in a server. When the geological spatial data management system is stored in other devices, the electronic device is communicatively connected to the other devices.

[0120] In one example, storing the formatted element data includes: creating a sub-database in the target database; storing the formatted element data in the sub-database.

[0121] Among them, the sub-database is a virtual database established in the target database, and only by establishing a connection with the target database can the target database and all sub-databases of the target database be accessed.

[0122] Optionally, creating a sub-database in the target database includes: creating a sub-database in the target database managed by the geological spatial database management system.

[0123] Optionally, the target database can also be a sub-database. At this time, the databases can be stored in a multi-level nested manner.

[0124] Since the sub-database is constructed in the target database, it is beneficial to store geological spatial data of the same nature in the same physical database, thereby improving the speed of data query.

[0125] In addition, since the sub-database can be accessed by establishing a connection with the target database, the number of database connections can be reduced and the efficiency of database switching can be accelerated.

[0126] Optionally, before creating a sub-database in the target database, it further includes: determining the data type corresponding to the geological spatial data; determining the target database based on the data type.

[0127] Among them, the data type can be divided based on the fault information of the geological spatial data, or it can also be divided based on the content of the geological spatial data, such as: mineral type, road type, etc. This embodiment does not limit the division method of the data type.

[0128] Optionally, store the format element data corresponding to the same geological spatial element in the same database or the same sub-database.

[0129] In another example, storing the format element data includes: creating a target database; storing the format element data in the target database, and storing the target database.

[0130] Optionally, creating a target database includes: creating a target database in the geological spatial database management system.

[0131] Optionally, before storing the format element data, it further includes: adding a model record corresponding to the format element data in the model list, where the model record includes information such as model number and model identifier (such as: model name, model code, etc.), remarks, etc.; determining the model identifier in the model record corresponding to the format element data as the model identifier in the format element data. In this way, the association between the format element data and the model can be established.

[0132] Among them, the model number is automatically generated by the electronic device; the model identifier can be determined based on the element information, or it can also be automatically generated. This embodiment does not limit this; the remarks can be input during the model generation process, or they can also be determined based on the model information.

[0133] In this embodiment, the model list is stored in the geological spatial database management system for maintaining the model information stored in the geological spatial database management system.

[0134] In one example, the format element data includes a topology relation table. At this time, determining the model identifier in the model record corresponding to the format element data as the model identifier of the format element data includes: determining the model identifier corresponding to the format element data as the content of the model identifier field in the topology relation table.

[0135] The implementation principle of a geological spatial data storage method provided by an embodiment of the present application is as follows: Obtain geological spatial data; parse the geological spatial data to obtain element information; determine formatted element data based on the element information and a preset element template; store the formatted element data; this can solve the problem that it is difficult to uniformly store geological spatial data in different formats. Since the geological spatial data is parsed to obtain element information and formatted element data is generated based on the preset element template, geological spatial data can be stored in a unified format, thus facilitating the unified storage of geological spatial data in different formats.

[0136] In addition, since various types of geological spatial data are stored in a unified logical and physical structure, it is convenient to manage geological spatial data using a unified management method, thereby solving the problem that it is difficult to uniformly manage geological spatial data in different formats.

[0137] An embodiment of the present application also discloses a geological spatial data storage system. Refer to Figure 2 , the geological spatial data management system includes: a data acquisition module 210, a data parsing module 220, an element generation module 230, and a data storage module 240;

[0138] The data acquisition module 210 is used to acquire geological spatial data;

[0139] The data parsing module 220 is used to parse the geological spatial data to obtain element information;

[0140] The element generation module 230 is used to determine formatted element data based on the element information and a preset element template;

[0141] The data storage module 240 is used to store the formatted element data.

[0142] For related details, refer to the above method embodiment.

[0143] It should be noted that: when the geological spatial data storage system provided in the above embodiment stores geological spatial data, only the above division of each functional module is used for illustration. In actual application, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the geological spatial data storage system is divided into different functional modules to complete all or part of the functions described above. In addition, the geological spatial data storage system provided in the above embodiment and the method embodiment of the geological spatial data storage belong to the same concept, and the specific implementation process is detailed in the method embodiment and will not be repeated here.

[0144] An embodiment of the present application also provides an electronic device, as Figure 3 shown, Figure 3The electronic device 300 shown includes: a processor 301 and a memory 303. Among them, the processor 301 and the memory 303 are connected, such as connected through a bus 302. Optionally, the electronic device 300 may further include a transceiver 304. It should be noted that in practical applications, the transceiver 304 is not limited to one, and the structure of the electronic device 300 does not constitute a limitation on the embodiments of the present application.

[0145] The processor 301 may be a CPU (Central Processing Unit, central processor), a general-purpose processor, a DSP (Digital Signal Processor, data signal processor), an ASIC (Application Specific Integrated Circuit, application-specific integrated circuit), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute various exemplary logical blocks, modules, and circuits described in connection with the disclosure of the present application. The processor 301 may also be a combination that implements computing functions, such as a combination including one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0146] The bus 302 may include a path for transmitting information between the above components. The bus 302 may be a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus or an EISA (Extended Industry Standard Architecture, extended industry standard architecture) bus, etc. The bus 302 may be divided into an address bus, a data bus, etc. For the sake of representation, Figure 3 only a thick line is used to represent it in the figure, but it does not mean that there is only one bus or one type of bus.

[0147] The memory 303 may be a ROM (Read Only Memory, read-only memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory, random access memory), or other types of dynamic storage devices that can store information and instructions. It may also be an EEPROM (Electrically Erasable Programmable Read Only Memory, electrically erasable programmable read-only memory), a magnetic disk storage medium, or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.

[0148] The memory 303 is used to store the application program code for executing the solution of this application, and is controlled by the processor 301 to execute. The processor 301 is used to execute the application program code stored in the memory 303 to implement the content shown in the foregoing method embodiments.

[0149] Among them, the electronic device includes but is not limited to: mobile terminals such as mobile phones, laptop computers, PDAs (Personal Digital Assistants), PADs (Tablet Computers), etc. and fixed terminals such as digital TVs, desktop computers, etc. It can also be a server, etc. Figure 3 The electronic device shown is only an example and should not impose any restrictions on the functions and usage scope of the embodiments of this application.

[0150] The embodiments of this application also provide a computer-readable storage medium, on which a computer program is stored. When the computer program is executed on a computer, the computer is made to execute the geological space data storage method provided in the foregoing embodiments.

[0151] It should be understood that although the steps in the flowchart of the accompanying drawings are shown in sequence according to the indication of the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps has no strict order limit and can be executed in other orders.

[0152] The above are all the preferred embodiments of this application. Without restricting the protection scope of this application accordingly, any feature disclosed in this specification (including the abstract and the drawings), unless specifically described, can be replaced by other equivalent or similar-purpose alternative features. That is, unless specifically described, each feature is only an example in a series of equivalent or similar features.

Claims

1. A method for storing geological spatial data, characterized in that: The method comprises: Acquiring geological spatial data, wherein the geological spatial data includes geological spatial instance data created based on different geographic information system platforms; Determine a target parsing method based on a data format or data parameter of the geological spatial data, wherein the data format is used to indicate a data organization method of the geological spatial data, and the data parameter includes at least one of a data type, a zoom ratio, and precision information of the geological spatial data, and the data type is based on fault information or content division of the geological spatial data; Parsing the geological space data based on the target parsing method to obtain element information, the element information includes model information of the geological space logical model to which the geological space data belongs, element class information in the geological space data, attribute item information of the element class and topological relationship information of the element class, and one element class is a layer in the geological space data; Determining a target storage type of the geospatial data based on the data properties, scale and / or accuracy of the geospatial data; The format element data is determined based on the element information and a preset element template corresponding to the target storage type, wherein the preset element template is constructed based on a logical storage model of geological spatial data, and the element template is represented in the form of a table, and the fields in the table match the content of the element information; the element template includes an element class table template, an attribute item table template, and a topological relationship table template, and the attribute item table is associated with the element class table, and the topological relationship table is associated with the element class table through a element class identification field; Storing the format element data; The determining of the format element data based on the element information and a preset element template corresponding to the target storage type includes: Generate a feature class table based on the feature class information and the feature class table template, wherein the fields in the feature class table template match the content of the feature class information; generating an attribute item table based on the attribute item information and an attribute item table template, wherein the fields in the attribute item table template match the content of the attribute item information; Generate a topology relationship table based on the topology relationship information and the topology relationship template, wherein the fields in the topology relationship table template match the content of the topology relationship information; The storing of the format element data comprises: Adding a model identifier corresponding to the format element data in the model list, and determining the model identifier as the content of the model identifier field in the topological relationship table; A sub-database is established in a target database corresponding to the data type of the geological spatial data, and the format element data is stored in the sub-database; the target database is a database established in a geological spatial data management system, and the sub-database is a virtual database established in the target database. The target database and all sub-databases of the target database can be accessed by only establishing a connection with the target database.

2. An electronic device, characterized in that: The electronic device includes: at least one processor; Memory; At least one application, wherein the at least one application is stored in a memory and configured to be executed by at least one processor, and the at least one application is configured to: execute the geological spatial data storage method according to claim 1.

3. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed in a computer, the computer is caused to execute the geological spatial data storage method according to claim 1.

Citation Information

Patent Citations

  • Spatial data processing method and device, electronic equipment and medium

    CN115905441A

  • Construction method of space environment entity data file, electronic equipment and storage medium

    CN117251410A

Cited By

  • Geological big data storage structure construction method and storage system

    CN122152813A