OGC service publishing method based on desktop geographic information system and related device
By slicing and data processing of geological maps and combining with the ubiquitous geographic big data storage model, the OGC service release function of the open source desktop geographic information system is realized, solving the complex and time-consuming problem of OGC service release in the existing technology, and significantly improving the release efficiency.
Patent Information
- Application Number
- CN202510237755.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-28
- Publication Date
- 2025-06-20
AI Technical Summary
The existing open source desktop geographic information system does not have the function of OGC service release, and the OGC service release process of commercial geographic information systems is complex, time-consuming, inefficient, and is a foreign closed source system.
It provides an OGC service release method based on desktop geographic information system. By slicing geological maps, converting slice files into binary code streams using simple feature model data processing tools, and storing them in the format of the ubiquitous geographic big data storage model, generating OGC service access address to realize OGC service release.
The open source desktop geographic information system has the function of OGC service release, which significantly improves the efficiency of OGC service release, simplifies the release process, and reduces time-consuming.
Smart Images

Figure CN120179745A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of OGC service publishing, and in particular to an OGC service publishing method and related devices based on a desktop geographic information system. Background Art
[0002] The standard of OGC (Open Geospatial Consortium) services defines a series of interfaces and protocols, such as WMS (Web Map Service), WFS (Web Feature Service), and WCS (Web Coverage Service), etc. These standards enable seamless sharing and integration of geospatial data between different GIS (Geographic Information System) software.
[0003] The desktop geographic information system is a desktop application form in GIS software, which integrates spatial graphics processing, relational database management, statistical graphics display, spatial analysis functions, network communication capabilities, and object-oriented programming techniques. This desktop geographic information system provides users with convenient and powerful geographic information processing capabilities through an intuitive graphical user interface (GUI). If a GIS software has the OGC service publishing function, it means that the GIS software can provide data services according to these standards, so as to interact with other systems or applications that follow the same standards. However, currently, existing open-source desktop geographic information systems (open source code, anyone can view, modify, and use) do not have the OGC service publishing function, while existing commercial geographic information systems, although having the OGC service publishing function, have a complex OGC service publishing process, resulting in a long time-consuming and low-efficiency OGC service publishing, and they are foreign commercial closed-source (the developer has complete control over the software, and users cannot directly access and modify the source code). Summary of the Invention
[0004] The purpose of this application is to provide an OGC service publishing method and related devices based on a desktop geographic information system, which can enable an open-source desktop geographic information system to have the OGC service publishing function and have extremely high publishing efficiency.
[0005] To achieve the above purpose, this application provides the following solutions:
[0006] In the first aspect, this application provides an OGC service publishing method based on a desktop geographic information system. The OGC service publishing method based on a desktop geographic information system includes:
[0007] Slice the geological map to obtain slice files, and record the zoom level and row and column numbers corresponding to the slice files;
[0008] Process the slice files using a simple feature model data processing tool to generate database operation commands; the database operation commands include the binary code stream obtained by converting the slice files;
[0009] According to the format of the ubiquitous geoscience big data storage model, create forests, trees, and branches according to user requirements, calculate the coordinate range of the slice files based on the zoom level and row and column numbers corresponding to the slice files, extract the binary code stream corresponding to the slice files from the database operation commands, and store the binary code stream and the coordinate range in the leaves to store the slice files in the ubiquitous geoscience big data storage model database; wherein, the forest includes the trees, the trees include the branches, and the branches include the leaves; the ubiquitous geoscience big data storage model database adopts the ubiquitous geoscience big data storage model;
[0010] Generate an OGC service access address according to the storage location of the slice files in the ubiquitous geoscience big data storage model database, so as to complete OGC service publishing using an open-source desktop geographic information system.
[0011] Optionally, before slicing the geological map to obtain slice files, the OGC service publishing method based on a desktop geographic information system further includes: producing a geological map, specifically including: drawing a map, adding stratigraphic stripes, borehole positions, and terrain changes to the map, setting colors, symbols, and line types on the map to represent different geological bodies, and adding a legend and labels to the map to produce a geological map.
[0012] Optionally, slicing the geological map to obtain slice files specifically includes: presetting slice parameters, and slicing the geological map based on the slice parameters to obtain slice files; wherein, the slice parameters include resolution, zoom level, and slice direction.
[0013] Optionally, after generating the database operation commands, the OGC service publishing method based on a desktop geographic information system further includes: executing the database operation commands to create tables, insert data, and create indexes in a simple feature model database, so as to store the binary code stream corresponding to the slice files in the simple feature model database; wherein, the simple feature model database adopts a simple feature model.
[0014] Optionally, when there are multiple slice files, each slice file corresponds to a leaf of the branch. At this time, storing the binary code stream and the coordinate range in the leaf specifically includes: storing the binary code stream and the coordinate range of the slice file in the leaf corresponding to the slice file.
[0015] Optionally, an OGC service access address is generated according to the storage location of the slice file in the ubiquitous geoscience big data storage model database, specifically including:
[0016] An OGC service access address is generated according to the network address of the ubiquitous geoscience big data storage model database and the storage location of the slice file in the ubiquitous geoscience big data storage model database.
[0017] In a second aspect, the present application provides an OGC service publishing device based on a desktop geographic information system. The OGC service publishing device based on a desktop geographic information system includes:
[0018] A slicing module, configured to slice a geological map to obtain slice files, and record the zoom level and row and column numbers corresponding to the slice files;
[0019] A first conversion module, configured to process the slice file by using a simple feature model data processing tool to generate a database operation command; the database operation command includes the binary code stream obtained by converting the slice file;
[0020] A second conversion module, configured to create a forest, a tree, and a branch according to the user's needs in the format of the ubiquitous geoscience big data storage model, calculate the coordinate range of the slice file according to the zoom level and row and column numbers corresponding to the slice file, extract the binary code stream corresponding to the slice file from the database operation command, and store the binary code stream and the coordinate range in the leaf to store the slice file in the ubiquitous geoscience big data storage model database; wherein, the forest includes the tree, the tree includes the branch, and the branch includes the leaf; the ubiquitous geoscience big data storage model database adopts the ubiquitous geoscience big data storage model;
[0021] A publishing module, configured to generate an OGC service access address according to the storage location of the slice file in the ubiquitous geoscience big data storage model database, so as to complete the OGC service publishing by using an open-source desktop geographic information system.
[0022] In a third aspect, the present application provides a computer device, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the above-mentioned OGC service publishing method based on a desktop geographic information system.
[0023] In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the above-mentioned OGC service publishing method based on a desktop geographic information system.
[0024] In a fifth aspect, the present application provides a computer program product, including a computer program, and when the computer program is executed by a processor, it implements the above-mentioned OGC service publishing method based on a desktop geographic information system.
[0025] According to the specific embodiments provided by the present application, the present application has the following technical effects:
[0026] The present application provides an OGC service publishing method and related devices based on a desktop geographic information system. The geological map is sliced using an open-source desktop geographic information system to obtain sliced files, and the corresponding zoom levels and row-column numbers of the sliced files are recorded. The sliced files are converted into binary code streams using a simple feature model data processing tool. According to the format of the ubiquitous geoscience big data storage model, forests, trees, and branches are created according to user requirements, and the coordinate ranges of the sliced files are calculated based on the corresponding zoom levels and row-column numbers of the sliced files. The binary code streams and coordinate ranges are stored in the leaves to store the sliced files in the ubiquitous geoscience big data storage model database. According to the storage locations of the sliced files in the ubiquitous geoscience big data storage model database, OGC service access addresses are generated to complete the OGC service publishing using the open-source desktop geographic information system, so that the open-source desktop geographic information system can have the OGC service publishing function, and due to the introduction of the highly efficient ubiquitous geoscience big data storage model, the OGC service publishing efficiency is significantly improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required to be used in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0028] Figure 1 It is an application environment diagram of an OGC service publishing method based on a desktop geographic information system provided in Embodiment 1 of the present application.
[0029] Figure 2It is a schematic flowchart of a method for publishing OGC services based on a desktop geographic information system provided in Embodiment 1 of this application.
[0030] Figure 3 It is a schematic diagram of functional modules of a device for publishing OGC services based on a desktop geographic information system provided in Embodiment 2 of this application.
[0031] Figure 4 It is a schematic diagram of the structure of a computer device provided in Embodiment 3 of this application. Detailed implementation manners
[0032] Next, the technical solutions in the embodiments of this application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of this application.
[0033] Embodiment 1
[0034] The method for publishing OGC services based on a desktop geographic information system provided in the embodiments of this application can be applied to an application environment as Figure 1 shown. Among them, the terminal communicates with the server through a network. The data storage system can store the data that the server needs to process. The data storage system can be set separately, integrated on the server, placed in the cloud or on other servers. The terminal can send a to-be-processed OGC service publishing request to the server. After receiving the to-be-processed OGC service publishing request, for the to-be-processed OGC service publishing request, the server slices the geological map to obtain slice files, and records the zoom levels and row-column numbers corresponding to the slice files; uses a simple feature model data processing tool to process the slice files to generate database operation commands, and the database operation commands include the binary code stream obtained by converting the slice files; according to the format of the ubiquitous geoscience big data storage model, create forests, trees, and branches according to user needs, calculate the coordinate range of the slice files according to the zoom levels and row-column numbers corresponding to the slice files, extract the binary code stream corresponding to the slice files from the database operation commands, and store the binary code stream and the coordinate range in the leaves to store the slice files in the ubiquitous geoscience big data storage model database; generate an OGC service access address according to the storage location of the slice files in the ubiquitous geoscience big data storage model database to complete the OGC service publishing by using an open-source desktop geographic information system. The server can feedback the obtained OGC service access address for the OGC service publishing request to the terminal.
[0035] In addition, in some embodiments, the OGC service publishing method based on the desktop geographic information system can also be implemented separately by a server or a terminal. For example, the terminal can directly process the OGC service publishing request to be processed, or the server can obtain the OGC service publishing request to be processed from the data storage system and process the OGC service publishing request to be processed.
[0036] Among them, the terminal can be, but is not limited to, various desktop computers, laptop computers, smart phones, tablet computers, Internet of Things devices, and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc., and the portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server can be implemented by an independent server or a server cluster composed of multiple servers, and can also be a cloud server.
[0037] In an exemplary embodiment, as Figure 2 shown, an OGC service publishing method based on the desktop geographic information system is provided. This method is executed by a computer device, and can specifically be executed separately by a computer device such as a terminal or a server, or can be jointly executed by a terminal and a server. In the embodiments of the present application, taking this method applied to Figure 1 the server as an example for illustration, the method includes the following steps.
[0038] Step S1: Slice the geological map to obtain slice files, and record the zoom level and row and column numbers corresponding to the slice files.
[0039] Step S2: Use a simple feature model data processing tool to process the slice files to generate database operation commands; the database operation commands include the binary code stream obtained by converting the slice files.
[0040] Step S3: According to the format of the ubiquitous geoscience big data storage model, create forests, trees, and branches according to user needs, calculate the coordinate range of the slice files according to the zoom level and row and column numbers corresponding to the slice files, extract the binary code stream corresponding to the slice files from the database operation commands, and store the binary code stream and the coordinate range in the leaves to store the slice files in the ubiquitous geoscience big data storage model database; wherein, the forest includes the trees, the trees include the branches, and the branches include the leaves; the ubiquitous geoscience big data storage model database adopts the ubiquitous geoscience big data storage model.
[0041] Step S4: Generate an OGC service access address according to the storage location of the slice files in the ubiquitous geoscience big data storage model database to complete the OGC service publishing using an open-source desktop geographic information system.
[0042] Implementing the above steps S1 to S4, in this embodiment, an open-source desktop geographic information system is used to slice geological maps to obtain slice files, and the corresponding zoom levels and row-column numbers of the slice files are recorded. The slice files are converted into binary code streams by using a simple feature model data processing tool. According to the format of the ubiquitous geoscience big data storage model, forests, trees, and branches are created according to user requirements, and the coordinate ranges of the slice files are calculated based on the corresponding zoom levels and row-column numbers of the slice files. The binary code streams and coordinate ranges are stored in the leaves to store the slice files in the ubiquitous geoscience big data storage model database. According to the storage locations of the slice files in the ubiquitous geoscience big data storage model database, OGC service access addresses are generated to complete the OGC service publishing by using the open-source desktop geographic information system. Thus, the open-source desktop geographic information system can have the OGC service publishing function, and the ubiquitous geoscience big data storage model is introduced in the OGC service publishing process, which can provide a high-performance OGC service with a millisecond-level response for tens of billions of data. Therefore, compared with the OGC service publishing process of existing commercial geographic information systems, the OGC service publishing process of this embodiment is simple, takes less time to publish, and has high publishing efficiency.
[0043] Since the model used in the OGC service publishing process of existing commercial geographic information systems has low efficiency, resulting in a complex publishing process, long publishing time, and low publishing efficiency, this application introduces a highly efficient ubiquitous geoscience big data storage model. Also, considering the lack of tools for directly converting slice files into the required format of the ubiquitous geoscience big data storage model, this application further introduces a simple feature model. First, the existing simple feature model data processing tool is used to convert the slice files into binary code streams, and then the binary code streams are converted into the required format of the ubiquitous geoscience big data storage model, so that the conversion process can be completed by using existing tools, greatly reducing the development complexity.
[0044] The interoperability between the simple feature model and the ubiquitous geoscience big data storage model is driven as follows: The simple feature model is a conceptual model based on the abstraction of structured data. The geometric information and attribute information of each feature are completely stored in a record, which has the advantages of simple data structure, stability, scalability, and strong interoperability. Currently, mainstream geographic information systems all adopt the simple feature model to store geospatial data. The ubiquitous geoscience big data storage model (GeositeServer) is different from traditional relational spatial databases. It takes the natural tree growth law as the generalization abstraction model and abstracts data into four structures: forest, tree, branch, and leaf to provide high-performance OGC services with millisecond-level response for tens of billions of data. The difference in data storage models causes other software to be unable to directly read the data stored in the ubiquitous geoscience big data storage model database, forming a data exchange barrier. Data exchange relies on external data formats such as shapefile and Geojson, which limits the popularization and application of the high-performance OGC services of the ubiquitous geoscience big data storage model. This embodiment designs a data format interoperability drive, which realizes the two-way mapping drive between the ubiquitous geoscience big data storage model and the simple feature model at the database level, achieving seamless conversion of data formats at the database level without relying on external data formats or middleware assistance, completely eliminating the technical barriers existing in the data exchange process, and realizing the efficient interconnection, interoperability, and interaction between the data of the ubiquitous geoscience big data storage model and the simple feature model data.
[0045] Based on this, this embodiment provides an OGC service publishing method based on an open-source desktop geographic information system. The OGC service publishing process is as follows:
[0046] (1) Geological map production
[0047] Use the open-source desktop geographic information system to draw a map, add details such as stratigraphic stripes, borehole positions, and terrain changes on the map, set colors, symbols, and line types to represent different geological bodies, and add legends, labels, etc.
[0048] At this time, in this embodiment, before slicing the geological map to obtain slice files, the OGC service publishing method based on the desktop geographic information system in this embodiment further includes: producing a geological map, specifically including: drawing a map, adding stratigraphic stripes, borehole positions, and terrain changes on the map, setting colors, symbols, and line types on the map to represent different geological bodies, and adding legends and labels on the map to produce the geological map.
[0049] (2) Geological map slicing
[0050] The slicing of geological maps is to pre - cut geological maps into small pictures according to different scales and regions and save them on the server. When a user accesses a geological map, the slices of the required area can be directly returned without generating the entire geological map in real - time, thus greatly shortening the loading time. The slicing process is an existing process. This slicing process requires setting slicing parameters, such as the resolution of the slice, the zoom level, the slicing direction, etc. Since it is possible to select a partial area of the geological map for slicing, after selecting the slicing area, the slicing operation is performed based on the slicing parameters.
[0051] In this embodiment, the slicing process can be as follows: When the geological map is sliced for the first time, the geological map is evenly divided into two slices. At this time, the zoom level is 1. When the geological map is sliced for the second time, the two slices obtained from the first slicing are each evenly divided into four slices, resulting in 8 slices. At this time, the zoom level is 2, and so on. After the slicing is completed, the row and column numbers to which the slices belong are recorded. For example, among the two slices obtained from the first slicing, the row and column numbers of the left slice are (0, 0), and the row and column numbers of the right slice are (0, 1).
[0052] At this time, in this embodiment, the geological map is sliced to obtain slice files, and the zoom level and row and column numbers corresponding to the slice files are recorded.
[0053] Among them, slicing the geological map to obtain slice files specifically includes: presetting slicing parameters and slicing the geological map based on the slicing parameters to obtain slice files. The slicing parameters include resolution, zoom level, and slicing direction.
[0054] (3) Processing of slice files
[0055] After reading each slice file obtained, the slice file at this time is a raster file. Using a simple feature model data processing tool, the spatial reference system information of the slice file (used to determine the coordinates of each position point in the slice file), the zoom level, the row and column numbers, and the content of the slice file are converted into a binary code stream, and corresponding SQL statements (i.e., database operation commands) are generated. This database operation command is used to create a table, insert data (i.e., insert the binary code stream into the table), and create an index (i.e., record the storage address of the binary code stream for subsequent reading of the binary code stream) in a simple feature model database to store the binary code stream in the simple feature model database, that is, to store the slice file in the simple feature model database.
[0056] At this time, in this embodiment, the simple feature model data processing tool is used to process the slice file to generate a database operation command. The database operation command includes the binary code stream obtained by converting the slice file, specifically converting the spatial reference system information, zoom level, row and column numbers, and the content of the slice file into a binary code stream.
[0057] Optionally, after generating the database operation command, the OGC service publishing method based on the desktop geographic information system in this embodiment further includes: executing the database operation command, creating tables, inserting data, and creating indexes in the simple feature model database, and storing the binary code stream corresponding to the slice file in the simple feature model database, so as to store the slice file in the simple feature model database. Among them, the simple feature model database adopts the simple feature model.
[0058] (4) Data model conversion
[0059] At the database level, driven by the interoperability between the simple feature model and the generalized geoscience big data storage model, the write operation on the simple feature model is converted into an efficient write operation on the generalized geoscience big data storage model. Specifically, first create a generalized geoscience big data storage structure according to the user's needs at the levels of forest, tree, and branch, and then calculate the coordinate range of the slice file according to the zoom level and row and column numbers of the slice file. For the x coordinate, first map the longitude range from -180 to 180 degrees to the interval from 0 to 1, then perform a power-of-2 magnification according to the zoom level, and finally round down to obtain the x coordinate. For the y coordinate, first map the latitude range from -90 to 90 degrees to the interval from 0 to 1, then perform a power-of-2 magnification according to the zoom level, and finally round down to obtain the y coordinate. Write the calculated coordinate range of the slice file and the binary code stream of the slice file into the leaves at the end of the created generalized geoscience big data storage structure one by one to complete the storage and publishing of the map data.
[0060] In this embodiment, the forest can be a cluster of multiple projects, the tree can refer to a project, the branch can refer to a layer, and the leaves are used to store the slice files.
[0061] At this time, in this embodiment, according to the format of the generalized geoscience big data storage model, create a forest, trees, and branches according to the user's needs, that is, create the subordinate relationship and names of the forest, trees, and branches. The forest includes trees, the trees include branches, and the branches include leaves, and calculate the coordinate range of the slice file according to the zoom level and row and column numbers corresponding to the slice file, extract the binary code stream corresponding to the slice file from the database operation command, and store the binary code stream and the coordinate range in the leaves to store the slice file in the generalized geoscience big data storage model database. Among them, the generalized geoscience big data storage model database adopts the generalized geoscience big data storage model.
[0062] When there are multiple slice files, each slice file corresponds to a leaf of a branch. At this time, storing the binary code stream and the coordinate range in the leaves specifically includes: storing the binary code stream and the coordinate range of the slice file in the leaf corresponding to the slice file, and storing the binary code streams and coordinate ranges of different slice files in different leaves.
[0063] (5) Access address generation
[0064] Generate an OGC service access address according to the network address (including IP address, port number, etc.) of the ubiquitous geoscience big data storage model database and the storage location of the slice file in the ubiquitous geoscience big data storage model database. Users can access the slice file through this OGC service access address, thereby realizing the OGC service publishing based on the open-source desktop geographic information system.
[0065] At this time, in this embodiment, an OGC service access address is generated according to the storage location of the slice file in the ubiquitous geoscience big data storage model database to complete the OGC service publishing using the open-source desktop geographic information system.
[0066] Among them, generating an OGC service access address according to the storage location of the slice file in the ubiquitous geoscience big data storage model database specifically includes: generating an OGC service access address according to the network address of the ubiquitous geoscience big data storage model database and the storage location of the slice file in the ubiquitous geoscience big data storage model database.
[0067] This embodiment realizes the efficient publishing of geological maps as WMTS services in the open-source GIS system, solving the long-term technical gap in the industry. Through this embodiment, users of the geographic information system can innovatively realize the one-click publishing of geological maps as OGC services in the open-source GIS system. After the OGC service is successfully published, users can use the access link (i.e., the OGC service access address) to directly access the published OGC service through the network and quickly obtain the required geospatial data and geological maps. This instant data access method greatly improves the work efficiency and experience of users. Compared with the existing OGC service publishing technology, this embodiment does not require the assistance of external data formats or middleware, realizes seamless conversion of data formats at the database level, and cooperates with the ultra-high efficiency of the ubiquitous geoscience big data storage model for storage and publishing and sub-second response for tens of billions of data. The OGC service publishing speed of this embodiment is far superior to the existing technology, and the efficiency is significantly improved.
[0068] This application also provides an application scenario that applies the above OGC service publishing method based on the desktop geographic information system. Specifically, the OGC service publishing method based on the desktop geographic information system provided in this embodiment can be applied in the OGC service access scenario. The OGC service access scenario includes an OGC service publishing link and an access link. The OGC service publishing link is used to generate an OGC service access address, and the access link is used to enable users to access data through the OGC service access address. The OGC service publishing method based on the desktop geographic information system provided in this embodiment belongs to the OGC service publishing link.
[0069] Example 2
[0070] Based on the same inventive concept, an embodiment of the present application further provides a desktop geographic information system-based OGC service publishing device for implementing the above-mentioned desktop geographic information system-based OGC service publishing method. The solution provided by this device for solving problems is similar to the solution described in the above method. Therefore, the specific limitations in one or more of the following desktop geographic information system-based OGC service publishing device embodiments can refer to the limitations on the desktop geographic information system-based OGC service publishing method in the above text, and will not be repeated here.
[0071] In an exemplary embodiment, as Figure 3 shown, a desktop geographic information system-based OGC service publishing device is provided. The desktop geographic information system-based OGC service publishing device includes:
[0072] A slicing module M1 for slicing geological maps to obtain sliced files and recording the zoom levels and row-column numbers corresponding to the sliced files.
[0073] A first conversion module M2 for processing the sliced files using a simple feature model data processing tool to generate database operation commands; the database operation commands include the binary code stream obtained by converting the sliced files.
[0074] A second conversion module M3 for creating forests, trees, and branches according to user requirements in the format of a ubiquitous geoscience big data storage model, calculating the coordinate range of the sliced files according to the zoom levels and row-column numbers corresponding to the sliced files, extracting the binary code stream corresponding to the sliced files from the database operation commands, and storing the binary code stream and the coordinate range in the leaves to store the sliced files in a ubiquitous geoscience big data storage model database; wherein, the forest includes the trees, the trees include the branches, and the branches include the leaves; the ubiquitous geoscience big data storage model database adopts the ubiquitous geoscience big data storage model.
[0075] A publishing module M4 for generating an OGC service access address according to the storage location of the sliced files in the ubiquitous geoscience big data storage model database to complete OGC service publishing using an open-source desktop geographic information system.
[0076] Example 3
[0077] In an exemplary embodiment, a computer device is provided. The computer device can be a server or a terminal, and its internal structure diagram can be as Figure 4As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O), and a communication interface. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals through a network connection. When the computer program is executed by the processor, it implements an OGC service publishing method based on a desktop geographic information system.
[0078] Those skilled in the art can understand that Figure 4 the structure shown in is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0079] In an exemplary embodiment, a computer device is provided, including a memory and a processor. A computer program is stored in the memory. When the processor executes the computer program, it implements the OGC service publishing method based on the desktop geographic information system in Embodiment 1.
[0080] Embodiment 4
[0081] In an exemplary embodiment, a computer-readable storage medium is provided, storing a computer program. When the computer program is executed by the processor, it implements the OGC service publishing method based on the desktop geographic information system in Embodiment 1.
[0082] Embodiment 5
[0083] In an exemplary embodiment, a computer program product is provided, including a computer program. When the computer program is executed by the processor, it implements the OGC service publishing method based on the desktop geographic information system in Embodiment 1.
[0084] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with relevant regulations.
[0085] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope recorded in this specification.
[0086] Specific examples are used in this article to elaborate on the principles and implementation manners of the present application. The descriptions of the above embodiments are only used to help understand the method and its core idea of the present application; at the same time, for those of ordinary skill in the art, according to the idea of the present application, there will be changes in the specific implementation manners and application scopes. In summary, the content of this specification should not be construed as a limitation to the present application.
Claims
1. A method for publishing OGC services based on a desktop geographic information system, characterized in that: The OGC service publishing method based on the desktop geographic information system includes: Slicing the geological map to obtain a slice file, and recording the zoom level and row and column number corresponding to the slice file; The slice file is processed by using a simple element model data processing tool to generate a database operation command; the database operation command includes a binary code stream obtained by converting the slice file; According to the format of the ubiquitous chemical geoscience big data storage model, a forest, a tree and a branch are created according to user needs, and the coordinate range of the slice file is calculated according to the zoom level and the row and column number corresponding to the slice file, and the binary code stream corresponding to the slice file is extracted from the database operation command, and the binary code stream and the coordinate range are stored in the leaves, so as to store the slice file in the ubiquitous chemical geoscience big data storage model database; wherein the forest includes the tree, the tree includes the branch, and the branch includes the leaf; the ubiquitous chemical geoscience big data storage model database adopts the ubiquitous chemical geoscience big data storage model; According to the storage location of the slice file in the ubiquitous geoscience big data storage model database, an OGC service access address is generated to complete the OGC service release using an open source desktop geographic information system.
2. The OGC service publishing method based on desktop geographic information system according to claim 1, characterized in that: Before slicing the geological map to obtain the slice file, the OGC service publishing method based on the desktop geographic information system also includes: making a geological map, specifically including: drawing a map, adding stratigraphic stripes, drilling locations and terrain changes on the map, setting colors, symbols and line types for representing different geological bodies on the map, and adding legends and labels on the map to make a geological map.
3. The OGC service publishing method based on desktop geographic information system according to claim 1, characterized in that: Slicing a geological map to obtain a slice file specifically includes: presetting slice parameters, and slicing the geological map based on the slice parameters to obtain a slice file; wherein the slice parameters include resolution, zoom level and slice direction.
4. The OGC service publishing method based on desktop geographic information system according to claim 1, characterized in that: After generating the database operation command, the OGC service publishing method based on the desktop geographic information system also includes: executing the database operation command, creating a table, inserting data and creating an index in a simple feature model database to store the binary code stream corresponding to the slice file in the simple feature model database; wherein the simple feature model database adopts a simple feature model.
5. The OGC service publishing method based on desktop geographic information system according to claim 1, characterized in that: When there are multiple slice files, each slice file corresponds to a leaf of the branch. At this time, the binary code stream and the coordinate range are stored in the leaf, which specifically includes: storing the binary code stream and the coordinate range of the slice file in the leaf corresponding to the slice file.
6. The OGC service publishing method based on desktop geographic information system according to claim 1, characterized in that: Generate an OGC service access address according to the storage location of the slice file in the ubiquitous geoscience big data storage model database, specifically including: An OGC service access address is generated according to the network address of the ubiquitous geoscience big data storage model database and the storage location of the slice file in the ubiquitous geoscience big data storage model database.
7. An OGC service publishing device based on a desktop geographic information system, characterized in that: The OGC service publishing device based on the desktop geographic information system includes: The slicing module is used to slice the geological map to obtain a slice file and record the zoom level and row and column number corresponding to the slice file; A first conversion module is used to process the slice file using a simple element model data processing tool to generate a database operation command; the database operation command includes a binary code stream obtained by converting the slice file; The second conversion module is used to create a forest, a tree and a branch according to the format of the ubiquitous chemical geoscience big data storage model and user requirements, and calculate the coordinate range of the slice file according to the zoom level and the row and column number corresponding to the slice file, extract the binary code stream corresponding to the slice file from the database operation command, and store the binary code stream and the coordinate range in the leaves to store the slice file in the ubiquitous chemical geoscience big data storage model database; wherein the forest includes the tree, the tree includes the branch, and the branch includes the leaf; the ubiquitous chemical geoscience big data storage model database adopts the ubiquitous chemical geoscience big data storage model; The publishing module is used to generate an OGC service access address according to the storage location of the slice file in the ubiquitous geoscience big data storage model database, so as to complete the OGC service publishing by using an open source desktop geographic information system.
8. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the OGC service publishing method based on a desktop geographic information system as described in any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the OGC service publishing method based on a desktop geographic information system described in any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the OGC service publishing method based on a desktop geographic information system described in any one of claims 1 to 6 is implemented.