WO2016086893A1 - 一种显示电子地图的方法和装置 - Google Patents

一种显示电子地图的方法和装置 Download PDF

Info

Publication number
WO2016086893A1
WO2016086893A1 PCT/CN2015/096391 CN2015096391W WO2016086893A1 WO 2016086893 A1 WO2016086893 A1 WO 2016086893A1 CN 2015096391 W CN2015096391 W CN 2015096391W WO 2016086893 A1 WO2016086893 A1 WO 2016086893A1
Authority
WO
WIPO (PCT)
Prior art keywords
position point
point
scale
initial position
target position
Prior art date
Application number
PCT/CN2015/096391
Other languages
English (en)
French (fr)
Inventor
彭朝
夏俊生
Original Assignee
高德软件有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 高德软件有限公司 filed Critical 高德软件有限公司
Publication of WO2016086893A1 publication Critical patent/WO2016086893A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor

Definitions

  • the present invention relates to the field of image processing technologies, and in particular, to a method and apparatus for displaying an electronic map.
  • the electronic map is directly displayed with the target position point as a center point.
  • the map image of the electronic map displayed at the initial position point is The map of the electronic map displayed at the target location point is quite different, so the visual jump of the electronic map is relatively blunt.
  • the initial location of the electronic map is in Shanghai, and the target location is in Beijing.
  • the map image displayed at the initial location is part of the map data of the Shanghai area, and the map image displayed at the target location is part of the map data of the Beijing area.
  • the content of this part of the map data is quite different. Therefore, the existing electronic map moving method is relatively blunt, and the electronic map display effect is poor.
  • the embodiment of the invention provides a method and a device for displaying an electronic map, which are used to solve the problem that the electronic map moving in the prior art is relatively hard and the electronic map display effect is poor.
  • the first aspect provides a method of displaying an electronic map, comprising:
  • the three-dimensional coordinates of the point and the target position point include a longitude coordinate, a latitude coordinate, and a height coordinate, wherein the values of the height coordinates of the initial position point and the target position point are respectively corresponding to the scale when the electronic map is displayed at the initial position point and the target position point, respectively.
  • the electronic map is displayed along the spatial curve starting from the initial position point as a starting point with the moving point as a center point.
  • the three-dimensional coordinates of the key node are determined according to the three-dimensional coordinates of the initial position point and the target position point, and specifically include:
  • the height value of the scale corresponding to the key node is determined, and the height value is used as the height coordinate of the key node.
  • the determining, according to the screen distance of the initial position point and the target location point and the preset scale range, the scale corresponding to the key node specifically including:
  • the scale range is when the product is greater than the largest scale in the scale range
  • the maximum scale in the middle is determined as the scale corresponding to the key node
  • the scale closest to the product is determined as the scale corresponding to the key node.
  • the determining, according to the preset map display duration, the movement function, and the screen time interval, determining the movement point from the space curve specifically includes:
  • the moving distance is 0, and moving along the space curve according to the movement function starting from the initial position point, determining that the screen moves to the space curve once per brush The position point on the upper point, the determined position point is used as the moving point;
  • the three-dimensional coordinates of each moving point are determined according to the number of the curve segment to which the respective moving points belong on the spatial curve, the first functional relationship, the second functional relationship, and the third functional relationship.
  • the moving point is a center point
  • an electronic map is displayed, which specifically includes:
  • the latitude and longitude coordinates of the moving point are taken as the center point, and the scale corresponding to the height coordinate of the moving point is used as a scale for displaying the electronic map, and an electronic map is displayed.
  • a second aspect provides an apparatus for displaying an electronic map, comprising:
  • a three-dimensional coordinate acquiring unit configured to acquire three-dimensional coordinates of an initial position point and a target position point of the electronic map; wherein the three-dimensional coordinates of the initial position point and the target position point include longitude coordinates, latitude coordinates, and height coordinates, wherein the initial position points and targets
  • the height coordinates of the position point are respectively the height values corresponding to the scale when the electronic map is displayed at the initial position point and the target position point;
  • a three-dimensional coordinate determining unit configured to determine three-dimensional coordinates of the key node according to the three-dimensional coordinates of the initial position point and the target position point acquired by the three-dimensional coordinate acquiring unit;
  • a space curve generating unit configured to obtain the initial bit according to the three-dimensional coordinate acquiring unit Set a point, the target position point, and the three-dimensional coordinates of the key node determined by the three-dimensional coordinate determining unit, and generate a spatial curve sequentially connecting the initial position point, the key node, and the target position point;
  • a moving point determining unit configured to determine a moving point from a spatial curve generated by the spatial curve generating unit according to a preset map display duration, a moving function, and a screen time interval, and use the target position point as a movement point;
  • a display unit is configured to display an electronic map along the spatial curve starting from the initial position point and sequentially using the moving point determined by the moving point determining unit as a center point.
  • the three-dimensional coordinate determining unit specifically includes:
  • a latitude and longitude coordinate determining module configured to use an average value of an initial position point acquired by the three-dimensional coordinate acquiring unit and the target position point longitude coordinate as a longitude coordinate of the key node, and an initial acquired by the three-dimensional coordinate acquiring unit An average value of the position point and the target position point latitude coordinate as a latitude coordinate of the key node;
  • a scale determining module configured to determine a scale corresponding to the key node according to a screen distance of the initial position point and the target position point and a preset scale range
  • the height coordinate determining module is configured to determine a height value of the scale corresponding to the key node determined by the scale determining module according to the preset relationship between the scale and the height value, and use the height value as the height coordinate of the key node.
  • the scale determining module is specifically configured to:
  • the mobile point determining unit specifically includes:
  • Dividing the spatial curve into a plurality of curved segments on average and starting from the initial position point along the space The curve sequentially numbers the curve segments; according to the initial position point, the key node, the three-dimensional coordinates of the target position point and the number of the curve segment to which it belongs, the first functional relationship between the longitude coordinate and the curve segment number, the latitude coordinate and the curve are determined.
  • the time is 0, the moving distance is 0, and the movement function is moved along the space curve according to the initial position point as a starting point, and the position point on the space curve is determined every time the screen is moved once, and the determined position is determined.
  • the position point is used as a moving point; the three-dimensional coordinates of each moving point are determined according to the number of the curve segment to which the moving point belongs on the space curve, the first function relationship, the second function relationship, and the third function relationship.
  • the display unit is specifically configured to:
  • the latitude and longitude coordinates of the moving point are taken as the center point, and the scale corresponding to the height coordinate of the moving point is used as a scale for displaying the electronic map, and an electronic map is displayed.
  • the three-dimensional coordinates of the initial position point and the target position point of the electronic map are acquired, and the three-dimensional coordinates of the key node are determined according to the obtained three-dimensional coordinates of the initial position point and the target position point, according to the initial position point and the target position point.
  • the three-dimensional coordinates of the key nodes generating a spatial curve connecting the initial position point, the key node and the target position point in turn, and determining the movement from the generated space curve according to the preset map display duration, the movement function, and the screen time interval.
  • Point, and the target position point as a moving point, and finally display the electronic map along the spatial curve starting from the initial position point, and sequentially determine the moving point as the center point.
  • a key node is selected between the initial position point and the target position point, and a spatial curve connecting the initial position point, the key node and the target position point is sequentially generated, and the movement is selected on the space curve.
  • Point the electronic map is displayed at the moving point in order from the initial position point. Therefore, on the one hand, the display of the electronic map moves according to the spatial curve, so that the moving trajectory of the electronic map is more spatial, and on the other hand, according to the preset map
  • the display duration, the movement function, and the screen interval are sequentially selected between the initial position point and the target position point, and the electronic map is displayed in turn at the moving point. Since the screen interval is generally shorter, the determined movement is performed.
  • the electronic map is displayed directly at the initial position point and the target position point, thereby improving the electronic map display effect.
  • FIG. 1 is a flowchart of an implementation of a method for displaying an electronic map according to an embodiment of the present invention
  • FIG. 2 is a flowchart of processing in a practical application of a method for displaying an electronic map according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of an apparatus for displaying an electronic map according to an embodiment of the present invention.
  • the embodiment of the present invention proposes a scheme for displaying an electronic map.
  • the three-dimensional coordinates of the initial position point and the target position point of the electronic map are obtained, and the three-dimensional coordinates of the key node are determined according to the obtained three-dimensional coordinates of the initial position point and the target position point, according to the initial position point and the target position point.
  • the three-dimensional coordinates of the key nodes generating a spatial curve connecting the initial position point, the key node and the target position point in turn, and determining the time length, the movement function, and the screen time interval according to the preset map map, and determining from the generated space curve Move the point, and take the target position point as a moving point. Finally, take the initial position point as the starting point along the space curve, and then determine the moving point as the center point, and display the electronic map, so that the electronic map display effect is greatly improved, avoiding In the prior art, the problem that the electronic map display effect is poor due to the harder movement of the electronic map.
  • FIG. 1 it is a flowchart for implementing the method. The method specifically includes the following steps:
  • Step 11 Obtain three-dimensional coordinates of an initial position point and a target position point of the electronic map; wherein the three-dimensional coordinates of the initial position point and the target position point include longitude coordinates, latitude coordinates, and height coordinates, wherein the initial position point and the height of the target position point
  • the values of the coordinates may be height values corresponding to the scales when the electronic map is displayed at the initial position point and the target position point, respectively.
  • the embodiment of the present invention pre-sets the correspondence between the scale and the height value, for example, the corresponding relationship between each scale and the height value range is set, for example, the height value corresponding to the scale 3 is g1, and the height value corresponding to the scale 4 is g2, the scale bar. 5 corresponds to the height value of g3 and so on.
  • the scale the smaller the height value, and the smaller the scale, the larger the height value.
  • scale involved in the embodiment of the present invention indicates the zoom level of the scale and does not represent the value of the scale.
  • scale 3 indicates that the zoom level of the scale is 3 instead of the scale value of 3.
  • the value of scale 3 should be a ratio set in advance for the zoom level 3 of the scale.
  • Step 12 Determine three-dimensional coordinates of the key node according to the three-dimensional coordinates of the initial position point and the target position point.
  • a key node is determined in advance according to the initial position point and the target position point, and then a piece of the initial position point and the key node are sequentially designed and generated. And the spatial curve of the target position point.
  • the three-dimensional coordinates of the key nodes in the embodiment of the present invention may be determined by, but not limited to, the following methods:
  • step a1 the average value of the longitude coordinates of the initial position point and the target position point is taken as the longitude coordinate of the key node, and the average value of the latitude coordinates of the initial position point and the target position point is taken as the latitude coordinate of the key node;
  • Step a2 according to the screen distance between the initial position point and the target position point and the preset scale Determine the scale corresponding to the key node.
  • the screen distance between the initial position point and the target position point is obtained according to the following manner: calculating the distance value between the initial position point and the target position point according to the latitude and longitude coordinates of the initial position point and the target position point; The product of the scale before moving the electronic map is used as the screen distance between the initial position point and the target position point.
  • the specific implementation may be as follows: calculating a product of a screen distance between an initial position point and a target position point and a preset scale factor, and comparing the product with a preset scale range, when the product is smaller than a minimum scale in a preset scale range
  • the minimum scale in the preset scale range is determined as the scale corresponding to the key node; when the product is greater than the maximum scale in the preset scale range, the maximum scale in the preset scale range is determined as the key node corresponding a scale bar; when the product is within the scale range, the scale closest to the product is determined as the scale corresponding to the key node.
  • the preset scale range is 3-19.
  • step a3 according to the preset relationship between the scale and the height value, the height value of the scale corresponding to the key node is determined, and the height value is used as the height coordinate of the key node.
  • the foregoing method for determining the three-dimensional coordinates of the key node in the embodiment of the present invention is only one of the preferred modes, and may be set according to the user's own needs in a specific application.
  • Step 13 Generate a spatial curve sequentially connecting the initial position point, the key node, and the target position point according to the initial position point, the target position point, and the three-dimensional coordinates of the key node.
  • step 14 according to the preset map display duration, the movement function, and the screen time interval, the moving point is determined from the generated space curve, and the target position point is used as a moving point.
  • the map display duration refers to the total length of time that the electronic map moves from the initial position point to the target position point.
  • Step 14 specifically, determining the moving point from the generated spatial curve may be but not limited to The following way:
  • Step b1 dividing the generated spatial curve into a plurality of curved segments on average, and sequentially numbering the curved segments along the spatial curvature from the initial position point;
  • Step b2 Determine a first functional relationship between the longitude coordinate and the curve segment number according to the three-dimensional coordinates of the initial position point, the key node, the target position point, and the number of the curve segment to which the curve belongs, and the second function relationship between the latitude coordinate and the curve segment number , the third function relationship between the height coordinate and the curve segment number;
  • Step b3 determining the number of times of the screen according to the display duration of the map and the preset time interval of the brushing;
  • step b4 the time of the electronic map at the initial position is 0, the moving distance is 0, and the moving position is moved along the spatial curve according to the initial position point, and the position of each screen moving to the spatial curve is determined. Using the determined position point as a moving point;
  • Step b5 Determine three-dimensional coordinates of each moving point according to the number of the curve segment to which the moving point belongs on the space curve, the determined first function relationship, the second function relationship, and the third function relationship.
  • step 15 the electronic map is displayed along the generated spatial curve starting from the initial position point, with the moving point as the center point.
  • Step 15 Specifically, for each moving point, the latitude and longitude coordinates of the moving point are taken as a center point, and the scale corresponding to the height coordinate of the moving point is used as a scale for displaying the electronic map, and an electronic map is displayed.
  • the electrons displayed at the initial position point are If the map image of the map is not much different from the map image of the electronic map displayed at the target location point, the jump of the electronic map can be directly performed without performing the operations of the subsequent steps 12-15.
  • the embodiment of the present invention may further include the following steps:
  • the distance between the initial position point and the target position point is greater than a preset distance threshold; only when it is determined that the distance between the initial position point and the target position point is greater than the advance Continue the steps when setting the distance threshold 12, otherwise directly jump the electronic map.
  • the three-dimensional coordinates of the initial position point and the target position point of the electronic map are obtained, and the three-dimensional coordinates of the key node are determined according to the obtained three-dimensional coordinates of the initial position point and the target position point, according to the initial position point and the target position.
  • the three-dimensional coordinates of the point and the key node are generated, and the spatial curves connecting the initial position point, the key node and the target position point are sequentially generated, and the time length, the movement function and the screen time interval are preset according to the preset map display, and the generated space curve is determined. Move the point, and take the target position point as a moving point.
  • a flowchart of a specific application implementation of a method for displaying an electronic map according to an embodiment of the present invention includes the following processing steps:
  • the initial position point in the electronic map is A
  • the target position point is B
  • the screen distance between the initial position point A and the target position point B is L.
  • step 21 the three-dimensional coordinates of the initial position point A are obtained as (x1, y1, z1), and the three-dimensional coordinates of the target position point B are (x2, y2, z2).
  • x1 and x2 are the longitude coordinates of the initial position point A and the target position point B, respectively, and y1 and y2 are the latitude coordinates of the initial position point A and the target position point B, respectively, and z1 and z2 are the initial position point A and the target position, respectively.
  • the height coordinate of the point B, and the value of the height coordinate is the height value corresponding to the scale when the electronic map is displayed at the initial position point A and the target position point B, and the scale of the initial position point A and the target position point B in general. Consistent, therefore, the values of z1 and z2 are the same.
  • Step 22 According to the three-dimensional coordinates of the initial position point A and the target position point B, determine whether the distance between the initial position point A and the target position point B is greater than a preset distance threshold. When the determination result is yes, proceed to step 23, When the determination result is no, the electronic map is directly displayed with the latitude and longitude coordinates of the target position point B as a center point.
  • Step 23 determining the three-dimensional coordinates (x3, y3, z3) of the key node C according to the three-dimensional coordinates of the initial position point A and the target position point B.
  • the key node C has a scale of 3;
  • the height value of the scale corresponding to the key node is determined according to the preset relationship between the scale and the height value, and the height value is used as the height coordinate of the key node, that is, z3.
  • Step 24 Generate a spatial curve sequentially connecting the initial position point A, the key node C, and the target position point B according to the three-dimensional coordinates of the initial position point A, the target position point B, and the key node C.
  • step 25 the generated spatial curve is equally divided into N segments, and the curve segments are numbered 1 to N sequentially along the spatial curve from the initial position point A.
  • the number of the curve segment to which the initial position point A belongs is a segment
  • the number of the wireless segment to which the target position point B belongs is b segment
  • the number of the curve segment to which the key node C belongs is c segment.
  • a, b and c belong to [1, N].
  • step 26 the first function relationship between the longitude coordinate and the curve segment number, the latitude coordinate and the curve segment number are determined by the three-dimensional coordinates of the initial position point A, the key node C, and the target position point B and the number of the curve segment to which the curve belongs.
  • the second function relationship, the third function relationship between the height coordinate and the curve segment number namely:
  • step 27 the number of times of the screen is determined according to the preset map display duration and the preset screen interval.
  • the preset map display time is 30s
  • the preset screen time interval is 1s
  • the number of times of the screen is determined to be 30 times.
  • step 28 the time of the electronic map at the initial position point A is 0, the moving distance is 0, and the initial position point A is used as the starting point to move along the space curve according to the movement function, and the position of each screen moving to the spatial curve is determined. Point, the determined position point is used as the moving point, and the target position point B is also used as a moving point.
  • the number of moving points that need to be determined from the generated space curve should be 29, and the target position point B is 30 in total.
  • Step 29 Determine three-dimensional coordinates of each moving point according to the number of the curve segment to which the moving point belongs on the spatial curve, the determined first function relationship, the second function relationship, and the third function relationship.
  • the third function relationship can obtain the three-dimensional coordinates of the moving point D.
  • step 210 an electronic map is displayed along the generated spatial curve starting from the initial position point, with the moving point as a center point.
  • the latitude and longitude coordinates of the moving point are taken as a center point, and the scale corresponding to the height coordinate of the moving point is a scale when the electronic map is displayed, and an electronic map is displayed.
  • an embodiment of the present invention further provides an apparatus for displaying an electronic map. Since the principle of solving the problem by the above apparatus is similar to the method of displaying an electronic map, the implementation of the foregoing apparatus may refer to the implementation of the method, and the repetition is performed. No longer.
  • FIG. 3 is a schematic structural diagram of an apparatus for displaying an electronic map according to an embodiment of the present invention, including:
  • the three-dimensional coordinate acquiring unit 31 is configured to acquire three-dimensional coordinates of an initial position point and a target position point of the electronic map; wherein the three-dimensional coordinates of the initial position point and the target position point include longitude coordinates, latitude coordinates, and height coordinates, wherein the initial position points and The height coordinates of the target position point are respectively the height values corresponding to the scale when the electronic map is displayed at the initial position point and the target position point;
  • the three-dimensional coordinate determining unit 32 is configured to determine three-dimensional coordinates of the key node according to the three-dimensional coordinates of the initial position point and the target position point acquired by the three-dimensional coordinate acquiring unit 31;
  • a spatial curve generating unit 33 configured to generate, according to the initial position point acquired by the three-dimensional coordinate acquiring unit 31, the target position point, and the three-dimensional coordinates of the key node determined by the three-dimensional coordinate determining unit 32, a spatial curve of an initial position point, the key node, and the target position point;
  • the moving point determining unit 34 is configured to determine a moving point from the spatial curve generated by the space curve generating unit 33 according to the preset map display duration, the moving function, and the screen time interval, and use the target point as a moving point;
  • the display unit 35 is configured to display an electronic map along the spatial curve starting from the initial position point and sequentially using the moving point determined by the moving point determining unit 34 as a center point.
  • the three-dimensional coordinate determining unit 32 specifically includes:
  • a latitude and longitude coordinate determining module 321 for initializing the three-dimensional coordinate acquiring unit 31 An average value of the position point and the target position point longitude coordinate as the longitude coordinate of the key node, and an average value of the initial position point acquired by the three-dimensional coordinate acquiring unit and the target position point latitude coordinate as the key The latitude coordinates of the node;
  • the scale determining module 322 is configured to determine a scale corresponding to the key node according to the screen distance of the initial position point and the target position point and a preset scale range;
  • the height coordinate determining module 323 is configured to determine a height value of a scale corresponding to the key node determined by the scale determining module 322 according to a preset relationship between the scale and the height value, and use the height value as the height of the key node. coordinate.
  • the scale determining module 322 is specifically configured to:
  • the moving point determining unit 34 specifically includes:
  • the number of the segment determines the first functional relationship between the longitude coordinate and the curve segment number, the second functional relationship between the latitude coordinate and the curve segment number, and the third functional relationship between the height coordinate and the curve segment number; the duration and the pre-display according to the map Setting the brushing time interval, determining the number of times of the screen; taking the time of the electronic map at the initial position point as 0, moving the distance to 0, starting from the initial position point, following the movement function along the space
  • the movement of the curve determines the position point of each screen movement to the space curve, and determines the position point as the movement point; according to the number of the curve segment belonging to the space curve on each movement point, the first function relationship, the first The two function relationship and the third function relationship determine the three-
  • the display unit 35 is specifically configured to:
  • the latitude and longitude coordinates of the moving point are taken as the center point, and the scale corresponding to the height coordinate of the moving point is used as a scale for displaying the electronic map, and an electronic map is displayed.
  • the three-dimensional coordinates of the initial position point and the target position point of the electronic map are acquired, and the three-dimensional coordinates of the key node are determined according to the obtained three-dimensional coordinates of the initial position point and the target position point, according to the initial position point and the target position point.
  • the three-dimensional coordinates of the key nodes generating a spatial curve connecting the initial position point, the key node and the target position point in turn, and determining the movement from the generated space curve according to the preset map display duration, the movement function, and the screen time interval.
  • Point, and the target position point as a moving point, and finally display the electronic map along the spatial curve starting from the initial position point, and sequentially determine the moving point as the center point.
  • a key node is selected between the initial position point and the target position point, and a spatial curve connecting the initial position point, the key node and the target position point is sequentially generated, and the movement is selected on the space curve.
  • Point the electronic map is displayed at the moving point in order from the initial position point. Therefore, on the one hand, the display of the electronic map moves according to the spatial curve, so that the moving trajectory of the electronic map is more spatial, and on the other hand, according to the preset map
  • the display duration, the movement function, and the screen interval are sequentially selected between the initial position point and the target position point, and the electronic map is displayed in turn at the moving point. Since the screen interval is generally shorter, the determined movement is performed.
  • the number of points is large, so that the difference of the map images displayed at the adjacent moving points is not large, and the movement of the electronic map is relatively smooth and coherent, and the existing technology directly displays the electronic map at the initial position point and the target position point, thereby improving The electronic map display effect.
  • modules or units
  • the functions of the various modules (or units) may be implemented in one or more software or hardware in the practice of the invention.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Navigation (AREA)
  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)

Abstract

一种显示电子地图的方法和装置,用以解决现有技术中存在的电子地图移动较生硬导致电子地图展示效果较差的问题。该方法包括:获取电子地图的初始位置点和目标位置点的三维坐标(11);根据初始位置点和目标位置点的三维坐标,确定关键节点的三维坐标(12);根据所述初始位置点、所述目标位置点和所述关键节点的三维坐标,生成依次连接所述初始位置点、所述关键节点和所述目标位置点的空间曲线(13);根据预置的地图显示时长、移动函数以及刷屏时间间隔,从所述空间曲线中确定出移动点,并将所述目标位置点作为一个移动点(14);以所述初始位置点为起点沿着所述空间曲线,依次以移动点为中心点,显示电子地图(15)。

Description

一种显示电子地图的方法和装置
本申请要求在2014年12月04日提交中国专利局、申请号为201410736415.5、发明名称为“一种显示电子地图的方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及图像处理技术领域,尤其涉及一种显示电子地图的方法和装置。
背景技术
目前,在终端设备上移动电子地图时,直接以目标位置点为中心点展示该电子地图,当初始位置点与目标位置点距离较远时,在初始位置点展示的电子地图的地图画面与在目标位置点展示的电子地图的地图画面相差比较大,因此,从视觉上电子地图跳转的比较生硬。比如,电子地图的初始位置点在上海,目标位置点在北京,则在初始位置点展示的地图画面为上海区域的部分地图数据,在目标位置点展示的地图画面为北京区域的部分地图数据,而这部分地图数据的内容差异较大,因此,采用现有的电子地图移动方式,较为生硬,电子地图展示效果较差。
发明内容
本发明实施例提供一种显示电子地图的方法和装置,用以解决现有技术中存在的电子地图移动较生硬导致电子地图展示效果较差的问题。
本发明实施例采用以下技术方案:
第一方面提供了一种显示电子地图的方法,包括:
获取电子地图的初始位置点和目标位置点的三维坐标;其中,初始位置 点和目标位置点的三维坐标包括经度坐标、纬度坐标和高度坐标,其中初始位置点和目标位置点的高度坐标的取值分别为在初始位置点和目标位置点展示电子地图时的比例尺对应的高度值;
根据初始位置点和目标位置点的三维坐标,确定关键节点的三维坐标;
根据所述初始位置点、所述目标位置点和所述关键节点的三维坐标,生成依次连接所述初始位置点、所述关键节点和所述目标位置点的空间曲线;
根据预置的地图显示时长、移动函数以及刷屏时间间隔,从所述空间曲线中确定出移动点,并将所述目标位置点作为一个移动点;
以所述初始位置点为起点沿着所述空间曲线,依次以移动点为中心点,显示电子地图。
其中,根据初始位置点和目标位置点的三维坐标,确定关键节点的三维坐标,具体包括:
将所述初始位置点和所述目标位置点经度坐标的平均值作为所述关键节点的经度坐标,以及将所述初始位置点和所述目标位置点纬度坐标的平均值作为所述关键节点的纬度坐标;
根据所述初始位置点和所述目标位置点的屏幕距离以及预置的比例尺范围,确定出所述关键节点对应的比例尺;
按照预置的比例尺与高度值的对应关系,确定出与所述关键节点对应的比例尺的高度值,并将该高度值作为关键节点的高度坐标。
其中,根据所述初始位置点和所述目标位置点的屏幕距离以及预置的比例尺范围,确定出所述关键节点对应的比例尺,具体包括:
计算所述初始位置点和所述目标位置点的屏幕距离与预先设置的比例系数的乘积;
将所述乘积与预置的比例尺范围进行比较;
当所述乘积小于所述比例尺范围中的最小比例尺时,将所述比例尺范围中的最小比例尺确定为所述关键节点对应的比例尺;
当所述乘积大于所述比例尺范围中的最大比例尺时,将所述比例尺范围 中的最大比例尺确定为所述关键节点对应的比例尺;
当所述乘积位于所述比例尺范围内时,将与该乘积最接近的比例尺确定为所述关键节点对应的比例尺。
其中,根据预置的地图显示时长、移动函数以及刷屏时间间隔,从所述空间曲线中确定出移动点,具体包括:
将所述空间曲线平均划分成多个曲线段,并从初始位置点开始沿着空间曲依次对曲线段进行编号;
根据所述初始位置点、关键节点、目标位置点的三维坐标及其所属曲线段的编号,确定出经度坐标与曲线段编号的第一函数关系,纬度坐标与曲线段编号的第二函数关系,高度坐标与曲线段编号的第三函数关系;
根据所述地图显示时长和预置的刷屏时间间隔,确定出刷屏次数;
以电子地图在所述初始位置点的时刻为0,移动距离为0,以所述初始位置点为起点按照所述移动函数沿着所述空间曲线移动,确定出每刷一次屏移动到空间曲线上的位置点,将确定出的位置点作为移动点;
根据各个移动点在空间曲线上所属曲线段的编号、所述第一函数关系、第二函数关系以及第三函数关系,确定出各移动点的三维坐标。
其中,移动点为中心点,显示电子地图,具体包括:
针对每个移动点,以该移动点的经纬度坐标为中心点,以该移动点的高度坐标对应的比例尺为展示电子地图时的比例尺,展示电子地图。
第二方面提供了一种显示电子地图的装置,包括:
三维坐标获取单元,用于获取电子地图的初始位置点和目标位置点的三维坐标;其中,初始位置点和目标位置点的三维坐标包括经度坐标、纬度坐标和高度坐标,其中初始位置点和目标位置点的高度坐标的取值分别为在初始位置点和目标位置点展示电子地图时的比例尺对应的高度值;
三维坐标确定单元,用于根据所述三维坐标获取单元获取的初始位置点和目标位置点的三维坐标,确定关键节点的三维坐标;
空间曲线生成单元,用于根据所述三维坐标获取单元获取的所述初始位 置点、所述目标位置点和所述三维坐标确定单元确定的关键节点的三维坐标,生成依次连接所述初始位置点、所述关键节点和所述目标位置点的空间曲线;
移动点确定单元,用于根据预置的地图显示时长、移动函数以及刷屏时间间隔,从所述空间曲线生成单元生成的空间曲线中确定出移动点,并将所述目标位置点作为一个移动点;
显示单元,用于以所述初始位置点为起点沿着所述空间曲线,依次以所述移动点确定单元确定的移动点为中心点,显示电子地图。
其中,所述三维坐标确定单元,具体包括:
经纬度坐标确定模块,用于将所述三维坐标获取单元获取的初始位置点和所述目标位置点经度坐标的平均值作为所述关键节点的经度坐标,以及将所述三维坐标获取单元获取的初始位置点和所述目标位置点纬度坐标的平均值作为所述关键节点的纬度坐标;
比例尺确定模块,用于根据所述初始位置点和所述目标位置点的屏幕距离以及预置的比例尺范围,确定出所述关键节点对应的比例尺;
高度坐标确定模块,用于按照预置的比例尺与高度值的对应关系,确定出与所述比例尺确定模块确定的关键节点对应的比例尺的高度值,并将该高度值作为关键节点的高度坐标。
其中,所述比例尺确定模块,具体用于:
计算所述初始位置点和所述目标位置点的屏幕距离与预先设置的比例系数的乘积;将所述乘积与预置的比例尺范围进行比较;当所述乘积小于所述比例尺范围中的最小比例尺时,将所述比例尺范围中的最小比例尺确定为所述关键节点对应的比例尺;当所述乘积大于所述比例尺范围中的最大比例尺时,将所述比例尺范围中的最大比例尺确定为所述关键节点对应的比例尺;当所述乘积位于所述比例尺范围内时,将与该乘积最接近的比例尺确定为所述关键节点对应的比例尺。
其中,所述移动点确定单元,具体包括:
将所述空间曲线平均划分成多个曲线段,并从初始位置点开始沿着空间 曲依次对曲线段进行编号;根据所述初始位置点、关键节点、目标位置点的三维坐标及其所属曲线段的编号,确定出经度坐标与曲线段编号的第一函数关系,纬度坐标与曲线段编号的第二函数关系,高度坐标与曲线段编号的第三函数关系;根据所述地图显示时长和预置的刷屏时间间隔,确定出刷屏次数;以电子地图在所述初始位置点的时刻为0,移动距离为0,以所述初始位置点为起点按照所述移动函数沿着所述空间曲线移动,确定出每刷一次屏移动到空间曲线上的位置点,将确定出的位置点作为移动点;根据各个移动点在空间曲线上所属曲线段的编号、所述第一函数关系、第二函数关系以及第三函数关系,确定出各移动点的三维坐标。
其中,所述显示单元,具体用于:
针对每个移动点,以该移动点的经纬度坐标为中心点,以该移动点的高度坐标对应的比例尺为展示电子地图时的比例尺,展示电子地图。
本发明实施例的有益效果如下:
本发明实施例中,获取电子地图的初始位置点和目标位置点的三维坐标,根据获取的初始位置点和目标位置点的三维坐标,确定关键节点的三维坐标,根据初始位置点、目标位置点和关键节点的三维坐标,生成依次连接初始位置点、关键节点和目标位置点的空间曲线,并根据预置的地图显示时长、移动函数以及刷屏时间间隔,从生成的空间曲线中确定出移动点,并将目标位置点作为一个移动点,最后以初始位置点为起点沿着空间曲线,依次以确定出的移动点为中心点,显示电子地图。采用本发明技术方案,在初始位置点与目标位置点之间选取一关键节点,并生成依次连接初始位置点、所述关键节点和所述目标位置点的空间曲线,并在空间曲线上选取移动点,以初始位置点为起点依次在移动点展示电子地图,因此,一方面,电子地图的展示按照空间曲线移动,使得电子地图的移动轨迹更具空间感,另一方面,按照预置的地图显示时长、移动函数及刷屏时间间隔依次在初始位置点与目标位置点之间选取移动点,并依次在移动点展示电子地图,由于一般情况下刷屏时间间隔较短,因此确定出的移动点数量较多,使得在相邻移动点展示的地图 画面变化差异不大,实现电子地图移动的较为平滑、连贯,与现有技术直接在初始位置点和目标位置点展示电子地图而言,提高了电子地图展示效果。
本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在所写的说明书、权利要求书、以及附图中所特别指出的结构来实现和获得。
附图说明
附图用来提供对本发明的进一步理解,并且构成说明书的一部分,与本发明实施例一起用于解释本发明,并不构成对本发明的限制。在附图中:
图1为本发明实施例提供的一种显示电子地图的方法的实现流程图;
图2为本发明实施例提供的一种显示电子地图的方法在实际应用中的处理流程图;
图3为本发明实施例提供的一种显示电子地图的装置的结构示意图。
具体实施方式
为了解决现有技术中存在的电子地图移动较生硬导致电子地图展示效果较差的问题,本发明实施例提出了一种显示电子地图的方案。该技术方案中,通过获取电子地图的初始位置点和目标位置点的三维坐标,根据获取的初始位置点和目标位置点的三维坐标,确定关键节点的三维坐标,根据初始位置点、目标位置点和关键节点的三维坐标,生成依次连接初始位置点、关键节点和目标位置点的空间曲线,并根据预置的地图地图显示时长、移动函数以及刷屏时间间隔,从生成的空间曲线中确定出移动点,并将目标位置点作为一个移动点,最后以初始位置点为起点沿着空间曲线,依次以确定出的移动点为中心点,显示电子地图,从而使电子地图展示效果大大提高,避免了现有技术中由于电子地图移动较生硬而导致的电子地图展示效果较差的问题。
以下结合说明书附图对本发明的实施例进行说明,应当理解,此处所描 述的实施例仅用于说明和解释本发明,并不用于限制本发明。并且在不冲突的情况下,本发明中的实施例及实施例的特征可以互相结合。
本发明实施例中提供了一种显示电子地图的方法,如图1所示,为该方法的实现流程图,该方法具体包括下述步骤:
步骤11,获取电子地图的初始位置点和目标位置点的三维坐标;其中,初始位置点和目标位置点的三维坐标包括经度坐标、纬度坐标和高度坐标,其中初始位置点和目标位置点的高度坐标的取值可以分别为在初始位置点和目标位置点展示电子地图时的比例尺对应的高度值。
其中,本发明实施例预先设置有比例尺与高度值的对应关系,如设置有各个比例尺与高度值范围的对应关系,如比例尺3对应的高度值为g1,比例尺4对应的高度值为g2,比例尺5对应的高度值为g3等。比例尺越大高度值越小,比例尺越小高度值越大。
还需要说明的是,在本发明实施例中所涉及到的比例尺表示的是比例尺的缩放级别,并不代表比例尺的值。比如,比例尺3表示的是比例尺的缩放级别为3,而不是比例尺的值为3,比例尺3的值应该是预先针对比例尺的缩放级别3而设置的一个比值。
步骤12,根据初始位置点和目标位置点的三维坐标,确定关键节点的三维坐标。
为了使电子地图从初始位置点移动到目标位置点的过程不再生硬,本发明实施例中预先根据初始位置点和目标位置点确定一个关键节点,然后设计生成一条依次连接初始位置点、关键节点和目标位置点的空间曲线。
其中,本发明实施例中的关键节点的三维坐标可以但不限于采用如下方法确定:
步骤a1,将初始位置点和目标位置点的经度坐标的平均值作为关键节点的经度坐标,以及将初始位置点和目标位置点的纬度坐标的平均值作为关键节点的纬度坐标;
步骤a2,根据初始位置点和目标位置点的屏幕距离以及预置的比例尺范 围,确定出关键节点对应的比例尺。本发明实施例中,初始位置点和目标位置点的屏幕距离根据以下方式得到:根据初始位置点和目标位置点的经纬度坐标,计算初始位置点和目标位置点的距离值;将该距离值与移动电子地图前的比例尺的乘积作为初始位置点和目标位置点的屏幕距离。
具体实现可如下:计算初始位置点和目标位置点的屏幕距离与预先设置的比例系数的乘积,将该乘积与预置的比例尺范围进行比较,当该乘积小于预置的比例尺范围中的最小比例尺时,将预置的比例尺范围中的最小比例尺确定为关键节点对应的比例尺;当该乘积大于预置的比例尺范围中的最大比例尺时,将预置的比例尺范围中的最大比例尺确定为关键节点对应的比例尺;当所述乘积位于所述比例尺范围内时,将与该乘积最接近的比例尺确定为所述关键节点对应的比例尺。比如,预置的比例尺范围为3-19,当初始位置点和目标位置点的屏幕距离与预先设置的比例系统的乘积小于3时,则将3确定为关键节点对应的比例尺;当初始位置点和目标位置点的屏幕距离与预先设置的比例系统的乘积大于19时,则将19确定为关键节点对应的比例尺;当初始位置点和目标位置点的屏幕距离与预先设置的比例系统的乘积为15.7时,则将16确定为关键节点对应的比例尺。
步骤a3,按照预置的比例尺与高度值的对应关系,确定出与关键节点对应的比例尺的高度值,并将该高度值作为关键节点的高度坐标。
需要说明的是,本发明实施例中上述确定关键节点的三维坐标的方法仅是其中一种优选方式,在具体应用时,可以根据用户的自身需求自行设置。
步骤13,根据初始位置点、目标位置点和关键节点的三维坐标,生成依次连接初始位置点、关键节点和目标位置点的空间曲线。
步骤14,根据预置的地图显示时长、移动函数以及刷屏时间间隔,从生成的空间曲线中确定出移动点,并将目标位置点作为一个移动点。
假设地图显示时长为T,刷屏时间间隔为t0,则刷屏次数n=T/t0。地图显示时长是指电子地图从初始位置点移动到目标位置点的总时长。
步骤14具体的,从生成的空间曲线中确定出移动点可以但不限于按照如 下方式处理:
步骤b1、将生成的空间曲线平均划分成多个曲线段,并从初始位置点开始沿着空间曲依次对曲线段进行编号;
步骤b2、根据初始位置点、关键节点、目标位置点的三维坐标及其所属曲线段的编号,确定出经度坐标与曲线段编号的第一函数关系,纬度坐标与曲线段编号的第二函数关系,高度坐标与曲线段编号的第三函数关系;
步骤b3、根据地图显示时长和预置的刷屏时间间隔,确定出刷屏次数;
步骤b4、以电子地图在初始位置点的时刻为0,移动距离为0,以初始位置点为起点按照移动函数沿着空间曲线移动,确定出每刷一次屏移动到空间曲线上的位置点,将确定出的位置点作为移动点;
步骤b5、根据各个移动点在空间曲线上所属曲线段的编号、确定出的第一函数关系、第二函数关系以及第三函数关系,确定出各移动点的三维坐标。
步骤15,以初始位置点为起点沿着生成的空间曲线,依次以移动点为中心点,显示电子地图。
步骤15,具体的,针对每个移动点,以该移动点的经纬度坐标为中心点,以该移动点的高度坐标对应的比例尺为展示电子地图时的比例尺,展示电子地图。
另外,在实际应用中,在获取电子地图的初始位置点和目标位置点的三维坐标之后,如果初始位置点和目标位置点的距离(指实际距离)较近,使得在初始位置点展示的电子地图的地图画面与在目标位置点展示的电子地图的地图画面相差不大,则可以直接进行电子地图的跳转,而无需进行后续步骤12-步骤15的操作。
在这种情况下,在获取电子地图的初始位置点和目标位置点的三维坐标之后,本发明实施例还可以包括下述步骤:
根据获取的电子地图的初始位置点和目标位置点的三维坐标,判断初始位置点和目标位置点的距离是否大于预先设置的距离阈值;只有当判断出初始位置点和目标位置点的距离大于预先设置的距离阈值时,才继续执行步骤 12,否则直接进行电子地图的跳转。
本发明实施例中,通过获取电子地图的初始位置点和目标位置点的三维坐标,根据获取的初始位置点和目标位置点的三维坐标,确定关键节点的三维坐标,根据初始位置点、目标位置点和关键节点的三维坐标,生成依次连接初始位置点、关键节点和目标位置点的空间曲线,并根据预置的地图显示时长、移动函数以及刷屏时间间隔,从生成的空间曲线中确定出移动点,并将目标位置点作为一个移动点,最后以初始位置点为起点沿着空间曲线,依次以确定出的移动点为中心点,显示电子地图,从而使电子地图展示效果大大提高,避免了现有技术中由于电子地图移动较生硬而导致的电子地图展示效果较差的问题。
为了更好的理解本发明实施例,以下结合具体的实例对本发明实施例的具体实施过程进行说明。
如图2所示,为本发明实施例提供的显示电子地图的方法的具体应用实现流程图,包括如下处理步骤:
假设电子地图中的初始位置点为A,目标位置点为B,初始位置点A和目标位置点B的屏幕距离为L。
步骤21,获取初始位置点A的三维坐标为(x1,y1,z1),目标位置点B的三维坐标为(x2,y2,z2)。
其中,x1和x2分别为初始位置点A和目标位置点B的经度坐标,y1和y2分别为初始位置点A和目标位置点B的纬度坐标,z1和z2分别为初始位置点A和目标位置点B的高度坐标,且该高度坐标的取值分别为在初始位置点A和目标位置点B展示电子地图时的比例尺对应的高度值,一般情况下初始位置点A与目标位置点B的比例尺一致,因此,z1和z2的取值相同。
步骤22,根据初始位置点A和目标位置点B的三维坐标,判断初始位置点A和目标位置点B的距离是否大于预先设置的距离阈值,在判断结果为是时,继续执行步骤23,在判断结果为否时,直接以目标位置点B的经纬度坐标为中心点展示所述电子地图。
步骤23,根据初始位置点A和目标位置点B的三维坐标,确定关键节点C的三维坐标(x3,y3,z3)。
具体的,将初始位置点A和目标位置点B的经度坐标的平均值作为关键节点C的经度坐标,即x3=(x1+x2)/2;
将初始位置点A和目标位置点B的纬度坐标的平均值作为关键节点C的纬度坐标,即y3=(y1+y2)/2;
计算初始位置点A和B的屏幕距离L与预先设置的比例系数a的乘积,即a*L,比较a*L和预置的比例尺范围[3,19],确定关键节点C的比例尺,其中预置的比例尺为3到19的整数:
当a*L<3时,关键节点C的比例尺为3;
当a*L>19时,关键节点C的比例尺为19;
当3>a*L>19时,关键节点C的比例尺为与a*L最为接近的比例尺。
确定出关键节点C的比例尺之后,按照预置的比例尺与高度值的对应关系,确定出与关键节点对应的比例尺的高度值,并将该高度值作为关键节点的高度坐标,即z3。
步骤24,根据初始位置点A、目标位置点B和关键节点C的三维坐标,生成依次连接初始位置点A、关键节点C和目标位置点B的空间曲线。
步骤25,将生成的空间曲线平均划分成N段,并从初始位置点A开始沿着空间曲线依次对曲线段进行编号1~N。
假设初始位置点A所属的曲线段的编号为a段,目标位置点B所属的无线段的编号为b段,关键节点C所属的曲线段的编号为c段。其中,a、b和c属于[1,N]。
步骤26,通过初始位置点A、关键节点C、目标位置点B的三维坐标及其所属曲线段的编号,确定出经度坐标与曲线段编号的第一函数关系,纬度坐标与曲线段编号的第二函数关系,高度坐标与曲线段编号的第三函数关系,即:
第一函数关系:x=f(k)
第二函数关系:y=f1(k)
第三函数关系:z=f2(k)
其中,k的取值为[1,N]。
步骤27,根据预置的地图显示时长和预置的刷屏时间间隔,确定出刷屏次数。
比如,预置地图显示时长为30s,预置的刷屏时间间隔为1s,则确定出刷屏次数为30次。
步骤28,以电子地图在初始位置点A的时刻为0,移动距离为0,以初始位置点A为起点按照移动函数沿着空间曲线移动,确定出每刷一次屏移动到空间曲线上的位置点,将确定出的位置点作为移动点,并将目标位置点B也作为一个移动点。
其中,移动函数可以是预先设置的,以移动函数为Sg=F1(t)为例,可以将Sg设置为全程匀速的移动函数,比如Sg=V*t,其中,V为移动速度,t为移动时间;或者将Sg设置为前半段加速后半段减速的移动函数,等等。以移动函数Sg=V*t为例,根据初始位置点、关键节点、目标位置点的三维坐标计算空间曲线的总长度为S,预置的地图显示时长为T,以在初始位置点的时刻为0,假设刷屏时间间隔为t0,则移动到目标位置点的时间t=T,则得到移动速度V=S/T。第一次刷屏的时间为t(1)=t0,第二次刷屏的时间为t(2)=t(1)+t0=2t0,第三次刷屏的时间t(3)=t(2)+t0=3t0,…,t(i)=t(i-1)+t0,…。则初始位置点的位置点为0,移动点1的位置点为S(1)=V*t0;移动点2的位置点S(2)=V*2t0…..。
以刷屏30次为例,则需要从生成的空间曲线中确定出的移动点的个数应该为29个,加上目标位置点B共30个。
步骤29,根据各个移动点在空间曲线上所属曲线段的编号、确定出的第一函数关系、第二函数关系以及第三函数关系,确定出各移动点的三维坐标。
比如,确定出的某个移动点D在空间曲线上所属曲线段的编号为d段,即K=d,将K=d分别代入到上述确定出的第一函数关系、第二函数关系以及 第三函数关系,便能得到该移动点D的三维坐标。
步骤210,以初始位置点为起点沿着生成的空间曲线,依次以移动点为中心点,显示电子地图。
具体的,针对每个移动点,以该移动点的经纬度坐标为中心点,以该移动点的高度坐标对应的比例尺为展示电子地图时的比例尺,展示电子地图。
基于同一发明构思,本发明实施例中还提供了一种显示电子地图的装置,由于上述装置解决问题的原理与显示电子地图的方法相似,因此上述装置的实施可以参见方法的实施,重复之处不再赘述。
如图3所示,为本发明实施例提供的显示电子地图的装置的结构示意图,包括:
三维坐标获取单元31,用于获取电子地图的初始位置点和目标位置点的三维坐标;其中,初始位置点和目标位置点的三维坐标包括经度坐标、纬度坐标和高度坐标,其中初始位置点和目标位置点的高度坐标的取值分别为在初始位置点和目标位置点展示电子地图时的比例尺对应的高度值;
三维坐标确定单元32,用于根据所述三维坐标获取单元31获取的初始位置点和目标位置点的三维坐标,确定关键节点的三维坐标;
空间曲线生成单元33,用于根据所述三维坐标获取单元31获取的所述初始位置点、所述目标位置点和所述三维坐标确定单元32确定的关键节点的三维坐标,生成依次连接所述初始位置点、所述关键节点和所述目标位置点的空间曲线;
移动点确定单元34,用于根据预置的地图显示时长、移动函数以及刷屏时间间隔,从所述空间曲线生成单元33生成的空间曲线中确定出移动点,并将所述目标位置点作为一个移动点;
显示单元35,用于以所述初始位置点为起点沿着所述空间曲线,依次以所述移动点确定单元34确定的移动点为中心点,显示电子地图。
其中,所述三维坐标确定单元32,具体包括:
经纬度坐标确定模块321,用于将所述三维坐标获取单元31获取的初始 位置点和所述目标位置点经度坐标的平均值作为所述关键节点的经度坐标,以及将所述三维坐标获取单元获取的初始位置点和所述目标位置点纬度坐标的平均值作为所述关键节点的纬度坐标;
比例尺确定模块322,用于根据所述初始位置点和所述目标位置点的屏幕距离以及预置的比例尺范围,确定出所述关键节点对应的比例尺;
高度坐标确定模块323,用于按照预置的比例尺与高度值的对应关系,确定出与所述比例尺确定模块322确定的关键节点对应的比例尺的高度值,并将该高度值作为关键节点的高度坐标。
其中,所述比例尺确定模块322,具体用于:
计算所述初始位置点和所述目标位置点的屏幕距离与预先设置的比例系数的乘积;将所述乘积与预置的比例尺范围进行比较;当所述乘积小于所述比例尺范围中的最小比例尺时,将所述比例尺范围中的最小比例尺确定为所述关键节点对应的比例尺;当所述乘积大于所述比例尺范围中的最大比例尺时,将所述比例尺范围中的最大比例尺确定为所述关键节点对应的比例尺;当所述乘积位于所述比例尺范围内时,将与该乘积最接近的比例尺确定为所述关键节点对应的比例尺。
其中,所述移动点确定单元34,具体包括:
将所述空间曲线平均划分成多个曲线段,并从初始位置点开始沿着空间曲依次对曲线段进行编号;根据所述初始位置点、关键节点、目标位置点的三维坐标及其所属曲线段的编号,确定出经度坐标与曲线段编号的第一函数关系,纬度坐标与曲线段编号的第二函数关系,高度坐标与曲线段编号的第三函数关系;根据所述地图显示时长和预置的刷屏时间间隔,确定出刷屏次数;以电子地图在所述初始位置点的时刻为0,移动距离为0,以所述初始位置点为起点按照所述移动函数沿着所述空间曲线移动,确定出每刷一次屏移动到空间曲线上的位置点,将确定出的位置点作为移动点;根据各个移动点在空间曲线上所属曲线段的编号、所述第一函数关系、第二函数关系以及第三函数关系,确定出各移动点的三维坐标。
其中,所述显示单元35,具体用于:
针对每个移动点,以该移动点的经纬度坐标为中心点,以该移动点的高度坐标对应的比例尺为展示电子地图时的比例尺,展示电子地图。
本发明实施例中,获取电子地图的初始位置点和目标位置点的三维坐标,根据获取的初始位置点和目标位置点的三维坐标,确定关键节点的三维坐标,根据初始位置点、目标位置点和关键节点的三维坐标,生成依次连接初始位置点、关键节点和目标位置点的空间曲线,并根据预置的地图显示时长、移动函数以及刷屏时间间隔,从生成的空间曲线中确定出移动点,并将目标位置点作为一个移动点,最后以初始位置点为起点沿着空间曲线,依次以确定出的移动点为中心点,显示电子地图。采用本发明技术方案,在初始位置点与目标位置点之间选取一关键节点,并生成依次连接初始位置点、所述关键节点和所述目标位置点的空间曲线,并在空间曲线上选取移动点,以初始位置点为起点依次在移动点展示电子地图,因此,一方面,电子地图的展示按照空间曲线移动,使得电子地图的移动轨迹更具空间感,另一方面,按照预置的地图显示时长、移动函数及刷屏时间间隔依次在初始位置点与目标位置点之间选取移动点,并依次在移动点展示电子地图,由于一般情况下刷屏时间间隔较短,因此确定出的移动点数量较多,使得在相邻移动点展示的地图画面变化差异不大,实现电子地图移动的较为平滑、连贯,与现有技术直接在初始位置点和目标位置点展示电子地图而言,提高了电子地图展示效果。
为了描述的方便,以上各部分按照功能划分为各模块(或单元)分别描述。当然,在实施本发明时可以把各模块(或单元)的功能在同一个或多个软件或硬件中实现。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。

Claims (10)

  1. 一种显示电子地图的方法,其特征在于,包括:
    获取电子地图的初始位置点和目标位置点的三维坐标;其中,初始位置点和目标位置点的三维坐标包括经度坐标、纬度坐标和高度坐标,其中初始位置点和目标位置点的高度坐标的取值分别为在初始位置点和目标位置点展示电子地图时的比例尺对应的高度值;
    根据初始位置点和目标位置点的三维坐标,确定关键节点的三维坐标;
    根据所述初始位置点、所述目标位置点和所述关键节点的三维坐标,生成依次连接所述初始位置点、所述关键节点和所述目标位置点的空间曲线;
    根据预置的地图显示时长、移动函数以及刷屏时间间隔,从所述空间曲线中确定出移动点,并将所述目标位置点作为一个移动点;
    以所述初始位置点为起点沿着所述空间曲线,依次以移动点为中心点,显示电子地图。
  2. 如权利要求1所述的方法,其特征在于,根据初始位置点和目标位置点的三维坐标,确定关键节点的三维坐标,具体包括:
    将所述初始位置点和所述目标位置点经度坐标的平均值作为所述关键节点的经度坐标,以及将所述初始位置点和所述目标位置点纬度坐标的平均值作为所述关键节点的纬度坐标;
    根据所述初始位置点和所述目标位置点的屏幕距离以及预置的比例尺范围,确定出所述关键节点对应的比例尺;
    按照预置的比例尺与高度值的对应关系,确定出与所述关键节点对应的比例尺的高度值,并将该高度值作为关键节点的高度坐标。
  3. 如权利要求2所述的方法,其特征在于,根据所述初始位置点和所述目标位置点的屏幕距离以及预置的比例尺范围,确定出所述关键节点对应的比例尺,具体包括:
    计算所述初始位置点和所述目标位置点的屏幕距离与预先设置的比例系 数的乘积;
    将所述乘积与预置的比例尺范围进行比较;
    当所述乘积小于所述比例尺范围中的最小比例尺时,将所述比例尺范围中的最小比例尺确定为所述关键节点对应的比例尺;
    当所述乘积大于所述比例尺范围中的最大比例尺时,将所述比例尺范围中的最大比例尺确定为所述关键节点对应的比例尺;
    当所述乘积位于所述比例尺范围内时,将与该乘积最接近的比例尺确定为所述关键节点对应的比例尺。
  4. 如权利要求1~3任一项所述的方法,其特征在于,根据预置的地图显示时长、移动函数以及刷屏时间间隔,从所述空间曲线中确定出移动点,具体包括:
    将所述空间曲线平均划分成多个曲线段,并从初始位置点开始沿着空间曲依次对曲线段进行编号;
    根据所述初始位置点、关键节点、目标位置点的三维坐标及其所属曲线段的编号,确定出经度坐标与曲线段编号的第一函数关系,纬度坐标与曲线段编号的第二函数关系,高度坐标与曲线段编号的第三函数关系;
    根据所述地图显示时长和预置的刷屏时间间隔,确定出刷屏次数;
    以电子地图在所述初始位置点的时刻为0,移动距离为0,以所述初始位置点为起点按照所述移动函数沿着所述空间曲线移动,确定出每刷一次屏移动到空间曲线上的位置点,将确定出的位置点作为移动点;
    根据各个移动点在空间曲线上所属曲线段的编号、所述第一函数关系、第二函数关系以及第三函数关系,确定出各移动点的三维坐标。
  5. 如权利要求4所述的方法,其特征在于,移动点为中心点,显示电子地图,具体包括:
    针对每个移动点,以该移动点的经纬度坐标为中心点,以该移动点的高度坐标对应的比例尺为展示电子地图时的比例尺,展示电子地图。
  6. 一种显示电子地图的装置,其特征在于,包括:
    三维坐标获取单元,用于获取电子地图的初始位置点和目标位置点的三维坐标;其中,初始位置点和目标位置点的三维坐标包括经度坐标、纬度坐标和高度坐标,其中初始位置点和目标位置点的高度坐标的取值分别为在初始位置点和目标位置点展示电子地图时的比例尺对应的高度值;
    三维坐标确定单元,用于根据所述三维坐标获取单元获取的初始位置点和目标位置点的三维坐标,确定关键节点的三维坐标;
    空间曲线生成单元,用于根据所述三维坐标获取单元获取的所述初始位置点、所述目标位置点和所述三维坐标确定单元确定的关键节点的三维坐标,生成依次连接所述初始位置点、所述关键节点和所述目标位置点的空间曲线;
    移动点确定单元,用于根据预置的地图显示时长、移动函数以及刷屏时间间隔,从所述空间曲线生成单元生成的空间曲线中确定出移动点,并将所述目标位置点作为一个移动点;
    显示单元,用于以所述初始位置点为起点沿着所述空间曲线,依次以所述移动点确定单元确定的移动点为中心点,显示电子地图。
  7. 如权利要求6所述的装置,其特征在于,所述三维坐标确定单元,具体包括:
    经纬度坐标确定模块,用于将所述三维坐标获取单元获取的初始位置点和所述目标位置点经度坐标的平均值作为所述关键节点的经度坐标,以及将所述三维坐标获取单元获取的初始位置点和所述目标位置点纬度坐标的平均值作为所述关键节点的纬度坐标;
    比例尺确定模块,用于根据所述初始位置点和所述目标位置点的屏幕距离以及预置的比例尺范围,确定出所述关键节点对应的比例尺;
    高度坐标确定模块,用于按照预置的比例尺与高度值的对应关系,确定出与所述比例尺确定模块确定的关键节点对应的比例尺的高度值,并将该高度值作为关键节点的高度坐标。
  8. 如权利要求7所述的装置,其特征在于,所述比例尺确定模块,具体用于:
    计算所述初始位置点和所述目标位置点的屏幕距离与预先设置的比例系数的乘积;
    将所述乘积与预置的比例尺范围进行比较;
    当所述乘积小于所述比例尺范围中的最小比例尺时,将所述比例尺范围中的最小比例尺确定为所述关键节点对应的比例尺;
    当所述乘积大于所述比例尺范围中的最大比例尺时,将所述比例尺范围中的最大比例尺确定为所述关键节点对应的比例尺;
    当所述乘积位于所述比例尺范围内时,将与该乘积最接近的比例尺确定为所述关键节点对应的比例尺。
  9. 如权利要求6~8任一项所述的装置,其特征在于,所述移动点确定单元,具体用于:
    将所述空间曲线平均划分成多个曲线段,并从初始位置点开始沿着空间曲依次对曲线段进行编号;根据所述初始位置点、关键节点、目标位置点的三维坐标及其所属曲线段的编号,确定出经度坐标与曲线段编号的第一函数关系,纬度坐标与曲线段编号的第二函数关系,高度坐标与曲线段编号的第三函数关系;根据所述地图显示时长和预置的刷屏时间间隔,确定出刷屏次数;以电子地图在所述初始位置点的时刻为0,移动距离为0,以所述初始位置点为起点按照所述移动函数沿着所述空间曲线移动,确定出每刷一次屏移动到空间曲线上的位置点,将确定出的位置点作为移动点;根据各个移动点在空间曲线上所属曲线段的编号、所述第一函数关系、第二函数关系以及第三函数关系,确定出各移动点的三维坐标。
  10. 如权利要求9所述的装置,其特征在于,所述显示单元,具体用于:
    针对每个移动点,以该移动点的经纬度坐标为中心点,以该移动点的高度坐标对应的比例尺为展示电子地图时的比例尺,展示电子地图。
PCT/CN2015/096391 2014-12-04 2015-12-04 一种显示电子地图的方法和装置 WO2016086893A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410736415.5 2014-12-04
CN201410736415.5A CN105719351B (zh) 2014-12-04 2014-12-04 一种显示电子地图的方法和装置

Publications (1)

Publication Number Publication Date
WO2016086893A1 true WO2016086893A1 (zh) 2016-06-09

Family

ID=56091046

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/096391 WO2016086893A1 (zh) 2014-12-04 2015-12-04 一种显示电子地图的方法和装置

Country Status (2)

Country Link
CN (1) CN105719351B (zh)
WO (1) WO2016086893A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107122774A (zh) * 2017-03-28 2017-09-01 武汉斗鱼网络科技有限公司 一种随图像中关键点移动的自适应贴图方法和系统
CN112131331A (zh) * 2020-09-24 2020-12-25 腾讯科技(深圳)有限公司 地图数据处理方法、装置、计算机设备和存储介质

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108801287B (zh) * 2017-05-03 2021-08-13 腾讯科技(深圳)有限公司 一种导航地图中引导线的显示方法和移动终端
CN107993195A (zh) * 2017-12-07 2018-05-04 西南交通大学 顾及形变控制的小屏幕变比例尺交通路线图生成方法
CN108415936A (zh) * 2018-01-24 2018-08-17 武汉智博创享科技股份有限公司 一种电子地图的轨迹回放方法及装置
CN112650896A (zh) * 2019-10-12 2021-04-13 阿里巴巴集团控股有限公司 数据处理方法、装置、设备及存储介质
CN111085998B (zh) * 2019-12-17 2021-11-09 珠海市一微半导体有限公司 机器人记录运动轨迹的方法和显示机器人运动轨迹的方法
CN111143709B (zh) * 2019-12-18 2023-11-21 深圳市超时空探索科技有限公司 一种3d地图场景下的撤销方法和装置
CN111177598B (zh) * 2019-12-26 2023-06-27 深圳市超时空探索科技有限公司 一种地理位置跳转方法
CN113554932B (zh) * 2020-04-23 2022-07-19 华为技术有限公司 轨迹回放方法及装置
CN112287060B (zh) * 2020-11-13 2021-09-28 珠海大横琴科技发展有限公司 一种基于监控地图的数据处理方法、装置和可读存储介质
CN113593397B (zh) * 2021-08-18 2023-08-08 哈尔滨海能达科技有限公司 一种历史轨迹数据加载方法、装置及系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101975578A (zh) * 2010-09-20 2011-02-16 北京腾瑞万里科技有限公司 导航方法和装置
CN102075972A (zh) * 2010-12-31 2011-05-25 中国科学技术大学苏州研究院 基于坐标转换的无线信号定位跟踪显示系统及其显示方法
JP4902236B2 (ja) * 2006-03-22 2012-03-21 株式会社日立製作所 三次元地図表示装置、三次元地図表示プログラム及び三次元地図表示プログラムを記録した記録媒体
CN102566898A (zh) * 2010-11-23 2012-07-11 爱信艾达株式会社 控制装置、控制装置的控制方法以及计算机程序
CN102918358A (zh) * 2010-04-09 2013-02-06 通腾北美有限公司 从表示位置的数据解析位置的方法

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100511209C (zh) * 2005-08-24 2009-07-08 中国移动通信集团公司 数字地图显示方法
CN101707026B (zh) * 2009-11-25 2012-10-10 中国人民解放军信息工程大学 数字地图线状要素化简的组合优化方法
CN101763658B (zh) * 2009-12-14 2012-07-25 煤航(香港)有限公司 全要素真三维大比例尺数字地图的制作方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4902236B2 (ja) * 2006-03-22 2012-03-21 株式会社日立製作所 三次元地図表示装置、三次元地図表示プログラム及び三次元地図表示プログラムを記録した記録媒体
CN102918358A (zh) * 2010-04-09 2013-02-06 通腾北美有限公司 从表示位置的数据解析位置的方法
CN101975578A (zh) * 2010-09-20 2011-02-16 北京腾瑞万里科技有限公司 导航方法和装置
CN102566898A (zh) * 2010-11-23 2012-07-11 爱信艾达株式会社 控制装置、控制装置的控制方法以及计算机程序
CN102075972A (zh) * 2010-12-31 2011-05-25 中国科学技术大学苏州研究院 基于坐标转换的无线信号定位跟踪显示系统及其显示方法

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107122774A (zh) * 2017-03-28 2017-09-01 武汉斗鱼网络科技有限公司 一种随图像中关键点移动的自适应贴图方法和系统
CN107122774B (zh) * 2017-03-28 2019-12-03 武汉斗鱼网络科技有限公司 一种随图像中关键点移动的自适应贴图方法和系统
CN112131331A (zh) * 2020-09-24 2020-12-25 腾讯科技(深圳)有限公司 地图数据处理方法、装置、计算机设备和存储介质
CN112131331B (zh) * 2020-09-24 2022-06-03 腾讯科技(深圳)有限公司 地图数据处理方法、装置、计算机设备和存储介质

Also Published As

Publication number Publication date
CN105719351A (zh) 2016-06-29
CN105719351B (zh) 2018-09-28

Similar Documents

Publication Publication Date Title
WO2016086893A1 (zh) 一种显示电子地图的方法和装置
CN104899563B (zh) 一种二维人脸关键特征点定位方法及系统
US10650598B2 (en) Augmented reality-based information acquiring method and apparatus
RU2015137588A (ru) Привязка изображений при получении множества изображений предметного стекла
US10338879B2 (en) Synchronization object determining method, apparatus, and system
US20140152764A1 (en) Information processing system, information processing apparatus, storage medium having stored therein information processing program, and information transmission/reception method
EP2894604B1 (en) Determining information from images using sensor data
JP2014055834A5 (zh)
CN111145328B (zh) 三维文字表面纹理坐标计算方法、介质、设备及装置
JP2013097089A5 (zh)
WO2015165258A1 (zh) 一种电子地图绘制区域确定方法、装置及导航设备
CN104142807A (zh) 基于安卓控件利用OpenGL绘制图像的方法和系统
CN110782534B (zh) 3d文字颜色渐变方法、介质、设备及装置
JP2017535835A5 (zh)
JP5920886B2 (ja) 端末の位置・方位情報に基づいてpoiを推定するサーバ、システム、プログラム及び方法
CN106611443B (zh) 三维地形点拾取方法及装置
JP2023109570A (ja) 情報処理装置、学習装置、画像認識装置、情報処理方法、学習方法、画像認識方法
US11308705B2 (en) Display control device, display control method, and program
CN107526566B (zh) 一种移动终端的显示控制方法及装置
WO2016165362A1 (zh) 一种投影显示方法、装置、电子设备及计算机存储介质
CN105760375A (zh) 甘特图显示方法和系统
WO2018086258A1 (zh) 界面的刷新方法及终端
US20130002682A1 (en) Electronic device with function of mapping human movement to digital model and method thereof
JP2021076923A5 (zh)
CN106780616B (zh) 一种基于多矩阵映射的投影仪标定方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15865835

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15865835

Country of ref document: EP

Kind code of ref document: A1