CN111858793A - Map road marking processing method, device, electronic device and storage medium - Google Patents
Map road marking processing method, device, electronic device and storage medium Download PDFInfo
- Publication number
- CN111858793A CN111858793A CN202010518953.2A CN202010518953A CN111858793A CN 111858793 A CN111858793 A CN 111858793A CN 202010518953 A CN202010518953 A CN 202010518953A CN 111858793 A CN111858793 A CN 111858793A
- Authority
- CN
- China
- Prior art keywords
- road
- map
- svg
- data
- path
- 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.)
- Granted
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/29—Geographical information databases
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/20—Drawing from basic elements, e.g. lines or circles
- G06T11/206—Drawing of charts or graphs
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Remote Sensing (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
本申请公开了地图道路标注处理方法、装置、电子设备及存储介质,涉及互联网领域,其中的方法可包括:服务端生成M个层级的地图数据,通过渲染生成N个层级的SVG瓦片图,N大于M;针对任一层级地图数据中的任一道路,分别从道路上选定基准点,从基准点开始,通过拾取道路上的坐标点形成一条预定长度的路径;将客户端所请求的SVG瓦片图数据发送给客户端,以便客户端针对根据SVG瓦片图数据生成并展示的地图上的任一道路,始终从基准点开始,沿路径方向,将道路标注中的各字符按预定像素大小分别进行展示,其中,基准点、路径及预定像素大小信息包含在从SVG瓦片图数据中提取出的道路标注数据中。应用本申请所述方案,可提升地图展示效果等。
The present application discloses a map road labeling processing method, device, electronic device and storage medium, and relates to the field of the Internet. The method may include: a server generating M levels of map data, and generating N levels of SVG tile images by rendering, N is greater than M; for any road in any level of map data, select a reference point from the road, starting from the reference point, and form a path of predetermined length by picking coordinate points on the road; The SVG tile image data is sent to the client, so that the client can always start from the reference point and follow the path direction for any road on the map generated and displayed according to the SVG tile image data. The pixel size is shown separately, wherein the reference point, the path and the predetermined pixel size information are included in the road annotation data extracted from the SVG tile image data. By applying the solution described in this application, the map display effect can be improved.
Description
技术领域technical field
本申请涉及计算机应用技术,特别涉及互联网领域的地图道路标注处理方法、装置、电子设备及存储介质。The present application relates to computer application technology, and in particular, to a method, device, electronic device and storage medium for processing map road markings in the Internet field.
背景技术Background technique
传统方式中,多采用栅格瓦片图的方式来提供在线地图服务,这是一种具有“金字塔”结构的栅格地图组织形式。In the traditional way, raster tile images are mostly used to provide online map services, which is a raster map organization form with a "pyramid" structure.
将地图在服务端渲染好,切分成栅格瓦片图进行存储,对每张栅格瓦片图进行编号,客户端根据编号请求栅格瓦片图,然后拼接成完整的地图。这种方式中,在地图放大或缩小时,地图上的道路标注也会随着一起放大或缩小,展示效果较差。The map is rendered on the server, divided into raster tiles for storage, and each raster tile is numbered. The client requests the raster tiles according to the number, and then stitches them together into a complete map. In this way, when the map is zoomed in or out, the road labels on the map will also be zoomed in or out along with it, and the display effect is poor.
发明内容SUMMARY OF THE INVENTION
本申请提供了地图道路标注处理方法、装置、电子设备及存储介质。The present application provides a map road marking processing method, device, electronic device and storage medium.
一种地图道路标注处理方法,包括:A map road labeling processing method, comprising:
服务端生成M个层级的地图数据,通过渲染生成N个层级的可缩放矢量图形SVG瓦片图,M和N均为正整数,N大于M;The server generates M levels of map data, and generates N levels of scalable vector graphics SVG tile images through rendering, where M and N are both positive integers, and N is greater than M;
针对任一层级地图数据中的任一道路,分别进行以下处理:从所述道路上选定基准点,从所述基准点开始,通过拾取所述道路上的坐标点形成一条预定长度的路径;For any road in the map data of any level, the following processes are respectively performed: a reference point is selected from the road, and starting from the reference point, a path of a predetermined length is formed by picking up the coordinate points on the road;
将客户端所请求的SVG瓦片图数据发送给所述客户端,以便所述客户端针对根据所述SVG瓦片图数据生成并展示的地图上的任一道路,始终从所述基准点开始,沿所述路径方向,将道路标注中的各字符按预定像素大小分别进行展示,其中,所述基准点、所述路径及所述预定像素大小信息包含在从所述SVG瓦片图数据中提取出的道路标注数据中。Send the SVG tile image data requested by the client to the client, so that the client always starts from the reference point for any road on the map generated and displayed according to the SVG tile image data , along the path direction, each character in the road label is displayed in a predetermined pixel size, wherein the reference point, the path and the predetermined pixel size information are included in the SVG tile image data from the in the extracted road annotation data.
一种地图道路标注处理方法,包括:A map road labeling processing method, comprising:
客户端获取请求自服务端的可缩放矢量图形SVG瓦片图数据;The client obtains the scalable vector graphics SVG tile image data requested from the server;
所述客户端从所述SVG瓦片图数据中提取出道路标注数据,所述道路标注数据中包括各道路的基准点、路径及字符的预定像素大小信息;The client extracts road labeling data from the SVG tile image data, where the road labeling data includes reference points of each road, paths and predetermined pixel size information of characters;
所述客户端针对根据所述SVG瓦片图数据生成并展示的地图上的任一道路,始终从所述基准点开始,沿所述路径方向,将道路标注中的各字符按所述预定像素大小分别进行展示;For any road on the map generated and displayed according to the SVG tile image data, the client always starts from the reference point and along the path direction, labels each character in the road by the predetermined pixel. The size is displayed separately;
其中,所述基准点为所述服务端从所述道路上选定的基准点,所述道路为所述服务端生成的M个层级的地图数据中的任一层级地图数据中的任一道路,所述路径为所述服务端从所述基准点开始,通过拾取所述道路上的坐标点形成的一条预定长度的路径,所述M个层级的地图数据通过渲染生成N个层级的SVG瓦片图,M和N均为正整数,N大于M。Wherein, the reference point is a reference point selected by the server from the road, and the road is any road in any level of map data in the M levels of map data generated by the server , the path is a path of a predetermined length formed by the server starting from the reference point by picking up coordinate points on the road, and the M levels of map data are rendered to generate N levels of SVG tiles In the picture, M and N are both positive integers, and N is greater than M.
一种地图道路标注处理装置,所述装置应用于服务端,包括:图片生成模块、图片处理模块以及数据发送模块;A map road labeling processing device, the device is applied to a server, comprising: a picture generation module, a picture processing module and a data transmission module;
所述图片生成模块,用于生成M个层级的地图数据,通过渲染生成N个层级的可缩放矢量图形SVG瓦片图,M和N均为正整数,N大于M;The picture generation module is used to generate M levels of map data, and generate N levels of scalable vector graphics SVG tile images by rendering, where M and N are both positive integers, and N is greater than M;
所述图片处理模块,用于针对任一层级地图数据中的任一道路,分别进行以下处理:从所述道路上选定基准点,从所述基准点开始,通过拾取所述道路上的坐标点形成一条预定长度的路径;The picture processing module is configured to perform the following processing for any road in the map data of any level: selecting a reference point on the road, starting from the reference point, picking up the coordinates on the road Points form a path of predetermined length;
所述数据发送模块,用于将客户端所请求的SVG瓦片图数据发送给所述客户端,以便所述客户端针对根据所述SVG瓦片图数据生成并展示的地图上的任一道路,始终从所述基准点开始,沿所述路径方向,将道路标注中的各字符按预定像素大小分别进行展示,其中,所述基准点、所述路径及所述预定像素大小信息包含在从所述SVG瓦片图数据中提取出的道路标注数据中。The data sending module is configured to send the SVG tile image data requested by the client to the client, so that the client can target any road on the map generated and displayed according to the SVG tile image data , always starting from the reference point, and along the path direction, each character in the road label is displayed with a predetermined pixel size, wherein the reference point, the path and the predetermined pixel size information are included in the In the road labeling data extracted from the SVG tile image data.
一种地图道路标注处理装置,所述装置应用于客户端,包括:数据获取模块以及地图展示模块;A map road labeling processing device, the device is applied to a client, comprising: a data acquisition module and a map display module;
所述数据获取模块,用于获取请求自服务端的可缩放矢量图形SVG瓦片图数据;The data acquisition module is used for acquiring the scalable vector graphics SVG tile image data requested from the server;
所述地图展示模块,用于从所述SVG瓦片图数据中提取出道路标注数据,所述道路标注数据中包括各道路的基准点、路径及字符的预定像素大小信息,针对根据所述SVG瓦片图数据生成并展示的地图上的任一道路,始终从所述基准点开始,沿所述路径方向,将道路标注中的各字符按所述预定像素大小分别进行展示,其中,所述基准点为所述服务端从所述道路上选定的基准点,所述道路为所述服务端生成的M个层级的地图数据中的任一层级地图数据中的任一道路,所述路径为所述服务端从所述基准点开始,通过拾取所述道路上的坐标点形成的一条预定长度的路径,所述M个层级的地图数据通过渲染生成N个层级的SVG瓦片图,M和N均为正整数,N大于M。The map display module is configured to extract road labeling data from the SVG tile image data, and the road labeling data includes reference points of each road, paths and predetermined pixel size information of characters. Any road on the map generated and displayed by the tile map data always starts from the reference point, and along the path direction, each character in the road label is displayed according to the predetermined pixel size, wherein the The reference point is the reference point selected by the server from the road, and the road is any road in the map data of any level in the map data of the M levels generated by the server, and the path Starting from the reference point for the server, a path of a predetermined length is formed by picking up the coordinate points on the road, and the M levels of map data are rendered to generate N levels of SVG tile images, M and N are positive integers, and N is greater than M.
一种电子设备,包括: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 to enable the at least one processor to perform the method as described above.
一种存储有计算机指令的非瞬时计算机可读存储介质,所述计算机指令用于使所述计算机执行如以上所述的方法。A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method as described above.
上述申请中的一个实施例具有如下优点或有益效果:服务端可针对生成的任一层级地图数据中的任一道路,分别选定基准点和生成路径等,客户端在展示地图时,可根据获取到的道路标注数据进行二次处理,即针对任一道路,可始终从道路的基准点开始,沿道路的路径方向,将道路的道路标注中的各字符按预定像素大小分别进行展示,从而避免了现有方式中由于地图的放大或缩小导致道路标注随着放大或缩小的问题,进而提升了地图展示效果等。应当理解,本部分所描述的内容并非旨在标识本公开的实施例的关键或重要特征,也不用于限制本公开的范围。本公开的其它特征将通过以下的说明书而变得容易理解。An embodiment in the above application has the following advantages or beneficial effects: the server can select a reference point and generate a path for any road in the generated map data of any level, and the client can display the map according to The obtained road labeling data is subjected to secondary processing, that is, for any road, it can always start from the reference point of the road, along the path direction of the road, and display each character in the road labeling of the road according to the predetermined pixel size. The problem that the road label is enlarged or reduced due to the enlargement or reduction of the map in the existing method is avoided, thereby improving the map display effect and the like. 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 application. in:
图1为本申请所述地图道路标注处理方法第一实施例的流程图;1 is a flowchart of a first embodiment of a method for processing map road markings according to the present application;
图2为本申请所述道路标注放大情况的示意图;Fig. 2 is the schematic diagram of the enlarged situation of road marking described in this application;
图3为本申请所述选定的一个基准点的示意图;3 is a schematic diagram of a selected reference point described in this application;
图4为本申请所述形成的路径的示意图;FIG. 4 is a schematic diagram of a path formed as described in this application;
图5为本申请所述路径缩短情况的示意图;5 is a schematic diagram of the path shortening situation described in the application;
图6为本申请所述地图道路标注处理方法第二实施例的流程图;6 is a flowchart of the second embodiment of the method for processing map road markings described in the present application;
图7为本申请所述底图的示意图;Fig. 7 is the schematic diagram of the base map described in the application;
图8为在图7所示底图上叠加道路标注之后的示意图;Fig. 8 is the schematic diagram after superimposing road marking on the base map shown in Fig. 7;
图9为本申请所述地图旋转情况示意图;FIG. 9 is a schematic diagram of the rotation situation of the map described in this application;
图10为本申请所述旋转对应的坐标系的示意图;10 is a schematic diagram of a coordinate system corresponding to the rotation described in the application;
图11为对图9所示地图中的道路标注中的各字符逆序输出后的示意图;Fig. 11 is the schematic diagram after each character in the road marking in the map shown in Fig. 9 is output in reverse order;
图12为本申请所述地图道路标注处理装置第一实施例120的组成结构示意图;FIG. 12 is a schematic diagram of the composition and structure of the
图13为本申请所述地图道路标注处理装置第二实施例130的组成结构示意图;13 is a schematic diagram of the composition and structure of the
图14为根据本申请实施例所述方法的电子设备的框图。FIG. 14 is a block diagram of an electronic device according to the method described in the embodiment of the present application.
具体实施方式Detailed ways
以下结合附图对本申请的示范性实施例做出说明,其中包括本申请实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本申请的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。Exemplary embodiments of the present application are described below with reference to the accompanying drawings, which include various details of the embodiments of the present application 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 application. Also, descriptions of well-known functions and constructions are omitted from the following description for clarity and conciseness.
另外,应理解,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。In addition, it should be understood that the term "and/or" in this document is only an association relationship for describing associated objects, indicating that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, and A exists at the same time and B, there are three cases of B alone. In addition, the character "/" in this document generally indicates that the related objects are an "or" relationship.
图1为本申请所述地图道路标注处理方法第一实施例的流程图。如图1所示,包括以下具体实现方式。FIG. 1 is a flowchart of a first embodiment of a method for processing map road markings according to the present application. As shown in Figure 1, the following specific implementations are included.
在101中,服务端生成M个层级的地图数据,通过渲染生成N个层级的可缩放矢量图形(SVG,Scalable Vector Graphics)瓦片图,M和N均为正整数,N大于M。In 101, the server generates M levels of map data, and generates N levels of Scalable Vector Graphics (SVG, Scalable Vector Graphics) tile images through rendering, where M and N are both positive integers, and N is greater than M.
在102中,针对任一层级地图数据中的任一道路,分别进行以下处理:从道路上选定基准点,从基准点开始,通过拾取道路上的坐标点形成一条预定长度的路径。In 102, for any road in the map data of any level, the following processing is respectively performed: a reference point is selected on the road, and starting from the reference point, a path with a predetermined length is formed by picking coordinate points on the road.
在103中,将客户端所请求的SVG瓦片图数据发送给客户端,以便客户端针对根据SVG瓦片图数据生成并展示的地图上的任一道路,始终从基准点开始,沿路径方向,将道路标注中的各字符按预定像素大小分别进行展示,其中,基准点、路径及预定像素大小信息包含在从SVG瓦片图数据中提取出的道路标注数据中。In 103, the SVG tile image data requested by the client is sent to the client, so that the client always starts from the reference point and follows the path direction for any road on the map generated and displayed according to the SVG tile image data , each character in the road annotation is displayed according to the predetermined pixel size, wherein the reference point, the path and the predetermined pixel size information are included in the road annotation data extracted from the SVG tile image data.
本实施例中,可用SVG瓦片图来代替栅格瓦片图,服务端可生成M个层级的地图数据(按瓦片划分),并可通过实时渲染生成N个层级的SVG瓦片图。In this embodiment, SVG tiles can be used instead of grid tiles, and the server can generate M levels of map data (divided by tiles), and can generate N levels of SVG tiles through real-time rendering.
M的具体取值可根据实际需要而定。理论上,可以取值为1,但如果这样,单一层级的地图数据上存放的数据就会非常多,不便于进行数据读取及链路传输等,但如果层级数过多,又会造成数据冗余等问题,因此需要综合考虑各种因素,层级数既不能过少,也不能过多,如可为6个层级或9个层级。比如,M的取值可为6,N的取值可为18,每个层级的地图数据可分别渲染生成3个层级的SVG瓦片图。The specific value of M can be determined according to actual needs. Theoretically, the value can be set to 1, but in this case, there will be a lot of data stored on the map data of a single level, which is inconvenient for data reading and link transmission, etc., but if there are too many levels, it will cause data Redundancy and other issues need to be comprehensively considered, and the number of levels can neither be too small nor too many, such as 6 levels or 9 levels. For example, the value of M can be 6, the value of N can be 18, and the map data of each level can be rendered to generate SVG tile images of three levels respectively.
按照现有方式,假设生成18个层级的栅格瓦片图,对于每个层级,需要分别生成一套道路标注数据,以达到每个地图层级的最优展示效果。本实施例中,针对每个层级地图数据分别生成一套道路标注数据,由于层级数远小于栅格瓦片图的层级数,因此生成的道路标注数据也远小于现有方式中的道路标注数据,相当于一套道路标注数据可以在多个层级复用,从而大幅减少了数据冗余。According to the existing method, it is assumed that 18 levels of grid tile images are generated. For each level, a set of road labeling data needs to be generated separately to achieve the optimal display effect of each map level. In this embodiment, a set of road labeling data is generated for each level of map data. Since the number of levels is much smaller than the number of levels of the grid tile map, the generated road labeling data is also much smaller than the road labeling data in the existing method. , which is equivalent to a set of road labeling data that can be reused at multiple levels, thus greatly reducing data redundancy.
而且,现有方式中的栅格瓦片图在放大或缩小时会存在失真的问题,而采用SVG瓦片图代替栅格瓦片图后,则避免了该问题。Moreover, the grid tile image in the prior art has the problem of distortion when it is enlarged or reduced, but this problem can be avoided by using the SVG tile image instead of the grid tile image.
现有的栅格瓦片图中,道路标注是逐字按经纬度绘制的,即为道路标注中的每个字符分别分配一个经纬度坐标点,将各字符展示在对应的经纬度坐标点上,这样,当地图放大或缩小时,地图上的道路标注就会随着一起放大或缩小,展示效果较差。In the existing raster tile map, the road labels are drawn verbatim according to the latitude and longitude, that is, each character in the road label is assigned a latitude and longitude coordinate point, and each character is displayed on the corresponding latitude and longitude coordinate point. In this way, When the map is zoomed in or out, the road labels on the map will be zoomed in or out along with it, and the display effect will be poor.
图2为本申请所述道路标注放大情况的示意图。如图2所示,当地图放大时,道路标注“北二环”也会随着一起放大。道路标注通常是指道路名称等。FIG. 2 is a schematic diagram of an enlarged state of road markings described in this application. As shown in Figure 2, when the map is enlarged, the road label "North Second Ring Road" will also be enlarged along with it. Road labels usually refer to road names, etc.
而本实施例中,针对任一层级地图数据中的任一道路,可分别进行以下处理:从道路上选定基准点,从基准点开始,通过拾取道路上的坐标点形成一条预定长度的路径。However, in this embodiment, for any road in the map data of any level, the following processing can be respectively performed: selecting a reference point on the road, starting from the reference point, and forming a path of a predetermined length by picking coordinate points on the road .
本实施例中对于如何从道路上选定基准点不作限制。比如,可将一条道路分为多个等长的线段,在不和其它标注等发生冲突的情况下,可在各线段上分别设置道路标注,并可将各线段的起点作为基准点。图3为本申请所述选定的一个基准点的示意图,如图3所示,其中的小圆点即表示选定的基准点。In this embodiment, there is no restriction on how to select the reference point from the road. For example, a road can be divided into multiple line segments of equal length. If there is no conflict with other labels, road labels can be set on each line segment, and the starting point of each line segment can be used as a reference point. FIG. 3 is a schematic diagram of a selected reference point according to the application. As shown in FIG. 3 , the small circles in it represent the selected reference point.
优选地,可从基准点开始,按预定间隔拾取道路上的坐标点,利用基准点及所拾取的坐标点形成一条路径,路径的长度需要满足以下条件:当路径展示在该层级地图数据对应的任一层级的SVG瓦片图上时、路径的长度均大于或等于道路标注的长度,通常,任一层级的地图数据分别对应至少一个层级的SVG瓦片图。也就是说,当路径的长度满足所述条件时,即可停止拾取坐标点。Preferably, starting from the reference point, picking up coordinate points on the road at predetermined intervals, and using the reference point and the picked coordinate points to form a path, the length of the path needs to meet the following conditions: On any level of SVG tiles, the length of the path is greater than or equal to the length of the road label. Generally, the map data of any level corresponds to the SVG tile of at least one level. That is to say, when the length of the path satisfies the condition, the coordinate point can be stopped.
优选地,道路标注的长度等于道路标注中的各字符的宽度之和,预定间隔可等于字符的宽度。比如,道路标注中的字符的预定像素大小为10像素*10像素,道路标注为“北二环”,那么道路标注中的各字符的宽度之和即为30像素,相应地,预定间隔也为10像素,由于基准点的坐标点是已知的,10像素在当前层级下代表的实际距离也是已知的,那么则可从基准点开始按预定间隔依次拾取道路上的各坐标点,即依次确定出各坐标点,进而可利用基准点及所拾取的坐标点形成一条路径。图4为本申请所述形成的路径的示意图。通过这种方式,可方便准确地生成所需的路径。Preferably, the length of the road marking is equal to the sum of the widths of the characters in the road marking, and the predetermined interval may be equal to the width of the characters. For example, the predetermined pixel size of the characters in the road label is 10 pixels*10 pixels, and the road label is "North Second Ring Road", then the sum of the widths of the characters in the road label is 30 pixels, correspondingly, the predetermined interval is also 10 pixels, since the coordinate points of the reference point are known, and the actual distance represented by 10 pixels under the current level is also known, then each coordinate point on the road can be picked up at predetermined intervals from the reference point in turn, that is, in turn. Each coordinate point is determined, and then a path can be formed by using the reference point and the picked coordinate point. FIG. 4 is a schematic diagram of a path formed as described in this application. In this way, the desired path can be easily and accurately generated.
本实施例中,在绘制道路标注时,会首先绘制一条路径,将道路标注中的各字符从基准点开始,沿路径方向以预定像素大小分别进行展示,即从基准点开始沿路径进行绘制。In this embodiment, when drawing a road label, a path is first drawn, and each character in the road label starts from a reference point and is displayed in a predetermined pixel size along the path direction, that is, starting from the reference point and drawing along the path.
地图缩小时,由于字符相对于屏幕像素大小不变,而路径会随着的地图的缩小而变短,因此本实施例中所述的路径的长度需要足够长,从而保证在地图缩小的情况下,道路标注中的所有字符依然能够全部位于路径上,进而提升了地图展示效果等。When the map is zoomed out, since the size of the characters relative to the screen pixels remains the same, and the path will be shortened as the map is zoomed out, the length of the path described in this embodiment needs to be long enough to ensure that when the map is zoomed out , all characters in the road label can still be located on the path, which improves the map display effect.
图5为本申请所述路径缩短情况的示意图。如图5所示,当地图缩小后,路径也随之变短,但由于路径的长度足够大,因此当地图缩小后,路径上依然能够容纳下“北二环”的道路标注。FIG. 5 is a schematic diagram of a path shortening situation described in this application. As shown in Figure 5, when the map is zoomed out, the path also becomes shorter, but because the length of the path is large enough, the road label of "North Second Ring Road" can still be accommodated on the path after the map is zoomed out.
在SVG格式中,字符是以左下角作为00起始坐标的,如图5所示,可以基准点的坐标作为道路标注中的首个字符的起始坐标,沿路径方向进行各字符的绘制。In the SVG format, the lower left corner of the character is taken as the starting coordinate of 00. As shown in Figure 5, the coordinates of the reference point can be used as the starting coordinate of the first character in the road marking, and each character is drawn along the path direction.
后续,服务端可将客户端所请求的SVG瓦片图数据发送给客户端,以便客户端针对根据SVG瓦片图数据生成并展示的地图上的任一道路,始终从基准点开始,沿路径方向,将道路的道路标注中的各字符按预定像素大小分别进行展示。Subsequently, the server can send the SVG tile image data requested by the client to the client, so that the client can always start from the reference point and follow the path for any road on the map generated and displayed according to the SVG tile image data. direction, and each character in the road marking of the road is displayed according to the predetermined pixel size.
图6为本申请所述地图道路标注处理方法第二实施例的流程图。如图6所示,包括以下具体实现方式。FIG. 6 is a flowchart of the second embodiment of the method for processing map road markings according to the present application. As shown in FIG. 6 , the following specific implementations are included.
在601中,客户端获取请求自服务端的SVG瓦片图数据。In 601, the client obtains the SVG tile image data requested from the server.
在602中,客户端从SVG瓦片图数据中提取出道路标注数据,道路标注数据中包括各道路的基准点、路径及字符的预定像素大小信息。In 602, the client extracts road labeling data from the SVG tile image data, where the road labeling data includes reference points of each road, paths and predetermined pixel size information of characters.
在603中,客户端针对根据SVG瓦片图数据生成并展示的地图上的任一道路,始终从基准点开始,沿路径方向,将道路标注中的各字符按预定像素大小分别进行展示;其中,基准点为服务端从道路上选定的基准点,道路为服务端生成的M个层级的地图数据中的任一层级地图数据中的任一道路,路径为服务端从基准点开始,通过拾取道路上的坐标点形成的一条预定长度的路径,M个层级的地图数据通过渲染生成N个层级的SVG瓦片图,M和N均为正整数,N大于M。In 603, for any road on the map generated and displayed according to the SVG tile image data, the client always starts from the reference point and displays each character in the road label according to the predetermined pixel size along the direction of the path; wherein , the reference point is the reference point selected by the server from the road, the road is any road in the map data of any level in the M-level map data generated by the server, and the path is the server starting from the reference point and passing through Pick a path of a predetermined length formed by coordinate points on the road, and generate N-level SVG tile images through rendering of M-level map data, where M and N are both positive integers, and N is greater than M.
其中,所述预定长度满足以下条件:当路径展示在该层级地图数据对应的任一层级的SVG瓦片图上时、路径的长度均大于或等于道路标注的长度,其中,任一层级的地图数据分别对应至少一个层级的SVG瓦片图。Wherein, the predetermined length satisfies the following conditions: when the path is displayed on the SVG tile image of any level corresponding to the map data of this level, the length of the path is greater than or equal to the length of the road label, wherein the map of any level The data respectively correspond to SVG tile images of at least one level.
客户端可根据实际需要,向服务端请求所需的SVG瓦片图数据,在获取到服务端返回的SVG瓦片图数据后,可从中提取出道路标注数据,道路标注数据中可包括各道路的基准点、路径及字符的预定像素大小信息等,可根据去除道路标注数据后的SVG瓦片图数据生成底图,针对底图及根据用户的指令放大或缩小后的底图上的任一道路,可始终从道路的基准点开始,沿道路的路径方向,将道路的道路标注中的各字符按所述预定像素大小分别进行展示。The client can request the required SVG tile image data from the server according to actual needs. After obtaining the SVG tile image data returned by the server, it can extract the road labeling data. The road labeling data can include each road. The base map can be generated according to the SVG tile map data after removing the road label data, and any one of the base map and the base map that is enlarged or reduced according to the user's instructions can be generated. The road can always start from the reference point of the road, and along the path direction of the road, each character in the road labeling of the road can be displayed according to the predetermined pixel size.
由于SVG是基于可扩展标记语言(XML,eXtensible Markup Language)定义的语言,因此客户端可对获取到的SVG瓦片图数据进行二次处理(二次渲染),即在获取到SVG瓦片图数据后,可从中提取出道路标注信息,并根据去除道路标注数据后的SVG瓦片图数据生成底图,图7为本申请所述底图的示意图,用户对地图的放大或缩小仅针对底图,即仅对底图进行放大或缩小,针对底图及根据用户的指令放大或缩小后的底图上的任一道路,可始终从道路的基准点开始,沿道路的路径方向,将道路的道路标注中的各字符按预定像素大小分别进行展示。无论底图放大还是缩小后,道路的基准点都是可以找到的,以基准点为起点,沿路径以预定像素大小依次绘制道路标注中的各字符即可。相当于底图上没有道路标注,再按照所述绘制方式将道路标注作为一个新的图层叠加上去。图8为在图7所示底图上叠加道路标注之后的示意图。Since SVG is a language defined based on eXtensible Markup Language (XML, eXtensible Markup Language), the client can perform secondary processing (secondary rendering) on the acquired SVG tile image data, that is, after acquiring the SVG tile image After the data, road labeling information can be extracted from it, and a base map can be generated according to the SVG tile image data after removing the road labeling data. Figure, that is, only the base map is enlarged or reduced. For any road on the base map and the base map after the enlargement or reduction according to the user's instructions, the road can always start from the reference point of the road and follow the path direction of the road. Each character in the road label of , is displayed separately according to the predetermined pixel size. No matter whether the base map is enlarged or reduced, the datum point of the road can be found. With the datum point as the starting point, each character in the road label can be drawn in sequence with a predetermined pixel size along the path. It is equivalent that there is no road label on the basemap, and then the road label is superimposed as a new layer according to the drawing method. FIG. 8 is a schematic diagram after superimposing road labels on the base map shown in FIG. 7 .
可以看出,上述方式中,服务端可针对生成的任一层级地图数据中的任一道路,分别选定基准点和生成路径等,客户端在展示地图时,针对任一道路,可始终从基准点开始,沿路径方向,将道路的道路标注中的各字符按预定像素大小分别进行展示,从而避免了现有方式中由于地图的放大或缩小导致道路标注随着放大或缩小的问题,并消除了断层感等,实现了无极缩放,进而提升了地图展示效果,实现了媲美地图APP的效果,而且,现有方式中的栅格瓦片图在放大或缩小时会有失真的问题,而采用SVG瓦片图代替栅格瓦片图后,则可避免该问题。It can be seen that in the above method, the server can select the reference point and the generated path for any road in the generated map data at any level. When the client displays the map, for any road, it can always start from Starting from the reference point, along the path direction, each character in the road label of the road is displayed according to the predetermined pixel size, so as to avoid the problem of enlargement or reduction of the road label due to the enlargement or reduction of the map in the existing method, and It eliminates the sense of fault, etc., and realizes infinite zooming, which improves the map display effect and achieves the effect comparable to the map APP. Moreover, the grid tile image in the existing method will be distorted when it is enlarged or reduced. This problem can be avoided by using SVG tiles instead of raster tiles.
另外,本实施例中还提出,当符合预定触发条件时,可将道路标注中的各字符逆序输出。In addition, it is also proposed in this embodiment that when a predetermined trigger condition is met, each character in the road marking can be output in reverse order.
如当地图旋转时,由于道路标注会随着底图一起旋转,因此可能出现字符朝向向下的情况。图9为本申请所述地图旋转情况示意图,如图9所示,当地图旋转后,道路标注“北二环”的朝向变为向下,即出现字符“倒了”的情况,展示效果很差。For example, when the map is rotated, the characters may face downward because the road labels rotate with the basemap. Fig. 9 is a schematic diagram of the rotation of the map according to the application. As shown in Fig. 9, after the map is rotated, the direction of the road label "North Second Ring Road" becomes downward, that is, the character "down" appears, and the display effect is very good. Difference.
为此,本实施例中提出,当符合预定触发条件时,可将道路标注中的各字符逆序输出,从而逆转路径的方向,使得字符朝向向上,进而提升了展示效果。Therefore, in this embodiment, when the predetermined trigger condition is met, the characters in the road marking can be output in reverse order, thereby reversing the direction of the path, so that the characters face upward, thereby improving the display effect.
所述预定触发条件具体为何种条件不作限制,可根据实际需要而定,比如,当道路方向为315°时,地图旋转角度为45°~215°时,可将道路标注中的各字符旋转180°逆序输出,图10为本申请所述旋转对应的坐标系的示意图。图11为对图9所示地图中的道路标注中的各字符逆序输出后的示意图。The specific conditions of the predetermined trigger conditions are not limited, and can be determined according to actual needs. For example, when the road direction is 315° and the map rotation angle is 45° to 215°, each character in the road label can be rotated by 180°. ° output in reverse order, FIG. 10 is a schematic diagram of the coordinate system corresponding to the rotation described in the application. FIG. 11 is a schematic diagram after the reverse order of each character in the road annotation in the map shown in FIG. 9 is output.
需要说明的是,对于前述的各方法实施例,为了简单描述,将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其它顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。另外,某个实施例中没有详述的部分,可以参见其它实施例中的相关说明。It should be noted that, for the sake of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence, because Certain steps may be performed in other orders or concurrently in accordance with the present application. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application. In addition, for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions in other embodiments.
以上是关于方法实施例的介绍,以下通过装置实施例,对本申请所述方案进行进一步说明。The above is an introduction to the method embodiments, and the solutions described in the present application are further described below through the device embodiments.
图12为本申请所述地图道路标注处理装置第一实施例120的组成结构示意图。所述装置可应用于服务端,包括:图片生成模块121、图片处理模块122以及数据发送模块123。FIG. 12 is a schematic diagram of the composition and structure of the
图片生成模块121,用于生成M个层级的地图数据,通过渲染生成N个层级的SVG瓦片图,M和N均为正整数,N大于M。The
图片处理模块122,用于针对任一层级地图数据中的任一道路,分别进行以下处理:从道路上选定基准点,从基准点开始,通过拾取道路上的坐标点形成一条预定长度的路径。The
数据发送模块123,用于将客户端所请求的SVG瓦片图数据发送给客户端,以便客户端针对根据SVG瓦片图数据生成并展示的地图上的任一道路,始终从基准点开始,沿路径方向,将道路标注中的各字符按预定像素大小分别进行展示,其中,基准点、路径及预定像素大小信息包含在从SVG瓦片图数据中提取出的道路标注数据中。The
优选地,所述预定长度满足以下条件:当路径展示在该层级地图数据对应的任一层级的SVG瓦片图上时、路径的长度均大于或等于道路标注的长度,其中,任一层级的地图数据分别对应至少一个层级的SVG瓦片图。Preferably, the predetermined length satisfies the following conditions: when the path is displayed on the SVG tile image of any level corresponding to the map data of this level, the length of the path is greater than or equal to the length of the road label, wherein the length of the path at any level is greater than or equal to the length of the road label. The map data respectively correspond to SVG tile images of at least one level.
图13为本申请所述地图道路标注处理装置第二实施例130的组成结构示意图。所述装置可应用于客户端,包括:数据获取模块131以及地图展示模块132。FIG. 13 is a schematic diagram of the composition and structure of the
数据获取模块131,用于获取请求自服务端的SVG瓦片图数据。The
地图展示模块132,用于从SVG瓦片图数据中提取出道路标注数据,道路标注数据中包括各道路的基准点、路径及字符的预定像素大小信息,针对根据SVG瓦片图数据生成并展示的地图上的任一道路,始终从基准点开始,沿路径方向,将道路标注中的各字符按预定像素大小分别进行展示,其中,基准点为服务端从道路上选定的基准点,道路为服务端生成的M个层级的地图数据中的任一层级地图数据中的任一道路,路径为服务端从基准点开始,通过拾取道路上的坐标点形成的一条预定长度的路径,M个层级的地图数据通过渲染生成N个层级的SVG瓦片图,M和N均为正整数,N大于M。The
优选地,所述预定长度满足以下条件:当路径展示在该层级地图数据对应的任一层级的SVG瓦片图上时、路径的长度均大于或等于道路标注的长度,其中,任一层级的地图数据分别对应至少一个层级的SVG瓦片图。Preferably, the predetermined length satisfies the following conditions: when the path is displayed on the SVG tile image of any level corresponding to the map data of this level, the length of the path is greater than or equal to the length of the road label, wherein the length of the path at any level is greater than or equal to the length of the road label. The map data respectively correspond to SVG tile images of at least one level.
优选地,地图展示模块132可从SVG瓦片图数据中提取出道路标注数据,道路标注数据中包括各道路的基准点、路径及字符的预定像素大小信息,根据去除道路标注数据后的SVG瓦片图数据生成底图,针对底图及根据用户的指令放大或缩小后的底图上的任一道路,始终从道路的基准点开始,沿道路的路径方向,将道路的道路标注中的各字符按预定像素大小分别进行展示。Preferably, the
另外,当符合预定触发条件时,地图展示模块132还可将道路标注中的各字符逆序输出。In addition, when the predetermined trigger condition is met, the
图12和13所示装置实施例的具体工作流程请参照前述方法实施例中的相关说明,不再赘述。For the specific work flow of the apparatus embodiments shown in FIGS. 12 and 13, please refer to the relevant descriptions in the foregoing method embodiments, which will not be repeated.
总之,采用本申请装置实施例所述方案,服务端可针对生成的任一层级地图数据中的任一道路,分别选定基准点和生成路径等,客户端在展示地图时,针对任一道路,可始终从基准点开始,沿路径方向,将道路的道路标注中的各字符按预定像素大小依次进行展示,从而避免了现有方式中由于地图的放大或缩小导致道路标注随着放大或缩小的问题,并消除了断层感等,实现了无极缩放,进而提升了地图展示效果,实现了媲美地图APP的效果;而且,现有方式中的栅格瓦片图在放大或缩小时会有失真的问题,而采用SVG瓦片图代替栅格瓦片图后,则可避免该问题;另外,生成的道路标注数据会远小于现有方式中生成的道路标注数据,相当于一套道路标注数据可以在多个层级复用,从而大幅减少了数据冗余;按照上述生成路径的方式,可保证在地图缩小的情况下,道路标注中的所有字符依然能够全部位于路径上,进而进一步提升了地图展示效果;当符合预定触发条件时,可将道路标注中的各字符逆序输出,从而逆转路径的方向,使得字符朝向向上,进而进一步提升了展示效果等。In a word, using the solutions described in the device embodiments of the present application, the server can select a reference point and generate a path for any road in the generated map data of any level, and the client can display the map for any road. , which can always start from the reference point and display the characters in the road label of the road in sequence according to the predetermined pixel size along the path direction, so as to avoid the enlargement or reduction of the road label due to the enlargement or reduction of the map in the existing method. It also eliminates the sense of fault, etc., and realizes infinite zooming, thereby improving the map display effect and achieving the effect comparable to the map APP; moreover, the grid tile image in the existing method will be distorted when zoomed in or out. However, this problem can be avoided by using SVG tile images instead of raster tile images; in addition, the generated road labeling data will be much smaller than the road labeling data generated in the existing method, which is equivalent to a set of road labeling data It can be reused at multiple levels, thereby greatly reducing data redundancy; according to the above method of generating paths, it can ensure that all characters in the road label can still be located on the path when the map is reduced, which further improves the map. Display effect; when the predetermined trigger conditions are met, the characters in the road marking can be output in reverse order, thereby reversing the direction of the path, making the characters face upward, and further improving the display effect.
根据本申请的实施例,本申请还提供了一种电子设备和一种可读存储介质。According to the embodiments of the present application, the present application further provides an electronic device and a readable storage medium.
如图14所示,是根据本申请实施例所述方法的电子设备的框图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本申请的实现。As shown in FIG. 14 , it is a block diagram of an electronic device according to the method described in this embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are by way of example only, and are not intended to limit implementations of the application described and/or claimed herein.
如图14所示,该电子设备包括:一个或多个处理器Y01、存储器Y02,以及用于连接各部件的接口,包括高速接口和低速接口。各个部件利用不同的总线互相连接,并且可以被安装在公共主板上或者根据需要以其它方式安装。处理器可以对在电子设备内执行的指令进行处理,包括存储在存储器中或者存储器上以在外部输入/输出装置(诸如,耦合至接口的显示设备)上显示图形用户界面的图形信息的指令。在其它实施方式中,若需要,可以将多个处理器和/或多条总线与多个存储器和多个存储器一起使用。同样,可以连接多个电子设备,各个设备提供部分必要的操作(例如,作为服务器阵列、一组刀片式服务器、或者多处理器系统)。图14中以一个处理器Y01为例。As shown in FIG. 14, the electronic device includes: one or more processors Y01, a memory Y02, and interfaces for connecting various components, including a high-speed interface and a low-speed interface. The various components are interconnected using different buses and may be mounted on a common motherboard or otherwise as desired. The processor may process instructions executed within the electronic device, including instructions stored in or on memory to display graphical information of a graphical user interface on an external input/output device, such as a display device coupled to the interface. In other embodiments, multiple processors and/or multiple buses may be used with multiple memories and multiple memories, if desired. Likewise, multiple electronic devices may be connected, each providing some of the necessary operations (eg, as a server array, a group of blade servers, or a multiprocessor system). Figure 14 takes a processor Y01 as an example.
存储器Y02即为本申请所提供的非瞬时计算机可读存储介质。其中,所述存储器存储有可由至少一个处理器执行的指令,以使所述至少一个处理器执行本申请所提供的方法。本申请的非瞬时计算机可读存储介质存储计算机指令,该计算机指令用于使计算机执行本申请所提供的方法。The memory Y02 is the non-transitory computer-readable storage medium provided in this application. Wherein, the memory stores instructions executable by at least one processor, so that the at least one processor executes the method provided by the present application. The non-transitory computer-readable storage medium of the present application stores computer instructions for causing a computer to perform the methods provided by the present application.
存储器Y02作为一种非瞬时计算机可读存储介质,可用于存储非瞬时软件程序、非瞬时计算机可执行程序以及模块,如本申请实施例中的方法对应的程序指令/模块。处理器Y01通过运行存储在存储器Y02中的非瞬时软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述方法实施例中的方法。As a non-transitory computer-readable storage medium, the memory Y02 can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as program instructions/modules corresponding to the methods in the embodiments of the present application. The processor Y01 executes various functional applications and data processing of the server by running the non-transitory software programs, instructions and modules stored in the memory Y02, that is, to implement the methods in the above method embodiments.
存储器Y02可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据电子设备的使用所创建的数据等。此外,存储器Y02可以包括高速随机存取存储器,还可以包括非瞬时存储器,例如至少一个磁盘存储器件、闪存器件、或其他非瞬时固态存储器件。在一些实施例中,存储器Y02可选包括相对于处理器Y01远程设置的存储器,这些远程存储器可以通过网络连接至电子设备。上述网络的实例包括但不限于互联网、企业内部网、区块链网络、局域网、移动通信网及其组合。The memory Y02 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function; the storage data area may store data created according to the use of the electronic device, and the like. In addition, the memory Y02 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory Y02 may optionally include memory located remotely relative to processor Y01, which may be connected to the electronic device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, blockchain networks, local area networks, mobile communication networks, and combinations thereof.
电子设备还可以包括:输入装置Y03和输出装置Y04。处理器Y01、存储器Y02、输入装置Y03和输出装置Y04可以通过总线或者其他方式连接,图14中以通过总线连接为例。The electronic device may further include: an input device Y03 and an output device Y04. The processor Y01, the memory Y02, the input device Y03, and the output device Y04 may be connected by a bus or in other ways, and the connection by a bus is taken as an example in FIG. 14 .
输入装置Y03可接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入,例如触摸屏、小键盘、鼠标、轨迹板、触摸板、指示杆、一个或者多个鼠标按钮、轨迹球、操纵杆等输入装置。输出装置Y04可以包括显示设备、辅助照明装置和触觉反馈装置(例如,振动电机)等。该显示设备可以包括但不限于,液晶显示器、发光二极管显示器和等离子体显示器。在一些实施方式中,显示设备可以是触摸屏。Input device Y03 can receive input numerical or character information, and generate key signal input related to user settings and function control of electronic equipment, such as touch screen, keypad, mouse, track pad, touch pad, pointing stick, one or more Input devices such as mouse buttons, trackballs, joysticks, etc. The output device Y04 may include a display device, an auxiliary lighting device, a haptic feedback device (eg, a vibration motor), and the like. The display devices may include, but are not limited to, liquid crystal displays, light emitting diode displays, and plasma displays. In some implementations, the display device may be a touch screen.
此处描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、专用集成电路、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described herein can be implemented in digital electronic circuitry, integrated circuit systems, application specific integrated circuits, 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.
这些计算程序(也称作程序、软件、软件应用、或者代码)包括可编程处理器的机器指令,并且可以利用高级过程和/或面向对象的编程语言、和/或汇编/机器语言来实施这些计算程序。如本文使用的,术语“机器可读介质”和“计算机可读介质”指的是用于将机器指令和/或数据提供给可编程处理器的任何计算机程序产品、设备、和/或装置(例如,磁盘、光盘、存储器、可编程逻辑装置),包括,接收作为机器可读信号的机器指令的机器可读介质。术语“机器可读信号”指的是用于将机器指令和/或数据提供给可编程处理器的任何信号。These computational programs (also referred to as programs, software, software applications, or codes) include machine instructions for programmable processors, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages calculation program. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or apparatus for providing machine instructions and/or data to a programmable processor ( For example, a magnetic disk, an optical disk, a memory, a programmable logic device), including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算机具有:用于向用户显示信息的显示装置(例如,阴极射线管或者液晶显示器监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给计算机。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein may be implemented on a computer having: a display device (eg, a cathode ray tube or liquid crystal display monitor) for displaying information to the user; and a keyboard and pointing A device (eg, a mouse or trackball) through which the user can provide input to the computer through the keyboard and the pointing device. 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.
可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网、广域网、区块链网络和互联网。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, wide area networks, blockchain networks, 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.
应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本申请中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本申请公开的技术方案所期望的结果,本文在此不进行限制。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 application can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in the present application can be achieved, no limitation is imposed herein.
上述具体实施方式,并不构成对本申请保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本申请的精神和原则之内所作的修改、等同替换和改进等,均应包含在本申请保护范围之内。The above-mentioned specific embodiments do not constitute a limitation on the protection scope of the present application. 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 this application shall be included within the protection scope of this application.
Claims (14)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010518953.2A CN111858793B (en) | 2020-06-09 | 2020-06-09 | Map road marking processing method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010518953.2A CN111858793B (en) | 2020-06-09 | 2020-06-09 | Map road marking processing method and device, electronic equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111858793A true CN111858793A (en) | 2020-10-30 |
| CN111858793B CN111858793B (en) | 2024-01-23 |
Family
ID=72986414
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010518953.2A Active CN111858793B (en) | 2020-06-09 | 2020-06-09 | Map road marking processing method and device, electronic equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111858793B (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113538468A (en) * | 2021-09-07 | 2021-10-22 | 成都国星宇航科技有限公司 | Method and device for constructing high-definition satellite map vector slice based on svg format |
| CN113658288A (en) * | 2021-07-27 | 2021-11-16 | 厦门智慧图信息科技有限公司 | Method for efficiently generating and displaying polygonal data vector slice |
| CN114357103A (en) * | 2022-01-10 | 2022-04-15 | 北京百度网讯科技有限公司 | A road condition rendering method and device |
| CN114791940A (en) * | 2022-06-23 | 2022-07-26 | 四川见山科技有限责任公司 | Method, device and system for calculating road name in digital twin city |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070185651A1 (en) * | 2006-02-07 | 2007-08-09 | Masaki Motoyama | Navigation system utilizing XML/SVG map data converted from geographic map data and layered structure of XML/SVG map data based on administrative regions |
| CN101908060A (en) * | 2010-06-30 | 2010-12-08 | 王宝全 | Vector digital map manufacturing method, vector digital map display method and vector digital map display system |
| CN103970859A (en) * | 2014-04-29 | 2014-08-06 | 杨立法 | Google user map text labeling method based on SVG |
| CN106463055A (en) * | 2014-04-04 | 2017-02-22 | 城市引擎公司 | Fast rendering of visualization |
| CN107025630A (en) * | 2016-02-02 | 2017-08-08 | 中国电力科学研究院 | A kind of power system geographical wiring diagram background map generation method based on SVG |
| CN109074376A (en) * | 2016-03-28 | 2018-12-21 | 微软技术许可有限责任公司 | Context ink marks mark in drawing interface |
| EP3514709A2 (en) * | 2018-01-22 | 2019-07-24 | Joachim Becker | Method and apparatus for transmitting and displaying user vector graphics with intelligent info items from a cloud-based cad archive on mobile devices, mobile or stationary computers |
| CN110660313A (en) * | 2018-06-29 | 2020-01-07 | 百度在线网络技术(北京)有限公司 | Information presentation method and device |
-
2020
- 2020-06-09 CN CN202010518953.2A patent/CN111858793B/en active Active
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070185651A1 (en) * | 2006-02-07 | 2007-08-09 | Masaki Motoyama | Navigation system utilizing XML/SVG map data converted from geographic map data and layered structure of XML/SVG map data based on administrative regions |
| CN101908060A (en) * | 2010-06-30 | 2010-12-08 | 王宝全 | Vector digital map manufacturing method, vector digital map display method and vector digital map display system |
| CN106463055A (en) * | 2014-04-04 | 2017-02-22 | 城市引擎公司 | Fast rendering of visualization |
| CN103970859A (en) * | 2014-04-29 | 2014-08-06 | 杨立法 | Google user map text labeling method based on SVG |
| CN107025630A (en) * | 2016-02-02 | 2017-08-08 | 中国电力科学研究院 | A kind of power system geographical wiring diagram background map generation method based on SVG |
| CN109074376A (en) * | 2016-03-28 | 2018-12-21 | 微软技术许可有限责任公司 | Context ink marks mark in drawing interface |
| EP3514709A2 (en) * | 2018-01-22 | 2019-07-24 | Joachim Becker | Method and apparatus for transmitting and displaying user vector graphics with intelligent info items from a cloud-based cad archive on mobile devices, mobile or stationary computers |
| CN110660313A (en) * | 2018-06-29 | 2020-01-07 | 百度在线网络技术(北京)有限公司 | Information presentation method and device |
Non-Patent Citations (1)
| Title |
|---|
| 李静;周治武;朱秀丽;: "在线制图矢量数据组织模型", 测绘科学, no. 02 * |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113658288A (en) * | 2021-07-27 | 2021-11-16 | 厦门智慧图信息科技有限公司 | Method for efficiently generating and displaying polygonal data vector slice |
| CN113658288B (en) * | 2021-07-27 | 2024-03-08 | 厦门智慧图信息科技有限公司 | Method for generating and displaying polygonal data vector slices |
| CN113538468A (en) * | 2021-09-07 | 2021-10-22 | 成都国星宇航科技有限公司 | Method and device for constructing high-definition satellite map vector slice based on svg format |
| CN114357103A (en) * | 2022-01-10 | 2022-04-15 | 北京百度网讯科技有限公司 | A road condition rendering method and device |
| CN114791940A (en) * | 2022-06-23 | 2022-07-26 | 四川见山科技有限责任公司 | Method, device and system for calculating road name in digital twin city |
| CN114791940B (en) * | 2022-06-23 | 2022-09-27 | 四川见山科技有限责任公司 | Road name calculation method, device and system in digital twin city |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111858793B (en) | 2024-01-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111858793B (en) | Map road marking processing method and device, electronic equipment and storage medium | |
| US11361005B2 (en) | Method for processing map data, device, and storage medium | |
| CN111722245B (en) | Positioning method, positioning device and electronic equipment | |
| CN111695628B (en) | Key point labeling method, device, electronic equipment and storage medium | |
| CN112015839B (en) | Map coordinate processing method, map coordinate processing device, electronic apparatus, and storage medium | |
| CN102073975A (en) | User terminal apparatus, drawing processing system and drawing processing method | |
| CN112907496B (en) | Image fusion method and device | |
| US11694405B2 (en) | Method for displaying annotation information, electronic device and storage medium | |
| CN111210490B (en) | Electronic map construction method, device, equipment and medium | |
| JP7253002B2 (en) | Electronic map display method, device, equipment and readable storage medium | |
| CN112508027B (en) | Head model for instance segmentation, instance segmentation model, image segmentation method and device | |
| CN107231817A (en) | Reduce the time delay in map interface | |
| CN111860167A (en) | Face fusion model acquisition and face fusion method, device and storage medium | |
| CN113362420B (en) | Road marking generation method, device, equipment and storage medium | |
| CN104268145A (en) | Quick map drawing method of complex vector data | |
| HK1221320A1 (en) | Method and apparatus for processing image in mobile terminal device | |
| CN111949816B (en) | Positioning processing methods, devices, electronic equipment and storage media | |
| US20210239491A1 (en) | Method and apparatus for generating information | |
| CN112115224B (en) | Auxiliary quality inspection methods, devices, electronic equipment and storage media for map data | |
| CN113008262B (en) | Method and device for showing interest points, electronic equipment and storage medium | |
| CN112541934B (en) | Image processing method and device | |
| CN110727383B (en) | Touch interaction method, device, electronic device and storage medium based on applet | |
| CN111400537B (en) | Road element information acquisition method and device and electronic equipment | |
| CN113011298A (en) | Truncated object sample generation method, target detection method, road side equipment and cloud control platform | |
| CN116563804A (en) | Point cloud labeling method, device, equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |