CN114461720A - Method, apparatus, device, storage medium and program product for processing map data - Google Patents
Method, apparatus, device, storage medium and program product for processing map data Download PDFInfo
- Publication number
- CN114461720A CN114461720A CN202210047979.2A CN202210047979A CN114461720A CN 114461720 A CN114461720 A CN 114461720A CN 202210047979 A CN202210047979 A CN 202210047979A CN 114461720 A CN114461720 A CN 114461720A
- Authority
- CN
- China
- Prior art keywords
- area
- map
- map data
- loaded
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/26—Visual data mining; Browsing structured data
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04845—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/0486—Drag-and-drop
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2203/00—Indexing scheme relating to G06F3/00 - G06F3/048
- G06F2203/048—Indexing scheme relating to G06F3/048
- G06F2203/04806—Zoom, i.e. interaction techniques or interactors for controlling the zooming operation
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Human Computer Interaction (AREA)
- Remote Sensing (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本公开提供了用于处理地图数据的方法、装置、设备、存储介质及程序产品,涉及计算机技术领域,尤其涉及智能交通技术中的电子地图技术领域。具体实现方案为:在显示有目标地图元素的地图显示界面上接收地图缩放操作;确定接收地图缩放操作之前加载所述目标地图元素的第一区域,并确定接收所述地图缩放操作后加载所述目标地图元素的第二区域;确定第一区域与第二区域之间的重叠区域以及差异区域;若重叠区域大于区域阈值,则根据差异区域确定与所述目标地图元素对应的待加载地图数据;对所述待加载地图数据进行渲染,得到所述目标地图元素,并在地图显示界面上绘制所述目标地图元素。通过本公开能够提高地图数据的处理效率,改善卡顿现象。
The present disclosure provides a method, apparatus, device, storage medium and program product for processing map data, and relates to the field of computer technology, in particular, to the field of electronic map technology in intelligent transportation technology. The specific implementation scheme is: receiving a map zoom operation on the map display interface displaying the target map element; determining to load the first area of the target map element before receiving the map zoom operation, and determining to load the map zoom operation after receiving the map zoom operation the second area of the target map element; determine the overlapping area and the difference area between the first area and the second area; if the overlapping area is greater than the area threshold, determine the map data to be loaded corresponding to the target map element according to the difference area; The map data to be loaded is rendered to obtain the target map element, and the target map element is drawn on the map display interface. The present disclosure can improve the processing efficiency of map data and improve the stuck phenomenon.
Description
技术领域technical field
本公开涉及计算机技术领域,尤其涉及智能交通技术中的电子地图技术领域。The present disclosure relates to the field of computer technology, and in particular, to the field of electronic map technology in intelligent transportation technology.
背景技术Background technique
地图数据制作时,需要进行地图数据的请求、加载、渲染。例如,在地图显示界面上进行操作时,比如缩放地图或者拖拽地图,以查看不同区域的地图元素时,每次进行地图操作时,都需要进行地图数据的请求、加载、渲染。When creating map data, it is necessary to request, load, and render map data. For example, when performing operations on the map display interface, such as zooming the map or dragging the map to view map elements in different areas, each time a map operation is performed, map data needs to be requested, loaded, and rendered.
发明内容SUMMARY OF THE INVENTION
本公开提供了一种用于处理地图数据的方法、装置、设备、存储介质及程序产品。The present disclosure provides a method, apparatus, device, storage medium, and program product for processing map data.
根据本公开的一方面,提供了一种处理地图数据的方法,包括:According to an aspect of the present disclosure, there is provided a method for processing map data, comprising:
在显示有目标地图元素的地图显示界面上接收地图缩放操作;确定接收所述地图缩放操作之前加载所述目标地图元素的第一区域,并确定接收所述地图缩放操作后加载所述目标地图元素的第二区域;确定所述第一区域与所述第二区域之间的重叠区域以及差异区域;若所述重叠区域大于区域阈值,则根据所述差异区域确定与所述目标地图元素对应的待加载地图数据;对所述待加载地图数据进行渲染,得到所述目标地图元素,并在地图显示界面上绘制所述目标地图元素。Receive a map zoom operation on the map display interface on which the target map element is displayed; determine to load the first area of the target map element before receiving the map zoom operation, and determine to load the target map element after receiving the map zoom operation the second area of the map data to be loaded; render the map data to be loaded to obtain the target map element, and draw the target map element on the map display interface.
根据本公开的另一方面,提供了一种处理地图数据的装置,包括:According to another aspect of the present disclosure, there is provided an apparatus for processing map data, comprising:
接收单元,用于在显示有目标地图元素的地图显示界面上接收地图缩放操作;确定单元,用于确定接收所述地图缩放操作之前加载所述目标地图元素的第一区域,并确定接收所述地图缩放操作后加载所述目标地图元素的第二区域,并确定所述第一区域与所述第二区域之间的重叠区域以及差异区域;加载单元,用于在确定所述重叠区域大于区域阈值的情况下,根据所述差异区域确定与所述目标地图元素对应的待加载地图数据;渲染单元,用于对所述待加载地图数据进行渲染,得到所述目标地图元素,并在地图显示界面上绘制所述目标地图元素。a receiving unit, configured to receive a map zooming operation on the map display interface on which the target map element is displayed; a determining unit, configured to determine to load the first area of the target map element before receiving the map zooming operation, and determine to receive the After the map zooming operation, load the second area of the target map element, and determine the overlapping area and the difference area between the first area and the second area; the loading unit is used for determining that the overlapping area is larger than the area In the case of a threshold value, determine the map data to be loaded corresponding to the target map element according to the difference area; a rendering unit is used to render the map data to be loaded, obtain the target map element, and display it on the map The target map element is drawn on the interface.
根据本公开的另一方面,提供一种电子设备,包括:According to another aspect of the present disclosure, there is provided an electronic device, comprising:
至少一个处理器;以及at least one processor; and
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述的方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method described above.
根据本公开的另一方面,提供一种存储有计算机指令的非瞬时计算机可读存储介质,其中,所述计算机指令用于使所述计算机执行上述的方法。According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to perform the above-described method.
根据本公开的另一方面,提供一种计算机程序产品,包括计算机程序,所述计算机程序在被处理器执行时实现上述的方法。According to another aspect of the present disclosure, there is provided a computer program product comprising a computer program that, when executed by a processor, implements the above-described method.
本公开提供的处理地图数据的方法,根据差异区域确定与目标地图元素对应的待加载地图数据,能够提高地图数据的处理效率,改善卡顿现象。In the method for processing map data provided by the present disclosure, the map data to be loaded corresponding to the target map element is determined according to the difference area, which can improve the processing efficiency of the map data and improve the stuck phenomenon.
应当理解,本部分所描述的内容并非旨在标识本公开的实施例的关键或重要特征,也不用于限制本公开的范围。本公开的其它特征将通过以下的说明书而变得容易理解。It should be understood that what is described in this section is not intended to identify key or critical features of embodiments of the disclosure, nor is it intended to limit the scope of the disclosure. Other features of the present disclosure will become readily understood from the following description.
附图说明Description of drawings
附图用于更好地理解本方案,不构成对本公开的限定。其中:The accompanying drawings are used for better understanding of the present solution, and do not constitute a limitation to the present disclosure. in:
图1是根据本公开一示例性实施方式中示出的一种处理地图数据的方法流程图;1 is a flowchart of a method for processing map data according to an exemplary embodiment of the present disclosure;
图2是根据本公开一示例性实施方式中示出的一种重叠区域与差异区域的示意图;FIG. 2 is a schematic diagram of an overlapping area and a difference area shown in an exemplary embodiment of the present disclosure;
图3是根据本公开一示例性实施方式中示出的在顺延该拖拽方向上进行区域扩大后的区域示意图;3 is a schematic diagram of an area after the area is enlarged along the dragging direction shown in an exemplary embodiment of the present disclosure;
图4是根据本公开一示例性实施方式中示出的一种根据差异区域确定待加载地图数据的方法流程图;FIG. 4 is a flowchart of a method for determining map data to be loaded according to a difference area according to an exemplary embodiment of the present disclosure;
图5是根据本公开一示例性实施方式中示出的在区域四周方向上进行区域扩大后的区域示意图;FIG. 5 is a schematic diagram of an area after the area is enlarged in the surrounding direction of the area shown in an exemplary embodiment of the present disclosure;
图6是根据本公开一示例性实施方式中示出的一种处理地图数据的方法流程图;6 is a flowchart of a method for processing map data according to an exemplary embodiment of the present disclosure;
图7是根据本公开一示例性实施方式中示出的一种处理地图数据的装置的框图;FIG. 7 is a block diagram of an apparatus for processing map data according to an exemplary embodiment of the present disclosure;
图8是用来实现本公开实施例的处理地图数据的方法的电子设备的框图。8 is a block diagram of an electronic device used to implement the method for processing map data according to an embodiment of the present disclosure.
具体实施方式Detailed ways
以下结合附图对本公开的示范性实施例做出说明,其中包括本公开实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本公开的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding and should be considered as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted from the following description for clarity and conciseness.
本公开提供的处理地图数据的方法,可以应用于根据地图区域加载地图元素的场景中。例如,可以是在地图数据制作场景中进行底图数据与实际目标数据进行差异情报核实场景中,也可以是在使用地图搜索显示指定目标元素进行该目标元素显示的场景。本公开对具体的应用场景不做限定。The method for processing map data provided by the present disclosure can be applied to a scene where map elements are loaded according to a map area. For example, it can be in the scenario of making map data to verify the difference information between the base map data and the actual target data, or it can be the scenario in which the specified target element is displayed by using the map search to display the target element. The present disclosure does not limit specific application scenarios.
相关技术中,在地图区域加载地图元素时,若用户在地图显示界面上频繁的进行地图操作,比如地图缩放操作、拖拽操作等,则需要频繁的进行地图数据的请求与渲染,而由于每次进行地图缩放操作都需要进行地图数据的请求与渲染,会造成多次请求以及渲染,导致地图显示界面的显示卡顿。例如,在地图数据制作时,当底图数据与现实世界的实物出现差异情报的时候,通过查看各种照片资料,来判断这条情报是否正确,是最常用、最直观、最有效的方式。In the related art, when map elements are loaded in the map area, if the user frequently performs map operations on the map display interface, such as map zooming operations, dragging operations, etc., it is necessary to frequently request and render map data. The map data request and rendering are required for each map zoom operation, which will cause multiple requests and renderings, resulting in the display freeze of the map display interface. For example, in the production of map data, when there is difference information between the base map data and the real objects in the real world, it is the most common, most intuitive and most effective way to judge whether the information is correct by looking at various photo materials.
而随着照片资料数量的越来越庞大再加上作业员在核实的过程中需要通过频繁的缩放地图、拖拽地图来确定查看的区域,此时就需要频繁的发送请求并渲染地图数据,以便于作业人员查看不同区域的照片资料。基于以上情况,导致作业员在查看照片资料的时候经常会发生卡顿现象,影响了作业员的使用体验以及核实效率。With the increasing number of photo data and the fact that the operator needs to zoom the map frequently and drag the map to determine the viewing area during the verification process, it is necessary to frequently send requests and render the map data. In order to facilitate the operator to view the photo data of different areas. Based on the above situation, operators often experience lag when viewing photo data, which affects the operator's experience and verification efficiency.
为了解决目前地图数据处理过程中进行地图元素显示的卡顿问题,本公开提供了一种处理地图数据的方法,在该方法中,通过确定进行地图缩放操作前后区域的差异区域,并根据该差异区域确定待加载的地图数据,对该待加载的地图数据进行渲染,减少地图数据请求以及渲染的次数,进而改善卡顿现象。In order to solve the stuck problem of displaying map elements during the current map data processing, the present disclosure provides a method for processing map data. The area determines the map data to be loaded, and renders the map data to be loaded, reducing the number of map data requests and rendering, thereby improving the stuck phenomenon.
本公开中为描述方便,将接收地图缩放操作之前地图上进行地图元素加载的区域称为第一区域,并将接收到地图操作之后在地图上进行地图元素加载时的区域称为第二区域。In this disclosure, for the convenience of description, the area on the map where map elements are loaded before receiving the map zoom operation is referred to as the first area, and the area where map elements are loaded on the map after receiving the map operation is referred to as the second area.
其中,本公开中涉及的区域也可以理解为是视图范围或者空间范围。Wherein, the area involved in the present disclosure may also be understood as a view range or a space range.
作为一示例性实施方式,图1是根据本公开一示例性实施方式中示出的一种处理地图数据的方法流程图。参阅图1所示,处理地图数据的方法包括如下步骤S101至步骤S105。As an exemplary embodiment, FIG. 1 is a flowchart of a method for processing map data according to an exemplary embodiment of the present disclosure. Referring to FIG. 1, the method for processing map data includes the following steps S101 to S105.
在步骤S101中,在显示有目标地图元素的地图显示界面上接收地图操作。In step S101, a map operation is received on the map display interface on which the target map element is displayed.
其中,本公开中的目标地图元素可以是用户在进行地图操作时需要进行加载的地图元素。例如可以是进行差异情报核实的底图数据。或者也可以是用户在地图上进行搜索的目标物。Wherein, the target map element in the present disclosure may be a map element that needs to be loaded when a user performs a map operation. For example, it may be the base map data for performing differential intelligence verification. Alternatively, it may be a target that the user searches on the map.
其中,本公开中地图操作可以理解为是进行相同地图元素加载时使加载的区域发生变化的操作。地图操作诸如可以是地图缩放操作,也可以是地图拖拽操作。当然本公开并不限定地图操作具体形式。Among them, the map operation in the present disclosure can be understood as an operation that changes the loaded area when the same map element is loaded. The map operation may be, for example, a map zooming operation or a map dragging operation. Of course, the present disclosure does not limit the specific form of map operation.
在步骤S102中,确定接收地图操作之前加载目标地图元素的第一区域,并确定接收地图操作后加载目标地图元素的第二区域。In step S102, it is determined to load the first area of the target map element before receiving the map operation, and it is determined that the second area of the target map element to be loaded after receiving the map operation.
其中,本公开中第一区域和第二区域可以采用传统基于区域加载地图元素的方式确定。其中,第一区域和第二区域中加载的目标元素是相同的。Wherein, in the present disclosure, the first area and the second area may be determined in a conventional manner of loading map elements based on the area. Among them, the target elements loaded in the first area and the second area are the same.
在步骤S103中,确定第一区域与第二区域之间的重叠区域以及差异区域。In step S103, the overlapping area and the difference area between the first area and the second area are determined.
其中,本公开中第一区域与第二区域之间的重叠区域也可以理解为是第一区域与第二区域之间的交集区域。Wherein, the overlapping area between the first area and the second area in the present disclosure can also be understood as the intersection area between the first area and the second area.
第一区域与第二区域之间的差异区域也可以理解为是第一区域与第二区域之间的非交集区域。The difference area between the first area and the second area can also be understood as a non-intersection area between the first area and the second area.
作为一示例性实施方式,图2是根据本公开一示例性实施方式中示出的一种重叠区域与差异区域的示意图。参阅图2所示,第一区域与第二区域之间存在重叠区域,并存在差异区域1和差异区域2。其中,重叠区域、差异区域1以及差异区域2组成第二区域。As an exemplary embodiment, FIG. 2 is a schematic diagram of an overlapping area and a difference area shown in an exemplary embodiment of the present disclosure. Referring to FIG. 2 , an overlapping area exists between the first area and the second area, and a difference area 1 and a difference area 2 exist. The overlapping area, the difference area 1 and the difference area 2 constitute the second area.
本公开中确定重叠区域的大小,判断重叠区域的大小是否超出设定的区域阈值。其中,若超出设定的区域阈值,则可以确定第一区域和第二区域之间有相对较多的相同数据,此时不需要进行数据的重新加载与渲染。In the present disclosure, the size of the overlapping area is determined, and whether the size of the overlapping area exceeds a set area threshold is determined. Wherein, if the set area threshold is exceeded, it can be determined that there is relatively more identical data between the first area and the second area, and in this case, data reloading and rendering are not required.
其中,区域阈值可以是经验值。例如,该区域阈值可以是0.5。The region threshold may be an empirical value. For example, the area threshold may be 0.5.
其中,本公开中重叠区域的大小是否超出设定的区域阈值时典型的场景可以包括放大了原本地图区域或者拖拽后区域包含在上次实际渲染范围内。Wherein, a typical scenario of whether the size of the overlapping area in the present disclosure exceeds the set area threshold may include that the original map area is enlarged or the dragged area is included in the last actual rendering range.
在步骤S104中,若重叠区域大于区域阈值,则根据差异区域确定与目标地图元素对应的待加载地图数据。In step S104, if the overlapping area is greater than the area threshold, the map data to be loaded corresponding to the target map element is determined according to the difference area.
在步骤S105中,对待加载地图数据进行渲染,得到目标地图元素,并在地图显示界面上绘制目标地图元素。In step S105, the map data to be loaded is rendered to obtain the target map element, and the target map element is drawn on the map display interface.
本公开中,确定进行地图操作前后的第一区域与第二区域之间的差异区域,并根据差异区域,确定待加载的目标地图元素对应的待加载地图数据,并对差异区域中的待加载地图数据进行请求和渲染,相对请求和渲染第二区域全部的待加载地图数据,能够减少地图数据请求以及渲染的次数,进而改善卡顿现象。In the present disclosure, the difference area between the first area and the second area before and after the map operation is determined, and according to the difference area, the to-be-loaded map data corresponding to the target map element to be loaded is determined, and the to-be-loaded map data in the difference area is determined. The map data is requested and rendered, and all the map data to be loaded in the second area is requested and rendered, which can reduce the number of map data requests and renderings, thereby improving the stuck phenomenon.
本公开一种实施方式中,根据差异区域确定与目标地图元素对应的待加载地图数据时,可以将差异区域中与目标地图元素对应的地图数据,确定为待加载地图数据。In an embodiment of the present disclosure, when the map data to be loaded corresponding to the target map element is determined according to the difference area, the map data corresponding to the target map element in the difference area may be determined as the map data to be loaded.
参阅图2所示,当用户进行地图操作时,第二区域与第一区域之间的重叠区域大部分区域位于原有第一区域,该重叠区域对应待加载的地图数据为已渲染完成的数据,故无需再次重新加载和渲染,加载和渲染差异区域1和差异区域2中目标地图元素的地图数据即可。Referring to Figure 2, when the user performs a map operation, most of the overlapping area between the second area and the first area is located in the original first area, and the map data to be loaded corresponding to the overlapping area is the data that has been rendered. , so there is no need to reload and render again, just load and render the map data of the target map elements in difference area 1 and difference area 2.
本公开实施例上述基于地图操作前后区域对比确定差异区域的方式可以理解为是一种空间差异对比的方式。通过简单的空间差异对比,对比用户进行地图操作前后两个区域,当重叠区域较大时,请求差异区域内的数据并渲染,使得重叠区域内的数据就不用再次重新请求以及渲染,能够节约地图数据的请求与渲染次数,改善因大量数据加载和渲染造成的卡顿现象。The above-mentioned manner of determining the difference area based on the area comparison before and after the map operation in the embodiment of the present disclosure can be understood as a method of spatial difference comparison. Through a simple spatial difference comparison, compare the two areas before and after the user's map operation. When the overlapping area is large, request the data in the difference area and render it, so that the data in the overlapping area does not need to be re-requested and rendered again, which can save the map. The number of data requests and renderings to improve the stuttering phenomenon caused by a large amount of data loading and rendering.
本公开另一种实施方式中,若第一区域与第二区域之间的重叠区域小于或等于区域阈值,计算差异区域的处理耗时可能会大于渲染重叠区域内地图数据的耗时。故,第一区域与第二区域之间的重叠区域小于或等于区域阈值时,可以将第二区域中与目标地图元素对应的地图数据,确定为待加载地图数据,渲染和加载第二区域中待加载目标地图元素对应的地图数据,无需实施差异区域的处理方式,保证数据渲染效率。In another embodiment of the present disclosure, if the overlapping area between the first area and the second area is less than or equal to the area threshold, the processing time for calculating the difference area may be greater than the time for rendering map data in the overlapping area. Therefore, when the overlapping area between the first area and the second area is less than or equal to the area threshold, the map data corresponding to the target map element in the second area can be determined as the map data to be loaded, and the map data in the second area can be rendered and loaded. The map data corresponding to the target map element to be loaded does not need to implement the processing method of the difference area to ensure the data rendering efficiency.
本公开另一种实施方式中,为了改善实时加载地图数据时出现的卡顿现象,本公开中可以进行区域的预加载。In another embodiment of the present disclosure, in order to improve the jam phenomenon that occurs when the map data is loaded in real time, the present disclosure may perform preloading of regions.
其中,一示例性实施方式中,本公开中进行区域预加载时,例可以扩大原本需要加载的区域,以实现后续加载区域的预加载。例如,本公开中可以扩大第二区域,实现第二区域以后区域的预加载。或者本公开中也可以扩大第一区域,在加载第一区域时实现第二区域的预加载。Wherein, in an exemplary embodiment, when performing region preloading in the present disclosure, for example, the region that originally needs to be loaded may be enlarged to realize the preloading of subsequent loading regions. For example, in the present disclosure, the second area can be enlarged to realize preloading of areas after the second area. Alternatively, in the present disclosure, the first area may be enlarged, and the second area may be preloaded when the first area is loaded.
本公开中为了实现区域的预加载,一方面可以基于地图操作,学习用户后续可能进行目标地图元素加载的区域,进而扩大对应的区域。例如,若地图操作为拖拽操作,根据用户使用习惯可以确定用户下一次的拖拽操作大概率还是在该拖拽操作的拖拽方向上进行拖拽操作。故,本公开中可以根据拖拽操作的拖拽距离和拖拽角度确定拖拽方向,然后在顺延该拖拽方向上进行区域的扩大。In the present disclosure, in order to realize the preloading of the area, on the one hand, based on the map operation, it is possible to learn the area where the user may subsequently load the target map element, and then expand the corresponding area. For example, if the map operation is a drag operation, according to the user's usage habits, it can be determined whether the user's next drag operation is likely to be performed in the drag direction of the drag operation. Therefore, in the present disclosure, the dragging direction can be determined according to the dragging distance and the dragging angle of the dragging operation, and then the area is enlarged along the dragging direction.
作为一示例性实施方式中,图3是根据本公开一示例性实施方式中示出的在顺延该拖拽方向上进行区域扩大后的区域示意图。参阅图3所示,用户沿箭头方向(右上方向)拖拽后待进行目标元素加载的区域为第二区域。该第二区域可以理解为是原本需要加载的区域。应用本公开实施例,在顺延箭头方向(右上方向)对第二区域扩大,得到扩大后的区域。在进行区域加载时,加载该扩大后的区域,进而实现扩大后区域相对第二区域扩大部分的区域的预加载。As an exemplary embodiment, FIG. 3 is a schematic diagram of an area after the area is enlarged along the dragging direction shown in an exemplary embodiment of the present disclosure. Referring to FIG. 3 , the area where the target element is to be loaded after the user drags in the direction of the arrow (upper right direction) is the second area. The second area can be understood as the area that originally needs to be loaded. By applying the embodiment of the present disclosure, the second area is enlarged in the direction of the arrow (upper right direction) to obtain an enlarged area. When performing area loading, the enlarged area is loaded, thereby realizing preloading of the enlarged area relative to the area of the enlarged portion of the second area.
本公开中,通过学习用户的拖拽操作,确定下一个拖拽操作对应的拖拽距离和拖拽角度,进而确定拖拽方向,在顺延该拖拽方向上对第二区域进行扩大,并对扩大后的区域进行加载,能够实现区域的预加载。在用户下一次再次朝着相同的拖拽方向进行拖拽操作时,可以无需再次进行该已加载区域内数据的加载以及渲染,进而可以节约地图数据的请求与渲染次数,改善因大量数据加载和渲染造成的卡顿现象。In the present disclosure, by learning the user's drag operation, the drag distance and the drag angle corresponding to the next drag operation are determined, and then the drag direction is determined, the second area is expanded along the drag direction, and the The enlarged area is loaded, and the preloading of the area can be realized. When the user drags in the same dragging direction next time, it is not necessary to load and render the data in the loaded area again, which can save the number of map data requests and renderings, and improve the problems caused by a large amount of data loading and rendering. Stuttering caused by rendering.
作为一种示例性的实施方式,本公开中进行区域预加载时,可以是基于第一区域和第二区域之间的差异区域进行扩大。例如,本公开中在确定了第一区域和第二区域的差异区域后,可以采用如图4方式确定待加载数据。As an exemplary implementation, when performing region preloading in the present disclosure, the region may be enlarged based on the difference between the first region and the second region. For example, in the present disclosure, after the difference area between the first area and the second area is determined, the data to be loaded may be determined in the manner of FIG. 4 .
图4是根据本公开一示例性实施方式中示出的一种根据差异区域确定待加载地图数据的方法流程图。参阅图4所示,包括如下步骤S201至步骤S203。FIG. 4 is a flowchart of a method for determining map data to be loaded according to a difference area according to an exemplary embodiment of the present disclosure. Referring to FIG. 4 , the following steps S201 to S203 are included.
在步骤S201中,确定地图操作为拖拽操作,并确定拖拽操作的拖拽方向。In step S201, it is determined that the map operation is a drag operation, and the drag direction of the drag operation is determined.
其中,拖拽操作的拖拽方向可以根据拖拽距离和拖拽角度确定。The dragging direction of the dragging operation may be determined according to the dragging distance and the dragging angle.
在步骤S202中,确定第一区域与第二区域之间的差异区域,并在顺延拖拽方向上对差异区域进行扩大。In step S202, a difference area between the first area and the second area is determined, and the difference area is enlarged in the dragging direction.
在步骤S203中,将扩大后的差异区域中与目标地图元素对应的地图数据,确定为待加载地图数据。In step S203, the map data corresponding to the target map element in the enlarged difference area is determined as the map data to be loaded.
本公开中,将扩大后的差异区域中与目标地图元素对应的地图数据,确定为待加载地图数据,后续进行该待加载地图数据的加载以及渲染,可以理解为是实现了第二区域之后的区域预加载。在用户下一次再次朝着相同的拖拽方向进行拖拽操作时,可以无需再次进行该已加载区域内数据的加载以及渲染,进而可以节约地图数据的请求与渲染次数,改善因大量数据加载和渲染造成的卡顿现象。In the present disclosure, the map data corresponding to the target map element in the enlarged difference area is determined as the map data to be loaded, and the subsequent loading and rendering of the map data to be loaded can be understood as the realization of the second area. Region preloading. When the user drags in the same dragging direction next time, it is not necessary to load and render the data in the loaded area again, which can save the number of map data requests and renderings, and improve the problems caused by a large amount of data loading and rendering. Stuttering caused by rendering.
其中,结合实际应用场景,若用户对地图进行的拖拽操作的拖拽距离相对较小的情况下,用户大概率是需要在相对集中的区域进行操作,即下一次的拖拽操作大概率还是在该次拖拽操作的拖拽方向上。即,本公开中,在采用基于拖拽操作方向进行扩大区域进行区域预加载的方式下,需要满足用户对地图进行的拖拽操作的拖拽距离相对较小。本公开实施例中可以设置距离阈值,该距离阈值可以是经验值。Among them, combined with the actual application scenario, if the drag distance of the user's drag operation on the map is relatively small, the user has a high probability that the operation needs to be performed in a relatively concentrated area, that is, the next drag operation is more likely to be In the drag direction of this drag operation. That is, in the present disclosure, in the manner of performing region preloading by expanding the region based on the drag operation direction, the drag distance for the user's drag operation on the map needs to be relatively small. In this embodiment of the present disclosure, a distance threshold may be set, and the distance threshold may be an empirical value.
在确定用户对地图进行的拖拽操作的拖拽距离小于距离阈值时,采用基于拖拽操作方向进行扩大区域进行区域预加载的方式,When it is determined that the drag distance of the user's drag operation on the map is less than the distance threshold, the method of expanding the area based on the direction of the drag operation and preloading the area is adopted.
一种实施方式中,本公开中可以在顺延拖拽方向上对差异区域进行扩大之前,确定拖拽操作对应的拖拽距离小于或等于距离阈值,以使得预加载的区域,能够大概率成为下一次进行加载的区域。In one embodiment, the present disclosure may determine that the drag distance corresponding to the drag operation is less than or equal to the distance threshold before expanding the difference area in the dragging direction, so that the preloaded area can become the next lower area with a high probability. A region to load at a time.
本公开中,若用户对地图进行的拖拽操作的拖拽距离相对较大的场景下,第二区域与第一区域可能是没有关联关系,可以将第二区域作为新的初始加载的区域,故此种方式下可以不采用在拖拽方向上扩大区域的预加载方式。In the present disclosure, if the drag distance of the user's drag operation on the map is relatively large, the second area may not be associated with the first area, and the second area may be used as a new initial loading area. Therefore, in this way, the preloading way of expanding the area in the dragging direction may not be used.
本公开另一种实施方式中,在实现区域预加载时,也可以采用对区域四周方向分别扩大的方式,以使得后续用户无论朝向哪个方向进行地图的拖拽操作,都可以存在预加载的区域,进而可以节约地图数据的请求与渲染次数,改善因大量数据加载和渲染造成的卡顿现象。In another embodiment of the present disclosure, when implementing area preloading, the surrounding directions of the area may also be expanded respectively, so that the subsequent user drags the map in which direction, there may be a preloaded area. , which can save the number of map data requests and renderings, and improve the stuck phenomenon caused by a large amount of data loading and rendering.
作为一示例性实施方式中,图5是根据本公开一示例性实施方式中示出的在区域四周方向上进行区域扩大后的区域示意图。参阅图5所示,在当前的区域的四周进行区域扩大,得到扩大后的区域。在进行区域加载时,加载该扩大后的区域,进而实现扩大后区域相对第二区域扩大部分的区域的预加载。As an exemplary embodiment, FIG. 5 is a schematic diagram of an area after the area is enlarged in the peripheral direction of the area shown in an exemplary embodiment of the present disclosure. Referring to FIG. 5 , area expansion is performed around the current area to obtain an expanded area. When performing area loading, the enlarged area is loaded, thereby realizing preloading of the enlarged area relative to the area of the enlarged portion of the second area.
其中,本公开中进行四周扩大的方式可以适用于当前不能确定后续拖拽方向的情况下执行。例如,本公开中可以设定采用四周扩大方式的区域条件。在满足该条件的情况下,采用四周方向扩大的方式。Wherein, the manner of enlarging the surrounding area in the present disclosure may be applicable to the case where the subsequent drag direction cannot be determined at present. For example, in the present disclosure, an area condition that adopts a surrounding expansion method can be set. When this condition is satisfied, the method of expanding in the surrounding direction is adopted.
本公开中,可以在满足进行目标地图元素预设区域加载的条件下,对预设区域在四周方向分别扩大,并对扩大后的预设区域中对应目标地图元素的地图数据进行预加载。In the present disclosure, under the condition that the preset area of the target map element is loaded, the preset area can be respectively enlarged in the surrounding directions, and the map data corresponding to the target map element in the enlarged preset area can be preloaded.
本公开中,通过设置满足进行目标地图元素的预设区域加载的条件,可以使得在满足该条件下采用四周方向对预设区域进行扩大,进而使得后续用户无论朝向哪个方向进行地图的拖拽操作,若当前窗口(或者称为视图)的区域在实际渲染区域内,即存在预加载的区域,此时无需再次请求、渲染数据,节约了请求、渲染时间,改善因大量数据加载和渲染造成的卡顿现象。In the present disclosure, by setting a condition that satisfies the loading of the preset area of the target map element, it is possible to expand the preset area by using the surrounding directions when the condition is met, so that subsequent users can drag and drop the map in any direction. , if the area of the current window (or view) is within the actual rendering area, that is, there is a preloaded area, then there is no need to request and render data again, which saves request and rendering time, and improves the problem caused by a large amount of data loading and rendering. Caton phenomenon.
其中,满足进行目标地图元素的预设区域加载的条件例如可以包括:首次进行地图元素的渲染。或者也可以是在地图操作为拖拽操作,且拖拽操作对应的拖拽距离大于距离阈值的情况下,确定满足进行目标地图元素的预设区域加载的条件。Wherein, satisfying the condition for loading the preset area of the target map element may include, for example, performing the rendering of the map element for the first time. Alternatively, when the map operation is a drag operation, and the drag distance corresponding to the drag operation is greater than the distance threshold, it is determined that the conditions for loading the preset area of the target map element are satisfied.
本公开中,首次进行地图元素渲染,和/或拖拽操作对应的拖拽距离大于距离阈值的情况,可以为后续大概率不确定用户朝向哪个方向拖拽地图的场景,故将此种情况确定为满足进行目标地图元素的预设区域加载的条件,更贴合实际使用情况,提高地图操作体验度。In the present disclosure, the map element rendering is performed for the first time, and/or the dragging distance corresponding to the dragging operation is greater than the distance threshold, which may be a scenario in which the user is not sure which direction the user is dragging the map in. Therefore, this situation is determined. In order to meet the conditions for loading the preset area of the target map element, it is more suitable for the actual use situation and improves the map operation experience.
在实际应用场景中,存在用户对地图的操作使得第二区域中待渲染数据所属区域属于第一区域中实际渲染的区域,例如地图缩小操作。此时,第二区域内待渲染的地图元素即为已渲染的第一区域内的地图元素,无需再次重复进行渲染。故,本公开一种实施方式中,若用户对地图的操作使得第二区域中待渲染数据所属区域属于第一区域中实际渲染的区域,例如地图缩小操作。此时,第二区域内待渲染的地图元素即为已渲染的第一区域内的地图元素,此时无需再次重复进行渲染,可以保持第一区域中已渲染的地图元素,作为第二区域中显示的地图元素,以减少渲染次数,改善卡顿现象。In an actual application scenario, there is a user's operation on the map such that the area to which the data to be rendered in the second area belongs belongs to the area actually rendered in the first area, for example, a map zoom-out operation. At this time, the map elements to be rendered in the second area are the map elements in the first area that have been rendered, and there is no need to repeat the rendering again. Therefore, in an embodiment of the present disclosure, if the user operates the map so that the area to which the data to be rendered in the second area belongs belongs to the area actually rendered in the first area, such as a map zooming operation. At this time, the map elements to be rendered in the second area are the already rendered map elements in the first area. At this time, there is no need to repeat the rendering again, and the rendered map elements in the first area can be kept as the map elements in the second area. Displayed map elements to reduce rendering times and improve stuttering.
本公开另一种实施方式中,若确定第二区域中待渲染数据所属区域不属于第一区域,则需要进行地图元素的重新渲染,故可以采用本公开上述涉及的各种实施方式中涉及的地图数据处理方式进行预加载数据的确定,以减少渲染次数,改善卡顿现象。In another embodiment of the present disclosure, if it is determined that the area to which the data to be rendered belongs in the second area does not belong to the first area, the map elements need to be re-rendered, so the method involved in the various embodiments of the present disclosure can be used. The map data processing method determines the preloaded data to reduce the number of renderings and improve the stuck phenomenon.
本公开以下结合实际应用对本公开上述涉及的处理地图数据的方法进行说明。The present disclosure will hereinafter describe the method for processing map data involved in the present disclosure in combination with practical applications.
作为一示例性实施方式,图6是根据本公开一示例性实施方式中示出的一种处理地图数据的方法流程图。参阅图6所示,在首次进行地图元素的渲染时,可以对渲染该地图元素的区域采用四周方向扩大的方式进行扩大,并将扩大后的区域作为整体区域进行预加载。其中,该预加载后的整体区域可以理解为是本公开上述实施例涉及的第一区域。用户在地图显示界面上进行地图操作,例如进行拖拽操作。本公开中可以确定进行地图操作后的区域(第二区域)是否在上次实际渲染的区域(第一区域)范围内,若进行地图操作后的区域在上次实际渲染的区域范围内,则可以不需要再次渲染。若进行地图操作后的区域不在上次实际渲染的区域范围,则可以确定进行地图操作后的区域与上次实际渲染的区域之间的重叠区域以及差异区域。若重叠区域小于或等于0.5,则可以请求进行地图操作后的区域中所有的地图数据并进行渲染。若重叠区域大于0.5,则可以确定用户拖拽操作的拖拽方向,并根据用户拖拽操作的拖拽方向对差异区域进行扩大,并请求扩大后的差异区域对应的地图数据,进行加载和渲染,以节约地图数据的请求与渲染的数量,改善因大量数据请求和渲染造成的卡顿现象。As an exemplary embodiment, FIG. 6 is a flowchart of a method for processing map data according to an exemplary embodiment of the present disclosure. Referring to FIG. 6 , when the map element is rendered for the first time, the area where the map element is rendered may be expanded by enlarging the surrounding directions, and the expanded area may be preloaded as a whole area. The preloaded overall area may be understood as the first area involved in the above embodiments of the present disclosure. The user performs a map operation on the map display interface, such as a drag and drop operation. In the present disclosure, it can be determined whether the area (second area) after the map operation is within the range of the area actually rendered last time (the first area), and if the area after the map operation is within the range of the area actually rendered last time, then No need to render again. If the area after the map operation is not within the range of the area actually rendered last time, the overlapping area and the difference area between the area after the map operation and the area actually rendered last time can be determined. If the overlapping area is less than or equal to 0.5, all map data in the area after the map operation can be requested and rendered. If the overlapping area is greater than 0.5, the drag direction of the user's drag operation can be determined, and the difference area can be enlarged according to the drag direction of the user's drag operation, and the map data corresponding to the enlarged difference area is requested for loading and rendering. , in order to save the number of map data requests and renderings, and improve the stuck phenomenon caused by a large number of data requests and renderings.
本公开提供的处理地图数据的方法,提出了预加载、空间差异对比两个优化思路来解决地图元素加载时出现的地图显示界面卡顿的问题,从而可减少用户等待时间,提升用户体验。例如,在差异情报核实场景中,能够提高情报核实效率。The method for processing map data provided by the present disclosure proposes two optimization ideas of preloading and spatial difference comparison to solve the problem of stuck map display interface when map elements are loaded, thereby reducing user waiting time and improving user experience. For example, in the differential intelligence verification scenario, the efficiency of intelligence verification can be improved.
基于相同的构思,本公开实施例还提供一种处理地图数据的装置。Based on the same concept, an embodiment of the present disclosure also provides an apparatus for processing map data.
可以理解的是,本公开实施例提供的处理地图数据的装置为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。结合本公开实施例中所公开的各示例的单元及算法步骤,本公开实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以对每个特定的应用来使用不同的方法来实现所描述的功能,但是这种实现不应认为超出本公开实施例的技术方案的范围。It can be understood that, in order to realize the above-mentioned functions, the apparatus for processing map data provided by the embodiments of the present disclosure includes corresponding hardware structures and/or software modules for executing each function. Combining with the units and algorithm steps of each example disclosed in the embodiments of the present disclosure, the embodiments of the present disclosure can be implemented in hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the technical solutions of the embodiments of the present disclosure.
作为一示例性实施方式,图7是根据本公开一示例性实施方式中示出的一种处理地图数据的装置的框图。参阅图7所示,处理地图数据的装置700包括接收单元701、确定单元702、加载单元703以及渲染单元704。As an exemplary embodiment, FIG. 7 is a block diagram of an apparatus for processing map data shown in an exemplary embodiment of the present disclosure. Referring to FIG. 7 , the
其中,接收单元701,用于在显示有目标地图元素的地图显示界面上接收地图操作;确定单元702,用于确定接收地图操作之前加载目标地图元素的第一区域,并确定接收地图操作后加载所述目标地图元素的第二区域,并确定第一区域与第二区域之间的重叠区域以及差异区域;加载单元703,用于在确定重叠区域大于区域阈值的情况下,根据差异区域确定与目标地图元素对应的待加载地图数据;渲染单元704,用于对待加载地图数据进行渲染,得到目标地图元素,并在地图显示界面上绘制目标地图元素。Among them, the receiving
其中,加载单元703将差异区域中与目标地图元素对应的地图数据,确定为待加载地图数据。The
其中,加载单元703采用如下方式根据差异区域确定待加载地图数据:Wherein, the
若地图操作为拖拽操作,则确定拖拽操作的拖拽方向;在顺延拖拽方向上对差异区域进行扩大;将扩大后的差异区域中与目标地图元素对应的地图数据,确定为待加载地图数据。If the map operation is a dragging operation, determine the dragging direction of the dragging operation; expand the difference area along the dragging direction; determine the map data corresponding to the target map element in the expanded difference area as to be loaded map data.
其中,加载单元703还用于:在顺延拖拽方向上对差异区域进行扩大之前,确定拖拽操作对应的拖拽距离小于或等于距离阈值。The
其中,加载单元703还用于:在满足进行目标地图元素预设区域加载的条件下,对预设区域在四周方向分别扩大,并对扩大后的预设区域中对应目标地图元素的地图数据进行预加载。Wherein, the
其中,满足进行目标地图元素的预设区域加载的条件包括:首次进行地图元素的渲染;和/或,地图操作为拖拽操作,且拖拽操作对应的拖拽距离大于距离阈值。Wherein, satisfying the conditions for loading the preset area of the target map element includes: rendering the map element for the first time; and/or, the map operation is a drag operation, and the drag distance corresponding to the drag operation is greater than the distance threshold.
其中,加载单元703还用于:在确定重叠区域小于或等于区域阈值的情况下,将第二区域中与目标地图元素对应的地图数据,确定为待加载地图数据。Wherein, the
其中,确定单元702还用于:确定第二区域中待渲染数据所属区域不属于第一区域中实际渲染的区域。The determining
其中,若确定单元702确定第二区域中待渲染数据所属区域属于第一区域中实际渲染的区域,则渲染单元704保持第一区域中已渲染的地图元素,作为第二区域中显示的地图元素。Wherein, if the determining
关于本公开上述涉及的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the above-mentioned apparatus of the present disclosure, the specific manner in which each module performs operations has been described in detail in the embodiments of the method, and will not be described in detail here.
本公开的技术方案中,所涉及的用户个人信息的获取,存储和应用等,均符合相关法律法规的规定,且不违背公序良俗。In the technical solution of the present disclosure, the acquisition, storage and application of the user's personal information involved are all in compliance with the provisions of relevant laws and regulations, and do not violate public order and good customs.
根据本公开的实施例,本公开还提供了一种电子设备、一种可读存储介质和一种计算机程序产品。According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.
图8示出了可以用来实施本公开的实施例的示例电子设备800的示意性框图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本公开的实现。FIG. 8 shows a schematic block diagram of an example
如图8所示,设备800包括计算单元801,其可以根据存储在只读存储器(ROM)802中的计算机程序或者从存储单元808加载到随机访问存储器(RAM)803中的计算机程序,来执行各种适当的动作和处理。在RAM803中,还可存储设备800操作所需的各种程序和数据。计算单元801、ROM 802以及RAM 803通过总线804彼此相连。输入/输出(I/O)接口805也连接至总线804。As shown in FIG. 8 , the
设备800中的多个部件连接至I/O接口805,包括:输入单元806,例如键盘、鼠标等;输出单元807,例如各种类型的显示器、扬声器等;存储单元808,例如磁盘、光盘等;以及通信单元809,例如网卡、调制解调器、无线通信收发机等。通信单元809允许设备800通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。Various components in the
计算单元801可以是各种具有处理和计算能力的通用和/或专用处理组件。计算单元801的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的计算单元、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。计算单元801执行上文所描述的各个方法和处理,例如处理地图数据的方法。例如,在一些实施例中,处理地图数据的方法可被实现为计算机软件程序,其被有形地包含于机器可读介质,例如存储单元808。在一些实施例中,计算机程序的部分或者全部可以经由ROM 802和/或通信单元809而被载入和/或安装到设备800上。当计算机程序加载到RAM 803并由计算单元801执行时,可以执行上文描述的处理地图数据的方法的一个或多个步骤。备选地,在其他实施例中,计算单元801可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行处理地图数据的方法。
本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、芯片上系统的系统(SOC)、负载可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described herein above may be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips system (SOC), load programmable logic device (CPLD), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs executable and/or interpretable on a programmable system including at least one programmable processor that The processor, which may be a special purpose or general-purpose programmable processor, may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device an output device.
用于实施本公开的方法的程序代码可以采用一个或多个编程语言的任何组合来编写。这些程序代码可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器或控制器,使得程序代码当由处理器或控制器执行时使流程图和/或框图中所规定的功能/操作被实施。程序代码可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer or other programmable data processing apparatus, such that the program code, when executed by the processor or controller, performs the functions/functions specified in the flowcharts and/or block diagrams. Action is implemented. The program code may execute entirely on the machine, partly on the machine, partly on the machine and partly on a remote machine as a stand-alone software package or entirely on the remote machine or server.
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with the instruction execution system, apparatus or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), fiber optics, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算机具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给计算机。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein may be implemented on a computer having a display device (eg, a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user ); and a keyboard and pointing device (eg, a mouse or trackball) through which a user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (eg, visual feedback, auditory feedback, or tactile feedback); and can be in any form (including acoustic input, voice input, or tactile input) to receive input from the user.
可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)和互联网。The systems and techniques described herein may be implemented on a computing system that includes back-end components (eg, as a data server), or a computing system that includes middleware components (eg, an application server), or a computing system that includes front-end components (eg, a user's computer having a graphical user interface or web browser through which a user may interact with implementations of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system. The components of the system may be interconnected by any form or medium of digital data communication (eg, a communication network). Examples of communication networks include: Local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。服务器可以是云服务器,也可以为分布式系统的服务器,或者是结合了区块链的服务器。A computer system can include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, a distributed system server, or a server combined with blockchain.
应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本发公开中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本公开公开的技术方案所期望的结果,本文在此不进行限制。It should be understood that steps may be reordered, added or deleted using the various forms of flow shown above. For example, the steps described in the present disclosure can be executed in parallel, sequentially, or in different orders. As long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, there is no limitation herein.
上述具体实施方式,并不构成对本公开保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本公开的精神和原则之内所作的修改、等同替换和改进等,均应包含在本公开保护范围之内。The above-mentioned specific embodiments do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent replacements, and improvements made within the spirit and principles of the present disclosure should be included within the protection scope of the present disclosure.
Claims (21)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210047979.2A CN114461720A (en) | 2022-01-17 | 2022-01-17 | Method, apparatus, device, storage medium and program product for processing map data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210047979.2A CN114461720A (en) | 2022-01-17 | 2022-01-17 | Method, apparatus, device, storage medium and program product for processing map data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114461720A true CN114461720A (en) | 2022-05-10 |
Family
ID=81409001
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210047979.2A Pending CN114461720A (en) | 2022-01-17 | 2022-01-17 | Method, apparatus, device, storage medium and program product for processing map data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114461720A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114706936A (en) * | 2022-05-13 | 2022-07-05 | 高德软件有限公司 | Map data processing method and location-based service providing method |
CN115292428A (en) * | 2022-07-01 | 2022-11-04 | 上海仙途智能科技有限公司 | Map element loading method and device, server, and computer-readable storage medium |
CN117909008A (en) * | 2023-12-25 | 2024-04-19 | 北京宇天恒瑞科技发展有限公司 | Map display method, map display device, electronic equipment and readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110063301A1 (en) * | 2009-09-17 | 2011-03-17 | Nokia Corporation | Method and apparatus for providing contextual rendering of a map |
JP2013145299A (en) * | 2012-01-13 | 2013-07-25 | Saxa Inc | Image control device, image control program and image generation system |
US20140340419A1 (en) * | 2013-05-15 | 2014-11-20 | Google Inc. | Use of Map Data Difference Tiles to Iteratively Provide Map Data to a Client Device |
CN105393282A (en) * | 2013-05-15 | 2016-03-09 | 谷歌公司 | Efficient composition and rendering of graphical elements |
-
2022
- 2022-01-17 CN CN202210047979.2A patent/CN114461720A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110063301A1 (en) * | 2009-09-17 | 2011-03-17 | Nokia Corporation | Method and apparatus for providing contextual rendering of a map |
JP2013145299A (en) * | 2012-01-13 | 2013-07-25 | Saxa Inc | Image control device, image control program and image generation system |
US20140340419A1 (en) * | 2013-05-15 | 2014-11-20 | Google Inc. | Use of Map Data Difference Tiles to Iteratively Provide Map Data to a Client Device |
CN105393282A (en) * | 2013-05-15 | 2016-03-09 | 谷歌公司 | Efficient composition and rendering of graphical elements |
Non-Patent Citations (1)
Title |
---|
张雷: "基于GIS的哈尔滨太阳岛旅游导航信息系统的设计与实现", 《中国优秀硕士学位论文全文数据库(电子期刊)》, vol. 2013, no. 05, 15 May 2013 (2013-05-15) * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114706936A (en) * | 2022-05-13 | 2022-07-05 | 高德软件有限公司 | Map data processing method and location-based service providing method |
CN115292428A (en) * | 2022-07-01 | 2022-11-04 | 上海仙途智能科技有限公司 | Map element loading method and device, server, and computer-readable storage medium |
CN117909008A (en) * | 2023-12-25 | 2024-04-19 | 北京宇天恒瑞科技发展有限公司 | Map display method, map display device, electronic equipment and readable storage medium |
CN117909008B (en) * | 2023-12-25 | 2024-08-27 | 北京宇天恒瑞科技发展有限公司 | Map display method, map display device, electronic equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114461720A (en) | Method, apparatus, device, storage medium and program product for processing map data | |
CN114549612A (en) | Model training and image processing method, device, equipment and storage medium | |
CN112967381B (en) | Three-dimensional reconstruction methods, equipment and media | |
CN112528995B (en) | Method for training target detection model, target detection method and device | |
CN113362438A (en) | Panorama rendering method, device, electronic apparatus, medium, and program | |
CN112085814A (en) | Electronic map display method, device, device and readable storage medium | |
CN115170815A (en) | Method, device and medium for processing visual task and training model | |
WO2025055266A1 (en) | Image processing method and apparatus, device, and medium | |
CN111275803B (en) | 3D model rendering method, device, equipment and storage medium | |
EP4160149A1 (en) | Road network data processing method and apparatus, electronic device, storage medium, and program product | |
CN114723894B (en) | Three-dimensional coordinate acquisition method and device and electronic equipment | |
CN115578486A (en) | Image generation method and device, electronic equipment and storage medium | |
CN114564268A (en) | Device management method, device, electronic device and storage medium | |
CN114494788A (en) | Image processing method, image processing apparatus, electronic device, and medium | |
CN114419403A (en) | Method and apparatus for detecting models | |
CN113959400A (en) | Method, device, electronic device and storage medium for obtaining height value of intersection vertex | |
CN117830462A (en) | Method, device and equipment for smoothly drawing moving target trajectory | |
CN113139891B (en) | Image processing methods, devices, electronic equipment and storage media | |
CN114386577A (en) | Method, apparatus and storage medium for executing deep learning models | |
CN114549752A (en) | Three-dimensional graphic data processing method, device, equipment, storage medium and product | |
CN115512347A (en) | Model training method, image detection method, device and electronic equipment | |
CN115171131A (en) | Character recognition method and device, electronic equipment and storage medium | |
CN114328783A (en) | Map data output method, map data processing method and device and electronic equipment | |
CN113408592A (en) | Feature point matching method and device, electronic equipment and computer-readable storage medium | |
CN113448668A (en) | Method and device for skipping popup window and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
EE01 | Entry into force of recordation of patent licensing contract | ||
EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20220510 Assignee: Beijing Baidu Zhitu Technology Co.,Ltd. Assignor: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY Co.,Ltd. Contract record no.: X2023990000052 Denomination of invention: Methods, devices, devices, storage media and program products for processing map data License type: Common License Record date: 20230106 |