Map data processing method and device, computer readable medium and electronic equipment
By independently processing the rendering request of tile map data, obtaining tile map data and separating rendered tile vector data and expanding description information, the problem of low flexibility in tile map modification is solved, and more efficient data processing and modification capabilities are achieved .
Patent Information
- Application Number
- CN202310517853.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-09
- Publication Date
- 2024-11-15
AI Technical Summary
In the tile map data processing method, the coupling between the different contents displayed by the tile is strong, resulting in low modification flexibility. All tile data needs to be recompiled to change part of the content.
By obtaining the rendering request of the target map, the tile map data is obtained based on the location information and scale information, the tile vector data and extended description information are independently rendered, which reduces coupling and allows changes to expand without affecting the rendering logic of the tile vector data. Description information.
It improves the flexibility of modifying tile map data, reduces the need for synchronous processing of extended description information during rendering, and enhances the flexibility and efficiency of the system.
Smart Images

Figure CN118964451A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of computer technology, and specifically relates to a method, device, computer-readable medium and electronic device for processing map data. Background Art
[0002] A tile map is a raster image that divides a map into several rows and columns according to a certain size, format, and zoom level. These raster images are figuratively called tiles. At present, the content displayed by a tile on a tile map is usually compiled into a tile data. When the map is displayed, the tile data is rendered and displayed by the rendering engine of the client. This method of processing tile map data makes the different contents displayed by the tile have a strong coupling relationship. The rendering engine needs to recognize all the contents of the tile data before it can render. When it is necessary to change part of the content displayed by the tile, it is necessary to modify the tile compilation logic and recompile all the tile data, resulting in low flexibility in tile modification. Summary of the invention
[0003] The purpose of the present application is to provide a method, device, computer-readable medium and electronic device for processing map data to optimize the problem of low flexibility in tile modification in related technologies.
[0004] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.
[0005] According to one aspect of an embodiment of the present application, a method for processing map data is provided, including:
[0006] Obtaining a rendering request of a target map, the rendering request including location information to be rendered and scale information of the target map;
[0007] Acquire tile map data corresponding to the target map according to the location information and the scale information in the rendering request, wherein the tile map data includes tile vector data and extended description information corresponding to the information point in the target map;
[0008] Rendering the tile vector data corresponding to the target map to generate a rendering result of the target map;
[0009] The extended description information corresponding to the target map is drawn based on the rendering result of the target map to generate the target map.
[0010] According to one aspect of an embodiment of the present application, a map data processing device is provided, including:
[0011] A rendering request acquisition module, used to acquire a rendering request of a target map, wherein the rendering request includes location information to be rendered and scale information of the target map;
[0012] A map data acquisition module, used to acquire tile map data corresponding to the target map according to the location information and the scale information in the rendering request, wherein the tile map data includes tile vector data and extended description information corresponding to the information points in the target map;
[0013] A vector data rendering module, used for rendering the tile vector data corresponding to the target map to generate a rendering result of the target map;
[0014] The extended information drawing module is used to draw the extended description information corresponding to the target map based on the rendering result of the target map to generate the target map.
[0015] In one embodiment of the present application, the map data acquisition module includes:
[0016] A tile identification determination unit, configured to determine a tile identification corresponding to the target map according to the location information and the scale information in the rendering request;
[0017] The map data acquisition unit is used to acquire the tile map data corresponding to the target map according to the tile identifier.
[0018] In one embodiment of the present application, the tile identification determination unit is specifically used to:
[0019] Determining the tile level of the tile map data corresponding to the target map in the tile pyramid according to the scale information;
[0020] The tile identifier corresponding to the target map is determined according to the location information in the rendering request and the tile level.
[0021] In one embodiment of the present application, the map data acquisition unit is specifically used for:
[0022] Searching for tile map data having a tile identifier identical to a tile identifier corresponding to the target map among a plurality of tile map data;
[0023] The tile map data having the same tile identifier as the tile identifier corresponding to the target map is used as the tile map data corresponding to the target map.
[0024] In one embodiment of the present application, the device further includes:
[0025] An original data acquisition module, used to acquire original map data and extended description information set for each information point in the original map data;
[0026] An extended information fusion module, used for fusing the original map data with the extended description information corresponding to the original map data to generate global map data;
[0027] The slicing module is used to slice the global map data to obtain a plurality of tile map data.
[0028] In one embodiment of the present application, the original map data includes a first information point identifier and an extended field corresponding to the first information point identifier; the extended description information includes a second information point identifier and description data corresponding to the second information point identifier; and the extended information fusion module is specifically used to:
[0029] determining, according to the second information point identifier in the extended description information corresponding to the original map data, a first information point identifier in the original map data that is identical to the second information point identifier;
[0030] The description data corresponding to the second information point identifier is added to the extension field corresponding to the first information point identifier.
[0031] In one embodiment of the present application, the extended description information corresponding to the original map data includes description data; the original data acquisition module is specifically used to:
[0032] Acquire description content set for the information point in the original map data, display orientation of the description content relative to the information point, and style information of the description content;
[0033] The description content, the display orientation of the description content relative to the information point and the style information of the description content are integrated into a description data field, and the description data field is used as the description data corresponding to the information point.
[0034] In one embodiment of the present application, the vector data rendering module is specifically used for:
[0035] Rendering the tile vector data corresponding to the target map through a rendering engine of the terminal device;
[0036] The extended information drawing module is specifically used for:
[0037] The extended description information corresponding to the target map is transparently transmitted to the application layer of the terminal device through the rendering engine, and the extended description information corresponding to the target map is drawn by the application layer based on the rendering result of the target map.
[0038] In one embodiment of the present application, the tile map data further includes a map style identifier; and the vector data rendering module includes:
[0039] A style information acquisition unit, configured to acquire corresponding map style information according to a map style identifier in tile map data corresponding to the target map;
[0040] A rendering unit is used to render tile vector data corresponding to the target map according to the map style information.
[0041] In one embodiment of the present application, the device further includes:
[0042] A style setting information acquisition module, used to acquire original map data and style setting information corresponding to the original map data; the original map data includes a style field;
[0043] A style information fusion module, used to fill the style setting information corresponding to the original map data into the style field in the original map data to generate global map data;
[0044] The slicing module is used to slice the global map data to obtain a plurality of tile map data, and the tile map data corresponding to the target map is one of the plurality of tile map data.
[0045] In one embodiment of the present application, the original map data further includes vector data; the style setting information includes a style identifier; and the style information fusion module is specifically used to:
[0046] Acquiring style setting information corresponding to the vector data according to the type of the vector data in the original map data;
[0047] The style identifier in the style setting information corresponding to the vector data is filled into the style field corresponding to the vector data.
[0048] In one embodiment of the present application, the device further includes:
[0049] A rendering request generation module is used to obtain the positioning information of the terminal device; determine the scale information of the target map according to the zoom information of the target map; use the positioning information of the terminal device as the position information required for rendering, and generate a rendering request for the target map according to the position information and the scale information.
[0050] According to one aspect of an embodiment of the present application, a computer-readable medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for processing map data in the above technical solution is implemented.
[0051] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor executes the executable instructions so that the electronic device executes a method for processing map data as in the above technical solution.
[0052] According to one aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method for processing map data in the above technical solution.
[0053] In the technical solution provided in the embodiment of the present application, tile map data corresponding to the target map is obtained according to the location information and scale information in the rendering request, and then the tile vector data extended description information included in the tile map data is rendered and drawn respectively, thereby reducing the coupling between the tile vector data and the extended description information, and there is no need to synchronously render the extended description information when rendering the tile vector data. When the extended description information needs to be changed, it does not affect the rendering logic of the tile vector data rendering process, thereby improving the flexibility of modifying the tile map data.
[0054] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0056] Figure 1 The exemplary system architecture block diagram applying the technical solution of the present application is schematically shown.
[0057] Figure 2 The following is a flowchart schematically showing a method for processing map data provided by an embodiment of the present application.
[0058] Figure 3 The structural diagram of a tile pyramid provided by an embodiment of the present application is schematically shown.
[0059] Figure 4 The following is a flowchart schematically showing a method for processing map data provided by an embodiment of the present application.
[0060] Figure 5 The following is a flowchart schematically showing a method for processing map data provided by an embodiment of the present application.
[0061] Figure 6 The following is a flowchart schematically showing a method for processing map data provided by an embodiment of the present application.
[0062] Figure 7 A flowchart schematically illustrates a process of processing map style information provided by an embodiment of the present application.
[0063] Figure 8 A schematic diagram schematically shows a configuration interface for style information provided by an embodiment of the present application.
[0064] Fig. 9 The following is a flowchart schematically showing a method for processing map data provided by an embodiment of the present application.
[0065] Fig.10 The structural block diagram of the map data processing device provided in the embodiment of the present application is schematically shown.
[0066] Fig.11 The structure block diagram of a computer system suitable for implementing an electronic device of an embodiment of the present application is schematically shown. DETAILED DESCRIPTION
[0067] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.
[0068] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.
[0069] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0070] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0071] Figure 1 The exemplary system architecture block diagram applying the technical solution of the present application is schematically shown.
[0072] like Figure 1 As shown, the system architecture 100 may include a terminal device 110, a network 120 and a server 130. The terminal device 110 may include a smart phone, a tablet computer, a laptop computer, an intelligent voice interaction device, a smart home appliance, a vehicle-mounted terminal, etc. The server 130 may be an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. The network 120 may be a communication medium of various connection types that can provide a communication link between the terminal device 110 and the server 130, for example, a wired communication link or a wireless communication link.
[0073] According to the implementation requirements, the system architecture in the embodiment of the present application can have any number of terminal devices, networks and servers. For example, the server 130 can be a server group composed of multiple server devices. In addition, the technical solution provided in the embodiment of the present application can be applied to the terminal device 110, can also be applied to the server 130, or can be implemented by the terminal device 110 and the server 130 together, and the present application does not make any special restrictions on this.
[0074] For example, the technical solution provided in the embodiment of the present application is implemented by the terminal device 110. The terminal device 110 obtains a rendering request for the target map, and the rendering request includes the location information required for rendering and the scale information of the target map. For example, when the operator of the terminal device 110 opens the map application configured on the terminal device 110, the terminal device 110 obtains the rendering request for the target map. Then, the terminal device 110 obtains the tile map data corresponding to the target map according to the location information and scale information in the rendering request, and the tile map data includes tile vector data and extended description information corresponding to the information points in the target map; the terminal device 110 can initiate a tile map data acquisition request to the server 130 through the network 120, and then the server 130 returns the tile map data to the terminal device 110 through the network 120. Next, the terminal device 110 renders the tile vector data corresponding to the target map to generate the rendering result of the target map; and draws the extended description information corresponding to the target map based on the rendering result of the target map to generate the target map. That is, the terminal device 110 does not need to synchronously render the extended description information when rendering the tile vector data, but instead draws the extended description information on the rendering result of the tile vector data, thereby achieving decoupling between the tile vector data and the extended description information corresponding to the information point. When the extended description information needs to be changed, it does not affect the rendering logic of the tile vector data rendering process, thereby improving the flexibility of modifying the tile map data.
[0075] The following is a detailed description of the method for processing map data provided by the present application in conjunction with specific implementation methods.
[0076] Figure 2 The flowchart of the method for processing map data provided by one embodiment of the present application is schematically shown. Figure 2 As shown, the method for processing map data provided in the embodiment of the present application includes steps 210 to 240, which are specifically as follows:
[0077] Step 210: Obtain a rendering request for the target map, where the rendering request includes location information to be rendered and scale information of the target map.
[0078] Specifically, the location information to be rendered can be obtained based on real-time positioning data, or it can be specified location information. For example, a map application is configured in the terminal device. When the operator opens the map application, a rendering request for the target map can be triggered, and the current positioning information of the terminal device is used as the location information to be rendered. For another example, when the operator searches for a certain location through the map application while using the map application, the location information to be rendered can be the location information searched by the operator.
[0079] The scale information of the target map refers to the ratio of the length of the line segment on the map to the length of the corresponding line segment on the actual physical terrain. Usually, the length unit in the scale information is centimeters. For example, if the scale information of the target map is 1:1000, it means that 1 centimeter on the target map represents 1000 centimeters (i.e. 10 meters) on the actual physical terrain.
[0080] In one embodiment of the present application, the scale information of the target map may be a default configuration, or may be determined according to a zoom operation used by an operator on the target map. For example, when an operator opens a map application on a terminal device, the scale information of the target map may be pre-set default scale information. For another example, when an operator zooms in or out on a map during use of a map application, the scale information of the target map needs to be determined according to the zoom level of the map.
[0081] In one embodiment of the present application, the size of the target map to be rendered can be determined according to the size of the display screen. For example, the location information to be rendered is used as the center point of the target map, and the area defined by the length and width of the display screen is used as the size of the target map. Optionally, multiple target map size options can be set, and the operator determines the size of the target map, or the operator inputs the size of the target map.
[0082] Step 220: Obtain tile map data corresponding to the target map according to the location information and scale information in the rendering request. The tile map data includes tile vector data and extended description information corresponding to the information points in the target map.
[0083] Specifically, a tile map usually stores map data in the form of multiple tile pyramids, and the data in the tile pyramids is recorded as tile map data, which can also be referred to as tiles. Figure 3 As shown, the map data stored in multiple tile pyramids are not repeated. For a specified tile pyramid, the number of tiles increases from top to bottom of the tile pyramid, and the map range represented by the upper tiles is wider, and the map data represented by the lower tiles is more detailed. That is, from top to bottom of the tile pyramid, the scale information of the map gradually decreases. For multiple tiles at the same level in the tile pyramid, the corresponding map scale information is the same.
[0084] It can be seen that the same location information can be included in multiple tile map data, and the same scale information can also correspond to multiple tile map data. When obtaining the tile map data corresponding to the target map, it is necessary to refer to the location information and scale information to determine the unique tile map data. Optionally, the tile pyramid where the tile map data corresponding to the target map is located can be determined by referring to the location information in the rendering request, and then the level of the tile map data corresponding to the target map in the tile pyramid can be determined according to the scale information, and then the tile map data corresponding to the target map can be extracted. Optionally, the level of the tile map data corresponding to the target map in the tile pyramid can be determined by referring to the scale information, and then the tile map data corresponding to the target map can be obtained from the multiple tile map data at the level according to the location information in the rendering request.
[0085] In one embodiment of the present application, the tile map data has a unique tile identifier. When obtaining the tile map data corresponding to the target map, the tile identifier corresponding to the target map can be first determined according to the location information and scale information in the rendering request; and then the tile map data corresponding to the target map can be obtained according to the tile identifier. Exemplarily, when constructing the tile map data, the map location range represented by the tile map data can be used as the row number of the tile map data, and the scale information corresponding to the tile map data can be used as the column number of the tile map data, and then the row number and the column number are combined to form a tile identifier of the tile map data.
[0086] In an embodiment of the present application, tile map data includes tile vector data and extended description information corresponding to information points in a target map, wherein tile vector data refers to vector data required for generating a map, and vector data is a data organization method that uses geometric information and a combination of geometric information to represent the spatial distribution of geographic entities, such as geometric information in a map, including element data such as points, lines, and surfaces. An information point (POI) in a map can be any point on the map, such as a store, hospital, station, etc. The extended description information of an information point is a description of the information point, for example, the extended description information can be a description of the geographical location of the store, the goods in the store, the surrounding environment, and so on. Generally speaking, tile vector data is essential data for generating a target map, and the extended description information of an information point is equivalent to annotating the relevant attributes of the information point in the target map. Displaying the extended description information of an information point on a target map can enrich the content of the target map and enhance the operator's understanding of the relevant situation of the information point.
[0087] Step 230: Render the tile vector data corresponding to the target map to generate a rendering result of the target map.
[0088] Specifically, rendering is a process from abstract to concrete. Rendering the tile vector data corresponding to the target map is to convert the tile vector data corresponding to the target map into visible image data so that the operator can see the map data. The rendering result of the target map is a visible map obtained based on the tile vector data.
[0089] Step 240: Draw the extended description information corresponding to the target map based on the rendering result of the target map to generate the target map.
[0090] Specifically, based on the rendering result of the target map, the extended description information corresponding to the target map is continued to be drawn to generate the target map for final display.
[0091] In the technical solution provided in the embodiment of the present application, tile map data corresponding to the target map is obtained according to the location information and scale information in the rendering request, and then the tile vector data extended description information included in the tile map data is rendered and drawn respectively, thereby reducing the coupling between the tile vector data and the extended description information, and there is no need to synchronously render the extended description information when rendering the tile vector data. When the extended description information needs to be changed, it does not affect the rendering logic of the tile vector data rendering process, thereby improving the flexibility of modifying the tile map data.
[0092] Figure 4 The flowchart of a method for processing map data provided by an embodiment of the present application is schematically shown. This embodiment is a further refinement of the above embodiment. Figure 4 As shown, the method for processing map data provided in the embodiment of the present application includes steps 410 to 470, which are specifically as follows:
[0093] Step 410: Obtain a rendering request for the target map, where the rendering request includes location information to be rendered and scale information of the target map.
[0094] Step 410 is the same as the corresponding step 210 in the aforementioned embodiment. For details, please refer to the relevant description in the aforementioned embodiment, which will not be repeated here.
[0095] In one embodiment of the present application, before obtaining the rendering request of the target map, it also includes a rendering request generation process, specifically: obtaining the positioning information of the terminal device; determining the scale information of the target map according to the zoom information of the target map; using the positioning information of the terminal device as the position information required for rendering, and generating a rendering request for the target map according to the position information and the scale information.
[0096] Specifically, the terminal device refers to the terminal device for which the target map needs to be generated, and the terminal device can achieve real-time positioning through GPS (Global Positioning System) positioning, base station positioning, network positioning (i.e. Wi-Fi (Wireless Fidelity) positioning), AGPS positioning, etc. When the operator opens the map application in the terminal device for the first time, the positioning information of the terminal device is obtained through the real-time positioning device in the terminal device, and the positioning information includes the latitude and longitude coordinates of the current location of the terminal device.
[0097] The scale information of the target map reflects the zoom level of the target map. The larger the scale information of the target map, the greater the zoom level of the target map; conversely, the smaller the scale information of the target map, the smaller the zoom level of the target map. Therefore, an association relationship can be established in advance between the zoom level of the map and the scale information. For example, the zoom level and the scale information can be matched one by one in a table. When determining the scale information of the target map, the required data can be obtained by querying the table according to the zoom level. When the operator opens the map application in the terminal device, the zoom information of the target map can be the preset default zoom information.
[0098] After obtaining the positioning information and scale information of the terminal device, a rendering request for the target map can be generated according to these two information. Obviously, the location information to be rendered is the positioning information of the terminal device.
[0099] In one embodiment of the present application, the rendering request also needs to include the size information of the target map, and the size information can be determined according to the size of the display screen of the terminal device. For example, the location information to be rendered is used as the center point of the target map, and the area defined by the length and width of the display screen is used as the size of the target map. Optionally, multiple target map size options can also be set, and the operator determines the size of the target map, or the operator inputs the size of the target map.
[0100] Step 420: Determine the tile level of the tile map data corresponding to the target map in the tile pyramid according to the scale information.
[0101] In an embodiment of the present application, the tile pyramid formed by the tile map data has multiple levels, each level corresponds to multiple tiles, and at the same time, one level corresponds to a scale information. Therefore, the tile level of the tile map data corresponding to the target map in the tile pyramid can be determined according to the scale information in the rendering request.
[0102] Step 430: Determine the tile identifier corresponding to the target map according to the location information and tile level in the rendering request.
[0103] Specifically, the geographical range covered by the map represented by different tile map data is unique. After determining the tile level, the tile identifier of the tile map data containing the location information in the tile level can be determined based on the location information in the rendering request. Exemplarily, the geographical range covered by the tile map data corresponding to each tile identifier is known. For example, the geographical range corresponding to each tile identifier includes a longitude interval and a latitude interval. When determining the tile identifier corresponding to the target map, according to the longitude coordinate and latitude coordinate contained in the location information in the rendering request, find the tile identifier whose longitude interval contains the longitude coordinate and whose latitude interval contains the latitude coordinate. This tile identifier is the tile identifier corresponding to the target map.
[0104] Step 440: Search among the plurality of tile map data for tile map data having a tile identifier identical to a tile identifier corresponding to the target map.
[0105] Step 450: Use tile map data having the same tile identifier as the tile identifier corresponding to the target map as tile map data corresponding to the target map, wherein the tile map data includes tile vector data and extended description information corresponding to the information point in the target map.
[0106] Specifically, there is a mapping relationship between tile identifiers and tile map data. When obtaining tile map data corresponding to a target map, the tile map data associated with the tile identifier corresponding to the target map can be found based on the mapping relationship. The tile map data is the tile map data corresponding to the required target map.
[0107] In one embodiment of the present application, the tile map data obtained according to the location information and scale information in the rendering request is data corresponding to a tile, and the tile map data is recorded as the center tile map data. However, the size range contained in the target map is usually more than one tile, so when obtaining the tile map data corresponding to the target map, multiple tile map data adjacent to the center tile map data can be obtained at the same time as the tile map data corresponding to the target map according to the size of the target map; correspondingly, when determining the tile identifier corresponding to the target map, multiple tile identifiers adjacent to the center tile identifier are used as the tile identifier corresponding to the target map.
[0108] Step 460: Render the tile vector data corresponding to the target map through the rendering engine of the terminal device to generate a rendering result of the target map.
[0109] Step 470: The extended description information corresponding to the target map is transparently transmitted to the application layer of the terminal device through the rendering engine, and the extended description information corresponding to the target map is drawn by the application layer based on the rendering result of the target map to generate the target map.
[0110] In the embodiment of the present application, the rendering of tile vector data is implemented by the rendering engine in the terminal device, and the drawing of extended description information is implemented by the application layer in the terminal device. After acquiring the tile map data, the rendering engine in the terminal device renders the tile vector data in the tile map data to obtain the rendering result of the target map. Then the rendering engine in the terminal device transmits the rendering result of the target map and the extended description information in the tile map data to the application layer in the terminal device, and finally the application layer draws the extended description information based on the rendering result to generate the corresponding target map.
[0111] The rendering engine transmits the extended description information to the application layer, which means that after receiving the extended description information, the rendering engine does not process the extended description information (such as identifying what the extended description information is), but directly transmits it to the application layer, which identifies and draws the extended description information.
[0112] In the technical solution provided in the embodiment of the present application, tile vector data is rendered by a rendering engine, and the extended description information is transmitted to the application layer by the rendering engine, and the application layer draws the extended description information, so that the rendering engine does not need to identify and process the extended description information, and changes to the extended description information have no effect on the rendering engine. As a result, when modifying the extended description information, there is no need to change the compilation logic of the tile map data, thereby improving the flexibility of map data modification.
[0113] Figure 5 The flowchart of a method for processing map data provided by an embodiment of the present application is schematically shown. This embodiment is a further refinement of the above embodiment. Figure 5 As shown, the method for processing map data provided in the embodiment of the present application includes steps 510 to 570, which are specifically as follows:
[0114] Step 510: Obtain a rendering request for the target map, where the rendering request includes location information to be rendered and scale information of the target map.
[0115] Step 510 is the same as the corresponding step 210 in the aforementioned embodiment. For details, please refer to the relevant description in the aforementioned embodiment, which will not be repeated here.
[0116] Step 520: Acquire original map data and extended description information set for each information point in the original map data.
[0117] Specifically, the original map data includes vector data of each information point on the map. The extended description information corresponding to each information point in the original map data can be obtained through configuration files, UI (User Interface) interface input, and the like.
[0118] In one embodiment of the present application, the extended description information of the information point includes description data corresponding to the information point, and the description data specifically includes description content, display orientation of the description content relative to the information point, and style information of the description content. The display orientation of the description content relative to the information point indicates the relationship between the display position of the description content and the position of the information point, for example, the description content is displayed at the top, bottom, left, right, etc. of the information point. The style information of the description content indicates the style form displayed by the description content, such as style information such as line thickness and color of the description content.
[0119] In one embodiment of the present application, the acquisition of extended description information corresponding to the original map data includes the acquisition of description data, and the process of acquiring the description data includes: acquiring the description content set for each information point in the original map data, the display orientation of the description content relative to the information point, and the style information of the description content; integrating the description content, the display orientation of the description content relative to the information point, and the style information of the description content into a description data field, and using the description data field as the description data corresponding to the information point.
[0120] Specifically, in the embodiment of the present application, the description data of the information point is embodied in the form of a description data field, that is, the description content, the display orientation of the description content relative to the information point, and the style information of the description content are integrated into a description data field, and the description data field is the description data of the information point. The specific content contained in the description data, that is, the description content, the display orientation of the description content relative to the information point, and the style information of the description content, can be expressed in a display form agreed upon by the DSL (Domain-Specific Language) language. For example, the specific content contained in the description data is embodied in the form of "attribute name: attribute value". Assuming that the information point is a cell, and the description content for the cell is high risk, the description data can include "description content: high risk". After integrating the display orientation, that is, the style information, the description data can be expressed as "description content: high risk, display orientation: up, style: red".
[0121] In one embodiment of the present application, after the original map data is acquired, the original map data may be cleaned to remove unnecessary data in the original map data. For example, the original map data may include multiple displayable information for one information point, but when generating the target map, only part of the display information needs to be reflected. This part of the display information can be extracted through data cleaning, thereby reducing the amount of data contained in the original map data, and further reducing the amount of data processing in subsequent processes. For another example, the original map data includes data corresponding to multiple scale information, but when generating the target map, the data corresponding to all scale information is not needed. The data corresponding to the required scale information can be selected through data cleaning, and the amount of data displayed under the corresponding scale information can also be screened out, that is, the thinning rules under different scales can be determined.
[0122] Step 530: The original map data and the extended description information corresponding to the original map data are merged to generate global map data.
[0123] Specifically, fusing the original map data with the corresponding extended description information means associating the data of each information point in the original map data with the extended description information corresponding to the information point, so that the corresponding extended description information can be obtained according to the relevant information of the information point.
[0124] In one embodiment of the present application, the original map data includes a first information point identifier and an extended field corresponding to the first information point identifier, the first information point identifier refers to the identifier of the information point in the original map data, and the extended field is a field used to record the extended description information corresponding to the information point, and before the extended description information is configured, the extended field is empty or a default value. The extended description information includes a second information point identifier and description data, that is, the identifier of the information point in the extended description information is recorded as the second information point identifier, and the second information point identifier has an associated relationship with the corresponding description data.
[0125] In one embodiment of the present application, the fusion process of the original map data and the extended description information includes: determining the first information point identifier in the original map data that is identical to the second information point identifier based on the second information point identifier in the extended description information corresponding to the original map data; and adding the description data corresponding to the second information point identifier to the extended field corresponding to the first information point identifier.
[0126] Specifically, the fusion process of the original map data and the extended description information is actually the process of filling the description data of an information point in the extended description information into its corresponding extended field in the original map data. In this way, in the fused global map data, after obtaining the tile map data, the corresponding extended description information can be obtained at the same time.
[0127] In one embodiment of the present application, a description identifier can also be set for the extended description information corresponding to the information point, and an association relationship is established between the description identifier and the corresponding description data, and at the same time, an association relationship is established between the description identifier and the second information point identifier. When the original map data and the extended description information are fused, the description identifier corresponding to the information point in the extended description data is filled into the corresponding extended field in the original data. In this way, what is stored in the fused global map data is the description identifier, rather than the description data itself, which can reduce the amount of global map data, that is, reduce the amount of tile map data, and improve the loading efficiency of tile map data in the subsequent tile map rendering process; at the same time, the coupling between tile map data and description data can be further reduced. In the subsequent modification process, only the description data needs to be modified, and there is no need to modify the description identifier, and there is no need to modify the tile map data, thereby improving the flexibility of modifying the description data.
[0128] Step 540: Slice the global map data to obtain a plurality of tile map data.
[0129] Specifically, slicing is to divide the global map data into multiple tiles to obtain multiple tile map data. The global map data can be sliced using algorithms such as quadtree and octree. The present application embodiment does not limit the map slicing algorithm. The tile map data obtained after slicing is in the form of a tile pyramid, such as Figure 3 shown.
[0130] In one embodiment of the present application, slicing the global map data also includes a compilation process, that is, first compiling the global map data to obtain compiled map data; then slicing the compiled map data to obtain multiple tile map data. Compilation is equivalent to packaging the data. Since the rendering engine does not need to render the extended description information in the subsequent process, the compilation process does not need to perform special compilation logic processing on the extended description data. It only needs to package the description data integrated into a description data field. In this way, the technical solution of the present application can reduce the changes in the compilation logic and improve the compilation efficiency.
[0131] Step 550: Obtain tile map data corresponding to the target map from multiple tile map data according to the location information and scale information in the rendering request, where the tile map data includes tile vector data and extended description information corresponding to the information points in the target map.
[0132] Step 560: Render the tile vector data corresponding to the target map to generate a rendering result of the target map.
[0133] Step 570: Draw the extended description information corresponding to the target map based on the rendering result of the target map to generate the target map.
[0134] Steps 550 to 570 are the same as the corresponding steps 450 to 470 in the aforementioned embodiment. For details, please refer to the relevant description in the aforementioned embodiment, which will not be repeated here.
[0135] Figure 6 The flowchart of a method for processing map data provided by an embodiment of the present application is schematically shown. This embodiment is a further optimization of the above embodiment. Figure 6 As shown, the method for processing map data provided in the embodiment of the present application includes steps 610 to 650, which are specifically as follows:
[0136] Step 610: Obtain a rendering request for the target map, where the rendering request includes location information to be rendered and scale information of the target map.
[0137] Step 610 is the same as the corresponding step 210 in the aforementioned embodiment. For details, please refer to the relevant description in the aforementioned embodiment, which will not be repeated here.
[0138] Step 620: Obtain tile map data corresponding to the target map according to the location information and scale information in the rendering request. The tile map data includes tile vector data, a map style identifier, and extended description information corresponding to the information point in the target map.
[0139] Specifically, the map style identifier is an identifier corresponding to the map style information, and the map style information includes style information of geometric information in tile vector data, such as the thickness and color of points, lines, and surfaces.
[0140] In one embodiment of the present application, the technical solution of the present application also includes a configuration process of a map style identifier, specifically: obtaining original map data and style setting information corresponding to the original map data; filling the style setting information corresponding to the original map data into the style field in the original map data to generate global map data; slicing the global map data to obtain multiple tile map data.
[0141] Specifically, when the original map data is obtained, the corresponding style setting information is obtained synchronously. The style setting information is the style information set for the geometric information in the map, for example, the style information for lines, the style information for points, the style information for surfaces, etc. The style setting information can be set through configuration files, UI interfaces, etc. The original map data includes a style field. The style field is a field in the original map data used to record the style information corresponding to the vector data. Before the style information is configured, the style field is empty or has a default value.
[0142] After obtaining the original map data and the style setting information, the two are merged to obtain the global map data. The fusion is to fill the style setting information corresponding to the original map data into the style field in the original map data so that the style field has the content of the style setting information.
[0143] After the style setting information is integrated, the global map data can be sliced to obtain a plurality of tile map data. The tile map data corresponding to the target map obtained subsequently is one of the plurality of tile map data.
[0144] In one embodiment of the present application, data cleaning may be performed after the original map data is acquired. The specific data cleaning process may refer to the corresponding description in the aforementioned embodiment and will not be described in detail here.
[0145] In one embodiment of the present application, when filling style setting information into a style field in the original map data, the type of vector data in the original map data must also be considered. The specific process includes: obtaining style setting information corresponding to the vector data according to the type of vector data in the original map data; and filling the style identifier in the style setting information corresponding to the vector data into the style field corresponding to the vector data.
[0146] Specifically, the type of vector data is differentiated according to the map application scenario. For example, when the map is used to display disease risks, the types of vector data may include primary risk, secondary risk, tertiary risk, etc.; when the map is used to display passenger flow, the types of vector data may include high passenger flow, medium passenger flow, and low passenger flow, etc. Optionally, the type of vector data may also be the type of geometric information represented by the vector data, for example, the types of vector data include points, lines, and surfaces, etc.
[0147] Different types of vector data may use different style information. For example, the line color in vector data with high passenger flow is red, the style color in vector data with medium passenger flow is blue, and the line color in vector data with low passenger flow is green. When merging style information, the same type of style setting information is matched according to the type of vector data, and then the style identifier in the same type of style setting information is filled into the style field corresponding to the vector data.
[0148] Step 630: Obtain corresponding map style information according to the map style identifier in the tile map data corresponding to the target map.
[0149] Step 640: Render the tile vector data corresponding to the target map according to the map style information to generate a rendering result of the target map.
[0150] Specifically, after obtaining the tile map data corresponding to the target map, the corresponding map style information can be obtained according to the map style identifier in the tile map data, and then the tile vector data is rendered according to the map style information to obtain a rendering result.
[0151] In one embodiment of the present application, based on different map application scenarios, the map style information corresponding to the same tile map data may be different. When obtaining the map style information corresponding to the target map, all the map style information corresponding to the map application scenario can be first obtained according to the map application scenario corresponding to the target map, and then the map style information corresponding to the target map can be obtained according to the map style identifier corresponding to the target map. Specifically, the map style identifier corresponding to the map application scenario and the corresponding map style information can be set in the rendering engine by calling the style setting interface reserved by the rendering engine. When rendering the target map, the rendering engine can obtain the corresponding map style information according to the map style identifier corresponding to the target map.
[0152] Step 650: Draw the extended description information corresponding to the target map based on the rendering result of the target map to generate the target map.
[0153] Step 650 is the same as the corresponding step 240 in the aforementioned embodiment. For details, please refer to the relevant description in the aforementioned embodiment, which will not be repeated here.
[0154] In the technical solution provided by the embodiment of the present application, the corresponding map style information is obtained through the map style identifier and then the map is rendered, so that the map style information is decoupled from the tile vector data. When modifying or updating the map style information, there is no need to synchronously modify and compile the tile map data, thereby reducing the impact of the modification and update of the map style information on the tile map data, achieving the real-time update effect of the map style information, and improving the flexibility of modifying the map style information. In addition, the map style information and the extended description information are decoupled from each other, further improving the flexibility of map data processing.
[0155] For example, Figure 7 A flowchart schematically shows a process of processing map style information provided by an embodiment of the present application, as shown in FIG. Figure 7 As shown, the process specifically includes:
[0156] S701: Obtain tile content data, which is original map data, including vector data and style fields corresponding to the vector data.
[0157] S702: The tile data cleaning device cleans the required tile content data. That is, the tile data cleaning device cleans the original map data as needed.
[0158] S703: The tile style number is assigned and the corresponding style content is configured through the style management device. The tile style number is the map style identifier, and the style content is the map style information. For example, the operator can Figure 8 The interface configuration style information is shown. Figure 8 As shown, when setting style information, different types of geometric information correspond to different style setting information, and the style setting information includes a style identifier and style information.
[0159] S704, the tile style number fusion device realizes the fusion of tile data and tile style. The tile style number fusion device obtains the map style identifier in the style setting information from the style management device according to the map application scenario, and then fuses the map style identifier into the tile content data, that is, fills the map style identifier into the style field corresponding to the vector data.
[0160] S705: The tile compiling device compiles the merged tile data.
[0161] S706: The tile slicing device slices and stores the compiled tile data.
[0162] S707: The operator accesses the tile map, which triggers a rendering request for the target map.
[0163] S708, the tile rendering device requests the tile request processing device to obtain tile data according to the rendering request of the target map, and obtains the specific content of the tile style number from the style management device. The rendering request includes position information and scale information. The tile rendering device determines the tile identifier corresponding to the target map based on these two parameters, and then obtains the map style information corresponding to the target map according to the map style identifier associated with the tile identifier.
[0164] S709: The tile request processing device obtains the corresponding required tile data from the tile slice storage device, that is, obtains the tile vector data corresponding to the target map.
[0165] Finally, the tile rendering device renders the tile vector data according to the map style information.
[0166] In the subsequent maintenance process of the tile map, if the map style content needs to be changed, the map style information corresponding to the map style identifier is changed through the style management device. When the operator accesses the tile map, S707 and S708 are executed. The tile rendering device can obtain the updated map style information according to the map style identifier, and the aforementioned steps S701-S706 do not need to be repeated, that is, there is no need to recompile the tile map, thereby improving the flexibility of style information modification.
[0167] Fig. 9The flowchart of a method for processing map data provided by an embodiment of the present application is schematically shown. This embodiment is a further optimization of the above embodiment. Fig. 9 As shown, the method includes steps 910 to 980, which are specifically as follows:
[0168] Step 910: Obtain a rendering request for the target map, where the rendering request includes location information to be rendered and scale information of the target map.
[0169] Step 920: Acquire original map data, extended description information set for each information point in the original map data, and style setting information corresponding to the original map data.
[0170] Step 930: Merge the extended description information and style setting information corresponding to the original map data into the original map data to generate global map data.
[0171] Specifically, the data fusion in this step is, on the one hand, to fuse the extended description information into the original map data, and on the other hand, to fuse the style setting information into the original map data. The specific implementation process of the two data fusions is the same as the corresponding process in the aforementioned embodiment, and will not be repeated here.
[0172] Step 940: Slice the global map data to obtain a plurality of tile map data.
[0173] Step 950: Obtain tile map data corresponding to the target map according to the location information and scale information in the rendering request. The tile map data includes tile vector data, a map style identifier, and extended description information corresponding to the information point in the target map.
[0174] Step 960: Obtain corresponding map style information according to the map style identifier in the tile map data corresponding to the target map.
[0175] Step 970: Render the tile vector data corresponding to the target map according to the map style information to generate a rendering result of the target map.
[0176] Step 980: Draw the extended description information corresponding to the target map based on the rendering result of the target map to generate the target map.
[0177] This embodiment mainly reflects that the process of integrating the extended description information into the original map data is carried out simultaneously with the process of integrating the style setting information into the original map data. The relevant steps have been described in detail in the above embodiments and will not be repeated here.
[0178] It should be noted that although the steps of the method in the present application are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0179] The following introduces an apparatus embodiment of the present application, which can be used to execute the map data processing method in the above-mentioned embodiment of the present application. Fig.10 The structure block diagram of the map data processing device provided in the embodiment of the present application is schematically shown. Fig.10 As shown, the map data processing device provided in the embodiment of the present application includes:
[0180] A rendering request acquisition module 1010 is used to acquire a rendering request of a target map, wherein the rendering request includes location information to be rendered and scale information of the target map;
[0181] A map data acquisition module 1020, configured to acquire tile map data corresponding to the target map according to the location information and the scale information in the rendering request, wherein the tile map data includes tile vector data and extended description information corresponding to information points in the target map;
[0182] A vector data rendering module 1030, used to render tile vector data corresponding to the target map to generate a rendering result of the target map;
[0183] The extended information drawing module 1040 is used to draw the extended description information corresponding to the target map based on the rendering result of the target map to generate the target map.
[0184] In one embodiment of the present application, the map data acquisition module 1020 includes:
[0185] A tile identification determination unit, configured to determine a tile identification corresponding to the target map according to the location information and the scale information in the rendering request;
[0186] The map data acquisition unit is used to acquire the tile map data corresponding to the target map according to the tile identifier.
[0187] In one embodiment of the present application, the tile identification determination unit is specifically used to:
[0188] Determining the tile level of the tile map data corresponding to the target map in the tile pyramid according to the scale information;
[0189] The tile identifier corresponding to the target map is determined according to the location information in the rendering request and the tile level.
[0190] In one embodiment of the present application, the map data acquisition unit is specifically used for:
[0191] Searching for tile map data having a tile identifier identical to a tile identifier corresponding to the target map among a plurality of tile map data;
[0192] The tile map data having the same tile identifier as the tile identifier corresponding to the target map is used as the tile map data corresponding to the target map.
[0193] In one embodiment of the present application, the device further includes:
[0194] An original data acquisition module, used to acquire original map data and extended description information set for each information point in the original map data;
[0195] An extended information fusion module, used for fusing the original map data with the extended description information corresponding to the original map data to generate global map data;
[0196] The slicing module is used to slice the global map data to obtain a plurality of tile map data.
[0197] In one embodiment of the present application, the original map data includes a first information point identifier and an extended field corresponding to the first information point identifier; the extended description information includes a second information point identifier and description data corresponding to the second information point identifier; and the extended information fusion module is specifically used to:
[0198] determining, according to the second information point identifier in the extended description information corresponding to the original map data, a first information point identifier in the original map data that is identical to the second information point identifier;
[0199] The description data corresponding to the second information point identifier is added to the extension field corresponding to the first information point identifier.
[0200] In one embodiment of the present application, the extended description information corresponding to the original map data includes description data; the original data acquisition module is specifically used to:
[0201] Acquire description content set for the information point in the original map data, display orientation of the description content relative to the information point, and style information of the description content;
[0202] The description content, the display orientation of the description content relative to the information point and the style information of the description content are integrated into a description data field, and the description data field is used as the description data corresponding to the information point.
[0203] In one embodiment of the present application, the vector data rendering module 1030 is specifically used for:
[0204] Rendering the tile vector data corresponding to the target map through a rendering engine of the terminal device;
[0205] The extended information drawing module 1040 is specifically used for:
[0206] The extended description information corresponding to the target map is transparently transmitted to the application layer of the terminal device through the rendering engine, and the extended description information corresponding to the target map is drawn by the application layer based on the rendering result of the target map.
[0207] In one embodiment of the present application, the tile map data further includes a map style identifier; the vector data rendering module 1030 includes:
[0208] A style information acquisition unit, configured to acquire corresponding map style information according to a map style identifier in tile map data corresponding to the target map;
[0209] A rendering unit is used to render tile vector data corresponding to the target map according to the map style information.
[0210] In one embodiment of the present application, the device further includes:
[0211] A style setting information acquisition module, used to acquire original map data and style setting information corresponding to the original map data; the original map data includes a style field;
[0212] A style information fusion module, used to fill the style setting information corresponding to the original map data into the style field in the original map data to generate global map data;
[0213] The slicing module is used to slice the global map data to obtain a plurality of tile map data, and the tile map data corresponding to the target map is one of the plurality of tile map data.
[0214] In one embodiment of the present application, the original map data further includes vector data; the style setting information includes a style identifier; and the style information fusion module is specifically used to:
[0215] Acquiring style setting information corresponding to the vector data according to the type of the vector data in the original map data;
[0216] The style identifier in the style setting information corresponding to the vector data is filled into the style field corresponding to the vector data.
[0217] In one embodiment of the present application, the device further includes:
[0218] A rendering request generation module is used to obtain the positioning information of the terminal device; determine the scale information of the target map according to the zoom information of the target map; use the positioning information of the terminal device as the position information required for rendering, and generate a rendering request for the target map according to the position information and the scale information.
[0219] The specific details of the map data processing device provided in each embodiment of the present application have been described in detail in the corresponding method embodiment, and will not be repeated here.
[0220] Fig.11 The structure block diagram of a computer system for implementing an electronic device according to an embodiment of the present application is schematically shown.
[0221] It should be noted that Fig.11 The computer system 1100 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0222] like Fig.11 As shown, the computer system 1100 includes a central processing unit 1101 (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory 1102 (ROM) or the program loaded from the storage part 1108 to the random access memory 1103 (RAM). Various programs and data required for system operation are also stored in the random access memory 1103. The central processing unit 1101, the read-only memory 1102 and the random access memory 1103 are connected to each other through a bus 1104. An input / output interface 1105 (Input / Output interface, i.e., I / O interface) is also connected to the bus 1104.
[0223] The following components are connected to the input / output interface 1105: an input section 1106 including a keyboard, a mouse, etc.; an output section 1107 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1108 including a hard disk, etc.; and a communication section 1109 including a network interface card such as a LAN card, a modem, etc. The communication section 1109 performs communication processing via a network such as the Internet. A drive 1110 is also connected to the input / output interface 1105 as needed. A removable medium 1111, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1110 as needed so that a computer program read therefrom is installed into the storage section 1108 as needed.
[0224] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1109, and / or installed from the removable medium 1111. When the computer program is executed by the central processor 1101, various functions defined in the system of the present application are executed.
[0225] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0226] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0227] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0228] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.
[0229] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary technical means in the art that are not disclosed in the present application.
[0230] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A method for processing map data, characterized in that: include: Obtaining a rendering request of a target map, the rendering request including location information to be rendered and scale information of the target map; Acquire tile map data corresponding to the target map according to the location information and the scale information in the rendering request, wherein the tile map data includes tile vector data and extended description information corresponding to the information point in the target map; Rendering the tile vector data corresponding to the target map to generate a rendering result of the target map; The extended description information corresponding to the target map is drawn based on the rendering result of the target map to generate the target map.
2. The method for processing map data according to claim 1, characterized in that: Acquiring tile map data corresponding to the target map according to the location information and the scale information in the rendering request, including: Determine a tile identifier corresponding to the target map according to the location information and the scale information in the rendering request; The tile map data corresponding to the target map is acquired according to the tile identifier.
3. The method for processing map data according to claim 2, characterized in that: Determining a tile identifier corresponding to the target map according to the location information and the scale information in the rendering request includes: Determining the tile level of the tile map data corresponding to the target map in the tile pyramid according to the scale information; The tile identifier corresponding to the target map is determined according to the location information in the rendering request and the tile level.
4. The method for processing map data according to claim 2, characterized in that: Acquiring tile map data corresponding to the target map according to the tile identifier includes: Searching for tile map data having a tile identifier identical to a tile identifier corresponding to the target map among a plurality of tile map data; The tile map data having the same tile identifier as the tile identifier corresponding to the target map is used as the tile map data corresponding to the target map.
5. The method for processing map data according to claim 1, characterized in that: Before acquiring tile map data corresponding to the target map according to the location information and the scale information in the rendering request, the method further includes: Acquire original map data and extended description information set for each information point in the original map data; Merging the original map data with the extended description information corresponding to the original map data to generate global map data; The global map data is sliced to obtain a plurality of tile map data.
6. The method for processing map data according to claim 5, characterized in that: The original map data includes a first information point identifier and an extended field corresponding to the first information point identifier; the extended description information includes a second information point identifier and description data corresponding to the second information point identifier; and fusing the original map data and the extended description information corresponding to the original map data, including: determining, according to the second information point identifier in the extended description information corresponding to the original map data, a first information point identifier in the original map data that is identical to the second information point identifier; The description data corresponding to the second information point identifier is added to the extension field corresponding to the first information point identifier.
7. The method for processing map data according to claim 5, characterized in that: The extended description information corresponding to the original map data includes description data; acquiring the extended description information set for each information point in the original map data includes: Acquire description content set for the information point in the original map data, display orientation of the description content relative to the information point, and style information of the description content; The description content, the display orientation of the description content relative to the information point and the style information of the description content are integrated into a description data field, and the description data field is used as the description data corresponding to the information point.
8. The method for processing map data according to claim 1, characterized in that: Rendering the tile vector data corresponding to the target map includes: Rendering the tile vector data corresponding to the target map through a rendering engine of a terminal device; Drawing the extended description information corresponding to the target map based on the rendering result of the target map includes: The extended description information corresponding to the target map is transparently transmitted to the application layer of the terminal device through the rendering engine, and the extended description information corresponding to the target map is drawn by the application layer based on the rendering result of the target map.
9. The method for processing map data according to claim 1, characterized in that: The tile map data also includes a map style identifier; Rendering the tile vector data corresponding to the target map includes: Acquire corresponding map style information according to the map style identifier in the tile map data corresponding to the target map; The tile vector data corresponding to the target map is rendered according to the map style information.
10. The method for processing map data according to claim 9, characterized in that: Before acquiring corresponding map style information according to the map style identifier in the tile map data corresponding to the target map, the method further includes: Acquire original map data and style setting information corresponding to the original map data; the original map data includes a style field; Filling the style setting information corresponding to the original map data into the style field in the original map data to generate global map data; The global map data is sliced to obtain a plurality of tile map data, and the tile map data corresponding to the target map is one of the plurality of tile map data.
11. The method for processing map data according to claim 10, characterized in that: The original map data further includes vector data; the style setting information includes a style identifier; and filling the style setting information corresponding to the original map data into a style field in the original map data includes: Acquiring style setting information corresponding to the vector data according to the type of the vector data in the original map data; The style identifier in the style setting information corresponding to the vector data is filled into the style field corresponding to the vector data.
12. The method for processing map data according to any one of claims 1 to 11, characterized in that: Before obtaining a rendering request for the target map, the method further includes: Obtaining the location information of the terminal device; Determining the scale information of the target map according to the zoom information of the target map; The positioning information of the terminal device is used as the position information required for rendering, and a rendering request of the target map is generated according to the position information and the scale information.
13. A map data processing device, characterized in that: include: A rendering request acquisition module, used to acquire a rendering request of a target map, wherein the rendering request includes location information to be rendered and scale information of the target map; A map data acquisition module, used to acquire tile map data corresponding to the target map according to the location information and the scale information in the rendering request, wherein the tile map data includes tile vector data and extended description information corresponding to the information points in the target map; A vector data rendering module, used for rendering the tile vector data corresponding to the target map to generate a rendering result of the target map; The extended information drawing module is used to draw the extended description information corresponding to the target map based on the rendering result of the target map to generate the target map.
14. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for processing map data according to any one of claims 1 to 12 is implemented.
15. An electronic device, characterized in that: Includes: processor; as well as A memory, configured to store executable instructions of the processor; The processor executes the executable instructions so that the electronic device executes the map data processing method described in any one of claims 1 to 12.
16. A computer program product, characterized in that The computer program product includes computer instructions stored in a computer-readable storage medium; The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method for processing map data according to any one of claims 1 to 12.
Citation Information
Cited By
Distributed tile data generation method and device, medium and product
CN120371931A
