A spatial information one-key assembly method and system and a readable storage medium
By automatically acquiring and compiling spatial information data through user input parameters, the convenience of offline data download on existing platforms has been solved, enabling one-click compilation of text and images from offline data, thus improving user experience and data display capabilities.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHANGHAI GISINFO TECH CO LTD
- Filing Date
- 2022-07-27
- Publication Date
- 2026-04-17
AI Technical Summary
Existing spatial information service platforms cannot support data download when used offline, or only support downloading data one by one. Furthermore, the downloaded data needs to be manually edited before use, lacking the convenience of one-click compilation.
This paper provides a one-click method for assembling spatial information. It obtains parameter information through user input, automatically calls the spatial analysis interface to obtain text and image information, and assembles it into the result document. It supports offline use and visualization display.
It enables users to obtain offline spatial information data with one click, improving the convenience and reading experience of the data. It supports the simultaneous display of text and images, simplifying the data management and usage process.
Smart Images

Figure CN115357658B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of spatial information service technology, and in particular to a method, system and readable storage medium for one-click assembly of spatial information. Background Technology
[0002] Spatial information is information that reflects the spatial distribution characteristics of geographic entities. Geography reveals the patterns of regional spatial distribution and change through the acquisition, perception, processing, analysis, and synthesis of spatial information. Spatial information is transmitted using spatial information carriers (images and maps). Graphics are the primary form of representing spatial information. Geographic entities can be described as basic graphic elements such as points, lines, and areas. Spatial information can only fully describe geographic entities when combined with attribute information and temporal information.
[0003] A spatial information service platform refers to an information infrastructure and information system that utilizes the "digital earth" theory and is based on key technologies such as remote sensing, GIS, virtual simulation, networks, databases, and multimedia to deeply develop and utilize spatial information, and to build information infrastructure and information systems that serve urban planning, construction, and management; serve governments, enterprises, and the public; and serve the sustainable development of population, resources, environment, economy, and society.
[0004] Regarding the aforementioned technologies, the inventors believe that most current spatial information service platforms only support online retrieval or viewing of spatial information. However, when it is necessary to use spatial data offline, many spatial information service platforms cannot support data download or only support downloading data one by one. After the spatial information data is downloaded, it still needs to be manually edited before it can be used. Summary of the Invention
[0005] To facilitate users in obtaining offline spatial information data from a spatial information service platform with a single click, this application provides a method, system, and readable storage medium for one-click compilation of spatial information.
[0006] Firstly, this application provides a one-click assembly method for spatial information, which adopts the following technical solution:
[0007] A one-click assembly method for spatial information includes:
[0008] Based on user input, obtain the spatial information parameters that the user needs to download;
[0009] Based on the spatial information parameters, determine the parameter information;
[0010] Based on the parameter information, the spatial analysis interface is called to obtain the text information corresponding to the spatial information parameters, and the text information is compiled into the result document.
[0011] By adopting the above technical solution, when a user uses the one-click assembly method in this application to obtain offline spatial information data, the user only needs to select the spatial information parameters to be downloaded from the input interface. After the selection is completed, this method can automatically judge the parameter information and automatically obtain the text information corresponding to the spatial information parameters based on the parameter information and assemble it into the result document. The result document is the offline spatial information data that the user needs to download, and the user can directly use and browse it offline.
[0012] Optionally, a one-click spatial information assembly method further includes, based on the parameter information, calling a preset rendering tool to generate image information corresponding to the spatial information parameters, and assembling the image information into a result document.
[0013] By adopting the above technical solution, the image information corresponding to the spatial information parameters can be obtained by rendering based on the parameter information using rendering tools. This image information is then compiled into the result document, adding the image information corresponding to the spatial information parameters selected by the user to the result document. This allows offline spatial information data to be displayed visually while also being presented in textual form, thereby enriching the data content of the result document and improving the reading experience for users and readers.
[0014] Optionally, the user input includes project name input, analysis precision input, analysis area input, department selection input, analysis content input, and start assembly input.
[0015] By adopting the above technical solution, the project name input allows users to name the downloaded result documents, thus facilitating subsequent document management and use; the analysis precision input allows users to select the precision range (city, district, or street) of the spatial information data to be downloaded; the analysis area input allows users to select an administrative region or a custom range; the analysis content input is used to obtain the spatial information data content that the user needs to download; and the start assembly input allows the user to start assembling the result document after entering the above content.
[0016] Optionally, the analysis may include basic space, population, innovation economy, and public services.
[0017] Optionally, the spatial analysis includes spatial correlation analysis and data statistical analysis, and the text information includes text information, table information, and chart information.
[0018] By adopting the above technical solution, spatial information data can be statistically analyzed using spatial analysis interfaces (spatial correlation analysis and data statistical analysis), and the statistical results can be inserted into the results document in the form of text, tables and charts.
[0019] Optionally, based on the parameter information, a preset rendering tool is invoked to generate image information corresponding to the spatial information parameters, and the image information is compiled into a result document, including...
[0020] Receive the parameter information from the URL;
[0021] Based on the parameter information, the leaflet page is invoked to render different maps and generate map information;
[0022] The image information is generated by taking screenshots of the map information using Selenium, and then the image information is compiled into a result document.
[0023] By adopting the above technical solution, the leaflet-based page receives parameters from the URL to render different maps, and then uses Selenium to take screenshots of the subway and insert them into the result document, thereby realizing the generation of image information.
[0024] Optionally, during the generation of the result document, the task status and results can be displayed in real time.
[0025] By adopting the above technical solution, the task status and results can be displayed in real time, which makes it convenient for users to view them in real time, thereby improving the practicality and convenience of this method.
[0026] Optionally, after generating the result document, a notification message is generated to remind the user that the task is completed.
[0027] By adopting the above technical solution, message notifications can remind users after the result document is generated, thereby further improving the practicality and convenience of this method.
[0028] Secondly, this application also provides a one-click spatial information assembler system, which adopts the following technical solution:
[0029] A one-click spatial information assembly system includes,
[0030] A presentation layer is used to display input options to the user and to obtain user input based on the input options;
[0031] The business layer encapsulates the logic language corresponding to a one-click spatial information assembly method as described in the above technology.
[0032] The persistence layer calls the spatial analysis interface to complete the conversion between object data and relational data.
[0033] By adopting the above technical solution, the interface is displayed and input is obtained in the presentation layer. The user selects input options on the interface to form user input. The business layer obtains the user input and executes the logic language corresponding to the above-mentioned one-click spatial information assembly method. In the persistence layer, the spatial analysis interface is called to complete the conversion between object data and relational data, thereby completing the one-click assembly of spatial information.
[0034] Thirdly, this application also provides a readable storage medium, which adopts the following technical solution:
[0035] A readable storage medium includes a memory that stores program data for executing the spatial information one-click assembly method described above.
[0036] By adopting the above technical solution, the program data corresponding to the above method is stored in a readable storage medium, which facilitates the promotion and use of the method.
[0037] In summary, this application includes at least one of the following beneficial technical effects:
[0038] 1. When a user uses the one-click assembly method in this application to obtain offline spatial information data, the user only needs to select the spatial information parameters to be downloaded from the input interface. After the selection is completed, this method can automatically judge the parameter information and automatically obtain the text information corresponding to the spatial information parameters based on the parameter information and assemble it into the result document. The result document is the offline spatial information data that the user needs to download, and the user can directly use and browse it offline.
[0039] 2. Rendering with rendering tools based on parameter information can obtain the image information corresponding to the spatial information parameters. This image information is then compiled into the result document, adding the image information corresponding to the spatial information parameters selected by the user to the result document. This allows offline spatial information data to be displayed visually while also providing textual information, thereby enriching the data content of the result document and improving the reading experience for users and readers.
[0040] 3. The Project Name input allows users to name the downloaded result documents, facilitating subsequent document management and use; the Analysis Precision input allows users to select the precision range of the spatial information data to be downloaded (city, district, or street); the Analysis Region input allows users to select an administrative region or a custom range; the Analysis Content input is used to obtain the spatial information data content that the user needs to download; the Start Assembly input is used by the user to start assembling the result document after entering the above content. Attached Figure Description
[0041] Figure 1 This is a flowchart of a one-click spatial information assembly method according to an embodiment of this application;
[0042] Figure 2 This is a business logic diagram of a one-click spatial information assembly method according to an embodiment of this application. Detailed Implementation
[0043] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0044] The method steps described in this application embodiment can be executed in the order described in the specific implementation, or the execution order of each step can be adjusted according to actual needs, provided that the technical problem can be solved. They are not listed one by one here.
[0045] The present application will be further described in detail below with reference to the accompanying drawings.
[0046] This application discloses a method for one-click assembly of spatial information.
[0047] Reference Figure 1 and Figure 2 A method for one-click assembly of spatial information includes the following steps:
[0048] S1. Based on user input, obtain the spatial information parameters that the user needs to download. Specifically, user input includes project name input, analysis precision input, analysis area input, department selection input, analysis content input, and start assembly input. The project name input is used to generate the project name based on user input. The analysis precision input allows the user to select the precision range of the spatial information data to be downloaded. In this embodiment, the selectable precision range includes city, district / county, and street ranges, allowing the user to determine the data range of the spatial information data to be obtained through self-selection. The analysis area input is used to select the administrative region or a custom range of the spatial data to be downloaded. The analysis content input is used to obtain the spatial information data content that the user needs to download, specifically including basic space, population, innovative economy, and public services. The user can select one or more of the above content to download. The start assembly input is set as a calculation button in this embodiment. After completing all the above user inputs, clicking the calculation button will automatically obtain the spatial information parameters corresponding to the result document that the user needs to download based on the user input. In this embodiment, the result document can be set as a PPT file; in other embodiments, the result document can also be set as a PDF file or other readable files.
[0049] S2, based on spatial information parameters, determines parameter information. Specifically, based on the spatial information parameters input by the user, it determines the parameter information corresponding to the region, precision, and analysis content.
[0050] S3, based on parameter information, calls the spatial analysis interface to obtain the corresponding textual information for the spatial information parameters and compiles this textual information into the results document. Specifically, the spatial analysis interface includes spatial correlation analysis and data statistical analysis, and the textual information includes textual information, tabular information, and chart information. When compiling basic spatial information data, its textual information is obtained by calling the spatial correlation analysis interface. When compiling population information data, its textual information is obtained by calling the spatial correlation analysis interface, and its tabular information is obtained by calling the data statistical analysis interface. When compiling innovative economic information data, its textual information is obtained by calling the spatial correlation analysis interface, and its tabular and chart information is obtained by calling the data statistical analysis interface. When compiling public service information data, its textual information is obtained by calling the spatial correlation analysis interface, and its chart information is obtained by calling the data statistical analysis interface.
[0051] S4, based on the parameter information, calls the preset rendering tool to generate the image information corresponding to the spatial information parameters, and assembles the image information into the result document. Step S4 specifically includes the following three sub-steps:
[0052] S41, receive parameter information from the URL;
[0053] S42, based on parameter information, calls the leaflet page to render different maps and generate map information;
[0054] S43 uses Selenium to capture map information, generates image information, and compiles the image information into the result document.
[0055] In step S4, when compiling basic spatial information data, basic spatial image information such as administrative satellite imagery, topographic elevation maps, topographic slope maps, and land use maps can be obtained. When compiling population information data, population image information such as resident population kernel density analysis maps, resident population raster analysis maps, working population kernel density analysis maps, working population raster analysis maps, and work-residence network maps can be obtained. When compiling innovation economy information data, innovation economy image information such as enterprise headquarters-branch maps, enterprise branch-headquarters maps, and enterprise connection network maps can be obtained. When compiling public service information data, public service facility kernel density analysis maps and service facility distribution maps within a 15-minute living circle of a region can be obtained.
[0056] In addition, a one-click method for assembling spatial information also includes the following steps:
[0057] S5 displays the task status and results in real time during the generation of the result document. The task status and results can be viewed in the personal center of the spatial information service platform.
[0058] S6, after generating the result document, generate a notification message to remind the user that the task is complete. In this embodiment, this notification message can be sent to the user via a WebSocket message.
[0059] The implementation principle of the one-click spatial information compilation method in this application is as follows: When a user uses the one-click compilation method to obtain offline spatial information data, the user only needs to select the spatial information parameters to be downloaded from the input interface. After selection, the method can automatically judge the parameter information and automatically obtain the text information corresponding to the spatial information parameters based on the parameter information and compile it into the result document. This result document is the offline spatial information data that the user needs to download, which the user can directly use and browse offline. At the same time, based on the parameter information, rendering tools can be used to obtain the image information corresponding to the spatial information parameters. This image information is also compiled into the result document, adding the image information corresponding to the spatial information parameters selected by the user to the result document. This allows the offline spatial information data to be displayed visually while displaying text, thereby enriching the data content of the result document and improving the reading experience for users and readers. Through the one-click compilation method of this application, after integration with the online map platform, basic information and data of a specified area or planning unit can be obtained according to the conditions, providing one-click extraction and compilation into offline data packages or data indexes according to specifications.
[0060] Based on the spatial information one-click assembly method disclosed in the above embodiments, this application also discloses a spatial information one-click assembly system.
[0061] A one-click spatial information assembly system, comprising:
[0062] The presentation layer is used to display input options to the user and to obtain user input based on these options. In this embodiment, the input options specifically include project name, analysis precision, analysis area, selected department, analysis content, reset, and calculation. Users can select assembly content and begin assembly operations with a single click based on these input choices.
[0063] The business layer encapsulates the logic language corresponding to a one-click spatial information assembly method disclosed in the above embodiments.
[0064] The persistence layer calls the spatial analysis interface to convert object data into relational data. Specifically, retrieving text information calls the spatial analysis service, while retrieving image information calls the statistical analysis service.
[0065] The implementation principle of the spatial information one-click assembly system in this application embodiment is as follows: the interface is displayed and input is obtained in the presentation layer. The user selects input options on the interface to form user input. The business layer obtains the user input and executes the logic language corresponding to the above-mentioned spatial information one-click assembly method. The spatial analysis interface is called in the persistence layer to complete the conversion between object data and relational data, thereby completing the one-click assembly of spatial information.
[0066] This application also discloses a computer-readable storage medium, including a memory that stores program data for executing a one-click spatial information assembly method as described in the above embodiments. Specifically, the computer-readable storage medium stores a computer program that can be loaded by a processor and executed as described in the one-click spatial information assembly method. This computer-readable storage medium includes, for example, various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0067] The above are all preferred embodiments of this application, and are not intended to limit the scope of protection of this application. Therefore, all equivalent changes made in accordance with the structure, shape and principle of this application should be covered within the scope of protection of this application.
Claims
1. A method for spatial information one-key assembly, characterized in that: include, Based on user input, obtain the spatial information parameters that the user needs to download; Based on the spatial information parameters, determine the parameter information; Based on the parameter information, spatial analysis is used to obtain the text information corresponding to the spatial information parameters, and the text information is compiled into the result document; The system invokes a preset rendering tool to generate image information corresponding to spatial information parameters, and compiles the image information into the result document. The spatial information parameters include analysis content, including basic space, population, innovative economy, and public services. The spatial analysis includes spatial correlation analysis and data statistical analysis. The textual information includes text information, table information, and chart information. Based on the parameter information, the system invokes the preset rendering tool to generate image information corresponding to the spatial information parameters, and compiles the image information into the result document. The system receives the parameter information from the URL, invokes the Leaflet page to render different maps, generates map information, and uses Selenium to capture screenshots of the map information to generate image information, which is then compiled into the result document. During the generation of the result document, the task status and results are displayed in real time. After the result document is generated, a notification message is generated to remind the user that the task is completed.
2. The method according to claim 1, wherein: It also includes, based on the parameter information, calling a preset rendering tool to generate image information corresponding to the spatial information parameters, and compiling the image information into the result document.
3. The method of claim 1, wherein: The user input includes project name input, analysis precision input, analysis area input, department selection input, analysis content input, and start assembly input.
4. The method according to claim 3, wherein: The analysis includes basic space, population, innovation economy, and public services.
5. The method of claim 4, wherein: The spatial analysis includes spatial correlation analysis and data statistical analysis, and the textual information includes textual information, table information and chart information.
6. The method of claim 1, wherein: It also includes displaying the task status and results in real time during the generation of the result document.
7. The method for one-click assembly of spatial information according to claim 1, characterized in that: It also includes generating a notification message to remind the user that the task is completed after the result document is generated.
8. A spatial information one-key assembly system, characterized in that: include, A presentation layer is used to display input options to the user and to obtain user input based on the input options; The business layer encapsulates the logic language corresponding to the one-click assembly method for spatial information as described in any one of claims 1-7; The persistence layer calls the spatial analysis interface to complete the conversion between object data and relational data.
9. A readable storage medium characterized by: Includes a memory that stores program data for executing a one-click spatial information assembly method as described in any one of claims 1-7.
Citation Information
Patent Citations
Hierarchical business management system
CN102004634A
Map service publishing method and device
CN109947882A