[go: up one dir, main page]

CN119311909A - Visualization method and system for large-scale vector data based on Cesium - Google Patents

Visualization method and system for large-scale vector data based on Cesium Download PDF

Info

Publication number
CN119311909A
CN119311909A CN202411845730.1A CN202411845730A CN119311909A CN 119311909 A CN119311909 A CN 119311909A CN 202411845730 A CN202411845730 A CN 202411845730A CN 119311909 A CN119311909 A CN 119311909A
Authority
CN
China
Prior art keywords
vector
vector data
tiles
data
cesium
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.)
Pending
Application number
CN202411845730.1A
Other languages
Chinese (zh)
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.)
China Survey Surveying And Mapping Technology Co ltd
Original Assignee
China Survey Surveying And Mapping 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 China Survey Surveying And Mapping Technology Co ltd filed Critical China Survey Surveying And Mapping Technology Co ltd
Priority to CN202411845730.1A priority Critical patent/CN119311909A/en
Publication of CN119311909A publication Critical patent/CN119311909A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/56Information retrieval; Database structures therefor; File system structures therefor of still image data having vectorial format
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/54Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4038Image mosaicing, e.g. composing plane images from plane sub-images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Generation (AREA)

Abstract

本申请涉及空间大数据可视化技术领域,具体涉及一种基于Cesium的大规模矢量数据的可视化方法及系统,方法包括:对获取的空间矢量数据进行预处理;对预处理后的空间矢量数据进行切片处理,得到多层级的矢量瓦片组;其中,任一层级内的所有矢量瓦片可拼接成完整的空间矢量数据,同一层级内的矢量瓦片大小相等,不同层级内的矢量瓦片大小不一;监听用户的交互事件,根据交互事件加载对应位置和对应层级的矢量瓦片,并对加载的矢量瓦片进行渲染,进而实现空间矢量数据的可视化;交互事件包括缩放和平移。采用本申请提供的方案,可实现大规模矢量数据的高效传输和矢量瓦片的高效调度。

The present application relates to the field of spatial big data visualization technology, and specifically to a visualization method and system for large-scale vector data based on Cesium, the method comprising: preprocessing the acquired spatial vector data; slicing the preprocessed spatial vector data to obtain a multi-level vector tile group; wherein all vector tiles in any level can be spliced into complete spatial vector data, the vector tiles in the same level are equal in size, and the vector tiles in different levels are different in size; monitoring the user's interactive events, loading the vector tiles of the corresponding position and level according to the interactive events, and rendering the loaded vector tiles, thereby realizing the visualization of the spatial vector data; the interactive events include zooming and panning. The scheme provided by the present application can realize the efficient transmission of large-scale vector data and the efficient scheduling of vector tiles.

Description

Cesium-based large-scale vector data visualization method and system
Technical Field
The application relates to the technical field of space big data visualization, in particular to a large-scale vector data visualization method based on Cesium, a large-scale vector data visualization system based on Cesium, a processor and a machine-readable storage medium.
Background
With the arrival of big data age, the geographic information system is widely applied in the fields of smart cities, national resource management, traffic monitoring and the like. However, the conventional vector data has problems of slow loading, low rendering efficiency and the like due to huge data volume. How to efficiently present large amounts of vector data in real time becomes a key technical challenge. At present, two-dimensional map visualization is relatively mature, and common WebGIS tools such as OpenLayers, leaflet and the like have good performance in displaying small and medium-scale vector data. But it is clearly inferior to process satellite remote sensing images, three-dimensional building models and multi-level geospatial data.
Disclosure of Invention
The embodiment of the application aims to provide a large-scale vector data visualization method, a system, a processor and a machine-readable storage medium based on Cesium, so as to improve the transmission efficiency and the dynamic loading efficiency of the large-scale vector data.
In order to achieve the above purpose, the first aspect of the present application provides a method for visualizing large-scale vector data based on Cesium, which includes preprocessing acquired space vector data, slicing the preprocessed space vector data to obtain a multi-level vector tile group, wherein all vector tiles in any level can be spliced into complete space vector data, vector tiles in the same level are equal in size, vector tiles in different levels are different in size, monitoring an interaction event of a user, loading vector tiles in a corresponding position and a corresponding level according to the interaction event, rendering the loaded vector tiles, and further achieving visualization of the space vector data, wherein the interaction event includes scaling and translation.
Based on the first aspect, in the embodiment of the application, the data format of the acquired space vector data comprises SHAPEFILE, POSTGIS and GeoJSON, and the preprocessing of the acquired space vector data comprises the step of converting the space vector data in the SHAPEFILE, POSTGIS or GeoJSON format into the space vector data in the MVT format.
Based on the first aspect, in the embodiment of the application, the step of realizing the visualization of the space vector data comprises the steps of analyzing MVT data, extracting geometric data and attribute data, and rendering the geometric data as Cesium layers after the extraction is completed, wherein each geometric object is drawn as a PRIMITIVE object of Cesium, so that the visualization of the space vector data is realized.
Based on the first aspect, in the embodiment of the application, the method further comprises caching the vector tiles loaded in the last N times, wherein N is not more than the maximum vector tile number.
Based on the first aspect, the method further comprises the steps of setting position numbers for all vector tiles in any hierarchy, wherein the position numbers comprise row numbers and column numbers of the vector tiles, loading the vector tiles of the corresponding positions and the corresponding hierarchies according to the interaction event comprises the steps of determining the hierarchy of the vector tiles to be scheduled according to the scaling degree of the current interaction view area, calculating the position numbers of the vector tiles to be scheduled according to the range of the current interaction view area, and loading the vector tiles of the corresponding hierarchies and the corresponding position numbers.
Based on the first aspect, in the embodiment of the application, the method further comprises the steps of predicting the view browsing range of the user, loading vector tiles in the predicted view browsing range in advance, and caching.
The application provides a large-scale vector data visualization system based on Cesium, which comprises a preprocessing module, a slicing module, a Cesium module and a processing module, wherein the preprocessing module is used for preprocessing acquired space vector data, the slicing module is used for slicing the preprocessed space vector data to obtain a multi-level vector tile group, all vector tiles in any level can be spliced into complete space vector data, vector tiles in the same level are equal in size, vector tiles in different levels are different in size, the Cesium module is used for monitoring interaction events of a user, loading vector tiles in corresponding positions and corresponding levels according to the interaction events, rendering the loaded vector tiles, and further realizing visualization of the space vector data, and the interaction events comprise scaling and translation.
Based on the second aspect, in the embodiment of the application, the system further comprises a prediction module for predicting the view browsing range of the user, and a preloading module for preloading and caching vector tiles in the predicted view browsing range in advance.
In a third aspect, the present application provides a processor configured to perform the above-described method of visualizing large-scale vector data based on Cesium.
In a fourth aspect, the present application provides a machine-readable storage medium having stored thereon instructions that, when executed by a processor, cause the processor to be configured to perform the above-described method of visualizing large-scale vector data based on Cesium.
The technical scheme provided by the application has at least the following beneficial effects:
(1) MVT is a slice format, the data volume is smaller, vector data can be transmitted in a block mode, and the bandwidth required by loading the whole data set is reduced. It allows on-demand loading compared to conventional vector data formats, especially for large-scale data sets.
(2) And the real-time interactivity is improved, namely the real-time interactivity of the large-scale vector data in Cesium can be effectively enhanced by using MVT to conduct data rendering. In map or scene browsing in a large range, the MVT can dynamically load and display vector information of each tile, so that a user can obtain visual feedback in real time during operations such as zooming, translation and the like, and smooth operation experience is maintained.
(3) And the client pressure is reduced, the MVT format is preprocessed into tile data in the transmission process, and the client only needs to process a smaller tile range, so that the burden of memory and calculation is reduced. Cesium can better optimize the memory use and improve the stability of large-scale data processing when the MVT is combined to load large-scale vector data.
In summary, the large data vector data visualization technology based on Cesium can efficiently acquire, parse, convert, render and interact with MVT vector tile data, and provide the visualization capability of large-scale vector data in a three-dimensional earth scene in combination with the three-dimensional engine of Cesium.
Additional features and advantages of embodiments of the application will be set forth in the detailed description which follows.
Drawings
The accompanying drawings are included to provide a further understanding of embodiments of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain, without limitation, the embodiments of the application. In the drawings:
FIG. 1 schematically illustrates a flow diagram of a method for visualizing large-scale vector data based on Cesium in accordance with an embodiment of the present application;
FIG. 2 schematically illustrates a block diagram of a large-scale vector data visualization system based on Cesium in accordance with an embodiment of the present application;
Fig. 3 schematically shows an internal structural view of a computer device according to an embodiment of the present application.
Description of the reference numerals
1-Preprocessing module, 2-slicing module, 3-Cesium module, 4-predicting module, 5-preloading module, A02-network interface, A03-internal memory, A04-display screen, A05-input device, A06-nonvolatile storage medium, B01-operating system and B02-computer program.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it should be understood that the detailed description described herein is merely for illustrating and explaining the embodiments of the present application, and is not intended to limit the embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be noted that, if directional indications (such as up, down, left, right, front, rear, etc.) are involved in the embodiment of the present application, the directional indications are merely used to explain the relative positional relationship, movement conditions, etc. between the components in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indications are correspondingly changed.
In addition, if there is a description of "first", "second", etc. in the embodiments of the present application, the description of "first", "second", etc. is for descriptive purposes only and is not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In addition, the technical solutions of the embodiments may be combined with each other, but it is necessary to base that the technical solutions can be realized by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should be considered to be absent and not within the scope of protection claimed in the present application.
Examples
A method for visualizing large-scale vector data based on Cesium, the method comprising:
s1, preprocessing the acquired space vector data;
specifically, vector data to be published is imported into GeoServer, supported data formats include SHAPEFILE, POSTGIS, GEOJSON and the like, and space vector data in SHAPEFILE, POSTGIS or GeoJSON format is converted into space vector data in MVT format by using a special tool or library (for example tippecanoe or MAPSHAPER of Mapbox).
S2, slicing the preprocessed space vector data to obtain a multi-level vector tile group, wherein all vector tiles in any level can be spliced into complete space vector data, the vector tiles in the same level are equal in size (influence on smoothness of loading tiles is avoided), and the vector tiles in different levels are different in size;
Specifically, geoServer is utilized to provide storage and slicing services, generate pbf data format and release MVT services. In Maputnik, the MVT service published in GeoServer is added as a data source. MVTURL provided by GeoServer is filled into the data source configuration by the data source configuration. And configuring corresponding patterns for the loaded MVT data sources, wherein the patterns comprise line colors, widths, filling patterns and the like under different zoom levels. After the pattern configuration is completed, the derived pattern is a JSON file.
The vector tile set is a vector slice data set of a multi-level pyramid structure. Layer 0 is a single tile containing all elements, typically 256 pixels in length and width, and the entire vector space is contained in the tile 1, and the tile 1 is divided into four tiles, where the size of each tile is 256×256, but the resolution of the picture is doubled with respect to layer 0. By analogy, the whole space vector data is divided into tiles of different levels, and the more the levels are divided, the better the number of pictures increases exponentially with the increase of the levels, when the levels are excessively large, the number of the tiles also increases sharply, and the pressure is caused to data storage.
S3, monitoring an interaction event of a user, loading vector tiles at corresponding positions and corresponding levels according to the interaction event, and rendering the loaded vector tiles to further realize visualization of space vector data, wherein the interaction event comprises scaling and translation.
In this embodiment, the Cesium module may be used to implement visualization of space vector data, so as to achieve the purposes of loading large-scale vector data efficiently and improving resolution support. Cesium, however, supports mainly 3dtile and GeoJSON, cesium cannot directly support mvt data service loading. Therefore, in this embodiment, first, MVTImageryProvider is used to request vector tile data of a corresponding level from the server, the vector tile data is obtained in the form of pbf file (see step S2), the geometric objects and attribute data are extracted, after the extraction is completed, the geometric data are rendered as Cesium layers, and each geometric object (point, line, plane) is drawn as PRIMITIVE objects of Cesium. When a user moves, zooms or rotates the camera, the tiles are dynamically loaded and rendered according to the level and the position of the requested tiles.
Specifically, in order to accurately calculate the corresponding vector tile when loading the vector tile data, in this embodiment, for any hierarchy, position numbers are set for all vector tiles in the hierarchy, where the position numbers include row numbers and column numbers of the vector tiles, and an index relationship is established between a storage address of the vector tile and the position numbers, that is, a physical address of the vector tile can be located through the position numbers of the vector tile.
Loading the vector tiles of the corresponding positions and the corresponding levels according to the interaction event comprises determining the levels of the vector tiles to be scheduled according to the zoom degree of the current interaction view area (according to the zoom operation of a user in the interaction view area), calculating the position numbers of the vector tiles to be scheduled according to the range of the current interaction view area, and loading the vector tiles of the corresponding levels and the corresponding position numbers.
Further, the method further comprises the step of caching the vector tiles loaded in the last N times, wherein N is not more than the maximum vector tile number, and the number of N is preferably 5-10 in an exemplary manner so as to avoid the influence on the smoothness of system operation due to excessive cache occupation. But properly caches partial data, reduces the time for reloading vector tile data and improves the speed of vector tile display.
Further, the method further comprises the steps of predicting the view browsing range of the user, loading vector tiles in the predicted view browsing range in advance, and caching.
The scheduling of vector tiles should also take full advantage of the optimization mechanism of the computer and the caching mechanism of the browser. During the interactive operation, the request for data is often triggered after the user operation. In this embodiment, based on the usage habit of the user and the current movement track in the interactive view area, the next operation of the user can be prejudged, the predicted view browsing range data is requested in advance and stored in the (slow) memory, so that the data acquisition time is reduced, and the display speed is improved. The data read-write efficiency in the memory is far greater than the read-write speed of the mechanical hard disk, so that frequent operation on the mechanical hard disk is avoided as much as possible in the scheduling process. And for the repeatedly operated area, the area is locally stored in a file cache or memory cache mode, so that the interactive operation with a server or a hard disk is reduced, and the scheduling time is shortened.
Examples
The application provides a large-scale vector data visualization system based on Cesium, as shown in fig. 2, which comprises a preprocessing module 1, a slicing module 2, a Cesium module 3 and a processing module, wherein the preprocessing module 1 is used for preprocessing acquired space vector data, the slicing module 2 is used for slicing the preprocessed space vector data to obtain a multi-level vector tile group, all vector tiles in any level can be spliced into complete space vector data, the vector tiles in the same level are equal in size, the vector tiles in different levels are different in size, and the Cesium module 3 is used for monitoring interaction events of a user, loading vector tiles in corresponding positions and corresponding levels according to the interaction events, and rendering the loaded vector tiles to further realize visualization of the space vector data.
Specifically, the system further comprises a prediction module 4 for predicting the view browsing range of the user, and a preloading module 5 for preloading and caching vector tiles in the predicted view browsing range in advance.
The method described in embodiment 1 above can be implemented using the visualization system provided in this embodiment.
The large-scale vector data visualization system based on Cesium further comprises a processor and a memory, wherein the preprocessing module 1, the slicing module 2, the Cesium module 3, the prediction module 4, the preloading module 5 and the like are all stored in the memory as program units, and the processor executes the program modules stored in the memory to realize corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one, and the visualization method based on Cesium large-scale vector data is realized by adjusting kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
The embodiment of the application provides a storage medium, wherein a program is stored on the storage medium, and the program is executed by a processor to realize the large-scale vector data visualization method based on Cesium.
In this embodiment, there is also provided a computer device, which may be a terminal, and an internal structure diagram thereof may be as shown in fig. 3. The computer apparatus includes a processor a01, a network interface a02, a display screen a04, an input device a05, and a memory (not shown in the figure) which are connected through a system bus. Wherein the processor a01 of the computer device is adapted to provide computing and control capabilities. The memory of the computer device includes an internal memory a03 and a nonvolatile storage medium a06. The nonvolatile storage medium a06 stores an operating system B01 and a computer program B02. The internal memory a03 provides an environment for the operation of the operating system B01 and the computer program B02 in the nonvolatile storage medium a06. The network interface a02 of the computer device is used for communication with an external terminal through a network connection. The computer program, when executed by the processor a01, implements a method of visualizing large-scale vector data based on Cesium. The display screen a04 of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device a05 of the computer device may be a touch layer covered on the display screen, or may be a key, a track ball or a touch pad arranged on a casing of the computer device, or may be an external keyboard, a touch pad or a mouse.
It will be appreciated by those skilled in the art that the structure shown in FIG. 3 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer-readable media include both permanent and non-permanent, removable and non-removable media, and information storage may be implemented by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transitorymedia), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.

Claims (10)

1.一种基于Cesium的大规模矢量数据的可视化方法,其特征在于,所述方法包括:1. A visualization method for large-scale vector data based on Cesium, characterized in that the method comprises: 对获取的空间矢量数据进行预处理;Preprocessing the acquired spatial vector data; 对预处理后的空间矢量数据进行切片处理,得到多层级的矢量瓦片组;其中,任一层级内的所有矢量瓦片可拼接成完整的空间矢量数据,同一层级内的矢量瓦片大小相等,不同层级内的矢量瓦片大小不一;Slice the preprocessed spatial vector data to obtain a multi-level vector tile group; wherein all vector tiles in any level can be spliced into complete spatial vector data, the vector tiles in the same level are equal in size, and the vector tiles in different levels are different in size; 监听用户的交互事件,根据交互事件加载对应位置和对应层级的矢量瓦片,并对加载的矢量瓦片进行渲染,进而实现空间矢量数据的可视化;所述交互事件包括缩放和平移。Monitor user interaction events, load vector tiles of corresponding positions and corresponding levels according to the interaction events, and render the loaded vector tiles to achieve visualization of spatial vector data; the interaction events include zooming and panning. 2.根据权利要求1所述基于Cesium的大规模矢量数据的可视化方法,其特征在于,所述获取的空间矢量数据的数据格式包括Shapefile、PostGIS和GeoJSON;所述对获取的空间矢量数据进行预处理包括:2. According to the Cesium-based large-scale vector data visualization method of claim 1, the data format of the acquired spatial vector data includes Shapefile, PostGIS and GeoJSON; the preprocessing of the acquired spatial vector data includes: 将所述Shapefile、PostGIS或GeoJSON格式的空间矢量数据转换成MVT格式的空间矢量数据。The spatial vector data in the Shapefile, PostGIS or GeoJSON format is converted into spatial vector data in the MVT format. 3.根据权利要求2所述基于Cesium的大规模矢量数据的可视化方法,其特征在于,所述实现空间矢量数据的可视化的步骤包括:3. According to the Cesium-based large-scale vector data visualization method of claim 2, it is characterized in that the step of realizing the visualization of spatial vector data comprises: 解析MVT数据,提取其中几何数据和属性数据,提取完成后,将几何数据作为Cesium图层进行渲染,每个几何对象作为Cesium的Primitive对象进行绘制,进而实现空间矢量数据的可视化。Parse the MVT data and extract the geometric data and attribute data. After the extraction is completed, the geometric data is rendered as a Cesium layer, and each geometric object is drawn as a Cesium Primitive object, thereby realizing the visualization of spatial vector data. 4.根据权利要求1所述基于Cesium的大规模矢量数据的可视化方法,其特征在于,所述方法还包括:4. According to claim 1, the method for visualizing large-scale vector data based on Cesium is characterized in that the method further comprises: 缓存最近N次内加载过的矢量瓦片,其中N不大于最大矢量瓦片数。Cache the vector tiles that have been loaded in the last N times, where N is not greater than the maximum number of vector tiles. 5.根据权利要求1所述基于Cesium的大规模矢量数据的可视化方法,其特征在于,所述方法还包括:5. According to claim 1, the method for visualizing large-scale vector data based on Cesium is characterized in that the method further comprises: 对于任一层级,为层级内的所有矢量瓦片设定位置编号,所述位置编号包括矢量瓦片的行号和列号;For any level, set position numbers for all vector tiles in the level, the position numbers including the row number and column number of the vector tile; 根据交互事件加载对应位置和对应层级的矢量瓦片包括:Loading vector tiles at corresponding positions and levels according to interaction events includes: 根据当前交互视图区域的缩放度确定需要调度的矢量瓦片的层级;Determine the level of the vector tiles that need to be scheduled according to the zoom level of the current interactive view area; 根据当前交互视图区域的范围,计算出需要调度的矢量瓦片的位置编号;According to the range of the current interactive view area, calculate the position number of the vector tile that needs to be scheduled; 加载对应层级和对应位置编号的矢量瓦片。Load the vector tile of the corresponding level and the corresponding position number. 6.根据权利要求1所述基于Cesium的大规模矢量数据的可视化方法,其特征在于,所述方法还包括:6. According to claim 1, the method for visualizing large-scale vector data based on Cesium is characterized in that the method further comprises: 预测用户的视图浏览范围;Predict the user's view range; 提前加载预测视图浏览范围内的矢量瓦片,并缓存。Preload and cache the vector tiles within the predicted view browsing range. 7.一种基于Cesium的大规模矢量数据的可视化系统,其特征在于,所述系统包括:7. A large-scale vector data visualization system based on Cesium, characterized in that the system includes: 预处理模块,用于对获取的空间矢量数据进行预处理;A preprocessing module, used for preprocessing the acquired spatial vector data; 切片模块,用于对预处理后的空间矢量数据进行切片处理,得到多层级的矢量瓦片组;其中,任一层级内的所有矢量瓦片可拼接成完整的空间矢量数据,同一层级内的矢量瓦片大小相等,不同层级内的矢量瓦片大小不一;The slicing module is used to slice the preprocessed spatial vector data to obtain a multi-level vector tile group; wherein all vector tiles in any level can be spliced into complete spatial vector data, the vector tiles in the same level are equal in size, and the vector tiles in different levels are of different sizes; Cesium模块,用于监听用户的交互事件,并根据交互事件加载对应位置和对应层级的矢量瓦片,以及对加载的矢量瓦片进行渲染,进而实现空间矢量数据的可视化;所述交互事件包括缩放和平移。The Cesium module is used to monitor user interaction events, load vector tiles of corresponding positions and corresponding levels according to the interaction events, and render the loaded vector tiles to achieve visualization of spatial vector data; the interaction events include zooming and panning. 8.根据权利要求7所述基于Cesium的大规模矢量数据的可视化系统,其特征在于,所述系统还包括:8. According to claim 7, the large-scale vector data visualization system based on Cesium is characterized in that the system further comprises: 预测模块,用于预测用户的视图浏览范围;Prediction module, used to predict the user's view browsing range; 预加载模块,用于提前加载预测视图浏览范围内的矢量瓦片,并缓存。The preloading module is used to load the vector tiles within the browsing range of the predicted view in advance and cache them. 9.一种处理器,其特征在于,被配置成执行权利要求1至6中任意一项所述的基于Cesium的大规模矢量数据的可视化方法。9. A processor, characterized in that it is configured to execute the Cesium-based large-scale vector data visualization method described in any one of claims 1 to 6. 10.一种机器可读存储介质,该机器可读存储介质上存储有指令,其特征在于,该指令在被处理器执行时使得所述处理器被配置成执行权利要求1至6中任一项所述的基于Cesium的大规模矢量数据的可视化方法。10. A machine-readable storage medium having instructions stored thereon, characterized in that when the instructions are executed by a processor, the processor is configured to execute the Cesium-based large-scale vector data visualization method described in any one of claims 1 to 6.
CN202411845730.1A 2024-12-16 2024-12-16 Visualization method and system for large-scale vector data based on Cesium Pending CN119311909A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411845730.1A CN119311909A (en) 2024-12-16 2024-12-16 Visualization method and system for large-scale vector data based on Cesium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411845730.1A CN119311909A (en) 2024-12-16 2024-12-16 Visualization method and system for large-scale vector data based on Cesium

Publications (1)

Publication Number Publication Date
CN119311909A true CN119311909A (en) 2025-01-14

Family

ID=94191023

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411845730.1A Pending CN119311909A (en) 2024-12-16 2024-12-16 Visualization method and system for large-scale vector data based on Cesium

Country Status (1)

Country Link
CN (1) CN119311909A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112395445A (en) * 2020-11-17 2021-02-23 高崟 Vector data online calculation method and device
DE202022100309U1 (en) * 2022-01-20 2022-02-08 Valectus Private Limited A system for processing geospatial data for efficient presentation and visualization
CN116737852A (en) * 2022-03-03 2023-09-12 中国科学院空天信息创新研究院 Vector tile data-based vector drawing method and device and electronic equipment
CN116842121A (en) * 2023-07-13 2023-10-03 河南大学 A multi-level tile joint large-scale digital twin scene construction method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112395445A (en) * 2020-11-17 2021-02-23 高崟 Vector data online calculation method and device
DE202022100309U1 (en) * 2022-01-20 2022-02-08 Valectus Private Limited A system for processing geospatial data for efficient presentation and visualization
CN116737852A (en) * 2022-03-03 2023-09-12 中国科学院空天信息创新研究院 Vector tile data-based vector drawing method and device and electronic equipment
CN116842121A (en) * 2023-07-13 2023-10-03 河南大学 A multi-level tile joint large-scale digital twin scene construction method

Similar Documents

Publication Publication Date Title
EP2643820B1 (en) Rendering and navigating photographic panoramas with depth information in a geographic information system
TWI579799B (en) Tiled packaging of vector image data
CN110675728B (en) Generation method, device and equipment of thermodynamic diagram and computer readable storage medium
CN105574102B (en) A kind of method and device of electronic map data load
US10834391B2 (en) Hologram streaming machine
CN110706341A (en) High-performance rendering method and device of city information model and storage medium
CN107992589B (en) SVG map data loading method, device and system
CN114020756B (en) Remote sensing image real-time map service publishing method and device
CN113495933B (en) Vector tile display method and system
CN105912569B (en) Method and device for displaying webpage elements contained in three-dimensional target scene
CN117270834A (en) Map rendering method, map rendering device, electronic equipment and storage medium
CN116737852A (en) Vector tile data-based vector drawing method and device and electronic equipment
CN116993881A (en) 3D map rendering method and system
Holliman et al. Petascale cloud supercomputing for terapixel visualization of a digital twin
CN111192339B (en) Geographic position data rendering method and device
CN111898276B (en) Model processing method, device, computer equipment and medium for overhead line
US9164922B2 (en) Technique for passive cache compaction using a least recently used cache algorithm
Bruhwiler et al. Aperture: Fast visualizations over spatiotemporal datasets
CN119311909A (en) Visualization method and system for large-scale vector data based on Cesium
CN114529643B (en) A method for optimizing the display of massive GIM models
JP2022536634A (en) Method, Apparatus, Computer Facility, and Storage Medium for Rendering GIS Point Data
US20150154784A1 (en) Use of Photo Animation Transitions to Mask Latency
CN114616596B (en) Video decoding method, device, system and computer readable medium
CN114840792A (en) Web end epidemic situation distribution visualization system and method based on gridding processing
CN115203594B (en) Multi-temporal remote sensing data display method, device, equipment and medium

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