A method for seamless loading and rapid display of massive vector data in geographic information systems
By initializing the adaptive raster tile manager in the GIS system and updating tile data in real time, the problem of inefficient loading and display of massive vector data is solved, fast loading and display is achieved, and the response speed and user experience of the system are improved. .
Patent Information
- Application Number
- CN202411017218.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-07-29
AI Technical Summary
Existing GIS systems are inefficient when loading and displaying massive vector data, resulting in poor system display efficiency, especially on mobile and web terminals, resulting in long waiting times for users and affecting work efficiency.
By reading the current display level and screen parameters, the adaptive raster tile manager is initialized, the vector data is loaded into the spatial database, and raster tiles are performed to update the tile data within the display range in real time to ensure screen display. The vector data is synchronized with user operations.
It realizes the fast loading and display of massive vector data, improves the response speed of the GIS system, meets users' needs for fast loading, display, zooming and moving of vector data, and improves the system's processing capabilities.
Smart Images

Figure CN118551067B
Abstract
Description
Technical Field
[0001] The invention is applicable to the field of map vector data loading and processing, and provides a method for seamlessly loading and quickly displaying massive vector data in a geographic information system. Background Art
[0002] With the development of GIS technology, loading massive vector data in various geographic information systems has become increasingly common; therefore, under the existing technical framework, how to find a method to improve the loading and rapid display of massive vector data in GIS systems has great practical significance. It is also one of the important indicators to measure whether a GIS system is capable of processing massive data.
[0003] The problem of loading and displaying big data is one of the difficulties currently faced by GIS systems on mobile, Web and PC. In daily work, GISers often encounter problems with loading and displaying massive vector data. Loading more than 100M of vector data often leads to low display efficiency of the GIS system. Moving or refreshing data often causes the system to wait for a long time, which brings great inconvenience to normal work. Summary of the invention
[0004] In view of the above-mentioned defects, the purpose of the present invention is to provide a method for seamlessly loading and quickly displaying massive vector data in a geographic information system, in order to solve the problems raised in the background technology, which is characterized by:
[0005] The following steps are involved:
[0006] S1. Read the display level of the current engine and set screen parameters;
[0007] S2. Initialize the adaptive grid tile manager;
[0008] S3. Load the vector data into the spatial database;
[0009] S4. Load the vector data to be displayed on the current screen into the adaptive raster tile manager and perform raster tiling;
[0010] S5. Display the tiles in the adaptive grid tile manager on the screen.
[0011] Furthermore, the step S1 is specifically as follows: the GIS system reads the parameters of the current screen physical display device, and combines the current display level of the GIS system; the parameters include the pixel pitch, refresh rate, and resolution of the display device.
[0012] Furthermore, the specific steps of initialization in step S2 are:
[0013] S2.1, the GIS system sends the acquired display level information and screen parameter information to the adaptive grid tile manager;
[0014] S2.2, the adaptive grid tile manager automatically initializes and assigns values to various parameters of the grid tile manager according to information such as screen parameters and display levels. The assigned parameters include: the starting and ending positions of the longitude and latitude coordinates corresponding to the screen range, the map display level, the number of tiles that can be displayed on the screen at each level, and the total memory size required by the tiles;
[0015] S2.3. After completing the initialization work, the adaptive raster tile manager waits for the vector data input from the spatial database to prepare for the next step of tiling the vector data.
[0016] Furthermore, the vector data in step S3 includes: shp, kml / kmz, gpx, dxf, csv, txt, bmv / bmvx, geojson vector file formats;
[0017] Furthermore, in step S4, the adaptive raster tile manager will read the vector data objects in the spatial database according to the current screen parameters, display level, and longitude and latitude coordinate range corresponding to the screen display range, and rasterize the vector data objects according to the tile level. As the screen display range changes, the adaptive raster tile manager reads the vector object data in the spatial database in real time and rasterizes it, maintaining the consistency between the tile display range in the adaptive raster tile manager and the screen display range; and updating the screen display vector data in real time.
[0018] Furthermore, the method for real-time updating of the adaptive grid tile manager data in step S4 is:
[0019] S4.1, the adaptive raster tile manager reads the vector data objects stored in the spatial database according to the screen display range, display level and other parameters;
[0020] S4.2, the adaptive raster tile manager converts the vector data object into raster tiles, and saves the converted raster tiles into the adaptive raster tile manager;
[0021] S4.3, the adaptive raster tile manager notifies the GIS system that the raster tiles are ready for screen display;
[0022] S4.4, when the user operates the mouse to zoom in, zoom out, and move the screen, the GIS system transmits the current display parameters of the screen to the adaptive grid tile manager;
[0023] S4.5. The adaptive raster tile manager, based on the new screen display parameters, directly notifies the GIS system that the raster tiles are ready if it is a zoom-in operation, without any other operations.
[0024] S4.6. If it is a zoom-out or move operation, the adaptive raster tile manager recalculates the latitude and longitude coordinate range, reads the vector data in the spatial database, and then repeats steps S4.1 to S4.3.
[0025] Furthermore, the data displayed on the screen in step 5 includes the initialized vector data currently displayed on the screen and the tile data updated in step S4.
[0026] Therefore, the method for seamlessly loading and quickly displaying massive vector data of the present invention can meet user needs in multiple aspects such as fast loading, display, scaling, and mobile display of vector data. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 It is a flowchart of a method for seamlessly loading and quickly displaying massive vector data in a geographic information system; DETAILED DESCRIPTION
[0028] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0029] This technical solution is based on the GIS system (Geographic Information System), which collects, stores, manages, calculates, analyzes, displays and describes the geographic spatial data of the specified area. The system is used to input, store, query, analyze and display geographic data. In this technical solution, the geospatial data needs to be input into the GIS system, and GIS stores and manages the geospatial data, that is, the geospatial data is stored in a certain format and structure, and the query, editing, browsing, display and update maintenance operations of the geographic information data are provided; the GIS system performs various spatial queries, spatial analyses and spatial decision support. Among them, the geospatial data includes the location, shape and other spatial characteristics and non-spatial characteristics of the geographic entity.
[0030] At the same time, the GIS system can be visualized, that is, the geographic spatial data can be intuitively displayed to users through maps, charts, etc. The GIS system can be secondary developed. The GIS system provides API interfaces and development tools to support developers to customize and expand GIS applications.
[0031] See also Figure 1The purpose of the present invention is to provide a method for seamlessly loading and quickly displaying massive vector data in a geographic information system, comprising the following steps:
[0032] S1. Read the display level and device screen parameters of the current engine.
[0033] Specifically, this step is for the GIS system to read the parameters of the current screen physical display device (screen resolution) and combine it with the current display level of the GIS system. In the GIS system, the display level is mainly used to determine the degree of zooming in and out of the displayed map. When the screen resolution is constant, different display levels mean the number of raster tiles at the same level. For example, in Google satellite maps, levels 1-21 are generally specified, with level 18 for an area of 0.5m*0.5m, level 19 for an area of 0.25*0.25m, level 20 for an area of 0.125*0.125m, and level 21 for an area of 0.05*0.05m.
[0034] Different display levels correspond to different map scales, which determine the level of detail of map content representation and the accuracy of map measurement.
[0035] The GIS system accesses the display device to obtain parameters such as pixel pitch, refresh rate, and resolution of the display device, and prepares for the longitude and latitude coordinate range corresponding to the screen display range at different display levels. It also prepares for how much memory space needs to be allocated to the raster tile library in the adaptive grid tile manager.
[0036] S2. Initialize the adaptive grid tile manager.
[0037] Raster Tiles: Raster Tiles are map slice files that contain a series of scales and a certain map range. The map displayed on the screen is composed of tile images at the same level. Raster tiles of adjacent levels are composed of a pyramid structure. Each low-level tile corresponds to four high-level tiles. Each tile can be uniquely marked by level, row and column number.
[0038] In the adaptive raster tile manager, the management method of raster tiles is composed according to the pyramid structure. When the vector data is loaded into the adaptive raster tile manager, the pyramidization of the raster tiles is completed.
[0039] The specific steps of initialization are:
[0040] S2.1. The GIS system sends the acquired display level information and screen parameter information to the adaptive grid tile manager.
[0041] S2.2, the adaptive grid tile manager automatically initializes and assigns values to various parameters of the grid tile manager according to information such as screen parameters and display level. The assigned parameters include: the start and end positions of the longitude and latitude coordinates corresponding to the screen range (two sets of longitude and latitude coordinates), the map display level, the number of tiles that can be displayed on the screen at each level (number of rows and columns), and the total memory size required by the tiles;
[0042] S2.3. After completing the initialization work, the adaptive raster tile manager waits for the vector data input from the spatial database to prepare for the next step of tiling the vector data.
[0043] Through the above steps, the adaptive grid tile manager can automatically select the most suitable grid tile for display according to the user's device information parameters and the user's requested display level. This ensures that appropriate and high-quality map display can be obtained on different devices and resolutions.
[0044] S3. Load the vector data into the spatial database.
[0045] Vector data includes: shp, kml / kmz, gpx, dxf, csv, txt, bmv / bmvx, geojson vector file formats; usually, massive vector data comes from vector format files, which include both the location coordinate data of points, lines, and surfaces, as well as the corresponding attribute data, and the data volume is large; often a file includes more than 100,000 objects, and the file size exceeds 100M. These vector data need to be imported into the spatial database to facilitate the system's rapid query, modification, deletion, and spatial topology calculation of vector objects.
[0046] Specifically, vector data objects include the following main types: Point: used to represent a specific location in geographic space, such as the coordinates of a city, the top of a mountain, etc. Line: composed of a series of adjacent points, used to represent paths or lines in geographic space, such as rivers, roads, railways, etc. Face: a closed area surrounded by a group of adjacent lines, used to represent areas with surface features in geographic space, such as countries, lakes, forests, etc.
[0047] In addition to geometric elements, vector data objects also contain attribute information, such as the name of the point, the length of the line, the area of the surface, etc. These attribute information can be associated with spatial geometric elements to provide a richer description of geographic information.
[0048] The GIS system engine includes a spatial database. After the vector data is loaded into the spatial database, the spatial database adds spatial location information compared to the general database. The spatial location information specifically includes: longitude and latitude coordinates and altitude data.
[0049] After loading vector data, the spatial database can support the addition, modification, deletion, query, and calculation of spatial topological relationships of spatial objects (points, lines, and surfaces), which facilitates the rapid storage of map data, such as map catalogs and geographic reference frames.
[0050] S4. Load the current screen display vector data into the adaptive raster tile manager.
[0051] The adaptive raster tile manager can dynamically provide the most suitable raster tile data according to the screen size and resolution of different devices (such as web, iPad, mobile phone, etc.), combined with the display level and the current display range parameters (the latitude and longitude coordinates of the display range). This ensures the best map display effect on different devices.
[0052] The adaptive raster tile manager will query the vector data objects in the spatial database according to the display range, and generate raster tiles for the data object collection according to the display level from low to high, and organize and manage them according to the pyramid structure; when the user operates the screen with the mouse (zoom in, zoom out and move), the adaptive raster tile manager will re-query the vector data objects from the spatial database according to the position and level changes brought about by the user's operation, re-raster tiling work, and prepare tile data for screen update display. During the program running process, as the screen display position and size (level) change (user's active operation), the tile data in the adaptive raster tile manager also changes in real time, and always keeps the data synchronized with the map position displayed on the screen.
[0053] The real-time update method of adaptive grid tile manager data is:
[0054] S4.1, the adaptive raster tile manager reads the vector data objects stored in the spatial database according to the screen display range, display level and other parameters;
[0055] S4.2, the adaptive raster tile manager converts the vector data object into raster tiles, and saves the converted raster tiles into the adaptive raster tile manager;
[0056] S4.3, the adaptive raster tile manager notifies the GIS system that the raster tiles are ready for screen display;
[0057] S4.4, when the user operates the mouse to zoom in, zoom out, and move the screen, the GIS system transmits the current display parameters of the screen to the adaptive grid tile manager;
[0058] S4.5, Adaptive raster tile manager, based on the new screen display parameters, directly notifies the GIS system that the raster tiles are ready if it is a zoom operation, without any other operation;
[0059] S4.6. If it is a zoom-out or move operation, the adaptive raster tile manager recalculates the latitude and longitude coordinate range, reads the vector data in the spatial database, and then repeats steps S4.1 to S4.3.
[0060] S5. Display the tiles in the adaptive grid tile manager on the screen.
[0061] Here, in addition to the vector data displayed on the current screen after initialization, the tile data updated in step S4 is also included.
[0062] In summary, the method for fast loading and displaying massive vector data described in the present invention can meet user needs in multiple aspects such as fast loading, display, scaling, and mobile display of vector data.
[0063] Of course, the present invention may have many other embodiments. Without departing from the spirit and essence of the present invention, technicians familiar with the field may make various corresponding changes and modifications based on the present invention, but these corresponding changes and modifications should all fall within the scope of protection of the claims attached to the present invention.
Claims
1. A method for seamless loading and rapid display of massive vector data in a geographic information system, characterized in that: The following steps are involved: S1. Read the display level of the current engine and set screen parameters; S2. Initialize the adaptive grid tile manager; S3. Load the vector data into the spatial database; S4. Load the vector data to be displayed on the current screen into the adaptive raster tile manager and perform raster tiling; S5. Displaying the tiles in the adaptive grid tile manager to the screen; The specific steps of initialization in step S2 are: S2.1, the GIS system sends the acquired display level information and screen parameter information to the adaptive grid tile manager; S2.2, the adaptive grid tile manager automatically initializes and assigns values to various parameters of the grid tile manager according to the screen parameters and display level information, and the assigned parameters include: the starting and ending positions of the longitude and latitude coordinates corresponding to the screen range, the map display level, the number of tiles that can be displayed on the screen at each level, and the total memory size information required by the tiles; S2.3, after completing the initialization work, the adaptive grid tile manager waits for the vector data input from the spatial database to prepare for the next step of tiling the vector data; In step S4, the adaptive raster tile manager reads the vector data object in the spatial database according to the current screen parameters, display level and the longitude and latitude coordinate range data corresponding to the screen display range, and rasterizes the vector data object according to the tile level. As the screen display range changes, the adaptive raster tile manager reads the vector object data in the spatial database in real time and rasterizes it, so as to maintain the consistency between the tile display range in the adaptive raster tile manager and the screen display range; and updates the screen display vector data in real time; The method for real-time updating of the adaptive grid tile manager data in step S4 is: S4.1, the adaptive raster tile manager reads the vector data objects stored in the spatial database according to the screen display range and display level parameters; S4.2, the adaptive raster tile manager converts the vector data object into raster tiles, and saves the converted raster tiles into the adaptive raster tile manager; S4.3, the adaptive raster tile manager notifies the GIS system that the raster tiles are ready for screen display; S4.4, when the user operates the mouse to zoom in, zoom out, and move the screen, the GIS system transmits the current display parameters of the screen to the adaptive grid tile manager; S4.5, Adaptive raster tile manager, based on the new screen display parameters, directly notifies the GIS system that the raster tiles are ready if it is a zoom operation, without any other operation; S4.
6. If it is a zoom-out or move operation, the adaptive raster tile manager recalculates the latitude and longitude coordinate range, reads the vector data in the spatial database, and then repeats steps S4.1 to S4.
3.
2. The method for seamless loading and rapid display of massive vector data in a geographic information system according to claim 1 is characterized in that: The step S1 is specifically as follows: the GIS system reads the parameters of the current screen physical display device and combines them with the current display level of the GIS system; the parameters include the pixel pitch, refresh rate and resolution of the display device.
3. The method for seamless loading and rapid display of massive vector data in a geographic information system according to claim 1 is characterized in that: The vector data in step S3 includes: shp, kml, kmz, gpx, dxf, csv, txt, bmv / bmvx, geojson vector file formats.
4. The method for seamless loading and rapid display of massive vector data in a geographic information system according to claim 1 is characterized in that: The data displayed on the screen in step S5 includes the initialized vector data currently displayed on the screen and the tile data updated in step S4.
