Disclosure of Invention
The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
The present disclosure provides a digital integration method and apparatus, which can combine a digital map and three-dimensional model data to form a stereoscopic visualization environment system.
The present disclosure provides a digital integration method, comprising:
dividing grid units according to a digital map; wherein the digital map is constructed based on a geographic information system;
obtaining an MD5 code for verifying the uniqueness of the content of each three-dimensional model through a preset algorithm, and generating a corresponding unique identification code after the uniqueness of each three-dimensional model is determined to obtain the unique identification code of each three-dimensional model file corresponding to the three-dimensional model;
establishing an association relationship between grid cells in the digital map and the unique identification code of each three-dimensional model file, wherein one or more grid cells correspond to one three-dimensional model file;
and when the digital map is enlarged to a preset level, switching the grid units in a preset area in the display interface into the corresponding three-dimensional model files according to the established association relationship.
In an exemplary embodiment, each grid cell is assigned a unique attribute value, and the attribute value is used for representing the geographic entity corresponding to the grid cell.
In one exemplary embodiment of the present invention,
the grid unit is represented by a global unique identifier which is determined according to the attribute value with uniqueness, which is given to the grid unit;
the three-dimensional model file is represented by a globally unique identification code determined according to the attribute value with uniqueness given to the three-dimensional model.
In one exemplary embodiment of the present invention,
the establishing of the association relationship between the grid unit in the digital map and the unique identification code of each three-dimensional model file comprises the following steps:
the following operations are performed on each grid cell respectively:
searching a three-dimensional model file matched with the geographical position information according to the geographical position information corresponding to the grid unit;
and establishing an association relation between the unique identifier of the grid unit and the unique identifier of the searched three-dimensional model file.
In an exemplary embodiment, when the digital map is zoomed in to a predetermined level, the switching the grid cells in a predetermined area in the display interface to the corresponding three-dimensional model file according to the established association relationship includes:
calling an iframe tag when the digital map is enlarged to a preset level;
taking the unique identifier of the grid unit in a preset area in a display interface and/or the unique identifier of the grid unit as a parameter of the iframe;
and transmitting the iframe parameters to a three-dimensional model page, and analyzing the parameters through the three-dimensional model page to determine a corresponding three-dimensional model file and performing switching display.
The present disclosure also provides a digital integration apparatus, including: a memory and a processor;
the memory is used for storing programs for digital integration;
the processor is used for reading and executing the program for digital integration and executing the following operations:
dividing grid units according to a digital map; wherein the digital map is constructed based on a geographic information system;
obtaining an MD5 code for verifying the uniqueness of the content of each three-dimensional model through a preset algorithm, and generating a corresponding unique identification code after the uniqueness of each three-dimensional model is determined to obtain the unique identification code of each three-dimensional model file corresponding to the three-dimensional model;
establishing an association relationship between grid cells in the digital map and the unique identification code of each three-dimensional model file, wherein one or more grid cells correspond to one three-dimensional model file;
and when the digital map is enlarged to a preset level, switching the grid units in a preset area in the display interface into the corresponding three-dimensional model files according to the established association relationship.
In an exemplary embodiment, each grid cell is assigned a unique attribute value, and the attribute value is used for representing the geographic entity corresponding to the grid cell.
In one exemplary embodiment of the present invention,
the grid unit is represented by a global unique identifier which is determined according to the attribute value with uniqueness, which is given by the grid unit;
the three-dimensional model file is represented by a global unique identification code which is determined according to the attribute value with uniqueness assigned to the three-dimensional model.
In an exemplary embodiment, the associating the grid cells in the digital map with the unique identification code of each three-dimensional model file includes:
the following operations are performed on each grid cell respectively:
searching a three-dimensional model file matched with the geographical position information according to the geographical position information corresponding to the grid unit;
establishing an association between the unique identifier of the grid cell and the unique identification code of the located three-dimensional model file in one exemplary embodiment,
in an exemplary embodiment, when the digital map is zoomed in to a predetermined level, the switching the grid cells in a predetermined area in the display interface to the corresponding three-dimensional model file according to the established association relationship includes:
when the digital map is enlarged to a preset level, calling an iframe label;
taking the unique identifier of the grid unit and/or the unique identifier of the grid unit in a preset area in a display interface as a parameter of an iframe;
and transmitting the iframe parameters to a three-dimensional model page, and analyzing the parameters through the three-dimensional model page to determine a corresponding three-dimensional model file and performing switching display.
The embodiment of the disclosure discloses a digital integration method, which comprises the following steps: dividing grid units according to a digital map; wherein the digital map is constructed based on a geographic information system; obtaining an MD5 code for verifying the uniqueness of the content of each three-dimensional model through a preset algorithm, and generating a corresponding unique identification code after determining the uniqueness of each three-dimensional model to obtain the unique identification code of the three-dimensional model corresponding to each three-dimensional model file; establishing an association relationship between grid cells in the digital map and the unique identification code of each three-dimensional model file, wherein one or more grid cells correspond to one three-dimensional model file; and when the digital map is amplified to a preset level, switching the grid cells in a preset area in the display interface into the corresponding three-dimensional model file according to the established association relation. Through the scheme disclosed by the invention, the digital map and the three-dimensional model data can be combined to form a three-dimensional visual environment system.
Other aspects will be apparent upon reading and understanding the attached drawings and detailed description.
Detailed Description
Hereinafter, embodiments of the present application will be described in detail with reference to the accompanying drawings. It should be noted that the features of the embodiments and examples of the present application may be arbitrarily combined with each other without conflict.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
Fig. 1 is a flowchart of a digital integration method according to an embodiment of the present application, as shown in fig. 1, including steps 100-103:
100. dividing grid units according to a digital map; wherein the digital map is constructed based on a geographic information system;
101. obtaining an MD5 code for checking the uniqueness of the content of each three-dimensional Model through a preset algorithm, and generating a corresponding unique identification code Model GUID after the uniqueness of each three-dimensional Model is determined to obtain a unique identification code Model GUID of each three-dimensional Model file corresponding to the three-dimensional Model;
102. establishing an association relationship between grid units in the digital map and a unique identification code Model GUID of each three-dimensional Model file, wherein one or more grid units correspond to one three-dimensional Model file;
103. and when the digital map is amplified to a preset level, switching the grid cells in a preset area in the display interface into the corresponding three-dimensional model file according to the established association relation.
In step 100, grid cells are divided according to a digital map; wherein the digital map is constructed based on a geographic information system.
In an exemplary embodiment, the digital map is constructed based on a geographic information system, and the construction process may include: and constructing the survey measurement data, the construction data and the satellite image data of the oil field ground into an oil field digital map through a geographic information system. Raster data refers to the division of a space into regular meshes, called raster cells.
In some exemplary embodiments, each grid cell is assigned a unique attribute value, and the attribute value is used for representing the geographic entity corresponding to the grid cell. In the raster data structure shown in fig. 2, a point is represented by one raster cell and a line is represented by an ordered set of interlinked raster cells in which the attribute values of the respective cells are the same. The polygon is composed of a plurality of grid cells connected to each other, and the attribute values of the respective grid cells are the same inside the polygon region and are different from the attribute values of the grid cells outside the polygon region. In the data structure diagram, spatial locations are represented by rows and columns.
In some exemplary embodiments, the grid cell is represented by a globally unique identifier giguid determined according to the assigned attribute value having uniqueness to the grid cell; the three-dimensional Model file is represented by a global unique identification code Model GUID, and the global unique identification code is determined according to the attribute value with uniqueness, which is given to the three-dimensional Model. Wherein the grid cell can be represented by a globally unique identifier GIS GUID; the three-dimensional Model file can be represented by a globally unique identification code Model GUID.
In step 101, an MD5 code for checking the uniqueness of the three-dimensional Model content is obtained through a predetermined algorithm, and after the uniqueness of the three-dimensional Model is determined, a unique identification code Model GUID is generated to obtain a unique Model GUID in the three-dimensional Model corresponding to each three-dimensional Model file. In an exemplary embodiment, the three-dimensional model may be an oilfield three-dimensional model designed by design software such as PDS, SP3D, revit, bentley, CATIA, and the like.
In some exemplary embodiments, the predetermined algorithm may be an MD5 algorithm, and the identification code for checking the uniqueness of the contents of the three-dimensional model is an MD5 code. And after the uniqueness of the three-dimensional Model content is determined, generating a unique Model GUID to obtain the unique Model GUID in the three-dimensional Model corresponding to each three-dimensional Model file. In this embodiment, the MD5 algorithm may be used to remove three-dimensional models with the same Model content, and the check of the MD5 algorithm may be used to obtain a three-dimensional Model with the uniqueness of the three-dimensional Model content, and obtain a unique Model GUID in the three-dimensional Model corresponding to each three-dimensional Model file.
In step 102, an association relationship between the grid cell giguids in the digital map and the unique Model GUIDs of each three-dimensional Model file is established, wherein one or more grid cell giguids correspond to one three-dimensional Model file Model GUID.
In an exemplary embodiment, the association relationship is established in the configuration file based on the GIS GUID of the grid cell and the Model GUID of the three-dimensional Model, and the association relationship may be compiled by a code file as follows:
in some exemplary embodiments, the associating of the grid cell with the unique identification code of each three-dimensional model file comprises: the following operations are performed on each grid cell respectively: searching a three-dimensional model file matched with the geographical position information according to the geographical position information corresponding to the grid unit; and establishing an incidence relation between the GIS GUID of the grid unit and the Model GUID of the searched three-dimensional Model file. Through the GIS GUID of the grid and the Model GUID of the three-dimensional Model, an association relationship between the GIS GUID and the Model GUID of the three-dimensional Model is established, as shown in a data relationship diagram of fig. 3, a plurality of grid units may correspond to one three-dimensional Model file, or one grid unit may correspond to one three-dimensional Model file.
And according to the established association relationship, after the GIS is amplified to a certain level, the GIS precisely jumps to a corresponding three-dimensional model according to the current grid information. In order to improve the accuracy of switching positioning and reduce the ambiguity of the association relationship, the association relationship between the grid and the three-dimensional model in the invention supports many-to-one association, namely: multiple grids can correspond to a three-dimensional model. For example: the GIS GUID containing the oil field processing station corresponds to the Model GUID formed by the three-dimensional Model of the processing station, and the GIS GUID of the single well corresponds to the Model GUID formed by the three-dimensional Model of the single well.
In step 103, when the digital map is enlarged to a predetermined level, the grid cells in a predetermined area in the display interface are switched to the corresponding three-dimensional model file according to the established association relationship.
In some exemplary embodiments, when the digital map is zoomed in to a predetermined level, switching the grid cells in a predetermined area in the display interface into the corresponding three-dimensional model file according to the established association relationship, includes: calling an iframe tag when the digital map is enlarged to a preset level; taking the GIS GUID of the grid unit and/or the GIS GUID of the grid unit in a preset area in a display interface as a parameter of an iframe; and transmitting the iframe parameters to a three-dimensional model page, analyzing the parameters through the three-dimensional model page to determine a corresponding three-dimensional model file, and switching, loading and displaying.
The present disclosure also provides a digital integration apparatus as shown in fig. 4, including: a memory 401 and a processor 402; the memory 401 is used for storing programs for digital integration; the processor 402 is configured to read and execute the program for digital integration, and perform the following operations: dividing grid units according to a digital map; wherein the digital map is constructed based on a geographic information system; obtaining an MD5 code for verifying the uniqueness of the content of each three-dimensional model through a preset algorithm, and generating a corresponding unique identification code after the uniqueness of each three-dimensional model is determined to obtain the unique identification code of each three-dimensional model file corresponding to the three-dimensional model; establishing an association relationship between grid cells in the digital map and the unique identification code of each three-dimensional model file, wherein one or more grid cells correspond to one three-dimensional model file; and when the digital map is enlarged to a preset level, switching the grid units in a preset area in the display interface into the corresponding three-dimensional model files according to the established association relationship.
In an exemplary embodiment, each grid cell is assigned a unique attribute value, and the attribute value is used for representing the geographic entity corresponding to the grid cell.
In one exemplary embodiment, the grid cell is represented by a globally unique identifier determined according to the assigned attribute value with uniqueness; the three-dimensional model file is represented by a globally unique identifier determined from the attribute values that are assigned to the three-dimensional model and that have uniqueness.
In an exemplary embodiment, the associating the grid cell with the unique identification code of each three-dimensional model file includes: the following operations are performed on each grid cell respectively: searching a three-dimensional model file matched with the geographical position information according to the geographical position information corresponding to the grid unit; and establishing an association relation between the unique identification code of the grid unit and the unique identification code of the searched three-dimensional model file.
In an exemplary embodiment, when the digital map is zoomed in to a predetermined level, the switching the grid cells in a predetermined area in the display interface to the corresponding three-dimensional model file according to the established association relationship includes: when the digital map is enlarged to a preset level, the grid unit in a preset area in the display interface is switched into the corresponding three-dimensional model file according to the established incidence relation, and the method comprises the following steps: calling an iframe tag when the digital map is enlarged to a preset level; taking the unique identification code of the grid unit in a preset area in a display interface and/or the unique identification code of the grid unit as a parameter of the iframe; and transmitting the parameters of the iframe to a three-dimensional model page, and analyzing the parameters through the three-dimensional model page to determine a corresponding three-dimensional model file and performing switching display.
Exemplary embodiments
Step 1, dividing grid units according to a digital map; wherein the digital map is constructed based on a geographic information system.
In this step, each grid cell is assigned with a unique attribute value, and the attribute value is used for representing the geographic entity corresponding to the grid cell. The grid unit is represented by a global unique identifier GIS GUID; the GIS GUID is determined according to the assigned attribute value having uniqueness of the grid cell.
Step 2, obtaining an MD5 code for checking the uniqueness of the three-dimensional Model content through an MD5 algorithm, and generating a unique Model GUID after the uniqueness of the three-dimensional Model is determined to obtain a unique identification code Model GUID of the three-dimensional Model corresponding to each three-dimensional Model file;
and 3, respectively carrying out the following operations on each grid unit: searching a three-dimensional model file matched with the geographical position information according to the geographical position information corresponding to the grid unit; and establishing an incidence relation between the GIS GUID of the grid unit and the Model GUID of the searched three-dimensional Model file.
And 4, determining the association relationship between the grid unit and each three-dimensional model file in the digital map based on the association relationship established in the step 3.
In this step, one or more grid cells correspond to a three-dimensional model file;
and 5, when the digital map is amplified to a preset level, switching the grid units in a preset area in the display interface into the corresponding three-dimensional model files according to the established association relation.
In this step, when the digital map is enlarged to a predetermined level, the implementation process of switching the grid cells in a predetermined area in the display interface into the corresponding three-dimensional model file according to the established association relationship may include:
step 51, when the digital map is amplified to a preset level, calling an iframe label;
step 52, taking the GIS GUID of the grid unit in the preset area in the display interface and/or the GIS GUID of the grid unit as parameters of the iframe;
and 53, transmitting the iframe parameters to a three-dimensional model page, analyzing the parameters through the three-dimensional model page to determine a corresponding three-dimensional model file, and performing switching display.
In the exemplary embodiment, three-dimensional model data of the GIS and the oil field ground engineering are combined to form an integral three-dimensional visual environment system of the oil field. In the integral three-dimensional visual environment system, the service data of each system is collected and integrated, and three-dimensional display of various service data is realized. The integrated service data is integrally edited and recombined according to the actual management needs of the oil field stations in the integrated three-dimensional environment, and the edited and recombined data can be released to the corresponding service system, so that the conversion of the oil field management mode is realized, and the management efficiency and the production capacity are greatly improved.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, or suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as is well known to those skilled in the art.