CN117075854B - Openlayers-based WebGIS development architecture system - Google Patents

Openlayers-based WebGIS development architecture system Download PDF

Info

Publication number
CN117075854B
CN117075854B CN202310977461.3A CN202310977461A CN117075854B CN 117075854 B CN117075854 B CN 117075854B CN 202310977461 A CN202310977461 A CN 202310977461A CN 117075854 B CN117075854 B CN 117075854B
Authority
CN
China
Prior art keywords
map
data
slice
module
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310977461.3A
Other languages
Chinese (zh)
Other versions
CN117075854A (en
Inventor
姬要森
门殿春
刘皓
范恒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Testor Technology Co ltd
Original Assignee
Beijing Testor Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Testor Technology Co ltd filed Critical Beijing Testor Technology Co ltd
Priority to CN202310977461.3A priority Critical patent/CN117075854B/en
Publication of CN117075854A publication Critical patent/CN117075854A/en
Application granted granted Critical
Publication of CN117075854B publication Critical patent/CN117075854B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/24Object-oriented
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/215Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/258Data format conversion from or to a database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Remote Sensing (AREA)
  • Quality & Reliability (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a Openlayers-based WebGIS development architecture system, which comprises the following modules: the acquisition module is used for acquiring standard slice map data with a plurality of levels from various data sources of the map; the data processing module is used for carrying out format conversion on the slice map data acquired by various data sources and converting the slice map data into a unified format; the map loading module is used for determining a region to be loaded according to the central position of the map displayed on the current display interface and loading the processed region slice map to be loaded according to the current map scale; the dynamic rendering module is used for converting a coordinate system of the vector image layer according to the coordinate system of the slice map, rendering the current slice map by using the vector image layer and generating a vector slice map for vector marking; and the configuration module is used for intelligently configuring corresponding map function controls according to the current use requirement and carrying out corresponding function control on the vector slice map.

Description

Openlayers-based WebGIS development architecture system
Technical Field
The invention relates to the technical field of network geographic information, in particular to a Openlayers-based WebGIS development architecture system.
Background
The webGIS (geographic information system) refers to a GIS (geographic information system) working on a webpage, is an extension and development of a traditional geographic information system on the network, has the characteristics of the traditional geographic information system, can realize basic functions of space data retrieval, inquiry, drawing output, editing and the like, and is also a basis of geographic information release, sharing and communication collaboration on the internet. Openlayers is an open-source two-dimensional class library of GIS, and a developer can realize functions of geographic data visualization, GIS space analysis, map visualization and the like by calling the related class library, and in the patent application No. 201610543817.2, a method for constructing and using a WebGIS development framework based on OpenLayers, a method for realizing GIS function by calling each interface of the WebGIS development framework based on OpenLayers is disclosed. However, because the frame built based on Openlayers needs to process complex operations including vector data rendering, map scaling and the like, a large number of expansion functions and controls exist, high requirements are put on the performance, data processing capacity and plug-in selection of the frame, and based on the above conditions, a plurality of unresolved problems still exist in the process of building the frame in a concise, efficient and modularized manner by a development team.
Disclosure of Invention
Aiming at the problems shown above, the invention provides a Openlayers-based WebGIS development architecture system, which is used for solving the problems of data processing and control selection of WebGIS development by using Openlayers.
Openlayers-based WebGIS development architecture system comprises the following modules:
the acquisition module is used for acquiring standard slice map data with a plurality of levels from various data sources of the map;
the data processing module is used for carrying out format conversion on the slice map data acquired by various data sources and converting the slice map data into a unified format;
The map loading module is used for determining a region to be loaded according to the central position of the map displayed on the current display interface and loading the processed region slice map to be loaded according to the current map scale;
The dynamic rendering module is used for converting a coordinate system of the vector image layer according to the coordinate system of the slice map, rendering the current slice map by using the vector image layer and generating a vector slice map for vector marking;
and the configuration module is used for intelligently configuring corresponding map function controls according to the current use requirement and carrying out corresponding function control on the vector slice map.
Preferably, the acquiring module includes:
the retrieval sub-module is used for retrieving slice map data of each area of the map in each large map database;
a selecting sub-module, configured to search a target map database with the largest number of slice map levels in slice map data of each region, and select slice map data of the map database as standard slice map data of the region;
And the first generation sub-module is used for carrying out arrangement and collage on the standard slice map data of different areas to generate complete map data with a plurality of levels.
Preferably, the system further comprises:
The coordinate processing module is used for carrying out the concordance processing on the coordinate system of the slice map data of different areas from different databases in the complete map generated by the arrangement and collage;
The precision processing module is used for processing the slice data of the whole map according to the minimum precision in the slice map data of the whole map;
And the data optimization module is used for carrying out data optimization on slice map data of the whole map by using the map mask so that the map can highlight any region map.
Preferably, the precision processing module includes:
The detection sub-module is used for detecting the area size and the area map resolution of each area in the slice map data;
The determining submodule is used for determining the grid unit size corresponding to the regional slice map data according to the regional size of each region and the regional map resolution;
And the processing sub-module is used for processing the grid units of the slice map data of the rest area by taking the maximum grid unit size in all areas as the standard grid unit size.
Preferably, the map loading module includes:
The preprocessing sub-module is used for carrying out standardized preprocessing on the slice map data, so that the number of slice levels of the slice map data of each area of the map is consistent, the corresponding scale of each level is consistent, and each area of the map is numbered according to the specific area of the slice map data;
the determining submodule determines the center position of the map to be loaded on the display interface according to a preset map default loading interface and determines the scale suitable for the current interface;
The loading sub-module is used for determining the region numbers of the slice map to be loaded according to the center position of the map to be loaded, acquiring slice map data of the corresponding region according to each region number of the preprocessed slice map data, determining the display level of the slice map data according to the determined scale, and loading the corresponding slice map according to the determined center position and the display level.
Preferably, the dynamic rendering module includes:
The second generation sub-module is used for acquiring the dynamic information of the current regional slice map through an online database corresponding to each region on the map and generating a vector layer with dynamic information marks at the corresponding positions of the regional slice map;
the coordinate conversion sub-module is used for carrying out coordinate conversion on the current vector image layer according to the scale and azimuth information of the current slice map display level;
The rendering sub-module is used for rendering the display page of the current slice map by using the vector image layer after coordinate conversion, so that the corresponding vector mark is displayed on the current slice map;
And the output sub-module is used for outputting a vector slice map obtained by dynamic rendering at the display terminal.
Preferably, the configuration module includes:
the second acquisition sub-module is used for acquiring the current use requirement of the current user on the map through the interactive page;
The matching sub-module is used for matching corresponding map function controls in the control library according to the current use requirement of the current user on the map as a keyword and generating a confirmation instruction corresponding to the function controls;
The confirmation sub-module is used for sending corresponding confirmation information of each map function control to the current target user according to the confirmation instruction;
And the configuration sub-module is used for configuring a corresponding map function control according to a confirmation result of the user, and controlling the current vector slice map according to the function requirement of the user on the map.
Preferably, the matching submodule includes:
the retrieval unit is used for extracting words related to specific functions from the current use requirement input by the user as key words, and retrieving the words in a control library of the map according to the key words;
The judging unit is used for determining whether a search result corresponding to the keyword exists or not, outputting a corresponding first function control name if the corresponding matching result exists, and directly using the function requirement of the current user on the map as the keyword to perform fuzzy search if the search result does not exist, confirming a matched function control and outputting a corresponding second function control name;
And the generating unit is used for generating a confirmation instruction about whether the corresponding function control is configured according to the retrieved first function control name and second function control name.
Preferably, the system further includes a generating module, configured to generate various custom function controls according to an application scene and a user requirement to implement view function rendering of a corresponding map page, where the steps include:
Generating a custom control code library according to source code packages of a plurality of custom function controls and generating a custom control resource library according to resource files required by the plurality of custom function controls by using Openlayers custom extension functions;
Generating a plurality of corresponding custom function controls by using a custom control code library and source code packages and resource files in a custom control resource library;
Classifying the generated plurality of custom function controls according to target functions which are required to be realized in different application scenes, and generating scene labels of each custom function control according to classification results;
detecting a current application scene, and acquiring a target scene label corresponding to the application scene according to a target function to be realized in the current application scene;
calling a target custom function control corresponding to the target scene label in a plurality of custom function controls by using the target scene label;
Running a source code package corresponding to the target custom function control on a simulator, loading a resource file of the target custom function control, and generating an effect preview image corresponding to the target custom function control;
Generating a user demand acquisition request according to a plurality of target custom function controls and an effect preview image under a scene label corresponding to a current target scene;
acquiring user requirements, and selecting a desired target custom function control according to the user requirements;
Generating a configuration instruction of the target custom function control according to the selection information of the user, and rendering the current map page based on the configuration instruction target custom function control.
Preferably, the system further comprises an editing module, configured to implement autonomous editing of chart data, and the steps include:
Receiving an autonomous editing request sent by a user, judging a plurality of items of data existing in dynamic information of a generated current vector image layer, determining whether each item of data existing in the dynamic information belongs to geographic information element data of a map, if so, determining that the item is an uneditable item, otherwise, determining that the item is an editable item;
Generating an independent editing page according to the judged editable options, wherein the independent editing page is provided with a plurality of options capable of conducting file import and data editing on chart data on a map;
Switching the independent editing page to a corresponding option editing area according to the selection operation of the user on the editable options;
Responding to the selection of the user on the editable options, and determining all editable files available for editing the target option files in the current client aiming at the editing request of the user for selecting the target option;
importing at least one editable file according to the selection of a user, and loading the at least one editable file in a content editor of the target option;
Adjusting the data of the target options according to the editing operation of the user in the content editor, generating an effect diagram according to the value of the adjusted target option data, and displaying the effect diagram on an editing interface in the form of a thumbnail;
when the confirmation operation of the user on the effect graph is detected, setting the value of the regulated target option data as the confirmation value of the target option data, ending the editing of the target option, and generating an edited file according to the confirmation value of the target option data;
Generating corresponding chart data according to the edited file of each target option, and establishing a corresponding edited vector layer according to the generated chart data;
And rendering the current map data by using the edited vector layer, and generating a network geographic information page which is independently edited by a user and contains chart data.
Through the technical means, the invention has the following beneficial effects:
1) The method has the advantages that the data acquisition is carried out by using a plurality of geographic information databases with high credibility, the data quality of the slice map is improved, the construction of a complete map is facilitated, the corresponding slice map can be loaded according to requirements, and dynamic rendering is carried out by using a vector image layer, so that the generated map has practicability and instantaneity, the corresponding map function control can be intelligently configured according to the current use requirement, and the control selection problem of WebGIS development by using Openlayers is solved.
2) The user can carry the self-defined function control and edit each item of chart data of the network geographic information system by himself, so that personalized function customization and page editing of the network geographic information system are realized, and the practicability of the system and the experience of the user are enhanced.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by the structure particularly pointed out in the written description and drawings.
The technical scheme of the invention is further described in detail through the drawings and the embodiments.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate the invention and together with the embodiments of the invention, serve to explain the invention.
FIG. 1 is a schematic diagram of a WebGIS development architecture system based on Openlayers provided by the present invention;
FIG. 2 is a schematic diagram of an acquisition module in a Openlayers-based WebGIS development architecture system according to the present invention;
fig. 3 is another schematic structural diagram of a WebGIS development architecture system based on Openlayers provided by the present invention.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
The webGIS (geographic information system) refers to a GIS (geographic information system) working on a webpage, is an extension and development of a traditional geographic information system on the network, has the characteristics of the traditional geographic information system, can realize basic functions of space data retrieval, inquiry, drawing output, editing and the like, and is also a basis of geographic information release, sharing and communication collaboration on the internet. Openlayers is an open-source two-dimensional class library of GIS, and a developer can realize the functions of geographic data visualization, GIS space analysis, map visualization and the like by calling the related class library. However, because the frame built based on Openlayers needs to process complex operations including vector data rendering, map scaling and the like, a large number of expansion functions and controls exist, high requirements are put on the performance, data processing capacity and plug-in selection of the frame, and based on the above conditions, a plurality of unresolved problems still exist in the process of building the frame in a concise, efficient and modularized manner by a development team. Aiming at the problems shown above, the embodiment discloses a WebGIS development architecture system based on Openlayers.
Openlayers-based WebGIS development architecture system, as shown in FIG. 1, comprises the following modules:
An acquisition module 101 for acquiring standard slice map data having a plurality of levels from various data sources of a map;
the data processing module 102 is configured to perform format conversion on slice map data acquired by various data sources, and convert the slice map data into a unified format;
The map loading module 103 is used for determining a region to be loaded according to the center position of the map displayed on the current display interface, and loading the processed region slice map to be loaded according to the current map scale;
the dynamic rendering module 104 performs coordinate system conversion on the vector image layer according to the coordinate system of the slice map, renders the current slice map by using the vector image layer, and generates a vector slice map for vector marking;
the configuration module 105 is configured to intelligently configure corresponding map function controls according to current use requirements, and perform corresponding function control on the vector slice map.
In this embodiment, various data sources of the map are represented as large geographic information system databases, for example: nationwide geographic information resource directory service system USGS Earth Explorer (earth image search by the united states geological exploration), etc.;
In this embodiment, the slice map data is represented as pyramid map model data of multiple resolutions and scale levels, and includes map slices of the whole map range under different scales;
in this embodiment, the conversion into the unified format indicates that different picture formats such as jpg or png may exist in the slice map, and slice map data in different formats is converted into the unified format;
in the present embodiment, the center position of the map is represented as the center of the map page where the current map is displayed on the display page;
In this embodiment, the vector layer is denoted as a vector element layer in the map file, and dynamic data identification may be performed on the map layer;
In the present embodiment, rendering is represented as a process of generating a corresponding image on a map using a vector layer according to dynamic data;
In this embodiment, the vector slice map for vector marking is represented as slice map data with a vector identifier generated by superimposing a vector layer and a slice map;
in this embodiment, the map function control is represented as a function control that can perform different operations on the map, for example: scaling functionality controls, rotation functionality controls, watermark functionality controls, and the like.
The working principle of the technical scheme is as follows: firstly, acquiring slice map data with a plurality of levels from various data sources of a map by using an acquisition module; secondly, converting the slice map data into a unified format by using a data processing module; determining a region to be loaded by using the map loading module again, loading the processed slice map with the corresponding size according to the current map scale, converting a vector map layer into a coordinate system according to the coordinate system of the slice map by using the dynamic rendering module, and rendering the current slice map by using the vector map layer; and finally, intelligently configuring corresponding map function controls according to the current use requirement by using a configuration module, and performing corresponding function control on the vector slice map.
The beneficial effects of the technical scheme are as follows: firstly, slice map data with a plurality of levels are acquired from various data sources of a map, optimal data can be acquired from the plurality of data sources, the quality of the slice map data is improved, further, the slice map data is converted into a unified format, the slice map data format is unified, the construction of a complete map is facilitated, further, an area to be loaded is determined, the processed slice map with the corresponding size is loaded according to the current map scale, a vector map layer is transformed according to the coordinate system of the slice map, the current slice map is rendered by using the vector map layer, the corresponding slice map can be loaded according to requirements, dynamic rendering is performed by using the vector map layer, the generated map has practicability and instantaneity, further, corresponding function control is performed on the vector slice map according to the intelligent configuration of the map function control according to the current use requirements, and the control selection problem of WebGIS development by using Openlayers is solved.
In one embodiment, as shown in fig. 2, the acquiring module includes:
a search sub-module 1011 for performing a slice map data search for each area of the map in each large map database;
a selection submodule 1012, configured to search the target map database with the largest number of slice map levels in the slice map data of each region, and select the slice map data of the map database as standard slice map data of the region;
The first generation sub-module 1013 is configured to sort and collage standard slice map data of different areas to generate complete map data having a plurality of levels.
In the present embodiment, each large map database is represented as various types of remote sensing map databases, for example: china resource satellite application center, national geographic information resource directory service system, USGS Earth Explorer (American geological prospecting bureau earth image search), etc.;
in the present embodiment, the target map database is represented as a source database corresponding to standard slice map data;
In the present embodiment, the slice map hierarchy is represented as different map precision levels of different scales and resolutions in map data of the same area in the slice map data;
in the present embodiment, the standard slice map data is represented as slice map data used at each of the areas;
in this embodiment, the complete map data is represented as a slice map data set of each region in the entire map generated by the different region standard slice map data sort collage.
The beneficial effects of the technical scheme are as follows: corresponding slice map data can be obtained from a plurality of map databases, and the optimal slice map data of each region can be automatically matched, so that the data is real and reliable, the content is more detailed, the subsequent unified processing is convenient, and the reliability and the intelligence of the system are enhanced.
In one embodiment, as shown in fig. 3, the system further comprises:
The coordinate processing module 106 is used for carrying out the concordance processing on the coordinate system of the slice map data of different areas from different databases in the complete map generated by the arrangement and collage;
a precision processing module 107, configured to process slice data of the entire map according to a minimum precision in slice map data of the entire map;
The data optimization module 108 is configured to perform data optimization on slice map data of the entire map using the map mask, so that the map can highlight any region map. .
In this embodiment, the coordinate system is represented as a geographic information system in which there are a plurality of different coordinate systems, such as: webMecator projection, gaussian projection, and the like;
in the present embodiment, the unification processing is represented as unifying slice map data of different coordinate systems into map data of the same coordinate system;
in the present embodiment, the minimum accuracy is represented as the slice map data having the lowest resolution among all the slice map data;
In this embodiment, the map mask is represented as making the geographical area of interest the dominant visual area by hiding some elements on the map;
in this embodiment, the data optimization is represented such that the map data can be made to highlight a certain area map.
The beneficial effects of the technical scheme are as follows: the acquired slice map is subjected to the unification processing, the acquired slice map data is further subjected to the data optimization, the follow-up use of the data is facilitated, the data processing efficiency is improved, the original data is processed according to different attributes of the slice map data, the standardization level and the consistency of the map are improved, and the loading efficiency of the system is improved.
In one embodiment, the precision processing module includes:
The detection sub-module is used for detecting the area size and the area map resolution of each area in the slice map data;
The determining submodule is used for determining the grid unit size corresponding to the regional slice map data according to the regional size of each region and the regional map resolution;
And the processing sub-module is used for processing the grid units of the slice map data of the rest area by taking the maximum grid unit size in all areas as the standard grid unit size.
In the present embodiment, each area of slice map data is represented as an area map in units of administrative areas acquired from a different database;
in the present embodiment, the regional map resolution is expressed as the resolution of the maximum hierarchy of the slice map resolution;
In this embodiment, the size of the grid unit is expressed as the coverage area size of one image element in the map, and the size of the grid unit determines the accuracy of the geographic data within the area range of the unit;
in the present embodiment, processing the grid cells of the slice map data of the remaining area is represented as merging the grid cells of the remaining area and adjusting the resolution to the standard grid cell level.
The beneficial effects of the technical scheme are as follows: the map grid units are unified to ensure that the accuracy and the resolution of the map are consistent, so that the standardization and the uniformity of the system are enhanced.
In one embodiment, the map loading module includes:
The preprocessing sub-module is used for carrying out standardized preprocessing on the slice map data, so that the number of slice levels of the slice map data of each area of the map is consistent, the corresponding scale of each level is consistent, and each area of the map is numbered according to the specific area of the slice map data;
the determining submodule determines the center position of the map to be loaded on the display interface according to a preset map default loading interface and determines the scale suitable for the current interface;
The loading sub-module is used for determining the region numbers of the slice map to be loaded according to the center position of the map to be loaded, acquiring slice map data of the corresponding region according to each region number of the preprocessed slice map data, determining the display level of the slice map data according to the determined scale, and loading the corresponding slice map according to the determined center position and the display level.
In this embodiment, the standardized preprocessing is represented by performing standardized processing on slice map data of different areas, so that slice levels and corresponding scales of each level are consistent;
in this embodiment, the default map loading interface is represented as a default map display screen, which is set as a complete chinese map;
in this embodiment, the scale adapted to the current interface is expressed as a map scale adapted to the current interface;
In this embodiment, the display level is represented as a specific level that needs to be displayed on the current page of the slice map determined according to the scale;
in this embodiment, the corresponding slice map is represented as a slice map picture of the corresponding region and hierarchy to be loaded.
The beneficial effects of the technical scheme are as follows: the standardized preprocessing is carried out on the slice map data, so that the specification of all area maps in the whole map and the quantity of the slice maps are unified, the map area to be loaded on the current display page and the corresponding scale can be further determined, the standardized degree of the data is improved, and the practicability and the effectiveness of the system are improved.
In one embodiment, a dynamic rendering module includes:
The second generation sub-module is used for acquiring the dynamic information of the current regional slice map through an online database corresponding to each region on the map and generating a vector layer with dynamic information marks at the corresponding positions of the regional slice map;
the coordinate conversion sub-module is used for carrying out coordinate conversion on the current vector image layer according to the scale and azimuth information of the current slice map display level;
The rendering sub-module is used for rendering the display page of the current slice map by using the vector image layer after coordinate conversion, so that the corresponding vector mark is displayed on the current slice map;
And the output sub-module is used for outputting a vector slice map obtained by dynamic rendering at the display terminal.
In this embodiment, the corresponding online database represents an online database for acquiring the regional slice map data for each region;
in this embodiment, the dynamic information is represented as dynamic remote sensing data of the current corresponding area;
In this embodiment, the vector layer with dynamic information identifier at the corresponding position is represented as a vector information layer with dynamic information identifier at the corresponding position on the map;
in the present embodiment, the coordinate conversion is expressed as making the vector layer coincide with the map coordinates;
In this embodiment, rendering the display page of the current slice map is represented as generating a corresponding image on the map using a vector layer according to the dynamic data;
In the present embodiment, the vector slice map is represented as a vector slice map generated after dynamic rendering using a vector layer.
The beneficial effects of the technical scheme are as follows: the vector image layer is generated by acquiring real-time dynamic information from the database, so that the dynamic information is more accurate, and the slice map is dynamically rendered by using the vector image layer, so that the practicability of the system and the experience of a user are further improved.
In one embodiment, the configuration module includes:
the second acquisition sub-module is used for acquiring the current use requirement of the current user on the map through the interactive page;
The matching sub-module is used for matching corresponding map function controls in the control library according to the current use requirement of the current user on the map as a keyword and generating a confirmation instruction corresponding to the function controls;
The confirmation sub-module is used for sending corresponding confirmation information of each map function control to the current target user according to the confirmation instruction;
And the configuration sub-module is used for configuring a corresponding map function control according to a confirmation result of the user, and controlling the current vector slice map according to the function requirement of the user on the map.
In this embodiment, the interactive page is represented as a page that can be interacted on the network geographic information system;
in this embodiment, the current usage requirement is expressed as a functional requirement of the user for the map;
In this embodiment, the control library is represented as a map function control library in Openlayers;
In this embodiment, the map function control is represented as an additional function control capable of performing function operations such as rotation, zooming, selecting a dot line and a plane, and the like on the map;
in this embodiment, the confirmation instruction is expressed as an instruction for determining whether to configure the corresponding function control;
In this embodiment, the confirmation information of each map function control is represented as confirmation information of whether each map function control is enabled or not issued to the client.
The beneficial effects of the technical scheme are as follows: the intelligent performance of the system is improved by acquiring the functional control corresponding to the matching of the client requirement, and the interactivity of the system and the experience of the user are enhanced by generating the secondary confirmation of the confirmation information to the user according to the matched functional control.
In one embodiment, the matching submodule includes:
the retrieval unit is used for extracting words related to specific functions from the current use requirement input by the user as key words, and retrieving the words in a control library of the map according to the key words;
The judging unit is used for determining whether a search result corresponding to the keyword exists or not, outputting a corresponding first function control name if the corresponding matching result exists, and directly using the function requirement of the current user on the map as the keyword to perform fuzzy search if the search result does not exist, confirming a matched function control and outputting a corresponding second function control name;
And the generating unit is used for generating a confirmation instruction about whether the corresponding function control is configured according to the retrieved first function control name and second function control name.
In the present embodiment, the vocabulary on the specific function is expressed as the vocabulary on the map specific control function, for example: zooming in, zooming out, rotating, etc.;
In this embodiment, the first function control name is expressed as a function control name that can be directly obtained according to the keyword;
In this embodiment, the second function control name is expressed as a function control name obtained by fuzzy search according to the keyword;
in this embodiment, the fuzzy search is represented as a search pattern that allows a certain difference between the keyword and the function control name.
The beneficial effects of the technical scheme are as follows: by searching the functional requirements of the user, the functional controls corresponding to the user requirements can be accurately matched, the intelligence and loading speed of the system are improved, further, when the user requirements cannot directly search the corresponding functions, the fuzzy search can be used for matching the functional controls possibly required by the user, the practicability of the system is improved, and the use experience of the user is improved.
In one embodiment, the system further includes a generating module, configured to generate various custom function controls according to an application scenario and a user requirement to implement view function rendering of a corresponding map page, where the steps include:
Generating a custom control code library according to source code packages of a plurality of custom function controls and generating a custom control resource library according to resource files required by the plurality of custom function controls by using Openlayers custom extension functions;
Generating a plurality of corresponding custom function controls by using a custom control code library and source code packages and resource files in a custom control resource library;
Classifying the generated plurality of custom function controls according to target functions which are required to be realized in different application scenes, and generating scene labels of each custom function control according to classification results;
detecting a current application scene, and acquiring a target scene label corresponding to the application scene according to a target function to be realized in the current application scene;
calling a target custom function control corresponding to the target scene label in a plurality of custom function controls by using the target scene label;
Running a source code package corresponding to the target custom function control on a simulator, loading a resource file of the target custom function control, and generating an effect preview image corresponding to the target custom function control;
Generating a user demand acquisition request according to a plurality of target custom function controls and an effect preview image under a scene label corresponding to a current target scene;
acquiring user requirements, and selecting a desired target custom function control according to the user requirements;
Generating a configuration instruction of the target custom function control according to the selection information of the user, and rendering the current map page based on the configuration instruction target custom function control.
In this embodiment, the custom extended function Openlayers is denoted as a function that is supported by Openlayers and that uses a third party extended function library to customize the custom function;
in this embodiment, the source code packages of the plurality of custom function controls represent base codes for implementing corresponding functions for the plurality of custom function controls;
in this embodiment, resource files required by the custom function controls are represented as resource files required by the multiple custom function controls to implement corresponding functions;
in this embodiment, generating a plurality of corresponding custom function controls is represented as generating a custom function control package according to a basic code and a carried resource file of the custom function controls to realize corresponding functions, and the corresponding function controls can be directly configured by using the custom function control package;
In this embodiment, the target functions to be implemented in different application scenarios are expressed as different functions to be loaded for different usage scenarios, for example, when a map is mapped in a geographic mapping, a map function control needs to be loaded to implement the target requirements of the user;
in this embodiment, the scene tags are represented as function tags corresponding to different scenes;
In this embodiment, the target scene tag is represented as a function tag corresponding to the current usage scene;
in this embodiment, the corresponding effect preview image is represented as an effect preview image of a function control corresponding to the current scene tag;
in this embodiment, the user requirement acquisition request is represented as an acquisition request interface of the user requirement generated according to the function control and the preview;
in this embodiment, the target custom function control is represented as a custom function control determined according to a user requirement;
In this embodiment, the configuration instruction is represented as an instruction for rendering the current map page using the target custom function control.
The beneficial effects of the technical scheme are as follows: the customization expansion function of Openlayers can be used for carrying specific custom function controls required by a user according to the user requirements, so that the flexibility of the system is further improved, various custom function controls are generated according to application scenes and the user requirements, view function rendering of the corresponding map pages is realized, and the experience of the user and the intelligent degree of the system are improved.
In one embodiment, the system further comprises an editing module for implementing autonomous editing of chart data, the steps of which include:
Receiving an autonomous editing request sent by a user, judging a plurality of items of data existing in dynamic information of a generated current vector image layer, determining whether each item of data existing in the dynamic information belongs to geographic information element data of a map, if so, determining that the item is an uneditable item, otherwise, determining that the item is an editable item;
Generating an independent editing page according to the judged editable options, wherein the independent editing page is provided with a plurality of options capable of conducting file import and data editing on chart data on a map;
Switching the independent editing page to a corresponding option editing area according to the selection operation of the user on the editable options;
Responding to the selection of the user on the editable options, and determining all editable files available for editing the target option files in the current client aiming at the editing request of the user for selecting the target option;
importing at least one editable file according to the selection of a user, and loading the at least one editable file in a content editor of the target option;
Adjusting the data of the target options according to the editing operation of the user in the content editor, generating an effect diagram according to the value of the adjusted target option data, and displaying the effect diagram on an editing interface in the form of a thumbnail;
when the confirmation operation of the user on the effect graph is detected, setting the value of the regulated target option data as the confirmation value of the target option data, ending the editing of the target option, and generating an edited file according to the confirmation value of the target option data;
Generating corresponding chart data according to the edited file of each target option, and establishing a corresponding edited vector layer according to the generated chart data;
and rendering the current map data by using the edited vector layer, and generating a network geographic information page which is independently edited by a user and contains chart data. :
in the present embodiment, the chart data is represented as an image and table data generated from dynamic information loaded on a vector layer;
in this embodiment, generating the dynamic information of the current vector layer is represented as dynamic information containing various data for generating the current vector layer;
in this embodiment, the geographic information element data of the map is represented as data belonging to a necessary geographic information element on the map, which cannot be edited;
In this embodiment, the autonomous editing page is represented as a page containing all the editable options and corresponding file importation and data editing option identifiers;
in this embodiment, the option editing area is represented as an editing page for performing file import and data editing on the corresponding editable option;
in this embodiment, the current client is represented as the client currently using the network geographic information system;
in this embodiment, all the editable files edited by the target option file are represented as all the files which can be applied to the target option and can be edited on the current client;
In the present embodiment, the content editor is represented as a page for editing data;
in this embodiment, the effect graph is represented as a simulated effect graph generated from the current data and graph type;
in the present embodiment, the confirmation operation on the effect map is represented as a confirmation operation performed by the client on the current effect map generated from the data being edited;
In this embodiment, the edited vector layer is represented as a vector layer containing the corresponding chart data after editing generated from the edited file;
In this embodiment, the network geographic information page containing chart data is represented as a corresponding network geographic information page generated by vector layer rendering containing corresponding chart data after editing.
The beneficial effects of the technical scheme are as follows: the independent editing page of the chart can enable the user to realize personalized editing of chart data of the network geographic information system, so that various functional charts based on the geographic information system can be manufactured according to the requirements of the user, and the practicability of the system and the experience of the user are enhanced.
It will be appreciated by those skilled in the art that the first and second aspects of the present invention refer to different phases of application.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (8)

1. Openlayers-based WebGIS development architecture system is characterized by comprising the following modules:
the acquisition module is used for acquiring standard slice map data with a plurality of levels from various data sources of the map;
the data processing module is used for carrying out format conversion on the slice map data acquired by various data sources and converting the slice map data into a unified format;
The map loading module is used for determining a region to be loaded according to the central position of the map displayed on the current display interface and loading the processed region slice map to be loaded according to the current map scale;
The dynamic rendering module is used for converting a coordinate system of the vector image layer according to the coordinate system of the slice map, rendering the current slice map by using the vector image layer and generating a vector slice map for vector marking;
the configuration module is used for intelligently configuring corresponding map function controls according to the current use requirement and carrying out corresponding function control on the vector slice map;
The configuration module comprises:
the second acquisition sub-module is used for acquiring the current use requirement of the current user on the map through the interactive page;
The matching sub-module is used for matching corresponding map function controls in the control library according to the current use requirement of the current user on the map as a keyword and generating a confirmation instruction corresponding to the function controls;
The confirmation sub-module is used for sending corresponding confirmation information of each map function control to the current target user according to the confirmation instruction;
the configuration sub-module is used for configuring a corresponding map function control according to a confirmation result of a user, and controlling the current vector slice map according to the function requirement of the user on the map;
the matching submodule comprises:
the retrieval unit is used for extracting words related to specific functions from the current use requirement input by the user as key words, and retrieving the words in a control library of the map according to the key words;
The judging unit is used for determining whether a search result corresponding to the keyword exists or not, outputting a corresponding first function control name if the corresponding matching result exists, and directly using the function requirement of the current user on the map as the keyword to perform fuzzy search if the search result does not exist, confirming a matched function control and outputting a corresponding second function control name;
And the generating unit is used for generating a confirmation instruction about whether the corresponding function control is configured according to the retrieved first function control name and second function control name.
2. The Openlayers-based WebGIS development architecture system of claim 1, wherein the acquisition module includes:
the retrieval sub-module is used for retrieving slice map data of each area of the map in each large map database;
a selecting sub-module, configured to search a target map database with the largest number of slice map levels in slice map data of each region, and select slice map data of the map database as standard slice map data of the region;
And the first generation sub-module is used for carrying out arrangement and collage on the standard slice map data of different areas to generate complete map data with a plurality of levels.
3. The Openlayers-based WebGIS development architecture system of claim 1, further comprising:
The coordinate processing module is used for carrying out the concordance processing on the coordinate system of the slice map data of different areas from different databases in the complete map generated by the arrangement and collage;
The precision processing module is used for processing the slice data of the whole map according to the minimum precision in the slice map data of the whole map;
And the data optimization module is used for carrying out data optimization on slice map data of the whole map by using the map mask so that the map can highlight any region map.
4. A WebGIS development architecture system based on Openlayers as in claim 3, wherein the precision processing module includes:
The detection sub-module is used for detecting the area size and the area map resolution of each area in the slice map data;
The determining submodule is used for determining the grid unit size corresponding to the regional slice map data according to the regional size of each region and the regional map resolution;
And the processing sub-module is used for processing the grid units of the slice map data of the rest area by taking the maximum grid unit size in all areas as the standard grid unit size.
5. The Openlayers-based WebGIS development architecture system of claim 1, wherein the map loading module includes:
The preprocessing sub-module is used for carrying out standardized preprocessing on the slice map data, so that the number of slice levels of the slice map data of each area of the map is consistent, the corresponding scale of each level is consistent, and each area of the map is numbered according to the specific area of the slice map data;
the determining submodule determines the center position of the map to be loaded on the display interface according to a preset map default loading interface and determines the scale suitable for the current interface;
The loading sub-module is used for determining the region numbers of the slice map to be loaded according to the center position of the map to be loaded, acquiring slice map data of the corresponding region according to each region number of the preprocessed slice map data, determining the display level of the slice map data according to the determined scale, and loading the corresponding slice map according to the determined center position and the display level.
6. The Openlayers-based WebGIS development architecture system of claim 2, wherein the dynamic rendering module includes:
The second generation sub-module is used for acquiring the dynamic information of the current regional slice map through an online database corresponding to each region on the map and generating a vector layer with dynamic information marks at the corresponding positions of the regional slice map;
the coordinate conversion sub-module is used for carrying out coordinate conversion on the current vector image layer according to the scale and azimuth information of the current slice map display level;
The rendering sub-module is used for rendering the display page of the current slice map by using the vector image layer after coordinate conversion, so that the corresponding vector mark is displayed on the current slice map;
And the output sub-module is used for outputting a vector slice map obtained by dynamic rendering at the display terminal.
7. The Openlayers-based WebGIS development architecture system of claim 1, further comprising a generation module for generating various custom functionality controls to implement view function rendering of a corresponding map page according to an application scene and a user requirement, wherein the steps include:
Generating a custom control code library according to source code packages of a plurality of custom function controls and generating a custom control resource library according to resource files required by the plurality of custom function controls by using Openlayers custom extension functions;
Generating a plurality of corresponding custom function controls by using a custom control code library and source code packages and resource files in a custom control resource library;
Classifying the generated plurality of custom function controls according to target functions which are required to be realized in different application scenes, and generating scene labels of each custom function control according to classification results;
detecting a current application scene, and acquiring a target scene label corresponding to the application scene according to a target function to be realized in the current application scene;
calling a target custom function control corresponding to the target scene label in a plurality of custom function controls by using the target scene label;
Running a source code package corresponding to the target custom function control on a simulator, loading a resource file of the target custom function control, and generating an effect preview image corresponding to the target custom function control;
Generating a user demand acquisition request according to a plurality of target custom function controls and an effect preview image under a scene label corresponding to a current target scene;
acquiring user requirements, and selecting a desired target custom function control according to the user requirements;
Generating a configuration instruction of the target custom function control according to the selection information of the user, and rendering the current map page based on the configuration instruction target custom function control.
8. The Openlayers-based WebGIS development architecture system of claim 1, further comprising an editing module for enabling autonomous editing of chart data, the steps comprising:
Receiving an autonomous editing request sent by a user, judging a plurality of items of data existing in dynamic information of a generated current vector image layer, determining whether each item of data existing in the dynamic information belongs to geographic information element data of a map, if so, determining that the item is an uneditable item, otherwise, determining that the item is an editable item;
Generating an independent editing page according to the judged editable options, wherein the independent editing page is provided with a plurality of options capable of conducting file import and data editing on chart data on a map;
Switching the independent editing page to a corresponding option editing area according to the selection operation of the user on the editable options;
Responding to the selection of the user on the editable options, and determining all editable files available for editing the target option files in the current client aiming at the editing request of the user for selecting the target option;
importing at least one editable file according to the selection of a user, and loading the at least one editable file in a content editor of the target option;
Adjusting the data of the target options according to the editing operation of the user in the content editor, generating an effect diagram according to the value of the adjusted target option data, and displaying the effect diagram on an editing interface in the form of a thumbnail;
when the confirmation operation of the user on the effect graph is detected, setting the value of the regulated target option data as the confirmation value of the target option data, ending the editing of the target option, and generating an edited file according to the confirmation value of the target option data;
Generating corresponding chart data according to the edited file of each target option, and establishing a corresponding edited vector layer according to the generated chart data;
And rendering the current map data by using the edited vector layer, and generating a network geographic information page which is independently edited by a user and contains chart data.
CN202310977461.3A 2023-08-04 2023-08-04 Openlayers-based WebGIS development architecture system Active CN117075854B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310977461.3A CN117075854B (en) 2023-08-04 2023-08-04 Openlayers-based WebGIS development architecture system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310977461.3A CN117075854B (en) 2023-08-04 2023-08-04 Openlayers-based WebGIS development architecture system

Publications (2)

Publication Number Publication Date
CN117075854A CN117075854A (en) 2023-11-17
CN117075854B true CN117075854B (en) 2024-04-16

Family

ID=88708956

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310977461.3A Active CN117075854B (en) 2023-08-04 2023-08-04 Openlayers-based WebGIS development architecture system

Country Status (1)

Country Link
CN (1) CN117075854B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117827915A (en) * 2024-03-01 2024-04-05 昆明麦普空间科技有限公司 Rapid vector slicing system and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110119266A (en) * 2019-04-30 2019-08-13 航天恒星科技有限公司 A kind of WebGIS applicating developing technology frame based on OpenLayers
CN112559667A (en) * 2021-02-23 2021-03-26 北京简巨科技有限公司 Map editor, map engine, map editing system, map editing method, and storage medium
CN115687675A (en) * 2022-10-26 2023-02-03 中国航空工业集团公司西安航空计算技术研究所 Airborne vector map data processing method
CN116450869A (en) * 2023-05-16 2023-07-18 中国电信股份有限公司 Panoramic image data processing method and system, electronic device and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8160389B2 (en) * 2008-07-24 2012-04-17 Microsoft Corporation Method for overlapping visual slices

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110119266A (en) * 2019-04-30 2019-08-13 航天恒星科技有限公司 A kind of WebGIS applicating developing technology frame based on OpenLayers
CN112559667A (en) * 2021-02-23 2021-03-26 北京简巨科技有限公司 Map editor, map engine, map editing system, map editing method, and storage medium
CN115687675A (en) * 2022-10-26 2023-02-03 中国航空工业集团公司西安航空计算技术研究所 Airborne vector map data processing method
CN116450869A (en) * 2023-05-16 2023-07-18 中国电信股份有限公司 Panoramic image data processing method and system, electronic device and storage medium

Also Published As

Publication number Publication date
CN117075854A (en) 2023-11-17

Similar Documents

Publication Publication Date Title
CN109408044B (en) BIM data and GIS data integration method based on glTF
CN112559667B (en) Map editor, map engine, map editing system, map editing method, and storage medium
CN117075854B (en) Openlayers-based WebGIS development architecture system
CN111738280A (en) Image identification method, device, equipment and readable storage medium
CN105704675A (en) Scenic region information processing method and device
EP3893096A1 (en) Aligning and augmenting a partial subspace of a physical infrastructure with at least one information element
CN111949817A (en) Crop information display system, method, equipment and medium based on remote sensing image
CN114723869B (en) Image processing method and device
CN114863418A (en) Voltage-sharing field identification method and device, storage medium and terminal
CN116343103B (en) Natural resource supervision method based on three-dimensional GIS scene and video fusion
CN115375868B (en) Map display method, remote sensing map display method, computing device and storage medium
CN115114356A (en) Real-time decryption method based on vector data front-end display
KR102388777B1 (en) System for providing adjacent building pre-survey service usign 360 degree virtual reality camera
CN114663324A (en) Fusion display method of BIM (building information modeling) model and GIS (geographic information system) information and related components
CN109917456B (en) Method and system for quickly extracting seismic information
CN109863746A (en) Interactive data visualization environment
CN115357675B (en) Method and system for establishing image control point database through standardized processing of image control points
CN107332925B (en) Topographic data publishing system and method based on browser/server architecture
CN109857950A (en) A kind of geologic information obtains, method for pushing and device
CA3105227C (en) Techniques for extraction of vectorized content of an oil and gas play within an unstructured file
CN115630191A (en) Time-space data set retrieval method and device based on full-dynamic video and storage medium
Gryzun et al. Development of the information system for navigation in modern university campus
KR100349677B1 (en) Component-based open gis apparatus
Epitropou et al. Environmental data extraction from heatmaps using the AirMerge system
Brovelli et al. Valorisation of Como historical cadastral maps through modern web geoservices

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant