Map processing method, device, equipment, medium and program product
By calculating grid parameters and updating rendered data in map processing, the problem of large data processing volume in map display is solved, which leads to slow response, and improves the efficiency and accuracy of map display.
Patent Information
- Application Number
- CN202510004967.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-02
- Publication Date
- 2025-04-29
- Estimated Expiration
- 2045-01-02
AI Technical Summary
In the prior art, the large amount of data processing during the map display process leads to slow map response and poor map display flexibility.
By obtaining user's operation instructions, calculating grid parameters, and determining the target layer grid in the layer grid of the map, querying the model data of the spatial model associated with the target layer grid, and updating and generating rendering data to improve data processing efficiency and map display effect.
Improve operational response efficiency and data processing efficiency, reduce data processing volume, and ensure high-precision data organization and map display.
Smart Images

Figure CN119399398B_ABST
Abstract
Description
Technical Field
[0001] This document relates to the field of map technology, and in particular to a map processing method, device, equipment, medium and program product. Background Art
[0002] With the continuous development of map technology and the increasing user needs, more and more users and institutions are beginning to need more accurate and detailed maps, and the model built by CIM (City Information Modeling) can well meet this demand. CIM is based on technologies such as building information modeling, geographic information system, and the Internet of Things. It integrates multi-dimensional and multi-scale information model data of the city above and below the ground, indoors and outdoors, and historical, current, and future, as well as urban perception data, to build a three-dimensional digital space urban information complex. However, with the continuous development and application of CIM, it also brings about the problem of excessive data volume and poor data management.
[0003] In the prior art, panoramic maps based on CIM data are usually constructed by preprocessing the database after encoding the objects in the CIM data. However, there are problems such as large data processing volume and poor map display flexibility. How to provide better map display effects has become a concern for all parties. Summary of the invention
[0004] The purpose of one embodiment of the present specification is to provide a map processing method, apparatus, device, medium and program product to solve the problem of slow map response caused by large data processing volume during map display.
[0005] To solve the above technical problems, an embodiment of this specification is implemented as follows:
[0006] In a first aspect, an embodiment of the present specification provides a map processing method, including:
[0007] Obtaining an operation instruction submitted by a user for a map, and calculating a grid parameter corresponding to the operation instruction according to operation parameters contained in the operation instruction;
[0008] Determine a target layer grid in the layer grids of the map according to the grid parameters, and query model data of a spatial model associated with the target layer grid;
[0009] Updated model data is calculated according to the operation parameters and the model data, and rendering data of an updated space model is generated according to the updated model data.
[0010] In a second aspect, another embodiment of the present specification provides a map processing device, comprising:
[0011] A grid parameter calculation module, used to obtain an operation instruction submitted by a user for a map, and calculate a grid parameter corresponding to the operation instruction according to the operation parameters contained in the operation instruction;
[0012] A model data query module, used for determining a target layer grid in the layer grids of the map according to the grid parameters, and querying the model data of the spatial model associated with the target layer grid;
[0013] The rendering data generating module is used to calculate updated model data according to the operating parameters and the model data, and to generate rendering data of the updated space model according to the updated model data.
[0014] In a third aspect, another embodiment of the present specification provides a map processing device, comprising: a memory, a processor, and computer executable instructions stored in the memory and executable on the processor, wherein the computer executable instructions, when executed by the processor, implement the steps of the map processing method as described in the first aspect above.
[0015] In a fourth aspect, another embodiment of the present specification provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store computer-executable instructions, and when the computer-executable instructions are executed by a processor, the steps of the map processing method described in the first aspect above are implemented.
[0016] In a fifth aspect, another embodiment of the present specification provides a computer program product, wherein the computer program product includes a map processing program, and when the map processing program is executed by a processor, the steps of the map processing method as described in the first aspect above are implemented.
[0017] The map processing method provided in the present embodiment obtains operation instructions submitted by users for a map during map processing, calculates grid parameters corresponding to the operation instructions according to operation parameters contained in the operation instructions, manages maps through grids, improves operation response efficiency, and improves data processing efficiency, determines a target layer grid in a layer grid of the map according to the grid parameters, queries model data of a spatial model associated with the target layer grid, efficiently manages CIM data by associating the grid with the model data, spatially integrates CIM data of different dimensions through a grid, and improves data processing efficiency, calculates updated model data according to the operation parameters and model data, generates updated rendering data of the spatial model according to the updated model data, and processes the model data of the spatial model associated with the target layer grid, thereby reducing the amount of data processing and improving data processing efficiency, while ensuring high-precision data organization and high-precision map display. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate one or more embodiments of the present specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present specification. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.
[0019] Figure 1 A flowchart of a map processing method provided for one or more embodiments of this specification;
[0020] Figure 2 A processing flow chart of a map processing method applied to a map processing scenario provided in one or more embodiments of this specification;
[0021] Figure 3 A schematic diagram of a map processing method processing flow provided for one or more embodiments of this specification;
[0022] Figure 4 A schematic diagram of a map processing device provided for one or more embodiments of this specification;
[0023] Figure 5 A schematic diagram of the structure of a map processing device provided in one or more embodiments of this specification. DETAILED DESCRIPTION
[0024] In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the following will be combined with the drawings in one or more embodiments of this specification to clearly and completely describe the technical solutions in one or more embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on one or more embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this document.
[0025] This specification provides a map processing method embodiment:
[0026] Reference Figure 1 , which shows a flowchart of a map processing method provided by this embodiment, referring to Figure 2 , which shows a processing flow chart of a map processing method applied to a map processing scenario provided by this embodiment.
[0027] Reference Figure 1 The map processing method provided in this embodiment specifically includes the following steps S102 to S106.
[0028] Step S102: obtaining an operation instruction submitted by a user for a map, and calculating a grid parameter corresponding to the operation instruction according to operation parameters included in the operation instruction.
[0029] In specific implementation, the operation instruction input by the user for the map is obtained, the operation parameters contained in the operation instruction are extracted, and the grid parameters of the layer grid to which the operation area corresponding to the operation instruction belongs are calculated according to the operation parameters. Specifically, the viewing angle parameter, field of view parameter, focal length parameter, direction parameter, projection parameter and / or position parameter contained in the operation instruction can be extracted, that is, the camera parameters changed by the user operation, and the corresponding grid parameters are calculated according to the operation parameters.
[0030] In this embodiment, the map may be a map constructed based on CIM data, specifically, a three-dimensional digital space map constructed based on CIM data. The user may access the map by running an application on a terminal device. The operation instruction may be an instruction input by the user through the terminal device, including: a zoom-in instruction, a zoom-out instruction and / or a translation instruction. The zoom-in and / or zoom-out instructions may be for the vertical direction or for the horizontal direction; the translation instruction may be a two-dimensional plane translation or a three-dimensional plane translation and / or a vertical translation. The camera may be a user's perspective.
[0031] In the specific execution process, a virtual layer grid (Virtual Layer Grid, VLG) can be constructed first, and the map layers and map data of each layer can be managed by constructing a virtual layer network, thereby improving data processing efficiency. Specifically, the layers can be divided according to preset parameters and the layer grids of each layer can be configured; in an optional implementation manner provided in this embodiment, the layer grid of the map is constructed in the following manner:
[0032] Obtaining the center coordinate information, area range parameters and layer parameters of the map, and calculating the number of grids in each layer of the map according to the total number of layers in the layer parameters;
[0033] The grid range of each layer grid within the area centered on the central coordinate is calculated, and the grid identifier of each layer grid is generated according to the layer where the each layer grid is located and the grid range.
[0034] Specifically, the central coordinate information configured for the map, the area range of the map, and the total number of preset virtual layers can be obtained, the number of grids in each layer of the map is calculated based on the total number of layers, the grid range and / or grid coordinate information of each layer grid under each layer is calculated based on the central coordinate information and the area range of the map, and the grid identifier of each layer grid is generated based on the level and grid range and / or grid coordinate information of each layer grid.
[0035] For example, the central coordinates of the currently concerned space can be set, which are composed of (longitude, latitude, altitude). If altitude information is not involved, the altitude value is missing, and the height reference will default to 0; the regional range, which sets the regional range of the currently concerned space, and the value is the side length of the bounding cube of the current area, that is, the maximum value of the length, width, and height of the area, with the unit being meters; the total number of VLG layers, which sets the total number of VLG layers when dividing the current space area by VLG; the larger the set value, the more VLG layers, the finer the space division, and the more sensitive the culling; the value range is 1-32, and when taking 1, it corresponds to not enabling VLG; the layer culling algorithm switch, which sets whether to deactivate CIM data entities that do not belong to the concerned layer and the buffer layer (±1) according to the currently concerned VLG layer; the focus area culling algorithm switch, which sets whether to determine according to the currently concerned grid; during the construction of the layer grid, for the two-dimensional layer grid, the central coordinates can be determined first, taking the regional range as the largest grid, and the grid is continuously divided by the quartering method so that the number of divided layers is equal to the total number of VLG layers. Denote the maximum size as R and the maximum layer as L (the set total number of layers - 1), then the constructed layer l i , where i ranges from 0 to L, a total of L + 1 layers, and the corresponding grid size for each layer is r i =R / (2^(L-i)); for any layer l i grid, its encoding generation rule is to take the layer l from L to l i , quarter it layer by layer, and then determine which quadrant the grid is in. The judgment results (x, y) from the first to the fourth quadrants are (1, 1), (0, 1), (0, 0), (1, 0) in turn. Then shift the corresponding value of x to the left by l + L bits and shift the corresponding value of y to the left by l bits. After the traversal is completed, the corresponding basic grid encoding ID is formed. On the basic grid, except for layer 0 and layer L, for any layer l i grid of the layer, within the maximum range, shift it forward by 0 to l i-1 grid sizes of the layer, all form new grids, and their IDs can be obtained by adding the basic ID and shifting 1 to the left by the corresponding number of bits. Through this encoding method, an area of any size and any position in space can be mapped to a smallest grid that accurately encloses it, and further corresponding to an ID, that is, the layer of the space grid corresponds to the non-zero bits of the ID binary number, and shifting a grid in the m-th layer and n-th direction in the space grid corresponds to ID + 1<<m + n*L (in two dimensions, when shifting in the longitude direction, n = 1, when shifting in the latitude direction, n = 0; in three dimensions, when shifting in the longitude direction, n = 2, when shifting in the latitude direction, n = 1, when shifting in the altitude direction, n = 0); during the generation of the specific grid identifier, an integer, long integer, or integer structure with a custom length can be used, and it is required that the number of binary bits of this integer data structure >= the total number of VLG layers * the number of dimensions to determine the range and layer. In addition, the octant method can be used to divide the three-dimensional layer grid.
[0036] Furthermore, after the layer grid is constructed, it can also be initialized. Specifically, the user's initial track coordinates and initial track offset, that is, the initial viewing angle parameters, can be configured. For example, the current operating parameters are initialized, including initial track coordinates and track offset (track coordinates refer to the real coordinates of the camera after moving in space, which corresponds to a set of determined (longitude, latitude, altitude / height), and track offset refers to the offset vector between the spatial coordinates (x, y, z) of the camera and the camera track coordinates).
[0037] In practical applications, the model data of the spatial model in the map can also be pre-loaded into the map, that is, the CIM data can be pre-registered so that the user can view it during operation, thereby improving the user experience and the high availability of the map. An optional implementation method provided in this embodiment also includes:
[0038] Obtain model data of each spatial model, and match the coordinate information and size information in each model data with the coordinate information and layer information of the layer grid of the map;
[0039] The layer grids corresponding to the spatial models are determined according to the matching results, and the spatial models are associated with the grid identifiers of the corresponding layer grids.
[0040] For example, according to the CIM data loading, the real coordinates, size, bounding box size, activation state and other parameters of the live initialization data are calculated, and the corresponding layer, grid ID and offset of the CIM data are calculated. The layer to which the CIM data belongs is the layer corresponding to the layer grid whose maximum bounding box size is smaller than the minimum size, and then the CIM data is associated with the grid identifier of the corresponding layer grid. It should be noted that CIM data can be uploaded and / or registered after being collected by authorized users; it can also be uploaded and / or registered after being collected by operating users.
[0041] Furthermore, the CIM data elimination algorithm switch can be pre-set to improve data processing efficiency and save computing resources. For example, when the elimination algorithm switch is turned off, the grid that can enclose the data bounding box corresponding to the current data level is calculated, and the grid center point is closest to the bounding box center point, and its grid ID is recorded as the CIM data grid ID, and the vector pointing from the grid center point to the bounding box center point is recorded as the offset. When the elimination algorithm switch is turned on, the unique 0-layer grid where the current data's true coordinates are located is determined by bit judgment, and the grid ID is recorded as the CIM data grid ID, and the vector pointing from the grid point to the data's true coordinates is recorded as the offset.
[0042] Step S104: determining a target layer grid in the layer grids of the map according to the grid parameters, and querying model data of a spatial model associated with the target layer grid.
[0043] In specific implementation, according to the grid parameters of the layer grid corresponding to the operation instruction, the target layer grid in the target layer is determined in the layer grids of each layer constructed for the map, and the model data of the spatial model associated with the target layer grid is queried. Specifically, the grid identifier of the target layer grid, that is, the code of the target layer grid, can be determined, and the model data of the spatial model associated with the grid identifier of the target layer grid can be queried.
[0044] In this embodiment, the spatial model may be CIM, and correspondingly, the model data of the spatial model may be CIM data, and the model data may preset multiple levels of precision, that is, the model data includes modeling data of multiple levels of precision. Specifically, the model data may include surface models, such as administrative districts, terrain, water systems, residential areas, and traffic lines. The model data may also include framework models, such as framework-level modeling data of terrain, water conservancy, buildings, transportation facilities, pipelines and pipe galleries, and vegetation. The model data may also include standard models. The model data may also include fine models, such as refined modeling data of terrain, water conservancy, buildings, transportation facilities, pipelines and pipe galleries, and vegetation. The model data may also include functional-level models, such as modeling data of elements of buildings, facilities, pipelines and pipe galleries and their main functional divisions. The model data may also include component-level models, such as modeling data of functional divisions of elements of buildings, facilities, pipelines and pipe galleries and their main components. The model data may also include part-level models, such as modeling data of functional divisions of elements of buildings, facilities, pipelines and pipe galleries, components, and their main parts. In addition, the urban information model can be divided into 7 levels according to the degree of sophistication, and the corresponding CIM data is also the same, ranging from extremely large-scale, low-precision GIS data to small-scale, extremely high-precision BIM data, and also includes modeling data, point cloud data and / or IoT data.
[0045] In the specific execution process, matching processing can be performed in the layer network of the map according to the grid parameters, a target layer matching the grid parameters can be obtained, and a target layer network can be selected from the candidate layer network of the target layer. By matching parameters, data processing efficiency is improved. In an optional implementation manner provided in this embodiment, determining the target layer grid includes:
[0046] Querying coordinate information and / or area range information of a candidate layer grid of a layer corresponding to the layer information;
[0047] A layer grid whose coordinate information and / or area range information matches the grid coordinate information is selected from the candidate layer grids as the target layer grid.
[0048] Specifically, the layer where the grid corresponding to the operation instruction is located can be determined according to the layer information, the coordinate information and / or area range information of the candidate layer grid under the layer can be queried, and the grid coordinate information in the grid parameters can be matched with the coordinate information and / or area range information of the candidate layer grid to obtain the target coordinates and / or target area range that match the grid coordinate information, and the layer grid corresponding to the target coordinates and / or target area range is used as the target layer grid. Furthermore, the grid identifier and / or grid code of the target layer grid can also be queried to query the model data of the spatial model associated with the grid identifier and / or grid code.
[0049] It should be noted that step S104 may also be replaced by: determining a target layer grid in the layer grids of the map according to the grid parameters, and querying CIM data associated with the target layer grid.
[0050] Step S106: calculating updated model data according to the operation parameters and the model data, and generating rendering data of an updated space model according to the updated model data.
[0051] In specific implementation, the updated model data updated due to the user operation is calculated based on the operation parameters contained in the operation instruction submitted by the user and the model data of the spatial model, and the rendering data of the updated spatial model is generated based on the updated model data, so as to render the updated map based on the rendering data and send it to the user. Specifically, the calculation strategy can be determined based on the operation type corresponding to the operation instruction, and the updated model data can be calculated according to the calculation strategy.
[0052] During the specific execution process, the user's operation instructions can be divided into zoom type and non-zoom type. Specifically, the zoom type can be a zoom-in operation and / or a zoom-out operation, and the non-zoom type can be a translation operation and / or a rotation operation. The calculation methods used for different operation types can be different. Different operation methods are set for operation instructions of different operation types, which improves the calculation accuracy of the model data and improves the map accuracy.
[0053] (1) Zoom operation
[0054] For the zoom operation, the user's operation may cause the view height and / or layer to change, that is, the view height parameter of the camera changes. For this, the model data of the updated space model may be calculated by reverse calculation. In an optional implementation provided by this embodiment, the updated model data is calculated, including:
[0055] If the difference between the viewing angle height information in the operation parameter and the historical viewing angle height information is greater than a threshold value, and / or if the type of the operation instruction is detected to be a zoom type; calculate the updated viewing angle coordinates according to the viewing angle information, field of view information and spatial position information in the operation parameter;
[0056] Calculate the view track coordinates according to the view track coordinates and the historical view track coordinates, and calculate the track offset according to the view track coordinates;
[0057] The model data of the scene is updated according to the trajectory offset to obtain the updated model data.
[0058] For example, when a change in the viewing angle height is detected, that is, when the operation type is detected to be a zoom type, a reverse calculation is used to calculate the gaze point coordinates based on the camera viewing angle and spatial position, and then the camera trajectory coordinates are inversely calculated based on the gaze point coordinates and the target gaze point coordinates, and then the scene trajectory offset is calculated, and the updated model data is calculated based on the trajectory offset.
[0059] (1) Non-zoom operation
[0060] For non-zoom operations, the model parameters of the updated space model may be calculated by forward calculation. In another optional implementation provided by this embodiment, the updated model data is calculated, including:
[0061] If the difference between the viewing angle height information in the operation parameter and the historical viewing angle height information does not reach the threshold, if the type of the operation instruction is detected to be a non-zoom type; calculate the viewing angle trajectory coordinates according to the viewing angle coordinates in the operation parameter and the historical time coordinates;
[0062] Focus information is calculated according to the view trajectory coordinates, target model data corresponding to the focus information in the model data of the scene is determined, and the target model data is used as the updated model data.
[0063] For example, by using forward calculation, the real change trajectory is first calculated based on the camera input parameters, and the integral of the trajectory vector affected by the height change is calculated to realize the mapping of the operation trajectory from the scene space to the real geographic space. The real trajectory points of the camera are calculated in turn, and then the real focus frame of the current camera is calculated, and the target model data corresponding to the focus frame is used as the updated model data.
[0064] In the specific model data calculation process, the corresponding layer information can be calculated according to the viewing angle parameters in the operation parameters to show the user a clearer map and improve the map display effect. For example, setting the threshold to l s , the value range is [0, L], when the camera is currently at level l>l sWhen the camera is at level l, the scene should be scaled as a whole according to certain rules to ensure the overall rendering effect; <l s When the camera is at the same level, it does not need to be scaled to ensure the position accuracy of the scene. The camera level is determined by the absolute value of its relative vertical height. The level corresponds to the grid from 0 to L layer by layer from the camera to the top. The scene scale S is currently set to l less than L. s , and the current camera level is between L and l s When between , it is calculated based on the current camera height.
[0065] Furthermore, after the calculation of the updated model data is completed, the change event of the spatial model can also be triggered to perform the rendering processing of the rendering data. For example, the model data is serialized, and then, according to the setting content of the hierarchical culling algorithm switch, the change event is selected and sent to the controller to which the model data of all spatial models of the corresponding layer belongs. When the change event is triggered: if the CIM data layer is within the polling range, the corresponding controller will trigger a change response, otherwise it will not respond or render; specifically, first set the strategy according to the focus area culling algorithm switch, use the CIM data grid ID and the camera gaze point ID, and use fast bit calculation to obtain the control state of the CIM data. If the range deviation is large, the CIM data will not be rendered subsequently in this response. Among them, the controller corresponds one-to-one with the CIM data in the scene, including the CIM data's own hierarchy, position, offset and other information.
[0066] In summary, the one or more map processing methods provided in this embodiment obtain, during the map processing process, an operation instruction submitted by a user for a map, calculates a grid parameter corresponding to the operation instruction according to the operation parameters contained in the operation instruction, manages the map through the grid, improves the operation response efficiency, and improves the data processing efficiency, determines the target layer grid in the layer grid of the map according to the grid parameters, queries the model data of the spatial model associated with the target layer grid, and efficiently manages the CIM data by associating the grid with the model data, spatially integrates CIM data of different dimensions through the grid, and improves the data processing efficiency, calculates updated model data according to the operation parameters and model data, generates updated rendering data of the spatial model according to the updated model data, and processes the model data of the spatial model associated with the target layer grid, thereby reducing the amount of data processing and improving the data processing efficiency, while ensuring high-precision data organization and high-precision map display.
[0067] The following combination Figure 2 , taking the application of the map processing method provided by this embodiment in the map processing scenario as an example, the map processing method provided by this embodiment is further explained. Figure 2The map processing method applied to the map processing scenario specifically includes steps S202 to S220.
[0068] Step S202: obtaining operation instructions submitted by the user for the map.
[0069] Step S204, calculating the layer information according to the viewing angle height information in the operation parameters, and calculating the grid coordinate information according to the field of view information and the coordinate information in the operation parameters.
[0070] Step S206: Use the layer information and grid coordinate information as grid parameters.
[0071] Step S208, querying the coordinate information of the candidate layer grid of the layer corresponding to the layer information.
[0072] Step S210 , selecting a layer grid whose coordinate information matches the grid coordinate information from among the candidate layer grids as a target layer grid, and querying model data of a spatial model associated with the target layer grid.
[0073] If the operation instruction is a zoom operation instruction, execute steps S212 to S216;
[0074] If the operation instruction is a non-zoom operation instruction, step S218 to step S220 are executed.
[0075] Step S212, calculating updated viewing angle coordinates according to the viewing angle information, field of view information and spatial position information in the operation parameters.
[0076] Step S214, calculating the view track coordinates according to the view track coordinates and the historical view track coordinates, and calculating the track offset according to the view track coordinates.
[0077] Step S216, updating the model data of the scene according to the trajectory offset to obtain updated model data.
[0078] Step S218, calculating the view trajectory coordinates according to the view coordinates in the operation parameters and the historical time coordinates.
[0079] Step S220, calculating the focus information according to the view trajectory coordinates, determining the target model data corresponding to the focus information in the model data of the scene, and using the target model data as the updated model data.
[0080] It should be noted that any one of steps S202 to S220 or any combination of multiple steps can be selected from steps S102 to S106 to form a new implementation method according to the needs of implementation deployment; and any one or multiple technical features in the technical scheme composed of steps S202 to S220 can be selected from steps S102 to S106 to form a new implementation method according to the needs of actual deployment, or the technical features in one or more optional implementation methods provided by steps S102 to S106 can be selected to combine into a new implementation method, which will not be elaborated here one by one.
[0081] It should be noted that you can also refer to Figure 3 Map processing; among them, the operator refers to the input end of the entire system, which is responsible for the initial setting of the system and the subsequent parameter input, so it can also be divided into a setter and an inputter. The inputter can be a data stream, an access interface, an operation instruction, etc. according to different system implementation methods. The manager is responsible for the management functions of system input monitoring, parameter transmission, instruction scheduling, event distribution, public data storage, etc. The calculator implements various calculation methods for use by the manager and controller. Both the manager and the calculator are unique and can be merged by simplifying the structure. The controller has a unified logical structure, but the implementation side is plural, and it is attached one-to-one with the actual CIM data in the system, stores the parameters of each CIM data, and executes its transformation control in the VLG. It is the implementation terminal of CIM data fusion.
[0082] Figure 4 A schematic diagram of a map processing device provided by an embodiment of the present invention is shown in FIG. Figure 4 As shown, the device comprises:
[0083] The grid parameter calculation module 402 is used to obtain the operation instruction submitted by the user for the map, and calculate the grid parameter corresponding to the operation instruction according to the operation parameters contained in the operation instruction;
[0084] A model data query module 404 is used to determine a target layer grid in the layer grids of the map according to the grid parameters, and query model data of a spatial model associated with the target layer grid;
[0085] The rendering data generating module 406 is used to calculate updated model data according to the operating parameters and the model data, and generate rendering data of the updated space model according to the updated model data.
[0086] The map processing device provided in this embodiment, during the map processing process, first runs the grid parameter calculation module 402 to obtain the operation instruction submitted by the user for the map, calculates the grid parameters corresponding to the operation instruction according to the operation parameters contained in the operation instruction, manages the map through the grid, improves the operation response efficiency, and improves the data processing efficiency, then runs the model data query module 404 to determine the target layer grid in the layer grid of the map according to the grid parameters, queries the model data of the spatial model associated with the target layer grid, and efficiently manages the CIM data by associating the grid with the model data, spatially integrates the CIM data of different dimensions through the grid, and improves the data processing efficiency, and finally runs the rendering data generation module 406 to calculate the updated model data according to the operation parameters and the model data, and generates the updated rendering data of the spatial model according to the updated model data, and the data processing method for the model data of the spatial model associated with the target layer grid reduces the data processing amount and improves the data processing efficiency, while ensuring high-precision data organization and high-precision map display.
[0087] The map processing device provided in an embodiment of this specification can implement each process in the aforementioned method embodiment and achieve the same functions and effects, which will not be repeated here.
[0088] Furthermore, an embodiment of the present specification also provides a map processing device, Figure 5 A structural diagram of a map processing device provided in an embodiment of this specification is shown as follows: Figure 5 As shown, the device includes: a memory 501, a processor 502, a bus 503 and a communication interface 504. The memory 501, the processor 502 and the communication interface 504 communicate through the bus 503, and the communication interface 504 may include an input and output interface, which includes but is not limited to a keyboard, a mouse, a display, a microphone, a loudspeaker, etc.
[0089] Figure 5 In the embodiment, the memory 501 stores computer executable instructions that can be run on the processor 502. When the computer executable instructions are executed by the processor 502, the following process is implemented:
[0090] Obtaining an operation instruction submitted by a user for a map, and calculating a grid parameter corresponding to the operation instruction according to operation parameters contained in the operation instruction;
[0091] Determine a target layer grid in the layer grids of the map according to the grid parameters, and query model data of a spatial model associated with the target layer grid;
[0092] Updated model data is calculated according to the operation parameters and the model data, and rendering data of an updated space model is generated according to the updated model data.
[0093] The map processing device provided in this embodiment, through the cooperation of the memory 501, the processor 502, the bus 503 and the communication interface 504, obtains the operation instructions submitted by the user for the map during the map processing process, calculates the grid parameters corresponding to the operation instructions according to the operation parameters contained in the operation instructions, manages the map through the grid, improves the operation response efficiency, and improves the data processing efficiency, determines the target layer grid in the layer grid of the map according to the grid parameters, queries the model data of the spatial model associated with the target layer grid, and efficiently manages the CIM data by associating the grid with the model data, spatially integrates the CIM data of different dimensions through the grid, and improves the data processing efficiency, calculates the updated model data according to the operation parameters and the model data, generates the updated rendering data of the spatial model according to the updated model data, and processes the model data of the spatial model associated with the target layer grid, thereby reducing the data processing amount and improving the data processing efficiency, and at the same time ensuring high-precision data organization and high-precision map display.
[0094] The map processing device provided in an embodiment of this specification can implement each process in the aforementioned method embodiment and achieve the same functions and effects, which will not be repeated here.
[0095] Furthermore, another embodiment of the present specification provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store computer-executable instructions, and when the computer-executable instructions are executed by a processor, the following process is implemented:
[0096] Obtaining an operation instruction submitted by a user for a map, and calculating a grid parameter corresponding to the operation instruction according to operation parameters contained in the operation instruction;
[0097] Determine a target layer grid in the layer grids of the map according to the grid parameters, and query model data of a spatial model associated with the target layer grid;
[0098] Updated model data is calculated according to the operation parameters and the model data, and rendering data of an updated space model is generated according to the updated model data.
[0099] The computer-readable storage medium provided in this embodiment obtains operation instructions submitted by users for a map during map processing, calculates grid parameters corresponding to the operation instructions according to the operation parameters contained in the operation instructions, manages maps through grids, improves operation response efficiency, and improves data processing efficiency, determines a target layer grid in a layer grid of the map according to the grid parameters, queries model data of a spatial model associated with the target layer grid, and efficiently manages CIM data by associating the grid with the model data, spatially integrates CIM data of different dimensions through a grid, and improves data processing efficiency, calculates updated model data according to the operation parameters and model data, generates updated rendering data of the spatial model according to the updated model data, and processes the model data of the spatial model associated with the target layer grid, thereby reducing the amount of data processing and improving data processing efficiency, while ensuring high-precision data organization and high-precision map display.
[0100] The computer-readable storage medium includes a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0101] The computer-readable storage medium provided in an embodiment of this specification can implement each process in the aforementioned method embodiment and achieve the same functions and effects, which will not be repeated here.
[0102] Furthermore, another embodiment of the present specification also provides a computer program product, which implements the following process when executed by a processor:
[0103] Obtaining an operation instruction submitted by a user for a map, and calculating a grid parameter corresponding to the operation instruction according to operation parameters contained in the operation instruction;
[0104] Determine a target layer grid in the layer grids of the map according to the grid parameters, and query model data of a spatial model associated with the target layer grid;
[0105] Updated model data is calculated according to the operation parameters and the model data, and rendering data of an updated space model is generated according to the updated model data.
[0106] The computer product program provided in this embodiment obtains operation instructions submitted by users for a map during map processing, calculates grid parameters corresponding to the operation instructions according to the operation parameters contained in the operation instructions, manages maps through grids, improves operation response efficiency, and improves data processing efficiency, determines a target layer grid in a layer grid of the map according to the grid parameters, queries model data of a spatial model associated with the target layer grid, efficiently manages CIM data by associating the grid with the model data, spatially integrates CIM data of different dimensions through a grid, and improves data processing efficiency, calculates updated model data according to the operation parameters and model data, generates updated rendering data of the spatial model according to the updated model data, and processes the model data of the spatial model associated with the target layer grid, thereby reducing the amount of data processing and improving data processing efficiency, while ensuring high-precision data organization and high-precision map display.
[0107] The computer program product provided in one embodiment of this specification can implement each process in the aforementioned method embodiment and achieve the same functions and effects, which will not be repeated here.
[0108] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0109] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0110] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0111] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0112] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0113] Memory may include non-permanent storage in a computer-readable storage medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable storage medium.
[0114] Computer-readable storage media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer-readable storage media 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 disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable storage media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0115] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0116] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0117] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A map processing method, characterized in that: The method comprises: Obtaining an operation instruction submitted by a user for a map, and calculating a grid parameter corresponding to the operation instruction according to operation parameters contained in the operation instruction; the map is constructed based on city information model data; Determine a target layer grid in the layer grids of the map according to the grid parameters, and query model data of a spatial model associated with the target layer grid; If the operation instruction is a zoom operation instruction, calculate the updated view coordinates according to the view information, field of view information and spatial position information in the operation parameters, calculate the view track coordinates according to the view coordinates and the historical view coordinates, and calculate the track offset according to the view track coordinates; The model data of the city information model is updated according to the trajectory offset to obtain updated model data, and the rendering data of the updated space model is generated according to the updated model data.
2. The map processing method according to claim 1, characterized in that: The layer grid of the map is constructed in the following way: Obtaining the center coordinate information, area range parameters and layer parameters of the map, and calculating the number of grids in each layer of the map according to the total number of layers in the layer parameters; The grid range of each layer grid within the area centered on the central coordinate is calculated, and the grid identifier of each layer grid is generated according to the layer where the each layer grid is located and the grid range.
3. The map processing method according to claim 1, characterized in that: The calculating the grid parameter corresponding to the operation instruction according to the operation parameter included in the operation instruction includes: Calculate the layer information according to the viewing angle height information in the operation parameters, and calculate the grid coordinate information according to the field of view information and coordinate information in the operation parameters; Using the layer information and the grid coordinate information as the grid parameters; Correspondingly, determining the target layer grid in the layer grid of the map according to the grid parameter includes: Querying coordinate information of a candidate layer grid of a layer corresponding to the layer information; A layer grid whose coordinate information matches the grid coordinate information is selected from the candidate layer grids as the target layer grid.
4. The map processing method according to claim 1, characterized in that: Before obtaining the operation instruction submitted by the user for the map and calculating the grid parameters corresponding to the operation instruction according to the operation parameters contained in the operation instruction, the method further includes: Obtain model data of each spatial model, and match the coordinate information and size information in each model data with the coordinate information and layer information of the layer grid of the map; The layer grids corresponding to the spatial models are determined according to the matching results, and the spatial models are associated with the grid identifiers of the corresponding layer grids.
5. The map processing method according to claim 1, characterized in that: If the operation instruction is a non-zoom operation instruction, the method further includes: Calculate the view trajectory coordinates according to the view coordinates and historical time coordinates in the operation parameters; Focus information is calculated according to the view trajectory coordinates, target model data corresponding to the focus information in the model data of the space model is determined, and the target model data is used as updated model data.
6. A map processing device, characterized in that: The device comprises: A grid parameter calculation module, used to obtain an operation instruction submitted by a user for a map, and calculate a grid parameter corresponding to the operation instruction according to the operation parameters contained in the operation instruction; the map is constructed based on the city information model data; A model data query module, used for determining a target layer grid in the layer grids of the map according to the grid parameters, and querying the model data of the spatial model associated with the target layer grid; A rendering data generation module is used to calculate updated viewing angle coordinates according to the viewing angle information, field of view information and spatial position information in the operating parameters if the operation instruction is a zoom operation instruction; calculate viewing angle trajectory coordinates according to the viewing angle coordinates and historical viewing angle coordinates; calculate trajectory offset according to the viewing angle trajectory coordinates; update the model data of the city information model according to the trajectory offset to obtain updated model data; and generate updated rendering data of the space model according to the updated model data.
7. A map processing device, characterized in that: The device includes a memory and a processor, wherein the memory stores computer executable instructions, and when the computer executable instructions are executed on the processor, the steps of the map processing method described in any one of claims 1 to 5 can be implemented.
8. A computer-readable storage medium having computer-executable instructions stored therein, characterized in that: When the computer executable instructions are executed by a processor, the steps of the map processing method described in any one of claims 1 to 5 can be implemented.
9. A computer program product, characterized in that The computer program product includes a map processing program, and when the map processing program is executed by a processor, the steps of the map processing method described in any one of claims 1 to 5 can be implemented.
Citation Information
Patent Citations
MDDRQ-Tree index structure for network multidimensional space data expression
CN101923542A