Mass spatial data dynamic rendering method and device, electronic equipment and storage medium
By constructing a collaborative rendering system that integrates an interactive interface, a style rule parser, and a rendering engine, the system solves the problems of rendering performance and real-time style adjustment for massive spatial data under a B/S architecture, achieving dynamic real-time rendering and improving system flexibility and user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-30
- Publication Date
- 2026-04-17
AI Technical Summary
Under the B/S architecture, existing technologies struggle to simultaneously achieve efficient rendering of massive spatial data and dynamic style adjustment, leading to performance limitations on the browser side and the inability of the server-side static rendering to respond in real time.
A collaborative rendering system is built, which includes an interactive interface, a style rule parser, and a rendering engine. Users can freely configure style rules on the front end, and the style rule parser and rendering engine perform real-time rendering processing to generate visual images.
It enables dynamic real-time rendering of massive spatial data, overcomes the performance bottleneck of traditional front-end rendering, and improves the flexibility and user experience under the B/S architecture.
Smart Images

Figure CN121880672A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data visualization technology, and in particular to a method, apparatus, electronic device, and storage medium for dynamic rendering of massive spatial data. Background Technology
[0002] In a B / S (Browser / Server) architecture, the visualization rendering of published map data typically relies on pre-configured style schemes on the web front-end or server. Existing technologies mainly fall into two categories: First, front-end rendering based on frameworks like OpenLayers and MapBox offers some interactive flexibility, but is limited by browser performance bottlenecks, easily leading to lag, communication timeouts, and even browser crashes when handling massive amounts of spatial data. Second, server-side rendering using GeoServer pre-renders the data as static images and returns them to the front-end. While this alleviates rendering pressure, its styles depend on pre-configured server-side configuration files, preventing users from dynamically adjusting symbols, colors, transparency, and other style attributes in real-time. Modifying styles requires reconfiguring the server, making the process cumbersome and inflexible. Both methods struggle to simultaneously achieve efficient rendering of massive amounts of data and real-time responsiveness for dynamic style adjustments, limiting the application of geographic information systems (GIS) in real-time interaction and multi-scenario adaptation.
[0003] Therefore, the industry urgently needs a technical solution that can realize real-time and dynamic rendering of massive spatial data under the B / S architecture. This solution can not only break through the performance limitations of browser-side rendering, but also support users to flexibly and intuitively adjust styles on the front end and achieve rendering updates with a response time of seconds, thereby improving the interactive experience and polymorphic adaptation capabilities of map services. Summary of the Invention
[0004] The purpose of this invention is to provide a method, apparatus, electronic device, and storage medium for dynamic rendering of massive spatial data. By constructing a collaborative rendering system including an interactive interface, a style rule parser, and a rendering engine, dynamic real-time rendering of massive spatial data is achieved. Users can freely configure style rules and attribute conditions on the front end, and the system completes parsing, filtering, and rendering within seconds, returning a visualized image. This overcomes the performance bottleneck of traditional front-end rendering and solves the problem that server-side static rendering cannot dynamically respond to style adjustments, significantly improving the flexibility, real-time performance, and user experience of rendering massive spatial data under a B / S architecture.
[0005] In a first aspect, the present invention provides a method for dynamic rendering of massive spatial data, applied to a rendering system with a B / S architecture. The system includes: an interactive interface for dynamic configuration of style rules, a style rule parser, and a massive map data rendering engine. The method includes: In response to the user's style configuration operation in the interactive interface, receive a configuration request containing style parameters and attribute conditions; The style rules parser parses the style parameters and attribute conditions to generate the corresponding rendering style objects and filter objects. The massive map data rendering engine performs real-time rendering based on the rendering style object, the filtering object, and the range of data to be rendered. The rendered image is then returned to the interactive interface for visualization.
[0006] In some preferred embodiments of the present invention, the style rule parser includes: a rendering parameter parsing unit and a threshold parameter parsing unit; The rendering parameter parsing unit is used to construct style rules based on the style parameters in the configuration request and parse the style rules into rendering style objects; The threshold parameter parsing unit is used to parse and generate the corresponding filter object based on the attribute conditions provided in the configuration request in the form of a filter expression.
[0007] In some preferred embodiments of the present invention, the rendering parameter parsing unit is used to receive style rules passed in from the front end, call the corresponding parsing method in the style parser, and convert each member variable into parameters in the format required by the rendering engine to form a rendering style object; wherein, the member variables in the style rules include: maximum display level, minimum display level, symbol size, symbol rotation, edge width, edge color, edge transparency, fill color, fill transparency and symbol encoding.
[0008] In some preferred embodiments of the present invention, when the threshold parameter parsing unit parses the filtering expression, the supported comparison operators include at least one of the following: greater than or equal to, less than or equal to, not equal to, equal to, empty, and not empty.
[0009] In some preferred embodiments of the present invention, the interactive interface includes: a data visualization window and a configuration panel; The data visualization window is used to display the rendered images; The configuration panel allows users to dynamically adjust style parameters. The configuration panel includes an attribute category panel and a parameter configuration panel. The attribute category panel displays the attribute category information and legend of the spatial data, while the parameter configuration panel receives real-time adjustments from the user to the display level, symbols, colors, and transparency parameters.
[0010] In some preferred embodiments of the present invention, style parameters are used to configure a single style rule or multiple style rules; the multiple style rules are respectively associated with attribute threshold conditions set based on different value ranges of spatial data attribute fields, and each attribute threshold condition is used to define a subset of data to be rendered.
[0011] In some preferred embodiments of the present invention, the step of performing real-time rendering processing using a massive map data rendering engine, based on rendering style objects, filtering objects, and the data range to be rendered, includes: Read the spatial data source corresponding to the data range to be rendered from the spatial database or spatial data file; Combine rendering style objects with spatial data sources to dynamically construct rendering layers; Extract the rendering style object and filter object from the rendering layer; Based on the conditions defined by the filtering object, the corresponding target data subset is filtered and extracted from the spatial data source; Combine the target data subset with the rendering style object to render image tiles of the specified size.
[0012] Secondly, the present invention provides a dynamic rendering device for massive spatial data, applied to a rendering system based on a B / S architecture. The system includes: an interactive interface for dynamic configuration of style rules, a style rule parser, and a massive map data rendering engine. The device includes: The rendering request acquisition module is used to respond to the user's style configuration operation in the interactive interface and receive configuration requests containing style parameters and attribute conditions. The rendering rule parsing module is used to parse style parameters and attribute conditions through the style rule parser, and generate corresponding rendering style objects and filter objects. The real-time rendering module is used to perform real-time rendering processing based on the rendering style object, filter object, and the range of data to be rendered through a massive map data rendering engine. The rendered image display module is used to return the rendered image to the interactive interface for visual display.
[0013] Thirdly, the present invention provides an electronic device, including a processor and a memory, wherein the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the dynamic rendering method for massive spatial data provided in the first aspect above.
[0014] Fourthly, the present invention provides a storage medium storing computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to implement the dynamic rendering method for massive spatial data provided in the first aspect.
[0015] This invention brings the following beneficial effects: This invention provides a method, apparatus, electronic device, and storage medium for dynamic rendering of massive spatial data, applied to a rendering system with a B / S architecture. The system includes: an interactive interface for dynamic configuration of style rules, a style rule parser, and a massive map data rendering engine. The method includes: responding to a user's style configuration operation in the interactive interface by receiving a configuration request containing style parameters and attribute conditions; parsing the style parameters and attribute conditions through the style rule parser to generate corresponding rendering style objects and filter objects; performing real-time rendering processing based on the rendering style objects, filter objects, and the data range to be rendered through the massive map data rendering engine; and returning the rendered image to the interactive interface for visualization. By constructing a collaborative rendering system including an interactive interface, a style rule parser, and a rendering engine, dynamic real-time rendering of massive spatial data is achieved. This overcomes the performance bottleneck of traditional front-end rendering and solves the problem that server-side static rendering cannot dynamically respond to style adjustments, significantly improving the flexibility, real-time performance, and user experience of rendering massive spatial data under a B / S architecture. Attached Figure Description
[0016] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0017] Figure 1 A flowchart illustrating a method for dynamically rendering massive spatial data, provided in an embodiment of the present invention; Figure 2 A schematic diagram of a single style rule provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of multiple style rules provided in an embodiment of the present invention; Figure 4 This invention provides a schematic diagram of the workflow of a massive map data rendering engine. Figure 5 This is a schematic diagram illustrating a dynamic rendering effect provided in an embodiment of the present invention; Figure 6 This is a schematic diagram of the structure of a dynamic rendering device for massive spatial data provided in an embodiment of the present invention; Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention.
[0018] Icons: 310 - Rendering request acquisition module; 320 - Rendering rule parsing module; 330 - Real-time rendering module; 340 - Rendered image display module; 400 - Memory; 401 - Processor; 402 - Bus; 403 - Communication interface. Detailed Implementation
[0019] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.
[0020] Therefore, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the invention without inventive effort are within the scope of protection of the invention.
[0021] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.
[0022] In the description of this invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, or the orientation or positional relationship commonly used when the product of this invention is in use. They are only for the convenience of describing this invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this invention. In addition, the terms "first," "second," "third," etc., are only used to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0023] Furthermore, terms such as "horizontal," "vertical," and "sag" do not imply that components must be absolutely horizontal or suspended, but rather that they can be slightly tilted. For example, "horizontal" simply means that its direction is more horizontal than "vertical," not that the structure must be completely horizontal, but can be slightly tilted.
[0024] In the description of this invention, it should also be noted that, unless otherwise explicitly specified and limited, the terms "set," "install," "connect," and "link" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.
[0025] The following detailed description of some embodiments of the present invention is provided in conjunction with the accompanying drawings. Unless otherwise specified, the following embodiments and features can be combined with each other.
[0026] Example 1 This invention provides a method for dynamic rendering of massive spatial data, applied to a rendering system with a B / S architecture. The system includes: an interactive interface for dynamic configuration of style rules, a style rule parser, and a massive map data rendering engine.
[0027] Specifically, the system is built on a B / S architecture, rationally allocating complex style configurations and massive data rendering tasks. The user interface is deployed on the front-end browser, responsible for receiving intuitive user commands; the style rule parser and the massive map data rendering engine are deployed on the server side, responsible for handling core parsing and computationally intensive rendering tasks. This architecture separates user interaction logic from back-end heavy-load processing, allowing the front-end to remain lightweight and highly responsive, while the back-end can rely on the server's powerful computing capabilities to specifically handle the challenges of real-time style parsing and graphics generation of massive spatial data, ensuring the feasibility and efficiency of dynamic rendering at the system level.
[0028] Furthermore, in some preferred embodiments of the present invention, the interactive interface includes: a data visualization window and a configuration panel; the data visualization window is used to display the rendered image; the configuration panel is used for users to dynamically adjust style parameters; the configuration panel includes: an attribute classification panel and a parameter configuration panel; the attribute classification panel is used to display the attribute classification information and legend of the spatial data, and the parameter configuration panel is used to receive real-time adjustments by the user to the display level, symbols, colors and transparency parameters.
[0029] Specifically, the interactive interface adopts a dual-pane design, achieving a WYSIWYG dynamic configuration experience. The data visualization window receives and displays the rendered result images returned by the server in real time, providing users with instant feedback. The configuration panel is semi-transparently overlaid on part of the data visualization window; the configuration panel can be further subdivided into an attribute category panel and a parameter configuration panel: the attribute category panel helps users quickly understand the data structure and select the target category by displaying category legends for fields such as "level"; the parameter configuration panel integrates a wealth of visual parameter controls such as maximum / minimum display level, symbol size, rotation, border width, color, transparency, and fill color and transparency. Any adjustments made by the user through this interface can immediately trigger a re-rendering process in the background, thus transforming the traditional, static, and professionally configured style setting process into an intuitive, real-time, user-driven dynamic interactive process, greatly improving system flexibility and user experience.
[0030] See Figure 1 The flowchart shown in this embodiment of the invention provides a method for dynamically rendering massive spatial data. The method includes: Step S102: In response to the user's style configuration operation in the interactive interface, receive a configuration request containing style parameters and attribute conditions.
[0031] Specifically, when a user adjusts parameters such as symbol color and size in the parameter configuration panel, or sets conditions (e.g., ">100") based on a specific attribute field (e.g., "count") in the attribute category panel, the interface integrates and encapsulates these discrete operations into a structured configuration request. This request not only contains all the style parameter values ultimately set by the user, but may also include attribute condition expressions used for data filtering. The server's receipt of this request signifies the triggering of a dynamic rendering task. Accurately and completely transforming the user's graphical operations on the front end into standardized request data that the back end can process is fundamental to ensuring that the user's intent is correctly understood and executed.
[0032] Step S104: The style parameters and attribute conditions are parsed by the style rule parser to generate the corresponding rendering style object and filter object.
[0033] Specifically, the style rule parser is the key transformation hub of this invention. Its responsibility is to convert interactive request parameters from the front end into internal objects that the rendering engine can directly use. The parsing process is the core link that enables dynamic rendering, avoiding the problems of pre-writing or manually modifying complex configuration files in traditional solutions. Through real-time parsing, the system can flexibly adapt to new style rules generated by each user interaction, providing technical support for achieving "dynamic" rendering.
[0034] Furthermore, in some preferred embodiments of the present invention, style parameters are used to configure a single style rule or multiple style rules; the multiple style rules are respectively associated with attribute threshold conditions set based on different value ranges of spatial data attribute fields, and each attribute threshold condition is used to define a subset of data to be rendered.
[0035] For details, see Figure 2 The illustrated embodiment of the present invention provides a single style rule diagram and Figure 3 The illustrated embodiment of the present invention provides a schematic diagram of multiple style rules. A single style rule is suitable for applying a uniform visual style to an entire layer or a dataset that meets a single condition. Multiple style rules, on the other hand, allow users to configure differentiated styles for different subsets of data based on different threshold ranges of a certain attribute field (such as density, level, or type). (For example, rendering points of type "supermarket" as large red icons and points of type "gas station" as medium yellow icons). This mechanism of binding "attribute conditions - style rules" enables a map to clearly express multi-dimensional attribute information of the data simultaneously, greatly enhancing the richness and accuracy of visualization and meeting the thematic mapping needs of complex business scenarios.
[0036] Furthermore, in some preferred embodiments of the present invention, the style rule parser includes: a rendering parameter parsing unit and a threshold parameter parsing unit; the rendering parameter parsing unit is used to construct style rules according to style parameters in the configuration request and parse the style rules into rendering style objects; the threshold parameter parsing unit is used to parse and generate corresponding filter objects according to attribute conditions provided in the form of filter expressions in the configuration request.
[0037] Specifically, the parser adopts a modular design, with a rendering parameter parsing unit and a threshold parameter parsing unit working collaboratively. The rendering parameter parsing unit specifically handles visually relevant parameters (such as color and size), and its output is a rendering style object that directly guides the graphics drawing. The threshold parameter parsing unit, on the other hand, handles the data filtering logic, responsible for parsing the filter expression (FilterExpression) sent from the front end and generating a filter object for quickly filtering target data during rendering. This separation of responsibilities makes the parsing logic clearer, easier to maintain and extend, and allows each unit to independently optimize its parsing algorithm, collectively ensuring the efficiency and accuracy of the overall parsing process.
[0038] Furthermore, in some preferred embodiments of the present invention, the rendering parameter parsing unit is used to receive the style rules passed in from the front end, call the corresponding parsing method in the style parser, and convert each member variable into parameters in the format required by the rendering engine to form a rendering style object; wherein, the member variables in the style rules include: maximum display level, minimum display level, symbol size, symbol rotation, edge width, edge color, edge transparency, fill color, fill transparency, and symbol encoding.
[0039] Specifically, the rendering parameter parsing unit encapsulates all style parameter members passed from the front end by defining a StyleRule object. For each member variable, there is a corresponding parsing method within the unit. Table 1 shows the correspondence between the member variables processed by the rendering parameter parsing unit, their corresponding parsing methods, and their return value types: Table 1
[0040] These methods perform specific type conversions and formatting tasks, such as converting the string color value "#FF0000" to a Java Color object, and converting the string "30" to an integer sign value. Ultimately, all parsed parameters are integrated into a structured RenderStyle object. This object-oriented parsing approach transforms loosely defined front-end parameters into cohesive, type-safe rendering instruction objects, ensuring that the data passed to the rendering engine is accurate and directly operable, reducing additional processing overhead at the engine layer.
[0041] Furthermore, in some preferred embodiments of the present invention, when the threshold parameter parsing unit parses the filtering expression, the supported comparison operators include at least one of the following: greater than or equal to, less than or equal to, not equal to, equal to, empty, and not empty.
[0042] Specifically, the core of the threshold parameter parsing unit is parsing filter expressions like "count>100 and count<200". To cover a wide range of query needs, this unit supports a rich set of comparison operators. Table 2 shows the comparison operators supported by the threshold parameter parsing unit and their descriptions: Table 2
[0043] These operators can be combined to form complex logical conditions. The FilterParser class within the unit is responsible for recognizing these operators and field names and converting them into filtering conditions (Filter objects) that the rendering engine can execute efficiently. This powerful expression parsing capability empowers users to achieve complex data filtering with simple statements, enabling dynamic rendering not only to change the appearance but also to change the subset of data content displayed in real time.
[0044] Step S106: Real-time rendering is performed using a massive map data rendering engine, based on the rendering style object, the filtering object, and the range of data to be rendered.
[0045] Specifically, the massive map data rendering engine is the final executor. It receives the RenderStyle object (containing rendering styles and filter objects) from the parser, as well as the geographic extent corresponding to the current view. Using this information, the engine launches an optimized rendering pipeline that can complete the entire process from data reading and conditional filtering to graphic generation within seconds, even when dealing with hundreds of thousands or even millions of data points, thus fulfilling the dual promise of "massive data" and "real-time dynamics".
[0046] Furthermore, in some preferred embodiments of the present invention, the steps of performing real-time rendering processing based on a rendering style object, a filtering object, and the data range to be rendered using a massive map data rendering engine include: reading the spatial data source corresponding to the data range to be rendered from a spatial database or spatial data file; dynamically constructing a rendering layer by combining the rendering style object and the spatial data source; extracting the rendering style object and the filtering object from the rendering layer; filtering and extracting the corresponding target data subset from the spatial data source according to the conditions defined by the filtering object; and combining the target data subset with the rendering style object to render and generate image tiles of a specified size.
[0047] For details, see Figure 4The illustrated embodiment of the present invention provides a workflow diagram of a massive map data rendering engine. The rendering engine's processing flow is an efficient and orderly pipeline. First, based on the requested geographical range, it reads spatial data from a database or file on demand to construct a data source (DataSource), avoiding the memory pressure of full loading. Next, this data source (DataSource) is dynamically combined with the received rendering style object (RenderStyle) to jointly construct a temporary rendering layer (RenderLayer) containing style information in memory. Then, the rendering style object (RenderStyle) and filter object (Filter) are extracted from this rendering layer (RenderLayer). Subsequently, based on the conditions defined by this filter object (Filter), the corresponding target data subset (SubDataSource) is filtered and extracted from the original data source (DataSource). Finally, this target data subset (SubDataSource) is combined with the extracted rendering style object (RenderStyle), and the underlying graphics library is called to render and generate PNG image tiles of a specified size (e.g., 256×256 pixels) and output them. This process fully optimizes data I / O, layer construction, conditional filtering, and graphics rendering, ensuring stable rendering performance even under high concurrency or large data volumes. Rendering of 500,000 data points can be completed within one second. This achieves a seamless transition from flexible configuration to efficient image generation.
[0048] Step S108: Return the rendered image to the interactive interface for visualization.
[0049] Specifically, the image tiles generated by the rendering engine are quickly returned to the front-end interactive interface. The data visualization window receives these images and seamlessly stitches and displays them, thus completing a full dynamic rendering update. See also Figure 5 The illustrated embodiment of the present invention provides a dynamic rendering effect demonstration. After the user adjusts the symbol encoding, size, and fill color, the map updates almost instantly to the user. After adjusting parameters on the front end, the user can see the map style refresh in a very short time (e.g., within 1 second). This rapid feedback loop not only verifies the user's operation but also greatly enhances the smoothness of the interaction and the usability of the system, making exploratory and iterative spatial data analysis and visualization possible.
[0050] This invention provides a method for dynamic rendering of massive spatial data, applied to a rendering system based on a B / S architecture. The system includes: an interactive interface for dynamic configuration of style rules, a style rule parser, and a massive map data rendering engine. The method includes: responding to a user's style configuration operation in the interactive interface by receiving a configuration request containing style parameters and attribute conditions; parsing the style parameters and attribute conditions through the style rule parser to generate corresponding rendering style objects and filter objects; performing real-time rendering processing based on the rendering style objects, filter objects, and the data range to be rendered through the massive map data rendering engine; and returning the rendered image to the interactive interface for visualization. By constructing a collaborative rendering system including an interactive interface, a style rule parser, and a rendering engine, dynamic real-time rendering of massive spatial data is achieved. This overcomes the performance bottleneck of traditional front-end rendering and solves the problem that server-side static rendering cannot dynamically respond to style adjustments, significantly improving the flexibility, real-time performance, and user experience of rendering massive spatial data under a B / S architecture.
[0051] Example 2 Based on the above embodiments, this invention provides a dynamic rendering device for massive spatial data, applied to a rendering system with a B / S architecture. The system includes: an interactive interface for dynamic configuration of style rules, a style rule parser, and a massive map data rendering engine. See [link to documentation]. Figure 6 The diagram shown is a structural schematic of a dynamic rendering device for massive spatial data provided in an embodiment of the present invention. The device includes: The rendering request acquisition module 310 is used to respond to the user's style configuration operation in the interactive interface and receive a configuration request containing style parameters and attribute conditions.
[0052] The rendering rule parsing module 320 is used to parse style parameters and attribute conditions through the style rule parser, and generate corresponding rendering style objects and filter objects.
[0053] The real-time rendering module 330 is used to perform real-time rendering processing based on the rendering style object, the filter object, and the range of data to be rendered through a massive map data rendering engine.
[0054] The rendered image display module 340 is used to return the rendered image to the interactive interface for visual display.
[0055] Furthermore, in some preferred embodiments of the present invention, the style rule parser includes: a rendering parameter parsing unit and a threshold parameter parsing unit; the rendering parameter parsing unit is used to construct style rules according to style parameters in the configuration request and parse the style rules into rendering style objects; the threshold parameter parsing unit is used to parse and generate corresponding filter objects according to attribute conditions provided in the form of filter expressions in the configuration request.
[0056] Furthermore, in some preferred embodiments of the present invention, the rendering parameter parsing unit is used to receive the style rules passed in from the front end, call the corresponding parsing method in the style parser, and convert each member variable into parameters in the format required by the rendering engine to form a rendering style object; wherein, the member variables in the style rules include: maximum display level, minimum display level, symbol size, symbol rotation, edge width, edge color, edge transparency, fill color, fill transparency, and symbol encoding.
[0057] Furthermore, in some preferred embodiments of the present invention, when the threshold parameter parsing unit parses the filtering expression, the supported comparison operators include at least one of the following: greater than or equal to, less than or equal to, not equal to, equal to, empty, and not empty.
[0058] Furthermore, in some preferred embodiments of the present invention, the interactive interface includes: a data visualization window and a configuration panel; the data visualization window is used to display the rendered image; the configuration panel is used for users to dynamically adjust style parameters; the configuration panel includes: an attribute classification panel and a parameter configuration panel; the attribute classification panel is used to display the attribute classification information and legend of the spatial data, and the parameter configuration panel is used to receive real-time adjustments by the user to the display level, symbols, colors and transparency parameters.
[0059] Furthermore, in some preferred embodiments of the present invention, style parameters are used to configure a single style rule or multiple style rules; the multiple style rules are respectively associated with attribute threshold conditions set based on different value ranges of spatial data attribute fields, and each attribute threshold condition is used to define a subset of data to be rendered.
[0060] Furthermore, in some preferred embodiments of the present invention, the real-time rendering module 330 is used to read the spatial data source corresponding to the data range to be rendered from the spatial database or spatial data file; dynamically construct a rendering layer by combining the rendering style object and the spatial data source; extract the rendering style object and the filter object from the rendering layer; filter and extract the corresponding target data subset from the spatial data source according to the conditions defined by the filter object; and combine the target data subset with the rendering style object to render and generate image tiles of a specified size.
[0061] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described dynamic rendering device for massive spatial data can be referred to the corresponding process in the aforementioned embodiments of the dynamic rendering method for massive spatial data, and will not be repeated here.
[0062] Example 3 This invention also provides an electronic device for running a method for dynamically rendering massive spatial data; see [link to related documentation]. Figure 7 The schematic diagram of an electronic device provided by the embodiment of the present invention shown above includes a memory 400 and a processor 401. The memory 400 is used to store one or more computer instructions, which are executed by the processor 401 to realize the above-mentioned dynamic rendering method for massive spatial data.
[0063] Furthermore, Figure 7 The electronic device shown also includes a bus 402 and a communication interface 403. The processor 401, the communication interface 403 and the memory 400 are connected via the bus 402.
[0064] The memory 400 may include high-speed random access memory (RAM) and may also include non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 403 (which can be wired or wireless), such as the Internet, wide area network, local area network, metropolitan area network, etc. The bus 402 can be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 7 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.
[0065] Processor 401 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of processor 401 or by instructions in software form. Processor 401 can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this invention can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software module can reside in a readily available storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory 400, and processor 401 reads information from memory 400 and, in conjunction with its hardware, completes the steps of the method described in the foregoing embodiments.
[0066] This invention also provides a storage medium storing computer-executable instructions. When these computer-executable instructions are called and executed by a processor, they cause the processor to implement the above-described method for dynamic rendering of massive spatial data. For specific implementation details, please refer to the method embodiments, which will not be repeated here.
[0067] The computer program products of the massive spatial data dynamic rendering method, apparatus and electronic device provided in the embodiments of the present invention include a storage medium storing program code. The instructions included in the program code can be used to execute the methods in the preceding method embodiments. For specific implementation, please refer to the method embodiments, which will not be repeated here.
[0068] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system and / or device described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0069] Furthermore, in the description of the embodiments of the present invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in the present invention based on the specific circumstances.
[0070] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0071] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for dynamically rendering massive spatial data, characterized in that, A rendering system applied to a B / S architecture, the system comprising: an interactive interface for dynamic configuration of style rules, a style rule parser, and a massive map data rendering engine, the method comprising: In response to the user's style configuration operation in the interactive interface, a configuration request containing style parameters and attribute conditions is received; The style rules parser parses the style parameters and attribute conditions to generate corresponding rendering style objects and filter objects. The massive map data rendering engine performs real-time rendering based on the rendering style object, the filtering object, and the range of data to be rendered. The rendered image is returned to the interactive interface for visualization.
2. The method for dynamic rendering of massive spatial data according to claim 1, characterized in that, The style rule parser includes: a rendering parameter parsing unit and a threshold parameter parsing unit; The rendering parameter parsing unit is used to construct style rules based on the style parameters in the configuration request, and parse the style rules into the rendering style object; The threshold parameter parsing unit is used to parse and generate the corresponding filter object based on the attribute conditions provided in the configuration request in the form of a filter expression.
3. The method for dynamic rendering of massive spatial data according to claim 2, characterized in that, The rendering parameter parsing unit is used to receive style rules passed in from the front end, call the corresponding parsing method in the style parser, and convert each member variable into parameters in the format required by the rendering engine to form the rendering style object; wherein, the member variables in the style rules include: maximum display level, minimum display level, symbol size, symbol rotation, edge width, edge color, edge transparency, fill color, fill transparency, and symbol encoding.
4. The method for dynamic rendering of massive spatial data according to claim 2, characterized in that, When the threshold parameter parsing unit parses the filtering expression, the supported comparison operators include at least one of the following: greater than or equal to, less than or equal to, not equal to, equal to, empty, and not empty.
5. The method for dynamic rendering of massive spatial data according to claim 1, characterized in that, The interactive interface includes: a data visualization window and a configuration panel; The data visualization window is used to display the rendered image; The configuration panel is used for users to dynamically adjust style parameters; the configuration panel includes: an attribute classification panel and a parameter configuration panel; the attribute classification panel is used to display the attribute classification information and legend of spatial data, and the parameter configuration panel is used to receive real-time adjustments by users to display level, symbols, colors and transparency parameters.
6. The method for dynamic rendering of massive spatial data according to claim 1, characterized in that, The style parameters are used to configure a single style rule or multiple style rules; the multiple style rules are respectively associated with attribute threshold conditions set based on different value ranges of spatial data attribute fields, and each attribute threshold condition is used to define a subset of data to be rendered.
7. The method for dynamic rendering of massive spatial data according to claim 1, characterized in that, The steps of real-time rendering processing using the massive map data rendering engine, based on the rendering style object, the filtering object, and the data range to be rendered, include: Read the spatial data source corresponding to the data range to be rendered from the spatial database or spatial data file; By combining the rendering style object with the spatial data source, a rendering layer is dynamically constructed; Extract the rendering style object and the filter object from the rendering layer; Based on the conditions defined by the filtering object, the corresponding target data subset is filtered and extracted from the spatial data source; The target data subset is combined with the rendering style object to render and generate image tiles of a specified size.
8. A dynamic rendering device for massive spatial data, characterized in that, A rendering system applied to a B / S architecture, the system comprising: an interactive interface for dynamic configuration of style rules, a style rule parser, and a massive map data rendering engine, the apparatus comprising: The rendering request acquisition module is used to respond to the user's style configuration operation in the interactive interface and receive a configuration request containing style parameters and attribute conditions. The rendering rule parsing module is used to parse the style parameters and attribute conditions through the style rule parser to generate corresponding rendering style objects and filter objects; The real-time rendering module is used to perform real-time rendering processing based on the rendering style object, the filtering object, and the range of data to be rendered through the massive map data rendering engine. The rendered image display module is used to return the rendered image to the interactive interface for visual display.
9. An electronic device, characterized in that, The method includes a processor and a memory, the memory storing computer-executable instructions that can be executed by the processor, the processor executing the computer-executable instructions to implement the dynamic rendering method for massive spatial data as described in any one of claims 1 to 7.
10. A storage medium, characterized in that, The storage medium stores computer-executable instructions, which, when called and executed by the processor, cause the processor to implement the dynamic rendering method for massive spatial data as described in any one of claims 1 to 7.