CN107025680A - A kind of map rendering intent and device - Google Patents
A kind of map rendering intent and device Download PDFInfo
- Publication number
- CN107025680A CN107025680A CN201610065512.5A CN201610065512A CN107025680A CN 107025680 A CN107025680 A CN 107025680A CN 201610065512 A CN201610065512 A CN 201610065512A CN 107025680 A CN107025680 A CN 107025680A
- Authority
- CN
- China
- Prior art keywords
- map
- coordinate system
- screen
- terminal device
- geographic
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—3D [Three Dimensional] image rendering
- G06T15/005—General purpose rendering architectures
Landscapes
- Engineering & Computer Science (AREA)
- Computer Graphics (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Navigation (AREA)
- Processing Or Creating Images (AREA)
- Instructional Devices (AREA)
Abstract
本申请提供一种地图渲染方法及装置,通过获取地图渲染模式和地图渲染参数;获取终端设备的当前位置;并根据地图渲染参数和终端设备的当前位置,获取与地图渲染模式对应的地图数据;进而将获取到的地图数据按照地图渲染模式进行渲染的方式,保证地图渲染结果按照用户需要的地图渲染模式进行渲染,以缩小地图渲染结果对用户的代入感与用户的实际驾车体验之间的差距。
The present application provides a map rendering method and device, by obtaining the map rendering mode and map rendering parameters; obtaining the current position of the terminal device; and obtaining map data corresponding to the map rendering mode according to the map rendering parameters and the current position of the terminal device; Then, the obtained map data is rendered according to the map rendering mode, so as to ensure that the map rendering result is rendered according to the map rendering mode required by the user, so as to narrow the gap between the user's sense of substitution of the map rendering result and the user's actual driving experience .
Description
技术领域technical field
本发明涉及地理信息技术领域,更具体地说,涉及一种地图渲染方法及装置。The present invention relates to the technical field of geographic information, and more specifically, to a map rendering method and device.
背景技术Background technique
随着智能终端的普及,地图产品在人们的生活中起着越来越重要的作用。为了带给用户更加逼真直接的地图渲染效果,越来越多的地图产品开始采用三维地图渲染技术。With the popularity of smart terminals, map products play an increasingly important role in people's lives. In order to bring users a more realistic and direct map rendering effect, more and more map products begin to adopt 3D map rendering technology.
现有的三维地图渲染技术可以渲染出鸟瞰模式三维地图,图1所示为鸟瞰模式三维地图的地图渲染效果图。其中,图1中的箭头11指示智能终端的当前位置。由图1渲染效果可知,鸟瞰模式三维地图存在渲染结果对用户的代入感与用户的实际驾车体验之间存在一定差距的问题。Existing 3D map rendering technologies can render a 3D map in a bird's-eye view mode, and FIG. 1 is a map rendering effect diagram of a 3-D map in a bird's-eye view mode. Wherein, the arrow 11 in FIG. 1 indicates the current location of the smart terminal. It can be seen from the rendering effect in Figure 1 that there is a certain gap between the user's sense of substitution of the rendering result and the user's actual driving experience in the 3D map in bird's-eye view mode.
因此,提供一种地图渲染方法及装置,以缩小地图渲染结果对用户的代入感与用户的实际驾车体验之间的差距,是亟待解决的问题。Therefore, it is an urgent problem to be solved to provide a map rendering method and device to narrow the gap between the user's sense of substitution of the map rendering result and the user's actual driving experience.
发明内容Contents of the invention
有鉴于此,本发明提供一种地图渲染方法及装置,以缩小地图渲染结果对用户的代入感与用户的实际驾车体验之间的差距。In view of this, the present invention provides a map rendering method and device to narrow the gap between the user's sense of substitution of the map rendering result and the user's actual driving experience.
为了实现上述目的,本发明实施例提供的技术方案如下:In order to achieve the above object, the technical solutions provided by the embodiments of the present invention are as follows:
一种地图渲染方法,包括:A map rendering method, comprising:
获取地图渲染模式和地图渲染参数;Get the map rendering mode and map rendering parameters;
获取终端设备的当前位置;Obtain the current location of the terminal device;
根据所述地图渲染参数和所述终端设备的当前位置,获取与所述地图渲染模式对应的地图数据;Acquiring map data corresponding to the map rendering mode according to the map rendering parameters and the current location of the terminal device;
将获取到的所述地图数据按照所述地图渲染模式进行渲染。Rendering the acquired map data according to the map rendering mode.
优选的,所述获取地图渲染模式具体包括:Preferably, the acquiring map rendering mode specifically includes:
接收地图渲染请求,所述地图渲染请求中携带地图渲染模式;receiving a map rendering request, the map rendering request carrying a map rendering mode;
或者,or,
读取预先设置的地图渲染模式。Read the preset map rendering mode.
优选的,所述地图渲染参数至少包括地图比例尺、终端设备屏幕的分辨率和像素密度,所述根据所述地图渲染参数和所述终端设备的当前位置,获取与所述地图渲染模式对应的地图数据具体包括:Preferably, the map rendering parameters include at least map scale, resolution and pixel density of the terminal device screen, and the map corresponding to the map rendering mode is obtained according to the map rendering parameters and the current location of the terminal device Specifically, the data includes:
根据所述地图比例尺、所述终端设备屏幕的分辨率和像素密度,获取所述终端设备屏幕显示的地图的地理参数;According to the map scale, the resolution and the pixel density of the screen of the terminal device, the geographical parameters of the map displayed on the screen of the terminal device are obtained;
根据所述地图的地理参数和所述终端设备的当前位置,获取与所述地图渲染模式对应的地图数据。Map data corresponding to the map rendering mode is acquired according to the geographic parameters of the map and the current location of the terminal device.
优选的,所述根据所述地图比例尺、所述终端设备屏幕的分辨率和像素密度,获取所述终端设备屏幕显示的地图的地理参数具体包括:Preferably, according to the map scale, the resolution and pixel density of the screen of the terminal device, acquiring the geographical parameters of the map displayed on the screen of the terminal device specifically includes:
利用所述地图比例尺和所述终端设备屏幕的像素密度,得到比例尺系数;Using the map scale and the pixel density of the terminal device screen to obtain a scale coefficient;
根据所述终端设备屏幕的分辨率和所述比例尺系数,得到所述终端设备屏幕显示的地图的地理参数。According to the resolution of the screen of the terminal device and the scale factor, the geographic parameters of the map displayed on the screen of the terminal device are obtained.
优选的,所述地图渲染模式为第一人称视角的三维地图渲染模式,所述根据所述终端设备屏幕的分辨率和所述比例尺系数,得到所述终端设备屏幕显示的地图的地理参数具体包括:Preferably, the map rendering mode is a three-dimensional map rendering mode of a first-person perspective, and the geographical parameters of the map displayed on the terminal device screen obtained according to the resolution of the terminal device screen and the scale coefficient specifically include:
根据所述终端设备屏幕的分辨率中的水平像素值和所述比例尺系数,得到所述终端设备屏幕显示的地图的水平地理长度;According to the horizontal pixel value in the resolution of the screen of the terminal device and the scale factor, the horizontal geographical length of the map displayed on the screen of the terminal device is obtained;
获取预先设置的所述终端设备屏幕显示的地图的垂直地理长度,所述水平地理长度和所述垂直地理长度为所述终端设备屏幕显示的地图的地理参数。The preset vertical geographic length of the map displayed on the screen of the terminal device is acquired, and the horizontal geographic length and the vertical geographic length are geographic parameters of the map displayed on the screen of the terminal device.
优选的,所述终端设备的当前位置包括经度坐标和纬度坐标,所述根据所述地图的地理参数和所述终端设备的当前位置,获取与所述地图渲染模式对应的地图数据具体包括:Preferably, the current location of the terminal device includes longitude coordinates and latitude coordinates, and according to the geographical parameters of the map and the current location of the terminal device, acquiring map data corresponding to the map rendering mode specifically includes:
根据所述终端设备的当前位置中的经度坐标和所述地图的水平地理长度,得到所述终端设备显示的地图在水平方向的最小经度坐标和最大经度坐标;Obtaining the minimum longitude coordinate and the maximum longitude coordinate in the horizontal direction of the map displayed by the terminal device according to the longitude coordinate in the current position of the terminal device and the horizontal geographic length of the map;
将所述终端设备的当前位置中的纬度坐标确定为所述终端设备显示的地图在垂直方向的最小纬度坐标;determining the latitude coordinates in the current position of the terminal device as the minimum latitude coordinates in the vertical direction of the map displayed by the terminal device;
将所述最小纬度坐标平移所述垂直地理长度,得到所述终端设备显示的地图在垂直方向的最大纬度坐标;Translating the minimum latitude coordinate by the vertical geographical length to obtain the maximum latitude coordinate in the vertical direction of the map displayed by the terminal device;
获取地理坐标位置落入由所述最大经度坐标、最大纬度坐标、最小经度坐标和最小纬度坐标构成的地理范围内的地图数据。Map data whose geographic coordinate positions fall within the geographic range formed by the maximum longitude coordinate, maximum latitude coordinate, minimum longitude coordinate, and minimum latitude coordinate are acquired.
优选的,所述将获取到的所述地图数据按照所述地图渲染模式进行渲染具体包括:Preferably, rendering the acquired map data according to the map rendering mode specifically includes:
根据比例尺系数及所述地图渲染模式对应的视角、地图旋转角度,将所述地图数据从经纬度坐标系变换为所述地图渲染模式下的惯性坐标系的地图数据,所述惯性坐标系的坐标原点为所述终端设备的当前位置;Transform the map data from the latitude and longitude coordinate system into the map data of the inertial coordinate system in the map rendering mode according to the scale coefficient, the viewing angle corresponding to the map rendering mode, and the map rotation angle, and the coordinate origin of the inertial coordinate system is the current location of the terminal device;
以相机空间坐标系的任意一个坐标作为所述惯性坐标系新的坐标原点,将所述惯性坐标系下的地图数据平移到相机空间坐标系,得到相机空间坐标系下的地图数据;Taking any coordinate of the camera space coordinate system as the new coordinate origin of the inertial coordinate system, translating the map data in the inertial coordinate system to the camera space coordinate system to obtain the map data in the camera space coordinate system;
将所述相机空间坐标系下的地图数据投影到所述相机空间坐标系代表相机屏幕的坐标面,得到二维屏幕坐标系下的地图数据;Projecting the map data in the camera space coordinate system to the coordinate plane representing the camera screen in the camera space coordinate system to obtain the map data in the two-dimensional screen coordinate system;
通过光栅化过程对所述二维屏幕坐标系下的地图数据进行渲染。The map data in the two-dimensional screen coordinate system is rendered through a rasterization process.
优选的,所述根据比例尺系数及所述地图渲染模式对应的视角、地图旋转角度,将所述地图数据从经纬度坐标系变换为所述地图渲染模式下的惯性坐标系的地图数据具体包括:Preferably, the transformation of the map data from the longitude-latitude coordinate system into the map data of the inertial coordinate system in the map rendering mode according to the scale coefficient, the viewing angle corresponding to the map rendering mode, and the map rotation angle specifically includes:
利用预先设定的坐标变换矩阵M1将所述地图数据从经纬度坐标系变换为所述地图渲染模式下的惯性坐标系的地图数据;Using the preset coordinate transformation matrix M1 to transform the map data from the latitude - longitude coordinate system into the map data of the inertial coordinate system in the map rendering mode;
其中,所述M1=Mt*S1*R1;Wherein, said M 1 =M t *S 1 *R 1 ;
其中,所述矩阵中左上角的3*3的矩阵是单位矩阵;(-x0,-y0,-z0)是平移坐标,指示所述终端设备的当前位置,x0代表水平方向的平移分量,y0代表垂直方向的平移分量,z0代表竖直方向的平移分量; Wherein, the 3*3 matrix in the upper left corner of the matrix is an identity matrix; (-x 0 , -y 0 , -z 0 ) are translation coordinates, indicating the current position of the terminal device, and x 0 represents the horizontal direction The translation component, y 0 represents the translation component in the vertical direction, and z 0 represents the translation component in the vertical direction;
其中,所述矩阵中左上角的3*3矩阵是缩放矩阵,代表三维空间中各轴的放大系数,Sx1为所述地图比例尺在水平方向的比例尺系数;Sy1为所述地图比例尺在垂直方向的比例尺系数;Sz1为所述地图比例尺在竖直方向的比例尺系数; Wherein, the 3*3 matrix in the upper left corner of the matrix is a scaling matrix, which represents the magnification factor of each axis in the three-dimensional space, and S x1 is the scale coefficient of the map scale in the horizontal direction; S y1 is the scale coefficient of the map scale in the vertical direction. The scale coefficient of direction; Sz1 is the scale coefficient of described map scale in vertical direction;
其中,所述矩阵中左上角的3*3矩阵代表旋转矩阵,(rxx1,rxy1,rxz1)代表所述视角,(ryx1,ryy1,ryz1)代表所述地图旋转角度,(rzx1,rzy1,rzz1)代表地面转角度。 Wherein, the 3*3 matrix in the upper left corner of the matrix represents the rotation matrix, (rx x1 , rx y1 , rx z1 ) represents the viewing angle, (ry x1 , ry y1 , ry z1 ) represents the rotation angle of the map, ( rz x1 , rz y1 , rz z1 ) represent the ground rotation angle.
优选的,所述以相机空间坐标系的任意一个坐标作为所述惯性坐标系新的坐标原点,将所述惯性坐标系下的地图数据平移到相机空间坐标系,得到相机空间坐标系下的地图数据具体包括:Preferably, any coordinate of the camera space coordinate system is used as the new coordinate origin of the inertial coordinate system, and the map data in the inertial coordinate system is translated to the camera space coordinate system to obtain a map in the camera space coordinate system Specifically, the data includes:
利用预先设置的平移坐标系M0将所述惯性坐标系下的地图数据平移到相机空间坐标系,得到相机空间坐标系下的地图数据;Using the preset translation coordinate system M to translate the map data under the inertial coordinate system to the camera space coordinate system, obtain the map data under the camera space coordinate system ;
其中,所述所述矩阵中左上角的3*3的矩阵是单位矩阵;(xp0,yp0,zp0)是所述相机空间坐标系的任意一个坐标,xp0代表水平方向的平移分量,yp0代表垂直方向的平移分量,zp0代表竖直方向的平移分量。Among them, the The 3*3 matrix in the upper left corner of the matrix is the identity matrix; (x p0 , y p0 , z p0 ) is any coordinate of the camera space coordinate system, x p0 represents the translation component in the horizontal direction, and y p0 represents The translation component in the vertical direction, z p0 represents the translation component in the vertical direction.
一种地图渲染装置,包括:A map rendering device, comprising:
模式参数获取单元,用于获取地图渲染模式和地图渲染参数;A mode parameter acquisition unit, configured to acquire a map rendering mode and map rendering parameters;
位置获取单元,用于获取终端设备的当前位置;a location acquisition unit, configured to acquire the current location of the terminal device;
地图数据获取单元,用于根据所述地图渲染参数和所述终端设备的当前位置,获取与所述地图渲染模式对应的地图数据;a map data acquiring unit, configured to acquire map data corresponding to the map rendering mode according to the map rendering parameters and the current location of the terminal device;
地图渲染单元,用于将获取到的所述地图数据按照所述地图渲染模式进行渲染。A map rendering unit, configured to render the acquired map data according to the map rendering mode.
优选的,所述地图渲染参数至少包括地图比例尺、终端设备屏幕的分辨率和像素密度,所述地图数据获取单元包括:Preferably, the map rendering parameters include at least map scale, resolution and pixel density of the terminal device screen, and the map data acquisition unit includes:
地理参数获取单元,用于根据所述地图比例尺、所述终端设备屏幕的分辨率和像素密度,获取所述终端设备屏幕显示的地图的地理参数;A geographic parameter acquisition unit, configured to acquire geographic parameters of the map displayed on the terminal device screen according to the map scale, the resolution and pixel density of the terminal device screen;
地图数据获取子单元,用于根据所述地图的地理参数和所述终端设备的当前位置,获取与所述地图渲染模式对应的地图数据。The map data acquisition subunit is configured to acquire map data corresponding to the map rendering mode according to the geographic parameters of the map and the current location of the terminal device.
优选的,所述地理参数获取单元包括:Preferably, the geographic parameter acquisition unit includes:
比例尺系数计算单元,用于利用所述地图比例尺和所述终端设备屏幕的像素密度,得到比例尺系数;a scale coefficient calculation unit, configured to use the map scale and the pixel density of the terminal device screen to obtain a scale coefficient;
地理参数获取子单元,用于根据所述终端设备屏幕的分辨率和所述比例尺系数,得到所述终端设备屏幕显示的地图的地理参数。The geographic parameter acquisition subunit is configured to obtain the geographic parameters of the map displayed on the screen of the terminal device according to the resolution of the screen of the terminal device and the scale factor.
优选的,所述地图渲染模式为第一人称视角的三维地图渲染模式,所述地理参数获取子单元包括:Preferably, the map rendering mode is a three-dimensional map rendering mode of a first-person perspective, and the geographic parameter acquisition subunit includes:
水平地理长度计算单元,用于根据所述终端设备屏幕的分辨率中的水平像素值和所述比例尺系数,得到所述终端设备屏幕显示的地图的水平地理长度;A horizontal geographical length calculation unit, configured to obtain the horizontal geographical length of the map displayed on the terminal device screen according to the horizontal pixel value in the resolution of the terminal device screen and the scale factor;
地理参数确定单元,用于获取预先设置的所述终端设备屏幕显示的地图的垂直地理长度,所述水平地理长度和所述垂直地理长度为所述终端设备屏幕显示的地图的地理参数。The geographic parameter determination unit is configured to obtain a preset vertical geographic length of the map displayed on the screen of the terminal device, and the horizontal geographic length and the vertical geographic length are geographical parameters of the map displayed on the screen of the terminal device.
优选的,所述终端设备的当前位置包括经度坐标和纬度坐标,所述地图数据获取子单元包括:Preferably, the current location of the terminal device includes longitude coordinates and latitude coordinates, and the map data acquisition subunit includes:
计算单元,用于根据所述终端设备的当前位置中的经度坐标和所述地图的水平地理长度,得到所述终端设备显示的地图在水平方向的最小经度坐标和最大经度坐标;A calculation unit, configured to obtain the minimum longitude coordinate and the maximum longitude coordinate in the horizontal direction of the map displayed by the terminal device according to the longitude coordinates in the current location of the terminal device and the horizontal geographic length of the map;
确定单元,用于将所述终端设备的当前位置中的纬度坐标确定为所述终端设备显示的地图在垂直方向的最小纬度坐标;a determining unit, configured to determine the latitude coordinates in the current position of the terminal device as the minimum latitude coordinates in the vertical direction of the map displayed by the terminal device;
平移单元,用于将所述最小纬度坐标平移所述垂直地理长度,得到所述终端设备显示的地图在垂直方向的最大纬度坐标;a translation unit, configured to translate the minimum latitude coordinate by the vertical geographic length to obtain the maximum latitude coordinate in the vertical direction of the map displayed by the terminal device;
获取单元,用于获取地理坐标位置落入由所述最大经度坐标、最大纬度坐标、最小经度坐标和最小纬度坐标构成的地理范围内的地图数据。An acquiring unit, configured to acquire map data whose geographic coordinates fall within the geographic range formed by the maximum longitude coordinate, maximum latitude coordinate, minimum longitude coordinate, and minimum latitude coordinate.
优选的,所述地图渲染单元包括:Preferably, the map rendering unit includes:
坐标系变换单元,用于根据比例尺系数及所述地图渲染模式对应的视角、地图旋转角度,将所述地图数据从经纬度坐标系变换为所述地图渲染模式下的惯性坐标系的地图数据,所述惯性坐标系的坐标原点为所述终端设备的当前位置;A coordinate system transformation unit, configured to transform the map data from the longitude-latitude coordinate system into the map data of the inertial coordinate system in the map rendering mode according to the scale coefficient, the viewing angle corresponding to the map rendering mode, and the map rotation angle, so that The coordinate origin of the inertial coordinate system is the current position of the terminal device;
坐标系平移单元,用于以相机空间坐标系的任意一个坐标作为所述惯性坐标系新的坐标原点,将所述惯性坐标系下的地图数据平移到相机空间坐标系,得到相机空间坐标系下的地图数据;The coordinate system translation unit is used to take any coordinate of the camera space coordinate system as the new coordinate origin of the inertial coordinate system, and translate the map data in the inertial coordinate system to the camera space coordinate system to obtain the coordinate system in the camera space coordinate system. map data;
投影单元,用于将所述相机空间坐标系下的地图数据投影到所述相机空间坐标系代表相机屏幕的坐标面,得到二维屏幕坐标系下的地图数据;A projection unit, configured to project the map data in the camera space coordinate system to the coordinate plane representing the camera screen in the camera space coordinate system, to obtain the map data in the two-dimensional screen coordinate system;
光栅单元,用于通过光栅化过程对所述二维屏幕坐标系下的地图数据进行渲染。The raster unit is used to render the map data in the two-dimensional screen coordinate system through a rasterization process.
本申请提供一种地图渲染方法及装置,通过获取地图渲染模式和地图渲染参数;获取终端设备的当前位置;并根据地图渲染参数和终端设备的当前位置,获取与地图渲染模式对应的地图数据;进而将获取到的地图数据按照地图渲染模式进行渲染的方式,保证地图渲染结果按照用户需要的地图渲染模式进行渲染,以缩小地图渲染结果对用户的代入感与用户的实际驾车体验之间的差距。The present application provides a map rendering method and device, by obtaining the map rendering mode and map rendering parameters; obtaining the current position of the terminal device; and obtaining map data corresponding to the map rendering mode according to the map rendering parameters and the current position of the terminal device; Then, the obtained map data is rendered according to the map rendering mode, so as to ensure that the map rendering result is rendered according to the map rendering mode required by the user, so as to narrow the gap between the user's sense of substitution of the map rendering result and the user's actual driving experience .
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention, and those skilled in the art can also obtain other drawings according to the provided drawings without creative work.
图1为本申请实施例提供的一种鸟瞰模式三维地图的地图渲染效果图;FIG. 1 is a map rendering effect diagram of a three-dimensional map in a bird's-eye view mode provided by an embodiment of the present application;
图2为本申请实施例提供的一种地图渲染方法流程图;FIG. 2 is a flow chart of a map rendering method provided by an embodiment of the present application;
图3为本申请实施例提供的一种根据地图渲染参数和终端设备的当前位置,获取与地图渲染模式对应的地图数据的方法流程图;FIG. 3 is a flowchart of a method for acquiring map data corresponding to a map rendering mode according to map rendering parameters and a current location of a terminal device provided by an embodiment of the present application;
图4为本申请实施例提供的一种根据地图比例尺、终端设备屏幕的分辨率和像素密度,获取终端设备屏幕显示的地图的地理参数的方法流程图;FIG. 4 is a flow chart of a method for obtaining geographic parameters of a map displayed on a terminal device screen according to the map scale, the resolution and pixel density of the terminal device screen provided by an embodiment of the present application;
图5为本申请实施例提供的一种根据终端设备屏幕的分辨率和比例尺系数,得到终端设备屏幕显示的地图的地理参数的方法流程图;FIG. 5 is a flow chart of a method for obtaining geographical parameters of a map displayed on a terminal device screen according to the resolution and scale coefficient of the terminal device screen provided by an embodiment of the present application;
图6为本申请实施例提供的一种根据地图的地理参数和终端设备的当前位置,获取与地图渲染模式对应的地图数据的方法流程图;FIG. 6 is a flow chart of a method for acquiring map data corresponding to a map rendering mode according to geographical parameters of a map and a current location of a terminal device provided by an embodiment of the present application;
图7为本申请实施例提供的一种根据地图的地理参数和终端设备的当前位置,获取与地图渲染模式对应的地图数据的坐标原理图;FIG. 7 is a schematic diagram of coordinates for obtaining map data corresponding to a map rendering mode according to geographic parameters of a map and a current location of a terminal device provided by an embodiment of the present application;
图8为本申请实施例提供的一种将获取到的地图数据按照地图渲染模式进行渲染的方法流程图;FIG. 8 is a flow chart of a method for rendering acquired map data according to a map rendering mode provided by an embodiment of the present application;
图9为本申请实施例提供的一种第一人称视角模式三维地图的地图渲染效果图;FIG. 9 is a map rendering effect diagram of a three-dimensional map in first-person perspective mode provided by an embodiment of the present application;
图10为本申请实施例提供的一种地图渲染装置的结构示意图;FIG. 10 is a schematic structural diagram of a map rendering device provided by an embodiment of the present application;
图11为本申请实施例提供的一种地图数据获取单元的详细结构示意图;FIG. 11 is a schematic diagram of a detailed structure of a map data acquisition unit provided by an embodiment of the present application;
图12为本申请实施例提供的一种地理参数获取单元的详细结构示意图;FIG. 12 is a schematic diagram of a detailed structure of a geographic parameter acquisition unit provided in an embodiment of the present application;
图13为本申请实施例提供的一种地理参数获取子单元的详细结构示意图;FIG. 13 is a schematic diagram of a detailed structure of a geographic parameter acquisition subunit provided in an embodiment of the present application;
图14为本申请实施例提供的一种地图数据获取子单元的详细结构示意图;FIG. 14 is a schematic diagram of a detailed structure of a map data acquisition subunit provided in an embodiment of the present application;
图15为本申请实施例提供的一种地图渲染单元的详细结构示意图。FIG. 15 is a schematic diagram of a detailed structure of a map rendering unit provided by an embodiment of the present application.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
图2为本申请实施例提供的一种地图渲染方法流程图。FIG. 2 is a flow chart of a map rendering method provided by an embodiment of the present application.
如图2所示,该方法包括:As shown in Figure 2, the method includes:
S201、获取地图渲染模式和地图渲染参数;S201. Obtain a map rendering mode and map rendering parameters;
在实际应用中,获取地图渲染模式的方法包括:In practical applications, the methods for obtaining the map rendering mode include:
接收地图渲染请求,地图渲染请求中携带地图渲染模式;或者,读取预先设置的地图渲染模式。通常情况下,电子地图软件可以提供给用户多种地图渲染模式进行选择,比如,2D视角模式、3D视角模式,其中3D视角模式具体可以是鸟瞰模式或第一人称视角模式,地图渲染请求中携带的地图渲染模式或者预先设置的地图渲染模式,是用户从电子地图软件提供给用户的多种地图渲染模式中选择的一种,比如第一人称视角模式。Receive a map rendering request, which carries a map rendering mode; or, read a preset map rendering mode. Usually, electronic map software can provide users with multiple map rendering modes to choose from, such as 2D perspective mode and 3D perspective mode. The 3D perspective mode can specifically be a bird's-eye view mode or a first-person perspective mode. The map rendering request carried The map rendering mode or the preset map rendering mode is one selected by the user from various map rendering modes provided by the electronic map software, such as the first-person perspective mode.
上述获取地图渲染模式的具体应用场景可以是,电子地图软件启动时,读取预先设置的地图渲染模式;使用电子地图软件的过程中,如果用户切换了地图渲染模式,则接收地图渲染请求,该地图渲染请求中携带了切换后的地图渲染模式。比如,使用电子地图软件的过程中,用户将地图渲染模式从鸟瞰模式切换到第一人称视角模式,则接收的地图渲染请求,该地图渲染请求携带的地图渲染模式为第一人称视角模式。The specific application scenario for obtaining the above map rendering mode may be that when the electronic map software is started, the preset map rendering mode is read; during the process of using the electronic map software, if the user switches the map rendering mode, the map rendering request is received. The switched map rendering mode is carried in the map rendering request. For example, in the process of using the electronic map software, the user switches the map rendering mode from the bird's-eye view mode to the first-person perspective mode, and the map rendering request is received, and the map rendering mode carried in the map rendering request is the first-person perspective mode.
以上举例仅为更清楚地对本申请实施例进行说明,本领域技术人员可根据产品需求,选择获取地图渲染模式的方法以及相应方法的具体应用场景,以上举例不应视为对本发明实施方式的限制。The above examples are only to illustrate the embodiments of the present application more clearly. Those skilled in the art can choose the method of obtaining the map rendering mode and the specific application scenarios of the corresponding methods according to the product requirements. The above examples should not be regarded as limitations on the implementation of the present invention. .
S202、获取终端设备的当前位置;S202. Obtain the current location of the terminal device;
在实际应用中,终端设备为手机、平板电脑等。In practical applications, the terminal devices are mobile phones, tablet computers, and the like.
以上举例仅为更清楚地对本申请实施例进行说明,本领域技术人员可根据产品需求,选择本申请实施例提供的一种地图渲染方法具体应用的终端设备的表现形式,以上举例不应视为对本发明实施方式的限制。The above example is only to illustrate the embodiment of the application more clearly. Those skilled in the art can choose the form of expression of the terminal device for the specific application of the map rendering method provided by the embodiment of the application according to the product requirements. The above examples should not be regarded as Limitations on Embodiments of the Invention.
S203、根据地图渲染参数和终端设备的当前位置,获取与地图渲染模式对应的地图数据;S203. Acquire map data corresponding to the map rendering mode according to the map rendering parameters and the current location of the terminal device;
在本申请实施例中,优选的,根据地图渲染参数和终端设备的当前位置,获取到的与地图渲染模式对应的地图数据即为待被渲染的地图数据。In the embodiment of the present application, preferably, according to the map rendering parameters and the current location of the terminal device, the acquired map data corresponding to the map rendering mode is the map data to be rendered.
S204、将获取到的地图数据按照地图渲染模式进行渲染。S204. Render the acquired map data according to the map rendering mode.
在本申请实施例中,优选的,当获取到与地图渲染模式对应的地图数据后,需根据地图渲染模式对获取到的地图数据进行渲染,以得到地图渲染结果,该地图渲染结果也就是终端设备屏幕展示的电子地图。In the embodiment of the present application, preferably, after acquiring the map data corresponding to the map rendering mode, the acquired map data needs to be rendered according to the map rendering mode to obtain a map rendering result, which is the terminal The electronic map displayed on the device screen.
为了更加清楚的对本申请实施例提供的一种地图渲染方法进行阐述,现对本申请实施例提供的一种地图渲染方法中的根据地图渲染参数和终端设备的当前位置,获取与地图渲染模式对应的地图数据的过程进行详细介绍。In order to more clearly describe a map rendering method provided by the embodiment of the present application, the map rendering method corresponding to the map rendering mode is acquired according to the map rendering parameters and the current location of the terminal device in the map rendering method provided by the embodiment of the present application. The process of map data is described in detail.
图3为本申请实施例提供的一种根据地图渲染参数和终端设备的当前位置,获取与地图渲染模式对应的地图数据的方法流程图,在该实施例中,地图渲染参数包括地图比例尺、终端设备屏幕的分辨率和/或终端设备屏幕的像素密度,该方法包括:Fig. 3 is a flow chart of a method for obtaining map data corresponding to the map rendering mode according to the map rendering parameters and the current position of the terminal device provided by the embodiment of the present application. In this embodiment, the map rendering parameters include map scale, terminal device The resolution of the device screen and/or the pixel density of the terminal device screen, the method includes:
S301、根据地图比例尺、终端设备屏幕的分辨率和像素密度,获取终端设备屏幕显示的地图的地理参数;S301. According to the map scale, the resolution and the pixel density of the screen of the terminal device, obtain the geographic parameters of the map displayed on the screen of the terminal device;
S302、根据地图的地理参数和终端设备的当前位置,获取与地图渲染模式对应的地图数据。S302. Acquire map data corresponding to the map rendering mode according to the geographic parameters of the map and the current location of the terminal device.
图3所示获取与地图渲染模式对应的地图数据的方法,仅为本申请提供的一种优选实施例,任何在上述方法基础上的变形,比如增加地图渲染参数的种类或者减少地图渲染参数种类等,应视为本申请公开技术方案已给出相应技术启示。The method for obtaining map data corresponding to the map rendering mode shown in FIG. 3 is only a preferred embodiment provided by this application. Any deformation based on the above method, such as increasing the types of map rendering parameters or reducing the types of map rendering parameters etc., it should be considered that the technical solution disclosed in this application has given corresponding technical inspiration.
现对本申请实施例提供的一种地图渲染方法中的根据地图比例尺、终端设备屏幕的分辨率和像素密度,获取终端设备屏幕显示的地图的地理参数的过程进行详细介绍。The process of obtaining geographical parameters of the map displayed on the screen of the terminal device according to the map scale, resolution and pixel density of the screen of the terminal device in a map rendering method provided by the embodiment of the present application is now described in detail.
图4为本申请实施例提供的一种根据地图比例尺、终端设备屏幕的分辨率和像素密度,获取终端设备屏幕显示的地图的地理参数的方法流程图。FIG. 4 is a flow chart of a method for acquiring geographic parameters of a map displayed on a terminal device screen according to the map scale, the resolution and pixel density of the terminal device screen provided by an embodiment of the present application.
如图4所示,该方法包括:As shown in Figure 4, the method includes:
S401、利用地图比例尺和终端设备屏幕的像素密度,得到比例尺系数;S401. Obtain a scale coefficient by using the map scale and the pixel density of the screen of the terminal device;
在本申请实施例中,优选的,用地图比例尺的倒数除以终端设备屏幕的像素密度,得到终端设备屏幕的比例尺系数,即,将地图比例尺的倒数作为除数,以及,将终端设备屏幕的像素密度作为被除数,做除法运算,得到终端设备屏幕的比例尺系数。In the embodiment of the present application, preferably, the reciprocal of the map scale is divided by the pixel density of the terminal device screen to obtain the scale coefficient of the terminal device screen, that is, the reciprocal of the map scale is used as the divisor, and the pixel density of the terminal device screen is The density is used as the dividend, and the division operation is performed to obtain the scale factor of the terminal device screen.
以地图比例尺为1:1KM,终端设备屏幕的像素密度为25d/cm为例进行说明。其中,地图比例尺为1:1KM,表示的是显示屏1cm(厘米)的长度等于实际1KM,即1千米的实地距离,终端设备屏幕的像素密度为25d/cm表示显示屏上1cm等于25d(像素),那么,显示屏每像素能显示的实地距离为1000m/25d=40m/d(米/像素),即比例尺系数为40。也因此,在本申请实施例中,比例尺系数为40表示的是终端设备屏幕的每像素对应40m的实地距离。Take the map scale as 1:1KM and the pixel density of the terminal device screen as 25d/cm as an example for illustration. Among them, the map scale is 1:1KM, which means that the length of 1cm (centimeter) of the display screen is equal to the actual 1KM, that is, the actual distance of 1 kilometer, and the pixel density of the terminal device screen is 25d/cm, which means that 1cm on the display screen is equal to 25d( pixel), then, the actual distance that can be displayed per pixel of the display screen is 1000m/25d=40m/d (meter/pixel), that is, the scale factor is 40. Therefore, in the embodiment of the present application, a scale factor of 40 means that each pixel of the screen of the terminal device corresponds to a solid distance of 40 m.
S402、根据终端设备屏幕的分辨率和比例尺系数,得到终端设备屏幕显示的地图的地理参数。S402. According to the resolution and the scale factor of the screen of the terminal device, the geographic parameters of the map displayed on the screen of the terminal device are obtained.
在本申请实施例中,优选的,当地图渲染模式为第一人称视角的三维地图渲染模式时,本申请实施例中,优选的,比例尺系数包括三个分量,分别为竖直方向的分量、垂直方向的分量、水平方向的分量,且这三个分量的大小相同。本申请实施例提供的一种根据终端设备屏幕的分辨率和比例尺系数,得到终端设备屏幕显示的地图的地理参数的方法请参见图5,如图5所示,该方法包括:In the embodiment of the present application, preferably, when the map rendering mode is a three-dimensional map rendering mode of the first-person perspective, in the embodiment of the present application, preferably, the scale coefficient includes three components, which are the vertical component, the vertical The component of the direction, the component of the horizontal direction, and the magnitude of these three components are the same. For a method of obtaining geographical parameters of a map displayed on a terminal device screen according to the resolution and scale coefficient of the terminal device screen provided by the embodiment of the present application, please refer to FIG. 5. As shown in FIG. 5, the method includes:
S501、根据终端设备屏幕的分辨率中的水平像素值和比例尺系数,得到终端设备屏幕显示的地图的水平地理长度;S501. Obtain the horizontal geographical length of the map displayed on the screen of the terminal device according to the horizontal pixel value and the scale factor in the resolution of the screen of the terminal device;
在本申请实施例中,优选的,终端设备屏幕的分辨率中包括终端设备屏幕的水平像素值。In the embodiment of the present application, preferably, the resolution of the screen of the terminal device includes the horizontal pixel value of the screen of the terminal device.
以上仅仅是本申请实施例的优选方式,发明人可根据自己的需求任意设置终端设备屏幕的分辨率中包括的内容,如终端设备屏幕的分辨率中包括终端设备屏幕的水平像素值和竖直像素值,在此不做限定。The above is only the preferred mode of the embodiment of the present application. The inventor can arbitrarily set the content included in the resolution of the terminal device screen according to his own needs. For example, the resolution of the terminal device screen includes the horizontal pixel value and vertical pixel value of the terminal device screen. The pixel value is not limited here.
在本申请实施例中,优选的,当终端设备屏幕的分辨率中包括水平像素值时,利用该水平像素值和比例尺系数可得到终端设备屏幕显示的地图的水平地理长度。In the embodiment of the present application, preferably, when the resolution of the screen of the terminal device includes a horizontal pixel value, the horizontal geographic length of the map displayed on the screen of the terminal device can be obtained by using the horizontal pixel value and the scale factor.
在本申请实施例中,优选的,根据终端设备屏幕的分辨率中的水平像素值和比例尺系数,得到终端设备屏幕显示的地图的水平地理长度的过程包括:利用终端设备屏幕的分辨率中的水平像素值乘以比例尺系数,进而将乘积结果作为终端设备屏幕显示的地图的水平地理长度。In the embodiment of the present application, preferably, according to the horizontal pixel value and the scale coefficient in the resolution of the screen of the terminal device, the process of obtaining the horizontal geographical length of the map displayed on the screen of the terminal device includes: using the horizontal pixel value in the resolution of the screen of the terminal device The horizontal pixel value is multiplied by the scale factor, and the product result is used as the horizontal geographical length of the map displayed on the terminal device screen.
在本申请实施例中,优选的,利用终端设备屏幕的分辨率中的水平像素值乘以比例尺系数,将乘积结果作为终端设备屏幕显示的地图的水平地理长度的过程包括:获取比例尺系数在水平方向的分量的水平分量值,利用终端设备屏幕的分辨率中的水平像素值乘以获取到的水平分量值,将乘积结果作为终端设备屏幕显示的地图的水平地理长度。In the embodiment of the present application, preferably, the process of multiplying the horizontal pixel value in the resolution of the screen of the terminal device by the scale coefficient, and using the product result as the horizontal geographical length of the map displayed on the screen of the terminal device includes: obtaining the scale coefficient in the horizontal For the horizontal component value of the direction component, the obtained horizontal component value is multiplied by the horizontal pixel value in the resolution of the terminal device screen, and the product result is used as the horizontal geographical length of the map displayed on the terminal device screen.
S502、获取预先设置的终端设备屏幕显示的地图的垂直地理长度,水平地理长度和垂直地理长度为终端设备屏幕显示的地图的地理参数。S502. Obtain a preset vertical geographical length of the map displayed on the screen of the terminal device, where the horizontal geographical length and the vertical geographical length are geographical parameters of the map displayed on the screen of the terminal device.
在本申请实施例中,优选的,预先设置有终端设备屏幕显示的地图的垂直地理长度。当在根据终端设备屏幕的分辨率和比例尺系数,得到终端设备屏幕显示的地图的地理参数的过程中,计算得到的终端设备屏幕显示的地图的水平地理长度后,则直接获取该预先设置的终端设备屏幕显示的地图的垂直地理长度,进而将计算得到的水平地理长度和获取到的垂直地理长度作为终端设备屏幕显示的地图的地理参数。In the embodiment of the present application, preferably, the vertical geographic length of the map displayed on the screen of the terminal device is preset. In the process of obtaining the geographical parameters of the map displayed on the terminal device screen according to the resolution and scale coefficient of the terminal device screen, after calculating the horizontal geographical length of the map displayed on the terminal device screen, the preset terminal The vertical geographical length of the map displayed on the screen of the device, and then the calculated horizontal geographical length and the obtained vertical geographical length are used as geographical parameters of the map displayed on the screen of the terminal device.
在本申请实施例中,优选的,发明人可根据自己的需求任意设置预先设置的垂直地理长度的具体数值,在此不做限定。In the embodiment of the present application, preferably, the inventor can arbitrarily set the specific value of the preset vertical geographic length according to his own needs, which is not limited here.
进一步的,为了更加清楚的对本申请实施例提供的一种地图渲染方法进行阐述,现对本申请实施例提供的一种地图渲染方法中的根据地图的地理参数和终端设备的当前位置,获取与地图渲染模式对应的地图数据的过程进行详细介绍。Further, in order to more clearly explain a map rendering method provided by the embodiment of the present application, the map rendering method according to the geographic parameters of the map and the current location of the terminal device in the map rendering method provided by the embodiment of the present application is now described. The process of rendering the map data corresponding to the mode is described in detail.
图6为本申请实施例提供的一种根据地图的地理参数和终端设备的当前位置,获取与地图渲染模式对应的地图数据的方法流程图,图7为本申请实施例提供的一种根据地图的地理参数和终端设备的当前位置,获取与地图渲染模式对应的地图数据的坐标原理图。在该实施例中,终端设备的当前位置包括经度坐标和纬度坐标,结合图6和图7可知,该方法包括:Fig. 6 is a flow chart of a method for obtaining map data corresponding to the map rendering mode according to the geographical parameters of the map and the current location of the terminal device provided by the embodiment of the present application. Fig. 7 is a flow chart of a method according to the map The geographic parameters of the terminal device and the current location of the terminal device are used to obtain the coordinate schematic diagram of the map data corresponding to the map rendering mode. In this embodiment, the current location of the terminal device includes longitude coordinates and latitude coordinates. It can be seen from FIG. 6 and FIG. 7 that the method includes:
S601、根据终端设备的当前位置中的经度坐标和地图的水平地理长度,得到终端设备显示的地图在水平方向的最小经度坐标和最大经度坐标;S601. According to the longitude coordinates in the current position of the terminal device and the horizontal geographical length of the map, obtain the minimum longitude coordinate and the maximum longitude coordinate in the horizontal direction of the map displayed by the terminal device;
在本申请实施例中,优选的,当终端设备的当前位置包括终端设备的当前位置的经度坐标和纬度坐标时,本申请实施例提供的一种根据地图的地理参数和终端设备的当前位置,获取与地图渲染模式对应的地图数据的方法,首先需要根据终端设备的当前位置中的经度坐标和地图的水平地理长度,得到终端设备显示的地图在水平方向的最小经度坐标和最大经度坐标。In the embodiment of the present application, preferably, when the current location of the terminal device includes the longitude coordinates and latitude coordinates of the current location of the terminal device, the embodiment of the present application provides a geographical parameter based on the map and the current location of the terminal device, The method for obtaining the map data corresponding to the map rendering mode first needs to obtain the minimum longitude coordinate and the maximum longitude coordinate in the horizontal direction of the map displayed by the terminal device according to the longitude coordinate in the current position of the terminal device and the horizontal geographic length of the map.
参见图7,其中,71表示终端设备的当前位置,72表示终端设备屏幕空间,73中的平行四边形表示地图的地理参数,平行四边形的一边L表示预先设置的终端设备屏幕显示的地图的垂直地理长度,平行四边形的另一边W表示终端设备屏幕显示的地图的水平地理长度。Referring to Fig. 7, wherein, 71 represents the current position of the terminal device, 72 represents the screen space of the terminal device, the parallelogram in 73 represents the geographical parameters of the map, and one side L of the parallelogram represents the preset vertical geographical position of the map displayed on the screen of the terminal device Length, the other side W of the parallelogram represents the horizontal geographical length of the map displayed on the screen of the terminal device.
结合图7可知,在本申请实施例中,优选的,根据终端设备的当前位置中的经度坐标和地图的水平地理长度,得到终端设备显示的地图在水平方向的最小经度坐标和最大经度坐标的方法包括:将终端设备的经度坐标作为边长W的中心点,将终端设备的经度坐标沿X轴方向平移W/2的水平地理长度,得到终端设备显示的地图在水平方向的最大经度坐标;将终端设备的经度坐标作为边长W的中心点,将终端设备的经度坐标沿X轴反方向平移W/2的水平地理长度,得到终端设备显示的地图在水平方向的最小经度坐标。It can be seen from FIG. 7 that in the embodiment of the present application, preferably, according to the longitude coordinates in the current position of the terminal device and the horizontal geographic length of the map, the minimum longitude coordinates and the maximum longitude coordinates of the map displayed by the terminal device in the horizontal direction are obtained. The method includes: taking the longitude coordinate of the terminal device as the center point of the side length W, translating the longitude coordinate of the terminal device along the X-axis direction by a horizontal geographical length of W/2, and obtaining the maximum longitude coordinate of the map displayed by the terminal device in the horizontal direction; The longitude coordinate of the terminal device is taken as the center point of the side length W, and the longitude coordinate of the terminal device is translated along the X-axis in the opposite direction by the horizontal geographical length of W/2 to obtain the minimum longitude coordinate of the map displayed by the terminal device in the horizontal direction.
S602、将终端设备的当前位置中的纬度坐标确定为终端设备显示的地图在垂直方向的最小纬度坐标;S602. Determine the latitude coordinates in the current position of the terminal device as the minimum latitude coordinates in the vertical direction of the map displayed by the terminal device;
S603、将最小纬度坐标平移垂直地理长度,得到终端设备显示的地图在垂直方向的最大纬度坐标;S603. Translate the minimum latitude coordinate to the vertical geographic length to obtain the maximum latitude coordinate in the vertical direction of the map displayed by the terminal device;
结合图7可知,步骤S602和步骤S603的具体实现过程包括:将终端设备的当前位置中的纬度坐标确定为终端设备显示的地图在垂直方向的最小纬度坐标,将终端设备的当前位置中的纬度坐标沿Z轴方向平移L的水平地理长度,得到终端设备显示的地图在垂直方向的最大纬度坐标。It can be seen from FIG. 7 that the specific implementation process of steps S602 and S603 includes: determining the latitude coordinates in the current position of the terminal device as the minimum latitude coordinates in the vertical direction of the map displayed by the terminal device, and setting the latitude coordinates in the current position of the terminal device The coordinates are translated along the Z-axis direction by the horizontal geographical length of L to obtain the maximum latitude coordinates in the vertical direction of the map displayed on the terminal device.
S604、获取地理坐标位置落入由最大经度坐标、最大纬度坐标、最小经度坐标和最小纬度坐标构成的地理范围内的地图数据。S604. Acquire the map data whose geographic coordinates fall within the geographic range formed by the maximum longitude coordinate, maximum latitude coordinate, minimum longitude coordinate, and minimum latitude coordinate.
在本申请实施例中,优选的,获取地理坐标位置落入由最大经度坐标、最大纬度坐标、最小经度坐标和最小纬度坐标构成的地理范围内的地图数据,该获取到的地图数据即为根据地图的地理参数和终端设备的当前位置,获取到的与地图渲染模式对应的地图数据。In the embodiment of the present application, preferably, the map data whose geographical coordinate position falls within the geographical range formed by the maximum longitude coordinate, maximum latitude coordinate, minimum longitude coordinate and minimum latitude coordinate is obtained, and the obtained map data is obtained according to The geographic parameters of the map and the current location of the terminal device, and the acquired map data corresponding to the map rendering mode.
进一步的,为了更加清楚的对本申请实施例提供的一种地图渲染方法进行阐述,现对本申请实施例提供的一种地图渲染方法中的将获取到的地图数据按照地图渲染模式进行渲染的过程进行详细介绍。Further, in order to explain the map rendering method provided in the embodiment of the present application more clearly, the process of rendering the acquired map data according to the map rendering mode in the map rendering method provided in the embodiment of the present application is now carried out Details.
图8为本申请实施例提供的一种将获取到的地图数据按照地图渲染模式进行渲染的方法流程图。FIG. 8 is a flowchart of a method for rendering acquired map data according to a map rendering mode provided by an embodiment of the present application.
如图8所示,该方法包括:As shown in Figure 8, the method includes:
S801、根据比例尺系数及地图渲染模式对应的视角、地图旋转角度,将地图数据从经纬度坐标系变换为地图渲染模式下的惯性坐标系的地图数据,惯性坐标系的坐标原点为终端设备的当前位置;S801. Transform the map data from the latitude-longitude coordinate system into the map data of the inertial coordinate system in the map rendering mode according to the scale coefficient, the viewing angle corresponding to the map rendering mode, and the map rotation angle. The coordinate origin of the inertial coordinate system is the current position of the terminal device. ;
在本申请实施例中,优选的,地图渲染模式对应的视角是由地图渲染模式预先设置的,其指示视线与水平面的夹角,也即俯仰角。In the embodiment of the present application, preferably, the viewing angle corresponding to the map rendering mode is preset by the map rendering mode, which indicates the angle between the line of sight and the horizontal plane, that is, the pitch angle.
以上仅仅是本申请实施例的优选方式,发明人可根据自己的需求任意设置视角的设置方式,如实时设置与当前用户视线对应的视角作为本申请实施例中的视角等,在此不做限定。The above is only the preferred method of the embodiment of the present application. The inventor can set the viewing angle setting method arbitrarily according to his own needs, such as setting the viewing angle corresponding to the current user's line of sight in real time as the viewing angle in the embodiment of the application, etc., which is not limited here. .
在本申请实施例中,优选的,地图旋转角度为实时计算的,其指示当前视线与竖直面的夹角。In the embodiment of the present application, preferably, the map rotation angle is calculated in real time, which indicates the angle between the current line of sight and the vertical plane.
以上仅仅是本申请实施例的优选方式,发明人可根据自己的需求任意设置地图旋转角度的设置方式,如将地图旋转角度设置为预设值等,在此不做限定。The above is only the preferred way of the embodiment of the present application. The inventor can set the way of setting the map rotation angle arbitrarily according to his own needs, such as setting the map rotation angle to a preset value, etc., which is not limited here.
S802、以相机空间坐标系的任意一个坐标作为惯性坐标系新的坐标原点,将惯性坐标系下的地图数据平移到相机空间坐标系,得到相机空间坐标系下的地图数据;S802. Taking any coordinate of the camera space coordinate system as the new coordinate origin of the inertial coordinate system, translating the map data in the inertial coordinate system to the camera space coordinate system, and obtaining the map data in the camera space coordinate system;
在本申请实施例中,优选的,相机空间坐标系的任意一个坐标通常为相机空间坐标系的坐标原点,这个坐标原点一般指示以相机空间中相机镜头(屏幕)底部正中心为原点,如坐标点(0,0,0)。In the embodiment of this application, preferably, any coordinate of the camera space coordinate system is usually the coordinate origin of the camera space coordinate system, and this coordinate origin generally indicates that the origin is the center of the bottom of the camera lens (screen) in the camera space, such as coordinates point (0, 0, 0).
以上仅仅是本申请实施例的优选方式,发明人可根据自己的需求任意设置作为新的坐标原点的具体坐标,在此不做限定。The above is only the preferred mode of the embodiment of the present application, and the inventor can arbitrarily set the specific coordinates as the new coordinate origin according to his own needs, which is not limited here.
S803、将相机空间坐标系下的地图数据投影到相机空间坐标系代表相机屏幕的坐标面,得到二维屏幕坐标系下的地图数据;S803. Project the map data in the camera space coordinate system to the camera space coordinate system representing the coordinate plane of the camera screen, and obtain the map data in the two-dimensional screen coordinate system;
S804、通过光栅化过程对二维屏幕坐标系下的地图数据进行渲染。S804. Render the map data in the two-dimensional screen coordinate system through a rasterization process.
进一步的,为了更加清楚的对本申请实施例提供的一种地图渲染方法进行阐述,现对本申请实施例提供的一种根据比例尺系数及地图渲染模式对应的视角、地图旋转角度,将地图数据从经纬度坐标系变换为地图渲染模式下的惯性坐标系的地图数据的过程进行详细介绍。Further, in order to more clearly explain a map rendering method provided by the embodiment of the present application, the map data is converted from the longitude and latitude to The process of transforming the coordinate system into the map data of the inertial coordinate system in the map rendering mode is described in detail.
在本申请实施例中,优选的,利用预先设定的坐标变换矩阵M1将地图数据从经纬度坐标系变换为地图渲染模式下的惯性坐标系的地图数据;In the embodiment of the present application, preferably, the map data is transformed from the longitude - latitude coordinate system into the map data of the inertial coordinate system in the map rendering mode by using the preset coordinate transformation matrix M1;
其中,M1=Mt*S1*R1;Among them, M 1 =M t *S 1 *R 1 ;
其中,矩阵中左上角的3*3的矩阵是单位矩阵;(-x0,-y0,-z0)是平移坐标,指示终端设备的当前位置,x0代表水平方向的平移分量,y0代表垂直方向的平移分量,z0代表竖直方向的平移分量; Among them, the 3*3 matrix in the upper left corner of the matrix is the identity matrix; (-x 0 , -y 0 , -z 0 ) is the translation coordinate, indicating the current position of the terminal device, x 0 represents the translation component in the horizontal direction, and y 0 represents the translation component in the vertical direction, z 0 represents the translation component in the vertical direction;
其中,矩阵中左上角的3*3矩阵是缩放矩阵,代表三维空间中各轴的放大系数,Sx1为地图比例尺在水平方向的比例尺系数;Sy1为地图比例尺在垂直方向的比例尺系数;Sz1为地图比例尺在竖直方向的比例尺系数; Among them, the 3*3 matrix in the upper left corner of the matrix is a scaling matrix, which represents the magnification factor of each axis in the three-dimensional space, S x1 is the scale coefficient of the map scale in the horizontal direction; S y1 is the scale coefficient of the map scale in the vertical direction; S z1 is the scale coefficient of the map scale in the vertical direction;
其中,矩阵中左上角的3*3矩阵代表旋转矩阵,(rxx1,rxy1,rxz1)代表视角,(ryx1,ryy1,ryz1)代表地图旋转角度,(rzx1,rzy1,rzz1)代表地面转角度。 Among them, the 3*3 matrix in the upper left corner of the matrix represents the rotation matrix, (rx x1 , rx y1 , rx z1 ) represents the viewing angle, (ry x1 , ry y1 , ry z1 ) represents the map rotation angle, (rz x1 , rz y1 , rz z1 ) represents the ground rotation angle.
在本申请实施例中,优选的,(rzx1,rzy1,rzz1)通常等于(0,0,0,),以指示地面没有旋转。In the embodiment of the present application, preferably, (rz x1 , rz y1 , rz z1 ) is usually equal to (0, 0, 0,) to indicate that the ground does not rotate.
以上仅仅是本申请实施例的优选方式,发明人可根据自己的需求任意设置(rzx1,rzy1,rzz1)的具体数值,在此不做限定。The above are only the preferred modes of the embodiment of the present application, and the inventors can set the specific values of (rz x1 , rz y1 , rz z1 ) arbitrarily according to their own needs, which are not limited here.
进一步的,为了更加清楚的对本申请实施例提供的一种地图渲染方法进行阐述,现对本申请实施例提供的一种以相机空间坐标系的任意一个坐标作为惯性坐标系新的坐标原点,将惯性坐标系下的地图数据平移到相机空间坐标系,得到相机空间坐标系下的地图数据的过程进行详细介绍。Further, in order to explain a map rendering method provided by the embodiment of the present application more clearly, the method provided by the embodiment of the present application uses any coordinate of the camera space coordinate system as the new coordinate origin of the inertial coordinate system, and the inertial The map data in the coordinate system is translated to the camera space coordinate system, and the process of obtaining the map data in the camera space coordinate system is introduced in detail.
在本申请实施例中,优选的,利用预先设置的平移坐标系M0将惯性坐标系下的地图数据平移到相机空间坐标系,得到相机空间坐标系下的地图数据;In the embodiment of the present application, preferably, the map data in the inertial coordinate system is translated to the camera space coordinate system by using the preset translation coordinate system M 0 to obtain the map data in the camera space coordinate system;
其中,矩阵中左上角的3*3的矩阵是单位矩阵;(xp0,yp0,zp0)是相机空间坐标系的任意一个坐标,xp0代表水平方向的平移分量,yp0代表垂直方向的平移分量,zp0代表竖直方向的平移分量。in, The 3*3 matrix in the upper left corner of the matrix is the identity matrix; (x p0 , y p0 , z p0 ) is any coordinate of the camera space coordinate system, x p0 represents the translation component in the horizontal direction, and y p0 represents the translation in the vertical direction Component, z p0 represents the translation component in the vertical direction.
在本申请实施例中,优选的,相机空间坐标系的任意一个坐标通常为相机空间坐标系的坐标原点,这个坐标原点一般指示以相机空间中相机镜头(屏幕)底部正中心为原点,如坐标点(0,0,0)。In the embodiment of this application, preferably, any coordinate of the camera space coordinate system is usually the coordinate origin of the camera space coordinate system, and this coordinate origin generally indicates that the origin is the center of the bottom of the camera lens (screen) in the camera space, such as coordinates point (0, 0, 0).
在本申请实施例中,优选的,当相机空间坐标系的任意一个坐标为相机空间坐标系的坐标原点(0,0,0)时, In the embodiment of the present application, preferably, when any coordinate of the camera space coordinate system is the coordinate origin (0, 0, 0) of the camera space coordinate system,
进一步的,为了更加清楚的对本申请实施例提供的一种地图渲染方法进行阐述,现对本申请实施例提供的一种将相机空间坐标系下的地图数据投影到相机空间坐标系代表相机屏幕的坐标面,得到二维屏幕坐标系下的地图数据的过程进行详细介绍。Further, in order to explain a map rendering method provided by the embodiment of the present application more clearly, the method of projecting the map data in the camera space coordinate system to the camera space coordinate system to represent the coordinates of the camera screen provided by the embodiment of the present application is now On the surface, the process of obtaining the map data in the two-dimensional screen coordinate system is introduced in detail.
在本申请实施例中,优选的,利用预先设置的透视投影矩阵projection将相机空间坐标系下的地图数据投影到相机空间坐标系代表相机屏幕的坐标面,得到二维屏幕坐标系下的地图数据,其中,In the embodiment of the present application, preferably, the map data in the camera space coordinate system is projected to the coordinate plane representing the camera screen in the camera space coordinate system by using the preset perspective projection matrix projection to obtain the map data in the two-dimensional screen coordinate system ,in,
其中,透视投影矩阵projection的最后一行的-1代表的是奇次空间坐标系的规格化后的系数。 Among them, -1 in the last line of the perspective projection matrix projection represents the normalized coefficient of the odd space coordinate system.
具体的,透视投影矩阵projection为现有技术,有关对透视投影矩阵projection的描述请参见现有技术,在此不做赘述。Specifically, the perspective projection matrix projection is a prior art. For the description of the perspective projection matrix projection, please refer to the prior art, and details are not repeated here.
参见图1和图9,其中,图1为本申请实施例提供的一种鸟瞰模式三维地图的地图渲染效果图(图1中的箭头11指示智能终端的当前位置);图9为本申请实施例提供的一种第一人称视角模式三维地图的地图渲染效果图(箭头91指示智能终端的当前位置)。Referring to Fig. 1 and Fig. 9, wherein, Fig. 1 is a map rendering effect diagram of a bird's-eye view mode three-dimensional map provided by the embodiment of the present application (the arrow 11 in Fig. 1 indicates the current position of the smart terminal); Fig. 9 is the implementation of the present application The example provides a map rendering effect diagram of a three-dimensional map in first-person perspective mode (the arrow 91 indicates the current location of the smart terminal).
结合图1和图9可明确得知,本申请实施例提供的一种地图渲染方法在地图渲染模式为第一人称视角的三维地图渲染模式时的渲染结果对用户的代入感与用户的实际驾车体验之间的差距明显小于,当地图渲染模式为鸟瞰三维地图渲染模式时的渲染结果对用户的代入感与用户的实际驾车体验之间的差距。From Figure 1 and Figure 9, it can be clearly seen that when the map rendering mode provided by the embodiment of the present application is a three-dimensional map rendering mode of the first-person perspective, the user's sense of substitution and the user's actual driving experience of the rendering results The gap between is significantly smaller than the gap between the user's sense of substitution of the rendering result and the user's actual driving experience when the map rendering mode is a bird's-eye view 3D map rendering mode.
本申请提供一种地图渲染方法,通过获取地图渲染模式和地图渲染参数;获取终端设备的当前位置;并根据地图渲染参数和终端设备的当前位置,获取与地图渲染模式对应的地图数据;进而将获取到的地图数据按照地图渲染模式进行渲染的方式,保证地图渲染结果按照用户需要的地图渲染模式进行渲染,以缩小地图渲染结果对用户的代入感与用户的实际驾车体验之间的差距。The present application provides a map rendering method, by obtaining the map rendering mode and map rendering parameters; obtaining the current position of the terminal device; and according to the map rendering parameters and the current position of the terminal device, obtaining map data corresponding to the map rendering mode; and then The obtained map data is rendered in accordance with the map rendering mode to ensure that the map rendering result is rendered in accordance with the map rendering mode required by the user, so as to narrow the gap between the user's sense of substitution of the map rendering result and the user's actual driving experience.
图10为本申请实施例提供的一种地图渲染装置的结构示意图。FIG. 10 is a schematic structural diagram of a map rendering device provided by an embodiment of the present application.
如图10所示,该装置包括:As shown in Figure 10, the device includes:
模式参数获取单元101,用于获取地图渲染模式和地图渲染参数;A mode parameter acquisition unit 101, configured to acquire a map rendering mode and map rendering parameters;
位置获取单元102,用于获取终端设备的当前位置;A location acquisition unit 102, configured to acquire the current location of the terminal device;
地图数据获取单元103,用于根据地图渲染参数和终端设备的当前位置,获取与地图渲染模式对应的地图数据;The map data acquiring unit 103 is configured to acquire map data corresponding to the map rendering mode according to the map rendering parameters and the current location of the terminal device;
地图渲染单元104,用于将获取到的地图数据按照地图渲染模式进行渲染。The map rendering unit 104 is configured to render the acquired map data according to a map rendering mode.
在本申请实施例中,优选的,模式参数获取单元101接收地图渲染请求,地图渲染请求中携带地图渲染模式;或者,读取预先设置的地图渲染模式。In this embodiment of the present application, preferably, the mode parameter acquiring unit 101 receives a map rendering request, and the map rendering request carries a map rendering mode; or, reads a preset map rendering mode.
图11为本申请实施例提供的一种地图数据获取单元的详细结构示意图。FIG. 11 is a schematic diagram of a detailed structure of a map data acquisition unit provided by an embodiment of the present application.
在本申请实施例中,优选的,地图渲染参数至少包括地图比例尺、终端设备屏幕的分辨率和像素密度。如图11所示,地图数据获取单元包括:In the embodiment of the present application, preferably, the map rendering parameters include at least map scale, resolution and pixel density of the screen of the terminal device. As shown in Figure 11, the map data acquisition unit includes:
地理参数获取单元111,用于根据地图比例尺、终端设备屏幕的分辨率和像素密度,获取终端设备屏幕显示的地图的地理参数;The geographic parameter acquisition unit 111 is used to acquire the geographic parameters of the map displayed on the screen of the terminal device according to the map scale, the resolution and the pixel density of the screen of the terminal device;
地图数据获取子单元112,用于根据地图的地理参数和终端设备的当前位置,获取与地图渲染模式对应的地图数据。The map data acquisition subunit 112 is configured to acquire map data corresponding to the map rendering mode according to the geographic parameters of the map and the current location of the terminal device.
图12为本申请实施例提供的一种地理参数获取单元的详细结构示意图。FIG. 12 is a schematic diagram of a detailed structure of a geographic parameter acquisition unit provided in an embodiment of the present application.
如图12所示,地理参数获取单元包括:As shown in Figure 12, the geographic parameter acquisition unit includes:
比例尺系数计算单元121,用于利用地图比例尺和终端设备屏幕的像素密度,得到比例尺系数;The scale coefficient calculation unit 121 is used to obtain the scale coefficient by using the map scale and the pixel density of the terminal device screen;
地理参数获取子单元122,用于根据终端设备屏幕的分辨率和比例尺系数,得到终端设备屏幕显示的地图的地理参数。The geographic parameter acquisition subunit 122 is configured to obtain the geographic parameters of the map displayed on the screen of the terminal device according to the resolution and scale factor of the screen of the terminal device.
图13为本申请实施例提供的一种地理参数获取子单元的详细结构示意图。FIG. 13 is a schematic diagram of a detailed structure of a geographic parameter acquisition subunit provided by an embodiment of the present application.
在本申请实施例中,优选的,地图渲染模式为第一人称视角的三维地图渲染模式。如图13所示,地理参数获取子单元包括:In the embodiment of the present application, preferably, the map rendering mode is a three-dimensional map rendering mode of a first-person perspective. As shown in Figure 13, the geographic parameter acquisition subunit includes:
水平地理长度计算单元131,用于根据终端设备屏幕的分辨率中的水平像素值和比例尺系数,得到终端设备屏幕显示的地图的水平地理长度;The horizontal geographical length calculation unit 131 is used to obtain the horizontal geographical length of the map displayed on the terminal device screen according to the horizontal pixel value and the scale factor in the resolution of the terminal device screen;
地理参数确定单元132,用于获取预先设置的终端设备屏幕显示的地图的垂直地理长度,水平地理长度和垂直地理长度为终端设备屏幕显示的地图的地理参数。The geographic parameter determination unit 132 is configured to obtain a preset vertical geographic length of the map displayed on the screen of the terminal device, and the horizontal geographic length and the vertical geographic length are geographical parameters of the map displayed on the screen of the terminal device.
图14为本申请实施例提供的一种地图数据获取子单元的详细结构示意图。FIG. 14 is a schematic diagram of a detailed structure of a map data acquisition subunit provided by an embodiment of the present application.
在本申请实施例中,优选的,终端设备的当前位置包括经度坐标和纬度坐标。如图14所示,地图数据获取子单元包括:In this embodiment of the present application, preferably, the current location of the terminal device includes longitude coordinates and latitude coordinates. As shown in Figure 14, the map data acquisition subunit includes:
计算单元141,用于根据终端设备的当前位置中的经度坐标和地图的水平地理长度,得到终端设备显示的地图在水平方向的最小经度坐标和最大经度坐标;The calculation unit 141 is configured to obtain the minimum longitude coordinate and the maximum longitude coordinate in the horizontal direction of the map displayed by the terminal device according to the longitude coordinate in the current position of the terminal device and the horizontal geographic length of the map;
确定单元142,用于将终端设备的当前位置中的纬度坐标确定为终端设备显示的地图在垂直方向的最小纬度坐标;A determining unit 142, configured to determine the latitude coordinates in the current position of the terminal device as the minimum latitude coordinates in the vertical direction of the map displayed by the terminal device;
平移单元143,用于将最小纬度坐标平移垂直地理长度,得到终端设备显示的地图在垂直方向的最大纬度坐标;The translation unit 143 is used to translate the vertical geographical length of the minimum latitude coordinate to obtain the maximum latitude coordinate in the vertical direction of the map displayed by the terminal device;
获取单元144,用于获取地理坐标位置落入由最大经度坐标、最大纬度坐标、最小经度坐标和最小纬度坐标构成的地理范围内的地图数据。The obtaining unit 144 is configured to obtain map data whose geographical coordinates fall within a geographical range formed by the maximum longitude coordinate, the maximum latitude coordinate, the minimum longitude coordinate, and the minimum latitude coordinate.
图15为本申请实施例提供的一种地图渲染单元的详细结构示意图。FIG. 15 is a schematic diagram of a detailed structure of a map rendering unit provided by an embodiment of the present application.
如图15所示,地图渲染单元包括:As shown in Figure 15, the map rendering unit includes:
坐标系变换单元151,用于根据比例尺系数及地图渲染模式对应的视角、地图旋转角度,将地图数据从经纬度坐标系变换为地图渲染模式下的惯性坐标系的地图数据,惯性坐标系的坐标原点为终端设备的当前位置;The coordinate system transformation unit 151 is used to transform the map data from the longitude and latitude coordinate system into the map data of the inertial coordinate system in the map rendering mode according to the scale coefficient and the corresponding viewing angle and map rotation angle of the map rendering mode, and the coordinate origin of the inertial coordinate system is the current location of the terminal device;
坐标系平移单元152,用于以相机空间坐标系的任意一个坐标作为惯性坐标系新的坐标原点,将惯性坐标系下的地图数据平移到相机空间坐标系,得到相机空间坐标系下的地图数据;The coordinate system translation unit 152 is used to take any coordinate of the camera space coordinate system as the new coordinate origin of the inertial coordinate system, translate the map data in the inertial coordinate system to the camera space coordinate system, and obtain the map data in the camera space coordinate system ;
投影单元153,用于将相机空间坐标系下的地图数据投影到相机空间坐标系代表相机屏幕的坐标面,得到二维屏幕坐标系下的地图数据;The projection unit 153 is used to project the map data in the camera space coordinate system to the coordinate plane representing the camera screen in the camera space coordinate system to obtain the map data in the two-dimensional screen coordinate system;
光栅单元154,用于通过光栅化过程对二维屏幕坐标系下的地图数据进行渲染。The raster unit 154 is configured to render map data in a two-dimensional screen coordinate system through a rasterization process.
本申请提供一种地图渲染装置,通过获取地图渲染模式和地图渲染参数;获取终端设备的当前位置;并根据地图渲染参数和终端设备的当前位置,获取与地图渲染模式对应的地图数据;进而将获取到的地图数据按照地图渲染模式进行渲染的方式,保证地图渲染结果按照用户需要的地图渲染模式进行渲染,以缩小地图渲染结果对用户的代入感与用户的实际驾车体验之间的差距。The present application provides a map rendering device, by obtaining the map rendering mode and map rendering parameters; obtaining the current position of the terminal device; and according to the map rendering parameters and the current position of the terminal device, obtaining map data corresponding to the map rendering mode; and then The obtained map data is rendered in accordance with the map rendering mode to ensure that the map rendering result is rendered in accordance with the map rendering mode required by the user, so as to narrow the gap between the user's sense of substitution of the map rendering result and the user's actual driving experience.
需要说明的是,本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。对于装置类实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. For the same and similar parts in each embodiment, refer to each other, that is, Can. As for the device-type embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and for related parts, please refer to part of the description of the method embodiments.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、物品或者设备中还存在另外的相同要素。Finally, it should also be noted that in this text, relational terms such as first and second etc. are only used to distinguish one entity or operation from another, and do not necessarily require or imply that these entities or operations, any such actual relationship or order exists. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.
以上对本发明所提供的一种三维导航地图渲染方法和装置进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本发明的限制。The above is a detailed introduction to a three-dimensional navigation map rendering method and device provided by the present invention. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only used to help understand the present invention. method and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. limits.
Claims (15)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610065512.5A CN107025680B (en) | 2016-01-29 | 2016-01-29 | A map rendering method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610065512.5A CN107025680B (en) | 2016-01-29 | 2016-01-29 | A map rendering method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN107025680A true CN107025680A (en) | 2017-08-08 |
| CN107025680B CN107025680B (en) | 2020-11-03 |
Family
ID=59524839
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610065512.5A Active CN107025680B (en) | 2016-01-29 | 2016-01-29 | A map rendering method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107025680B (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108022285A (en) * | 2017-11-30 | 2018-05-11 | 杭州电魂网络科技股份有限公司 | Map rendering intent and device |
| CN109345610A (en) * | 2018-10-29 | 2019-02-15 | 泰华智慧产业集团股份有限公司 | The method and system of operational commanding are shown on map |
| CN111724488A (en) * | 2019-06-25 | 2020-09-29 | 腾讯科技(深圳)有限公司 | Map scene drawing method and device, readable storage medium and computer equipment |
Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1995917A (en) * | 2006-12-21 | 2007-07-11 | 凯立德欣技术(深圳)有限公司 | Display control method, device, and equipment for depression angle of electronic map |
| CN101395444A (en) * | 2006-03-08 | 2009-03-25 | 通腾科技股份有限公司 | A navigation device and method for sequential map display |
| CN102519452A (en) * | 2011-12-23 | 2012-06-27 | 深圳市凯立德科技股份有限公司 | Display method of electronic map and terminal thereof |
| CN102636172A (en) * | 2012-05-04 | 2012-08-15 | 深圳市凯立德科技股份有限公司 | Electronic map dynamic view angle adjusting method and terminal |
| US20130169685A1 (en) * | 2011-12-30 | 2013-07-04 | James D. Lynch | Path side image on map overlay |
| CN103345774A (en) * | 2013-07-17 | 2013-10-09 | 中国人民解放军第三军医大学 | Method for building three-dimensional multi-scale vectorization model |
| CN103425800A (en) * | 2013-09-04 | 2013-12-04 | 中国科学院遥感与数字地球研究所 | Map visualization method and device and processor |
| CN103616032A (en) * | 2013-11-29 | 2014-03-05 | 北京掌行通信息技术有限公司 | Method and device for automatically controlling display scale and three-dimensional view angle of navigation map |
| CN104769393A (en) * | 2012-09-05 | 2015-07-08 | 赫尔环球有限公司 | Method and apparatus for transitioning from a partial map view to an augmented reality view |
| CN105139750A (en) * | 2015-09-30 | 2015-12-09 | 百度在线网络技术(北京)有限公司 | Display method and apparatus of electronic map |
-
2016
- 2016-01-29 CN CN201610065512.5A patent/CN107025680B/en active Active
Patent Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101395444A (en) * | 2006-03-08 | 2009-03-25 | 通腾科技股份有限公司 | A navigation device and method for sequential map display |
| CN1995917A (en) * | 2006-12-21 | 2007-07-11 | 凯立德欣技术(深圳)有限公司 | Display control method, device, and equipment for depression angle of electronic map |
| CN102519452A (en) * | 2011-12-23 | 2012-06-27 | 深圳市凯立德科技股份有限公司 | Display method of electronic map and terminal thereof |
| US20130169685A1 (en) * | 2011-12-30 | 2013-07-04 | James D. Lynch | Path side image on map overlay |
| CN102636172A (en) * | 2012-05-04 | 2012-08-15 | 深圳市凯立德科技股份有限公司 | Electronic map dynamic view angle adjusting method and terminal |
| CN104769393A (en) * | 2012-09-05 | 2015-07-08 | 赫尔环球有限公司 | Method and apparatus for transitioning from a partial map view to an augmented reality view |
| CN103345774A (en) * | 2013-07-17 | 2013-10-09 | 中国人民解放军第三军医大学 | Method for building three-dimensional multi-scale vectorization model |
| CN103425800A (en) * | 2013-09-04 | 2013-12-04 | 中国科学院遥感与数字地球研究所 | Map visualization method and device and processor |
| CN103616032A (en) * | 2013-11-29 | 2014-03-05 | 北京掌行通信息技术有限公司 | Method and device for automatically controlling display scale and three-dimensional view angle of navigation map |
| CN105139750A (en) * | 2015-09-30 | 2015-12-09 | 百度在线网络技术(北京)有限公司 | Display method and apparatus of electronic map |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108022285A (en) * | 2017-11-30 | 2018-05-11 | 杭州电魂网络科技股份有限公司 | Map rendering intent and device |
| CN108022285B (en) * | 2017-11-30 | 2021-04-20 | 杭州电魂网络科技股份有限公司 | Map rendering method and device |
| CN109345610A (en) * | 2018-10-29 | 2019-02-15 | 泰华智慧产业集团股份有限公司 | The method and system of operational commanding are shown on map |
| CN109345610B (en) * | 2018-10-29 | 2023-06-09 | 泰华智慧产业集团股份有限公司 | Method and system for displaying lean attack and hardness removal command on map |
| CN111724488A (en) * | 2019-06-25 | 2020-09-29 | 腾讯科技(深圳)有限公司 | Map scene drawing method and device, readable storage medium and computer equipment |
| CN111724488B (en) * | 2019-06-25 | 2022-09-09 | 腾讯科技(深圳)有限公司 | Map scene drawing method and device, readable storage medium and computer equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107025680B (en) | 2020-11-03 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106462997B (en) | Mixing between street view and earth view | |
| AU2017386420B2 (en) | Panoramic image compression method and apparatus | |
| CN103471581B (en) | For providing the apparatus and method for the 3D maps for showing region-of-interest in real time | |
| CN105894570A (en) | Virtual reality scene modeling method and device | |
| CN104461436B (en) | A kind of display methods of multiple terminals based on different resolution | |
| CN103984720B (en) | Method and device for creating tile map based on OpenGL | |
| CN105391938A (en) | Image processing apparatus, image processing method, and computer program product | |
| CN109801354B (en) | Panorama processing method and device | |
| CN115861514A (en) | Rendering method, device and equipment of virtual panorama and storage medium | |
| CN109978753A (en) | The method and apparatus for drawing panorama thermodynamic chart | |
| CN104427230A (en) | Reality enhancement method and reality enhancement system | |
| CN103852066A (en) | Equipment positioning method, control method, electronic equipment and system | |
| CN110969159B (en) | Image recognition method and device and electronic equipment | |
| CN107025680B (en) | A map rendering method and device | |
| US20230326147A1 (en) | Helper data for anchors in augmented reality | |
| US11250643B2 (en) | Method of providing virtual exhibition space using 2.5-dimensionalization | |
| KR101459005B1 (en) | Method for controlling point of interest display of three-dimensional map | |
| CN116385622A (en) | Cloud image processing method, cloud image processing device, computer and readable storage medium | |
| CN110390717B (en) | 3D model reconstruction method and device and electronic equipment | |
| CN110070617B (en) | Data synchronization method, device and hardware device | |
| CN114049403A (en) | Multi-angle three-dimensional face reconstruction method and device and storage medium | |
| CN106875450B (en) | Training set optimization method and device for camera relocalization | |
| CN105335417B (en) | Information issuing method, device and server based on space coordinate and direction | |
| KR102464437B1 (en) | Metaverse based cross platfrorm service system providing appreciation and trade gigapixel media object | |
| CN104580967A (en) | Map projection method based on portable projector, and device for projection |
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 | ||
| TA01 | Transfer of patent application right | ||
| TA01 | Transfer of patent application right |
Effective date of registration: 20200507 Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province Applicant after: Alibaba (China) Co.,Ltd. Address before: 100080 Beijing City, Haidian District Suzhou Street No. 3 floor 16 room 2 Applicant before: AUTONAVI INFORMATION TECHNOLOGY Co.,Ltd. |
|
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20250327 Address after: Room 1512, 12th Floor, Building 3, No. 6 Futong East Street, Chaoyang District, Beijing, 100102 Patentee after: BEIJING AUTONAVI YUNMAP TECHNOLOGY Co.,Ltd. Country or region after: China Address before: 310052 room 508, 5th floor, building 4, No. 699 Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province Patentee before: Alibaba (China) Co.,Ltd. Country or region before: China |