A WebGIS data sharing method, device and system
By using MapGuide or GeoServer and Cesium for data processing and sharing in the WebGIS system, the problems of closed and low expansion efficiency of the enterprise WebGIS system are solved, flexible expansion and the satisfaction of multi-business needs are achieved, and the system's customizability and data are improved. Show effect.
Patent Information
- Application Number
- CN202111424719.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-26
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-11-26
AI Technical Summary
When enterprises face multi-business geographical resource management needs, the existing WebGIS system is closed and single, resulting in repeated construction and low efficiency and poor flexibility in business platform expansion.
Use MapGuide or GeoServer as the back-end server, generate applicable setting data and three-dimensional format data through data processing, use Cesium for data sharing, provide map services and support multiple client devices, avoiding the problem of inefficient expansion of commercial platforms.
It achieves flexible expansion of WebGIS data and meets multiple business needs, reduces development costs, improves system customizability and scalability, and ensures data consistency and visual display.
Smart Images

Figure CN114153631B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of WebGIS data sharing, and in particular to a WebGIS data sharing method, device and system. Background Art
[0002] WebGIS (web Geographic Information System) refers to GIS (Geographic Information System) working on the Web. It is an extension and development of traditional GIS on the Internet. It has the characteristics of traditional GIS and can realize basic GIS functions such as spatial data retrieval, query, mapping output, and editing. It is also the basis for publishing, sharing, and communication and collaboration of geographic information on the Internet. In recent years, with the development of information technology and Internet business, Internet technology is gradually entering various businesses of daily management of enterprises, and various business needs based on WebGIS application support are increasing. The WebGIS independently built by enterprises is mainly oriented to geographic resource management, which is relatively closed and single. Therefore, when facing the geographic resource management needs involved in WebGIS of other businesses within the enterprise, it is necessary to repeatedly build WebGIS for this business; in addition, although the paid WebGIS commercial platform provides some data interfaces, manufacturers need to expand the interfaces according to the needs of the owners, but the update cycle is long and the expansion is limited.
[0003] Therefore, how to provide a solution to the above technical problems is a problem that those skilled in the art need to solve at present. Summary of the invention
[0004] The first purpose of this application is to provide a WebGIS data sharing method, which is achieved through the following technical solutions:
[0005] A WebGIS data sharing method is applied to a backend server provided with MapGuide or GeoServer, comprising:
[0006] Publishing map services based on WebGIS data; wherein the WebGIS data includes setting data, base map data and three-dimensional format data applicable to the back-end server, which are generated in sequence after processing original spatial data, original raster image data and model data respectively; when the back-end server is set with MapGuide, the setting data is SDF data; when the back-end server is set with GeoServer, the setting data is SHP data;
[0007] Receiving WebGIS data acquisition requests from multiple client devices through a data sharing interface corresponding to the map service;
[0008] Determining target WebGIS data from the WebGIS data according to the WebGIS data acquisition request;
[0009] The target WebGIS data is sent to the corresponding client device, so that the client device corresponding to the target WebGIS data calls and displays the target WebGIS data through Cesium.
[0010] Based on the above technical solution, the data sharing system provided by this solution includes: a back-end server equipped with MapGuide or GeoServer and multiple client devices equipped with Cesium. MapGuide, GeoServer and Cesium are all open source technologies with low cost and strong customizability. The back-end server provides background map services. After receiving the data acquisition request of the client device using the data sharing interface, the Cesium of the front-end client device calls the target WebGIS data provided by the map service to display the target WebGIS data. The WebGIS data can be provided to multiple client devices, meeting the expansion needs of related businesses and avoiding the related technology of building a commercial WebGIS service platform on the back-end server, which causes inefficiency and inflexible expansion when manufacturers need to develop according to needs when expanding according to actual needs.
[0011] Preferably, it also includes:
[0012] Converting the original spatial data into a new format to generate the SDF data;
[0013] Loading the original raster image data using feature parameters and layer data to obtain the base map data;
[0014] Generate a ground model map according to the elevation information of the original spatial data or the elevation information of the original raster image data;
[0015] Performing three-dimensional modeling and setting each model of the model data with reference to the coordinates of the original spatial data and the shape of the entity position in the ground model map to obtain three-dimensional model data;
[0016] The three-dimensional model data is converted into three-dimensional format data.
[0017] Based on the above technical solution, this solution processes the data to obtain data in a format available to the back-end server. Specifically, by converting the format of the original spatial data, SDF data in a format available to the current back-end server is obtained; at the same time, the original raster image data is also processed to obtain base map data; for the three-dimensional model data, consistency work needs to be performed to ensure data consistency. Specifically, a ground model map is generated based on elevation information. The ground model map has ups and downs as a basis for subsequent modeling, and then each model is placed with reference to the coordinates of the entities in the original spatial data to obtain three-dimensional model data, thereby ensuring the consistency of three-dimensional and two-dimensional data.
[0018] Preferably, it also includes:
[0019] Extracting extended data of the original spatial data, original raster image data and model data into an attribute database, wherein the extended data includes a data ID;
[0020] Obtaining an operation instruction of a target entity, wherein the operation instruction includes any one of query, analysis, and statistics;
[0021] Determine the target data ID of the target entity according to the operation instruction;
[0022] The target data is determined according to the target data ID, and the target data is fed back to the client device.
[0023] Based on the above technical solution, this solution stores the extended data of the original spatial data in the attribute database, that is, each two-dimensional or three-dimensional entity corresponds to a data ID attribute in the attribute database, and each data ID corresponds to a record in the database, which records the attribute information of the target entity in detail, facilitates the related work of query, statistics, and analysis in two- and three-dimensional scenes, and avoids the problems of difficulty and low efficiency in obtaining extended data caused by writing extended data into spatial data.
[0024] Preferably, the method further includes: after determining that a disaster recovery event has occurred, using the backed-up data to perform data recovery.
[0025] Based on the above technical solution, this solution ensures automatic data recovery after a disaster recovery event by storing backup data, reducing network risks and ensuring the stability and reliability of system operation.
[0026] The second purpose of this application is to provide a WebGIS data sharing device, which is achieved through the following technical solutions:
[0027] A WebGIS data sharing device, comprising:
[0028] A service publishing module, used for publishing map services according to WebGIS data; wherein the WebGIS data includes setting data, base map data and three-dimensional format data applicable to the back-end server, which are generated in sequence after processing the original spatial data, the original raster image data and the model data respectively; when the back-end server is set with MapGuide, the setting data is SDF data, and when the back-end server is set with GeoServer, the setting data is SHP data;
[0029] A request receiving module, used for receiving WebGIS data acquisition requests from multiple client devices through a data sharing interface corresponding to the map service;
[0030] A WebGIS data determination module, used for determining target WebGIS data from the WebGIS data according to the WebGIS data acquisition request;
[0031] The sending module is used to send the target WebGIS data to the corresponding client device, so that the client device corresponding to the target WebGIS data calls and displays the target WebGIS data through Cesium.
[0032] Based on the above technical solution, the data sharing system provided by this solution includes: a back-end server equipped with MapGuide or GeoServer and multiple client devices equipped with Cesium. MapGuide, GeoServer and Cesium are all open source technologies with low cost and strong customizability. The back-end server provides background map services. After receiving the data acquisition request of the client device using the data sharing interface, the Cesium of the front-end client device calls the target WebGIS data provided by the map service to display the target WebGIS data. The WebGIS data can be provided to multiple client devices, meeting the expansion needs of related businesses and avoiding the related technology of building a commercial WebGIS service platform on the back-end server, which causes inefficiency and inflexible expansion when manufacturers need to develop according to needs when expanding according to actual needs.
[0033] The third purpose of this application is to provide a WebGIS data sharing method, which is achieved through the following technical solutions:
[0034] A WebGIS data sharing method is applied to a client device provided with Cesium, comprising:
[0035] A WebGIS data acquisition request is sent through a data sharing interface of a map service of a back-end server, so that the back-end server determines target WebGIS data from WebGIS data according to the WebGIS data acquisition request; wherein the WebGIS data includes setting data, base map data and three-dimensional format data applicable to the back-end server, which are sequentially generated by processing original spatial data, original raster image data and model data respectively; when the back-end server is set to MapGuide, the setting data is SDF data, and when the back-end server is set to GeoServer, the setting data is SHP data;
[0036] Receiving the target WebGIS data sent by the back-end server;
[0037] The target WebGIS data is called and displayed through Cesium.
[0038] Based on the above technical solution, the data sharing system provided by this solution includes: a back-end server equipped with MapGuide or GeoServer and multiple client devices equipped with Cesium. MapGuide, GeoServer and Cesium are all open source technologies with low cost and strong customizability. The back-end server provides background map services. After receiving the data acquisition request of the client device using the data sharing interface, the Cesium of the front-end client device calls the target WebGIS data provided by the map service to display the target WebGIS data. The WebGIS data can be provided to multiple client devices, meeting the expansion needs of related businesses and avoiding the related technology of building a commercial WebGIS service platform on the back-end server, which causes inefficiency and inflexible expansion when manufacturers need to develop according to needs when expanding according to actual needs.
[0039] Preferably, calling and displaying the target WebGIS data through Cesium includes:
[0040] Establishing a two-dimensional layer according to the target SDF data and the target base map data in the target WebGIS data, and creating a three-dimensional layer according to the target three-dimensional model data in the target WebGIS data;
[0041] Storing the two-dimensional layer and the three-dimensional layer in a pre-instantiated map container;
[0042] The two-dimensional layer and the three-dimensional layer in the map container are called and displayed in an overlay manner through Cesium.
[0043] Based on the above technical solution, this solution sets two-dimensional layers and three-dimensional layers to complete the loading of map services in client devices and the fusion display of two-dimensional data and three-dimensional data, realizing the visualization of services of target WebGIS data.
[0044] Preferably, it also includes:
[0045] Receiving a layer data processing request sent by a user, wherein the layer data processing request includes any one of insert, update, delete, retrieve or close;
[0046] Execute corresponding operations according to the layer data processing request.
[0047] Based on the above technical solution, this solution can also perform data interaction, such as inserting, updating, deleting, retrieving or closing, through the processing requests of Cesium's map and layer classes, to provide users with basic data services.
[0048] The fourth objective of this application is to provide a WebGIS data sharing device, which is achieved through the following technical solutions:
[0049] A WebGIS data sharing device, comprising:
[0050] A request sending module, used for sending a WebGIS data acquisition request through a data sharing interface of a map service of a back-end server, so that the back-end server determines target WebGIS data from WebGIS data according to the WebGIS data acquisition request; wherein the WebGIS data includes setting data, base map data and three-dimensional format data applicable to the back-end server, which are sequentially generated by processing original spatial data, original raster image data and model data respectively; when the back-end server is set to MapGuide, the setting data is SDF data; when the back-end server is set to GeoServer, the setting data is SHP data;
[0051] A receiving module, used for receiving the target WebGIS data sent by the back-end server;
[0052] The display module is used to call and display the target WebGIS data through Cesium.
[0053] Based on the above technical solution, the data sharing system provided by this solution includes: a back-end server equipped with MapGuide or GeoServer and multiple client devices equipped with Cesium. MapGuide, GeoServer and Cesium are all open source technologies with low cost and strong customizability. The back-end server provides background map services. After receiving the data acquisition request of the client device using the data sharing interface, the Cesium of the front-end client device calls the target WebGIS data provided by the map service to display the target WebGIS data. The WebGIS data can be provided to multiple client devices, meeting the expansion needs of related businesses and avoiding the related technology of building a commercial WebGIS service platform on the back-end server, which causes inefficiency and inflexible expansion when manufacturers need to develop according to needs when expanding according to actual needs.
[0054] The fifth objective of this application is to provide a WebGIS data sharing device, which is achieved through the following technical solutions:
[0055] A WebGIS data sharing system includes: a back-end server provided with MapGuide or GeoServer, and a plurality of client devices provided with Cesium for sharing data with the back-end server;
[0056] The back-end server is used to publish map services based on WebGIS data; the WebGIS data includes setting data, base map data and three-dimensional format data applicable to the back-end server, which are generated in sequence after processing original spatial data, original raster image data and model data respectively; receiving WebGIS data acquisition requests from multiple client devices through a data sharing interface corresponding to the map service; determining target WebGIS data from WebGIS data according to the WebGIS data acquisition request; sending the target WebGIS data to the client device; when the back-end server sets MapGuide, the setting data is SDF data, and when the back-end server sets GeoServer, the setting data is SHP data;
[0057] The client device is used to send the WebGIS data acquisition request; call and display the target WebGIS data through the Cesium.
[0058] Based on the above technical solution, the data sharing system provided by this solution includes: a back-end server equipped with MapGuide or GeoServer and multiple client devices equipped with Cesium. MapGuide, GeoServer and Cesium are all open source technologies with low cost and strong customizability. The back-end server provides background map services. After receiving the data acquisition request of the client device using the data sharing interface, the Cesium of the front-end client device calls the target WebGIS data provided by the map service to display the target WebGIS data. The WebGIS data can be provided to multiple client devices, meeting the expansion needs of related businesses and avoiding the related technology of building a commercial WebGIS service platform on the back-end server, which causes inefficiency and inflexible expansion when manufacturers need to develop according to needs when expanding according to actual needs.
[0059] The sixth objective of the present application is to provide an electronic device, which is achieved by the following technical solutions:
[0060] An electronic device, which is specifically a backend server or a client device, comprises:
[0061] One or more processors;
[0062] Memory;
[0063] One or more applications, wherein the one or more applications are stored in a memory and configured to be executed by one or more processors, and the one or more programs are configured to: execute any one of the above-mentioned WebGIS data sharing methods.
[0064] The seventh object of this application is to provide a computer-readable storage medium, which is achieved through the following technical solutions:
[0065] A computer-readable storage medium stores instructions, and when the instructions are executed on a computer, the computer executes the steps of any one of the above-mentioned WebGIS data sharing methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] Figure 1 A flowchart of a WebGIS data sharing method provided in an embodiment of the present application;
[0067] Figure 2 A schematic diagram of the structure of a WebGIS data sharing device provided in an embodiment of the present application;
[0068] Figure 3 A flowchart of another WebGIS data sharing method provided in an embodiment of the present application;
[0069] Figure 4 A schematic diagram of the structure of another WebGIS data sharing device provided in an embodiment of the present application;
[0070] Figure 5 A schematic diagram of the structure of a WebGIS data sharing system provided in an embodiment of the present application;
[0071] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0072] The present application is further described in detail below in conjunction with the accompanying drawings.
[0073] This specific embodiment is only an explanation of the present application, and it is not a limitation of the present application. After reading this specification, those skilled in the art can make non-creative modifications to the present embodiment as needed, but as long as it is within the scope of the present application, it is protected by the patent law.
[0074] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0075] In addition, the term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article, unless otherwise specified, generally means that the associated objects before and after are in an "or" relationship.
[0076] The embodiments of the present application are further described in detail below in conjunction with the drawings in the specification.
[0077] The embodiment of the present application provides a WebGIS data sharing method, which is executed by an electronic device, which may be a backend server. The backend server may be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. Figure 1 , Figure 1 A schematic diagram of a WebGIS data sharing method provided in an embodiment of the present application, the method comprising:
[0078] S110. Publish map services based on WebGIS data.
[0079] Among them, WebGIS data includes setting data, base map data and three-dimensional format data applicable to the back-end server, which are generated in sequence after processing the original spatial data, original raster image data and model data respectively. When the back-end server sets MapGuide, the setting data is SDF (Service Data Function) data, and when the back-end server sets GeoServer, the setting data is SHP (Shapefile) data.
[0080] The execution subject of this embodiment is an electronic device, which is specifically a back-end server equipped with MapGuide or GeoServer. MapGuide is an open source GIS publishing platform with open characteristics, so that when the client device obtains the WebGIS data of the back-end server, it does not need a special GIS browser, but can be opened directly from the network browser, and the back-end server equipped with MapGuide can reserve one or more shared interfaces to improve the flexibility of expansion; the use of open source technology also saves costs. The open source GeoServer is set on the back-end server to facilitate the release of map data, allowing the client device to use the shared interface to update, delete, and insert feature data. Through GeoServer, WebGIS data can be quickly shared between client devices relatively easily. Among them, MapGuide adopts FDO (Feature Data Objects, feature data object) technology, supports data sources ArcSDE, MYSQL, SDF, has stronger applicability, realizes system construction through its own WebLayout technology, and has higher construction efficiency. It can be seen that this embodiment is a method for realizing enterprise WebGIS data sharing based on open source technology architecture, and based on the service-oriented concept, it provides low-cost basic data services for other businesses corresponding to multiple client devices of the enterprise.
[0081] This embodiment first obtains the original spatial data, the original raster image data and the model data, and then performs corresponding data processing on the above data in turn, and generates the setting data, base map data and three-dimensional format data that can be used by the back-end server in turn. Among them, this embodiment does not limit the acquisition source of the original spatial data, the original raster image data and the model data, which can be the data newly collected in the field or the old data already in the enterprise. The user can customize the settings as long as the purpose of this embodiment can be achieved. The original spatial data is two-dimensional spatial vector data, which can be specifically dwg data. The original spatial data includes plane information and elevation information. The elevation information includes altitude information. The original spatial data is converted into SDF data that can be used by the MapGuide back-end server or SHP data that can be used by the GeoServer back-end server. The original raster image data is two-dimensional spatial vector data, which is specifically jpeg (Joint Photographic Experts Group) and tif (Tagged Image File Format) data; the original raster image data includes elevation information and RGB data; the original raster image data is processed to generate base map data that can be used by the back-end server. The model data is exported into obj format data using 3D modeling tools. The backend server cannot use it, and data processing is required to obtain 3D tile data in three-dimensional format that can be used by the backend service.
[0082] Furthermore, this embodiment is based on Open GIS (Open Geodata Interoperability Specificatioin) which is independent of software manufacturers. The Open GIS provides a unified framework for designing and developing software tools, which enables barrier-free connection and information exchange between different geographic information system software and supports multi-source data fusion. At the same time, a modular design with a front-end and back-end separation architecture can be adopted to prepare sufficient space for future enterprise informatization construction and facilitate the integration and information exchange of various client devices connected to existing commercial platforms.
[0083] Backend servers equipped with MapGuide or GeoServer can provide a Web-based visual GIS information publishing management platform and map editing tools, which users can use to perform namespace definition, data source definition, service publishing and preview, system optimization configuration and other operations to realize the map publishing of WebGIS data. When the backend server has WebGIS data, it distributes it into a map service that complies with the OGC (Open Geospatial Consortium) specification that includes a REST-style service for resource services. This map service is designed to provide map-related services for multiple client devices.
[0084] This embodiment does not limit the number of client devices. Since it adopts open source technology, the shared interface has strong applicability, which avoids the problem of low efficiency caused by enterprises using commercial WebGIS platforms in related technologies and performing system updates when data sharing is required for different clients.
[0085] S120: Receive WebGIS data acquisition requests from multiple client devices through a data sharing interface corresponding to the map service.
[0086] In this embodiment, a data sharing interface corresponding to the map service is provided, and the sharing interface can correspond to multiple client devices, and each client device can correspond to different business services. Preferably, the sharing interface is an 80 interface. Of course, in order to follow the principles of advanced technology, practical functions, stable performance, and reliable information, and comprehensively consider factors such as implementation, maintenance, operation, and expansion to ensure that the entire system is systematic, complete, scientific, reasonable, and operable, this embodiment can also provide other interfaces, which can specifically correspond to other business systems, such as engineering management, safety monitoring, and resource management. The above-mentioned business systems will involve sharing and exchanging data with the GIS system, so as to improve the flexibility of data sharing on the back-end server. For the WebGIS data acquisition request, the user corresponding to the client device can be set according to actual needs. For example, the WebGIS data acquisition request can be a request for acquiring greening data within a set range; it can also be a request for acquiring plant data within a set range.
[0087] S130. Determine target WebGIS data from the WebGIS data according to the WebGIS data acquisition request.
[0088] For different WebGIS data acquisition requests, the scope of the acquired WebGIS data is different, and the WebGIS data within different set ranges is specified. The purpose of this step is to determine the required target WebGIS data from the WebGIS data. In an achievable implementation, S130 may include: parsing the WebGIS data acquisition request to obtain a data identifier; extracting the target WebGIS data from the WebGIS data according to the data identifier, and the data identifier corresponds to the set range of the data.
[0089] S140: Send the target WebGIS data to the corresponding client device, so that the client device corresponding to the target WebGIS data calls and displays the target WebGIS data through Cesium.
[0090] This step is to transfer the target WebGIS data to the corresponding client device so that the client device can call and display it. When the backend server is set with MapGuide, the client device corresponding to the third party of the existing map can be directly called based on mapagent, which serves as the data source of the client Cesium and the basic data for 2D data, 3D data or 2D and 3D fusion display.
[0091] In this embodiment, the back-end server can share WebGIS data with multiple client devices, thereby improving the utilization rate of information resources and ensuring the interconnection between distributed heterogeneous systems composed of back-end servers and client devices. The back-end server can extract, concentrate, load and display non-homologous data to the outside world, and construct unified data processing and exchange.
[0092] In this embodiment, the backend server uses MapGuide or GeoServer, and the front-end client device uses Cesium; MapGuide, GeoServer, or Cesium are all open source architectures, and the source code can be modified to achieve zero-time adjustment according to the actual business needs of the enterprise. For example, if an enterprise needs to change the Windows platform to Linux due to changes in the operating system environment, the main change involved is the MapGuide platform, because the MapGuide platform is an open source platform, the source code can be directly recompiled to run under Linux; for functional modules that are not needed in the actual work of the enterprise, they can be zero-time blocked or deleted from the source code to avoid bloat.
[0093] Based on the above technical solution, the data sharing system provided in this embodiment includes: a back-end server equipped with MapGuide or GeoServer and multiple client devices equipped with Cesium. MapGuide, GeoServer and Cesium are all open source technologies with low cost and strong customizability. The back-end server provides background map services. After receiving the data acquisition request of the client device using the data sharing interface, the Cesium of the front-end client device calls the target WebGIS data provided by the map service to display the target WebGIS data. The WebGIS data can be provided to multiple client devices, meeting the expansion needs of related businesses and avoiding the related technology of building a commercial WebGIS service platform on the back-end server, which causes inefficiency and inflexible expansion when manufacturers need to develop according to needs when expanding according to actual needs.
[0094] Based on the above embodiment, the WebGIS data sharing method also includes: converting the format of the original spatial data to generate setting data; using the element parameters and layer data to load the original raster image data to obtain the base map data; generating a ground model map according to the elevation information of the original spatial data or the elevation information of the original raster image data; performing three-dimensional modeling and setting each model of the model data with reference to the coordinates of the original spatial data and the shape of the entity position in the ground model map to obtain three-dimensional model data; and converting the three-dimensional model data into three-dimensional format data.
[0095] Further elaboration on setting data. Through FDO related technologies such as FDO Provider for GDAL / OGR / SHP and other tools, the original spatial data such as dwg data is read to generate SDF data or SHP data. The dwg data includes plane information and elevation information. The dwg data is imported into the back-end server with MapGuide to obtain SDF data; the dwg data is imported into the back-end server with GeoServer to obtain SHP data. Furthermore, the coordinate system can be re-specified when importing into the back-end server.
[0096] Further elaboration on base map data. For original raster image data such as jpeg data and tif data, the parameters of elements and layer data can be set directly through related tools. The specific element parameters and layer data parameters can be set by users according to actual needs. The base map data can be loaded through the "Load" method. The related tool can be the MapGuide Maestro tool.
[0097] The three-dimensional format data is further elaborated. The model data is processed with the 3dmax modeling tool to obtain the three-dimensional model data. The three-dimensional model data is directly exported to obj data through "Export", and then the obj data is loaded through the obj23dtiles conversion tool and converted to 3dtiles data, i.e. three-dimensional model data, through the "obj23dtiles -i . / bin / buildings / buildings.obj-tileset" command. It is worth noting that for the three-dimensional format data, consistency processing is performed at the beginning to ensure data consistency: a ground model map is generated as the three-dimensional base map data according to the elevation information. The ground model map has ups and downs, and then each model is placed according to the coordinates of the original spatial data and the ground model map. The three-dimensional model data is obtained as obj data, and the format is converted to generate three-dimensional format data in 3dtiles format. It can be seen that the three-dimensional format data is based on two-dimensional data. The same coordinates as the two-dimensional data are specified in the conversion to ensure data consistency.
[0098] Based on any of the above embodiments, the WebGIS data sharing method also includes: extracting extended data of the original spatial data, original raster image data and model data into an attribute database, wherein the extended data includes a data ID; obtaining operation instructions of the target entity, wherein the operation instructions include any one of query, analysis and statistics; determining the target data ID of the target entity according to the operation instructions; determining the target data according to the target data ID, and feeding back the target data to the client device.
[0099] This embodiment adopts database and heterogeneous data source fusion technology, and the original spatial data, original raster image data and model data of the back-end server are associated with the attribute database through the ID (identity document) in the extended data, wherein the extended data includes: data ID, and may also include: pipeline buried depth, pipe diameter, acquisition time and other information. When the front-end client device calls the data uniformly, it accesses the attribute database through the back-end server. Among them, the association of the target data ID is performed, that is, each two-dimensional or three-dimensional entity corresponds to a data ID in the attribute database, and each data ID corresponds to a record in the database, which records the attribute information of the entity in detail, which is convenient for query, statistics, analysis and other related work in two-dimensional and three-dimensional scenes, and avoids the problem of difficulty in acquisition and low acquisition efficiency caused by writing the extended data into the spatial data.
[0100] Based on any of the above embodiments, the WebGIS data sharing method further includes: after determining that a disaster recovery event has occurred, using the backed-up data to perform data recovery.
[0101] In order to reduce the risk of the network, the back-end server supports automatic backup and recovery, so that it can be quickly restored when the platform service of the back-end server crashes. The backup data is mainly WebGIS data, and it can also be external attribute data, which ensures the stability and reliability of the system operation. Furthermore, it supports the use of cloud services to ensure the stability and reliability of the system operation.
[0102] The following is an introduction to a WebGIS data sharing device provided in an embodiment of the present application. The WebGIS data sharing device described below and the WebGIS data sharing method described above can be referred to in correspondence with each other. Figure 2 , Figure 2 A structural block diagram of a WebGIS data sharing device provided in an embodiment of the present application includes:
[0103] The service publishing module 210 is used to publish map services according to WebGIS data; wherein the WebGIS data includes setting data, base map data and three-dimensional format data applicable to the back-end server generated in sequence after data processing of original spatial data, original raster image data and model data respectively; when the back-end server is set to MapGuide, the setting data is SDF data, and when the back-end server is set to GeoServer, the setting data is SHP data;
[0104] The request receiving module 220 is used to receive WebGIS data acquisition requests from multiple client devices through the data sharing interface corresponding to the map service;
[0105] A WebGIS data determination module 230 is used to determine target WebGIS data from the WebGIS data according to the WebGIS data acquisition request;
[0106] The sending module 240 is used to send the target WebGIS data to the corresponding client device, so that the client device corresponding to the target WebGIS data calls and displays the target WebGIS data through Cesium.
[0107] Also included is a data processing module, including:
[0108] The original spatial data processing unit is used to convert the format of the original spatial data and generate SDF data;
[0109] The original raster image data processing unit is used to load the original raster image data using the element parameters and layer data to obtain the base map data;
[0110] The model data processing unit is used to generate a ground model map according to the elevation information of the original spatial data or the elevation information of the original raster image data; perform three-dimensional modeling and set each model of the model data with reference to the coordinates of the original spatial data and the shape of the entity position in the ground model map to obtain three-dimensional model data; and convert the three-dimensional model data into three-dimensional format data.
[0111] Also includes:
[0112] An extended data extraction module is used to extract extended data of original spatial data, original raster image data and model data into an attribute database, wherein the extended data includes a data ID;
[0113] An operation instruction acquisition module is used to acquire the operation instruction of the target entity, wherein the operation instruction includes any one of query, analysis, and statistics;
[0114] A target data ID determination module, used to determine the target data ID of the target entity according to the operation instruction;
[0115] The target data feedback module is used to determine the target data according to the target data ID and feed back the target data to the client device.
[0116] Also includes:
[0117] The data recovery module is used to recover data using the backed-up data after a disaster recovery event occurs.
[0118] The embodiment of the present application provides a WebGIS data sharing method, which is executed by an electronic device, which may be a client device. The client device may be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc., but is not limited thereto. The client device and the back-end server may be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiment of the present application.
[0119] Please refer to Figure 3 , Figure 3 A schematic diagram of a WebGIS data sharing method provided in an embodiment of the present application, the method comprising:
[0120] S310, sending a WebGIS data acquisition request through the data sharing interface of the map service of the back-end server, so that the back-end server determines the target WebGIS data from the WebGIS data according to the WebGIS data acquisition request.
[0121] Among them, WebGIS data includes setting data, base map data and three-dimensional format data applicable to the back-end server, which are generated in sequence after processing the original spatial data, original raster image data and model data respectively; when the back-end server sets MapGuide, the setting data is SDF data, and when the back-end server sets GeoServer, the setting data is SHP data.
[0122] S320: Receive target WebGIS data sent by the backend server.
[0123] S330. Call and display target WebGIS data through Cesium.
[0124] Please refer to the above embodiments for details, and this embodiment will not be repeated. It can be understood that this embodiment uses three-dimensional format data as three-dimensional data, SDF data or base map data as plane data, and integrates and displays the three-dimensional format data through rest services and two-dimensional calls. Of course, it can also provide related WebGIS data services to other application systems such as enterprises.
[0125] Based on the above technical solution, the data sharing system provided in this embodiment includes: a back-end server equipped with MapGuide or GeoServer and multiple client devices equipped with Cesium. MapGuide, GeoServer and Cesium are all open source technologies with low cost and strong customizability. The back-end server provides background map services. After receiving the data acquisition request of the client device using the data sharing interface, the Cesium of the front-end client device calls the target WebGIS data provided by the map service to display the target WebGIS data. The WebGIS data can be provided to multiple client devices, meeting the expansion needs of related businesses and avoiding the related technology of building a commercial WebGIS service platform on the back-end server, which causes inefficiency and inflexible expansion when manufacturers need to develop according to needs when expanding according to actual needs.
[0126] Based on the above embodiment, after the map service of the backend server is published, it is necessary to realize the visualization of the WebGIS data service on the third-party client device, specifically S330, including:
[0127] S331 (not shown in the drawings), establishing a two-dimensional layer according to the target SDF data and the target base map data in the target WebGIS data, and creating a three-dimensional layer according to the target three-dimensional model data in the target WebGIS data;
[0128] S332 (not shown in the drawings), storing the two-dimensional layer and the three-dimensional layer in a pre-instantiated map container;
[0129] S333 (not shown in the drawings), calling and overlaying the two-dimensional layer and the three-dimensional layer in the map container through Cesium.
[0130] First, instantiate a map control by specifying the DOM element and map options rendered to the page for Cesium's viewer.dataSources class. This is used as a map container to store and display two- and three-dimensional data on the page.
[0131] Then, instantiate WMS (Web Mapping Service) layer objects, WFS (WebFeature Service) layer objects, and REST data layer objects respectively, create multiple two-dimensional layers as needed, and specify parameters such as the display range of the layers, and finally put the created layers into the map container. It can be understood that the number of two-dimensional layers corresponds to the WebGIS data acquisition request. For example, when the WebGIS data acquisition request is a greening request within the set range, the number of corresponding two-dimensional layers is two, and the two-dimensional layers include a greening layer and a background layer respectively; for another example, when the WebGIS data acquisition request is a factory request within the set range, the number of corresponding two-dimensional layers can be two, and the two-dimensional layers include a factory layer and a background layer respectively.
[0132] The three-dimensional format data is called and one or more three-dimensional layers are created, the parameters of the relevant layers are set, and the layers are placed in the map container. Similarly, the number of three-dimensional layers corresponds to the request, and this embodiment will not be repeated.
[0133] By calling and overlaying the 2D and 3D layers in the map container through Cesium, 2D and 3D sharing interaction is realized, and 2D and 3D data are displayed in one map interface. Further, it can also be supplemented with query, analysis, statistics and other functions, and provide basic data services to client devices. It can be understood that calling the map layer service, based on the WMS service, defines the map as a visual representation of geographic data, and returns the corresponding map image data according to user needs.
[0134] Based on the above technical solution, this embodiment sets two-dimensional layers and three-dimensional layers to complete the loading of map services in the client device and the fusion display of two-dimensional data and three-dimensional data, thereby realizing the visualization of the service of the target WebGIS data.
[0135] Preferably, the method further includes: receiving a layer data processing request sent by a user, wherein the layer data processing request includes any one of insert, update, delete, retrieve or close; and performing corresponding operations according to the layer data processing request.
[0136] This embodiment can also accept layer data processing requests sent by users, and can realize the processing of distance measurement, side area, buffer analysis, annotation and other data. At the same time, it can also interact with the backend database through WebAPI and other methods to query attribute data, analyze and count information, etc. Then, the backend server returns the GML (Geography Markup Language) data of the feature level, that is, the layer data according to the HTTP client request, and provides processing operations for the features of the layer data.
[0137] Based on the above technical solution, this embodiment can also perform data interaction, such as inserting, updating, deleting, retrieving or closing, and provide users with basic data services through processing requests of Cesium's map and layer classes.
[0138] The following is an introduction to a WebGIS data sharing device provided in an embodiment of the present application. The WebGIS data sharing device described below and the WebGIS data sharing method described above can be referred to in correspondence with each other. Figure 4 , Figure 4 The structural block diagram of the WebGIS data sharing device provided in the embodiment of the present application includes:
[0139] The request sending module 410 is used to send a WebGIS data acquisition request through the data sharing interface of the map service of the back-end server, so that the back-end server determines the target WebGIS data from the WebGIS data according to the WebGIS data acquisition request; wherein the WebGIS data includes setting data, base map data and three-dimensional format data applicable to the back-end server, which are sequentially generated after the original spatial data, the original raster image data and the model data are processed respectively; when the back-end server is set to MapGuide, the setting data is SDF data, and when the back-end server is set to GeoServer, the setting data is SHP data;
[0140] Receiving module 420, used for receiving target WebGIS data sent by the back-end server;
[0141] The display module 430 is used to call and display the target WebGIS data through Cesium.
[0142] Preferably, the display module 430 includes:
[0143] A layer creation unit is used to create a two-dimensional layer according to target SDF data and target base map data in the target WebGIS data, and to create a three-dimensional layer according to target three-dimensional model data in the target WebGIS data;
[0144] A storage unit, used for storing the two-dimensional layer and the three-dimensional layer in a pre-instantiated map container;
[0145] The overlay display unit is used to call and overlay the two-dimensional layer and the three-dimensional layer in the map container through Cesium.
[0146] Also includes:
[0147] A request receiving module, used for receiving a layer data processing request sent by a user, wherein the layer data processing request includes any one of insert, update, delete, retrieve or close;
[0148] The execution module is used to perform corresponding operations according to the layer data processing request.
[0149] The following is an introduction to a WebGIS data sharing system provided in an embodiment of the present application. The WebGIS data sharing system described below and the WebGIS data sharing method described above can be referred to in correspondence with each other. Figure 5 , Figure 5 The structural block diagram of the WebGIS data sharing system provided in the embodiment of the present application includes:
[0150] A backend server 510 provided with MapGuide or GeoServer, and a plurality of client devices 520 provided with Cesium for sharing data with the backend server 510;
[0151] The back-end server 510 is used to publish a map service based on WebGIS data; the WebGIS data includes SDF data, base map data and three-dimensional format data suitable for the back-end server generated in sequence after processing the original spatial data, the original raster image data and the model data; receiving WebGIS data acquisition requests from multiple client devices 520 through a data sharing interface corresponding to the map service; determining target WebGIS data from the WebGIS data according to the WebGIS data acquisition request; and sending the target WebGIS data to the client device 520;
[0152] The client device 520 is used to send a WebGIS data acquisition request; call and display the target WebGIS data through Cesium.
[0153] An electronic device provided in an embodiment of the present application is introduced below. The electronic device described below and the WebGIS data sharing method described above can refer to each other.
[0154] An electronic device is provided in an embodiment of the present application. The electronic device may be a backend server or a client device. Figure 6 As shown, Figure 6 The electronic device 600 shown includes: a processor 601 and a memory 603. The processor 601 and the memory 603 are connected, such as through a bus 602. Optionally, the electronic device 600 may also include a transceiver 604. It should be noted that in actual applications, the transceiver 604 is not limited to one, and the structure of the electronic device 600 does not constitute a limitation on the embodiments of the present application.
[0155] Processor 601 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 601 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0156] The bus 602 may include a path to transmit information between the above components. The bus 602 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 602 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0157] The memory 603 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0158] The memory 603 is used to store the application code for executing the solution of the present application, and the execution is controlled by the processor 601. The processor 601 is used to execute the application code stored in the memory 603 to implement the contents shown in the above method embodiment.
[0159] Among them, electronic devices include but are not limited to: mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0160] A computer-readable storage medium provided in an embodiment of the present application is introduced below. The computer-readable storage medium described below and the method described above can be referenced to each other.
[0161] An embodiment of the present application provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a computer, the computer executes the steps of any one of the above-mentioned WebGIS data sharing methods.
[0162] Since the embodiments of the computer-readable storage medium part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the computer-readable storage medium part, which will not be repeated here.
[0163] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0164] The above are only some implementation methods of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A WebGIS data sharing method, It is characterized in that Applicable to backend servers with MapGuide or GeoServer, including: Publishing map services based on WebGIS data; wherein the WebGIS data includes setting data, base map data and three-dimensional format data applicable to the back-end server, which are generated in sequence after processing original spatial data, original raster image data and model data respectively; when the back-end server is set with MapGuide, the setting data is SDF data; when the back-end server is set with GeoServer, the setting data is SHP data; Receiving WebGIS data acquisition requests from multiple client devices through a data sharing interface corresponding to the map service; Determining target WebGIS data from the WebGIS data according to the WebGIS data acquisition request; The target WebGIS data is sent to the corresponding client device, so that the client device corresponding to the target WebGIS data calls and displays the target WebGIS data through Cesium.
2. The WebGIS data sharing method according to claim 1, It is characterized in that Also includes: Converting the format of the original spatial data to generate the setting data; Loading the original raster image data using feature parameters and layer data to obtain the base map data; Generate a ground model map according to the elevation information of the original spatial data or the elevation information of the original raster image data; Performing three-dimensional modeling and setting each model of the model data with reference to the coordinates of the original spatial data and the shape of the entity position in the ground model map to obtain three-dimensional model data; The three-dimensional model data is converted into three-dimensional format data.
3. The WebGIS data sharing method according to claim 2, It is characterized in that Also includes: Extracting extended data of the original spatial data, original raster image data and model data into an attribute database, wherein the extended data includes a data ID; Obtaining an operation instruction of a target entity, wherein the operation instruction includes any one of query, analysis, and statistics; Determine the target data ID of the target entity according to the operation instruction; The target data is determined according to the target data ID, and the target data is fed back to the client device.
4. The WebGIS data sharing method according to claim 1, It is characterized in that Also includes: After confirming that a disaster recovery event has occurred, use the backed-up data to restore data.
5. A WebGIS data sharing device, It is characterized in that include: A service publishing module, used for publishing map services according to WebGIS data; wherein the WebGIS data includes setting data, base map data and three-dimensional format data applicable to the back-end server, which are generated in sequence after processing the original spatial data, the original raster image data and the model data respectively; when the back-end server is set with MapGuide, the setting data is SDF data, and when the back-end server is set with GeoServer, the setting data is SHP data; A request receiving module, used for receiving WebGIS data acquisition requests from multiple client devices through a data sharing interface corresponding to the map service; A WebGIS data determination module, used for determining target WebGIS data from the WebGIS data according to the WebGIS data acquisition request; The sending module is used to send the target WebGIS data to the corresponding client device, so that the client device corresponding to the target WebGIS data calls and displays the target WebGIS data through Cesium.
6. A WebGIS data sharing method, It is characterized in that Applicable to client devices equipped with Cesium, including: A WebGIS data acquisition request is sent through a data sharing interface of a map service of a back-end server, so that the back-end server determines target WebGIS data from WebGIS data according to the WebGIS data acquisition request; wherein the WebGIS data includes setting data, base map data and three-dimensional format data applicable to the back-end server, which are sequentially generated by processing original spatial data, original raster image data and model data respectively; when the back-end server is set to MapGuide, the setting data is SDF data, and when the back-end server is set to GeoServer, the setting data is shp data; Receiving the target WebGIS data sent by the back-end server; The target WebGIS data is called and displayed through Cesium.
7. The WebGIS data sharing method according to claim 6, It is characterized in that The calling and displaying of the target WebGIS data by Cesium includes: Establishing a two-dimensional layer according to the target setting data and the target base map data in the target WebGIS data, and creating a three-dimensional layer according to the target three-dimensional model data in the target WebGIS data; Storing the two-dimensional layer and the three-dimensional layer in a pre-instantiated map container; The two-dimensional layer and the three-dimensional layer in the map container are called and displayed in an overlay manner through Cesium.
8. The WebGIS data sharing method according to claim 7, It is characterized in that Also includes: Receiving a layer data processing request sent by a user, wherein the layer data processing request includes any one of insert, update, delete, retrieve or close; Execute corresponding operations according to the layer data processing request.
9. A WebGIS data sharing device, It is characterized in that include: A request sending module, used for sending a WebGIS data acquisition request through a data sharing interface of a map service of a back-end server, so that the back-end server determines target WebGIS data from WebGIS data according to the WebGIS data acquisition request; wherein the WebGIS data includes setting data, base map data and three-dimensional format data applicable to the back-end server, which are sequentially generated by processing original spatial data, original raster image data and model data respectively; when the back-end server is set to MapGuide, the setting data is SDF data; when the back-end server is set to GeoServer, the setting data is SHP data; A receiving module, used for receiving the target WebGIS data sent by the back-end server; The display module is used to call and display the target WebGIS data through Cesium.
10. A WebGIS data sharing system, It is characterized in that include: A backend server provided with MapGuide or GeoServer, and a plurality of client devices provided with Cesium for sharing data with the backend server; The back-end server is used to publish map services based on WebGIS data; the WebGIS data includes setting data, base map data and three-dimensional format data applicable to the back-end server, which are generated in sequence after processing original spatial data, original raster image data and model data respectively; receiving WebGIS data acquisition requests from multiple client devices through a data sharing interface corresponding to the map service; determining target WebGIS data from WebGIS data according to the WebGIS data acquisition request; sending the target WebGIS data to the client device; when the back-end server sets MapGuide, the setting data is SDF data, and when the back-end server sets GeoServer, the setting data is SHP data; The client device is used to send the WebGIS data acquisition request; call and display the target WebGIS data through the Cesium.
Citation Information
Patent Citations
WebGIS three-dimensional lunar system based on ActiveX and realizing method of WebGIS three-dimensional lunar system
CN103279526A
Map engine implementation method and apparatus
CN105447101A
System for warning disaster using smart-phone App and mobile webGIS
KR1020130101804A
