WO2016054859A1 - Electronic map hierarchical management method - Google Patents

Electronic map hierarchical management method Download PDF

Info

Publication number
WO2016054859A1
WO2016054859A1 PCT/CN2014/093331 CN2014093331W WO2016054859A1 WO 2016054859 A1 WO2016054859 A1 WO 2016054859A1 CN 2014093331 W CN2014093331 W CN 2014093331W WO 2016054859 A1 WO2016054859 A1 WO 2016054859A1
Authority
WO
WIPO (PCT)
Prior art keywords
map
map image
screen
new
display
Prior art date
Application number
PCT/CN2014/093331
Other languages
French (fr)
Chinese (zh)
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 WO2016054859A1 publication Critical patent/WO2016054859A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4038Image mosaicing, e.g. composing plane images from plane sub-images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/20Linear translation of whole images or parts thereof, e.g. panning

Definitions

  • the invention relates to an electronic map, in particular to an electronic map hierarchical management method.
  • Electronic maps have been applied in many management systems. Electronic maps can be drawn. Some vectorized drawing software can be used for drawing. When layered, each layer has different details.
  • drawing software has its own unique non-open data storage format, and does not provide a parser. It can only provide non-vectorized graphic files that can save other common formats.
  • the commercial drawing software saves the map, since the display scale cannot be set, and the block cannot be automatically divided into the map, it is necessary to manually save the map.
  • the range and proportion of each graph are difficult to accurately control, and it is necessary to realize the full zoom.
  • the splicing difficulty and workload of the figure are very large, usually need to develop specialized drawing tool software and maintenance management software, and the development workload of such tools and maintenance software is often greater than the use of software, which greatly increases the development cycle and cost.
  • Chinese invention patent CN 103700126 A discloses a device for controlling electronic map zooming and a corresponding method, which quickly displays fuzzy preloaded tiles by selecting preloaded display levels and loading and magnifying display preloaded tiles, and loading and The display of the currently displayed tile is reduced;
  • Chinese Patent No. CN 103714164 A discloses a device for controlling the translation of an electronic map and a corresponding method, by selecting a preloaded display level and loading and enlarging the display of the preloaded tile, when the target tile is acquired After loading and displaying the target tile to replace the corresponding pre-loaded tile of the corresponding position; the above two methods need to save the complete picture when only a part of the layer needs to display the content, and the workload of map creation and maintenance is large.
  • a technical solution for achieving the object of the present invention is: a method for hierarchical management of an electronic map, comprising the following steps:
  • Step 1 Establish a hierarchical display model of the electronic map:
  • Step 1-1 Set N layers according to the content to be displayed, where N is a natural number
  • Step 1-2 Set the basic layer, set the display ratio of the basic layer to L1, save the basic layer map image, record the ground coordinates of the corner point of the map image, and record the upper left corner and the upper right corner of the one-dimensional plane map.
  • Ground coordinates, the three-dimensional 2D map records the ground coordinates of the upper left corner, upper right corner and lower left corner;
  • Step 1-3 setting the magnification ratio of other layers relative to the basic layer; setting the fuzzy scale factor f, Where 0 ⁇ f ⁇ 1;
  • Step 1-4 Draw and intercept the map image of other layers.
  • the viewing angle of the map image is the same as that of the basic layer map image. If the magnification ratio of the layer is Ln, the display ratio L of the map in the map image satisfies Ln*f ⁇ L ⁇ Ln/f; save the map image of other layers, and record the ground coordinates of the upper left corner and the upper right corner;
  • the screen refers to a display screen image
  • the map image refers to a map screenshot saved according to a given format
  • Step 2 determining a plane conversion relationship between the map image of the basic layer and the ground coordinate according to the correspondence between the pixel positions of the upper left corner, the upper right corner, and the lower left corner of the basic layer map image and the corresponding ground coordinate point positions;
  • Step 3 determining an offset and an enlargement ratio of the screen according to a correspondence relationship between a top left corner of the map image and a pixel position of the upper right corner and a corresponding coordinate position of the ground;
  • Step 4 if the map zoom in the screen, perform step 5; if the map shift in the screen, perform step 6;
  • Step 5 When the map is zoomed in the screen, the search and display of the new map image includes the following steps:
  • Step 5-1 determining an enlargement/reduction ratio of the map displayed in the current screen relative to the map of the basic layer screen;
  • Step 5-2 In all map images, look for all map images whose magnification ratio is smaller than the screen display scale and includes the coordinates of the current mouse point location map;
  • Step 5-4 Calculate the ground coordinates of the center point of the map image obtained in step 5-3, and compare the map image with the coordinate of the ground coordinate of the center point and the map of the current mouse point of the current screen;
  • Step 5-5 through the above steps, determine whether a new map image is found, and if no new map image is found, the original map image is displayed;
  • the new map image is called up, the display ratio of the new map image is zoomed to the current screen display ratio, and the window display position of the map image is moved, so that the ground coordinates of the mouse point in the map image are in the original map image.
  • the ground coordinates coincide, showing a new map image
  • Step 6 When the map is panned in the screen, the search and display of the new map image includes the following steps:
  • Step 6-1 determining whether the ground coordinate position corresponding to the center point of the window is in the current map picture, and if the edge of the map picture moves out of the center point, according to step 5, search for a suitable new map picture in the map image of the same layer;
  • Step 6-2 Search in the same layer map picture. If a new map picture cannot be found in the same layer map picture, continue to search in the next layer map picture, and then cycle until the new map picture is found, and the new map picture is displayed. ;
  • the invention has the following advantages: (1) The invention adopts a fuzzy layered management algorithm, which facilitates partial modification and replacement of the map, does not require special maintenance management tools, and is suitable for applications of small electronic maps; (2) The invention only needs to save the partial picture, does not need to save the complete picture, and greatly reduces the workload of map creation and maintenance; (3) can use various drawing tools of the most application drawing tools of commercial drawing tools to improve efficiency and speed up development progress. .
  • FIG. 1 is a flowchart of a method for hierarchical management of an electronic map according to the present invention.
  • an electronic map hierarchical management method includes the following steps:
  • Step 1 Establish a hierarchical display model of the electronic map:
  • Step 1-1 Set N layers according to the content to be displayed, where N is a natural number
  • Step 1-2 Set the basic layer, set the display ratio of the basic layer to L1, save the basic layer map image, record the ground coordinates of the corner point of the map image, and record the upper left corner and the upper right corner of the one-dimensional plane map.
  • Ground coordinates, the three-dimensional 2D map records the ground coordinates of the upper left corner, upper right corner and lower left corner;
  • Step 1-3 setting the magnification ratio of other layers relative to the basic layer; setting a fuzzy scale factor f, where 0 ⁇ f ⁇ 1;
  • Step 1-4 Draw and intercept the map image of other layers.
  • the viewing angle of the map image is the same as that of the basic layer map image. If the magnification ratio of the layer is Ln, the display ratio L of the map in the map image satisfies Ln*f ⁇ L ⁇ Ln/f; save the map image of other layers, record the top left corner and the top right corner Surface coordinates
  • the screen refers to a display screen image
  • the map image refers to a map screenshot saved according to a given format
  • Step 2 determining a plane conversion relationship between the map image of the basic layer and the ground coordinate according to the correspondence between the pixel positions of the upper left corner, the upper right corner, and the lower left corner of the basic layer map image and the corresponding ground coordinate point position; the basic layer map
  • the plane conversion relationship between the image and the ground coordinates is:
  • Step 3 Determine the offset and magnification ratio of the screen according to the correspondence between the upper left corner of the map image and the pixel position of the upper right corner and the corresponding coordinate position of the ground; the offset and proportional relationship of the screen are:
  • Step 4 if the map zoom in the screen, perform step 5; if the map shift in the screen, perform step 6;
  • Step 5 When the map is zoomed in the screen, the search and display of the new map image includes the following steps:
  • Step 5-1 determining an enlargement/reduction ratio of the map displayed in the current screen relative to the map of the basic layer screen;
  • Step 5-2 In all map images, look for all map images whose magnification ratio is smaller than the screen display scale and includes the coordinates of the current mouse point location map;
  • Step 5-4 Calculate the ground coordinates of the center point of the map image obtained in step 5-3, and compare the map image with the coordinate of the ground coordinate of the center point and the map of the current mouse point of the current screen;
  • Step 5-5 through the above steps, determine whether a new map image is found, and if no new map image is found, the original map image is displayed;
  • the new map image is called up, the display ratio of the new map image is zoomed to the current screen display ratio, and the window display position of the map image is moved, so that the ground coordinates of the mouse point in the map image are in the original map image.
  • the ground coordinates coincide, showing a new map image
  • Step 6 When the map is panned in the screen, the search and display of the new map image includes the following steps:
  • Step 6-1 Determine whether the ground coordinate position corresponding to the center point of the window is in the current map picture. If the edge of the map picture moves out of the center point, according to step 4, search for a suitable new map picture in the map image of the same layer; The preferred order of the new map image is:
  • Step 6-2 Search in the same layer map picture. If a new map picture cannot be found in the same layer map picture, continue to search in the next layer map picture, and then cycle until the new map picture is found, and the new map picture is displayed. ;
  • the fuzzy scale factor, the layer magnification ratio, and the display ratio are all set according to specific conditions, and both are greater than zero.
  • the invention adopts a fuzzy layered management algorithm, which is convenient for partial modification and replacement of the map, does not require special maintenance management tools, and is suitable for application of a small electronic map; at the same time, only a partial picture of a certain layer needs to display content, as long as the content is saved. The picture does not need to save the full picture, greatly reducing the workload of map creation and maintenance.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)
  • Instructional Devices (AREA)

Abstract

Disclosed is an electronic map hierarchical management method, the method comprising: establishing an electronic map hierarchical model; determining the plane conversion relationship between a map photo and a ground coordinate in a basic map layer, and the relationship between screen offset and proportion; if the screen is scaled or translated, respectively searching and displaying a new map photo. The present invention employs a fuzzy hierarchical management algorithm to facilitate partial modification and changing of a map without any special maintenance management tool, thus being suitable for a small-scale electronic map; when only a portion of a certain map layer needs to be displayed, only said portion rather than a complete picture is saved, thus greatly reducing the map creation and maintenance workload.

Description

一种电子地图分层管理方法Electronic map hierarchical management method 技术领域Technical field
本发明涉及一种电子地图,特别是一种电子地图分层管理方法。The invention relates to an electronic map, in particular to an electronic map hierarchical management method.
背景技术Background technique
电子地图已在很多管理系统中得到应用,绘制应用电子地图,制图时可以用一些矢量化绘图软件,分层显示时,每层有不同的细节。Electronic maps have been applied in many management systems. Electronic maps can be drawn. Some vectorized drawing software can be used for drawing. When layered, each layer has different details.
但一些绘图软件有自己独有的不开放的数据存储格式,且不提供解析器,只可提供可以保存其他通用格式的非矢量化的图形文件。商用绘图软件在存图时,由于不能设定显示比例,也不能自动划分区块进行存图,需要手工进行存图,每幅图的范围和比例很难精确控制,要想在放大时实现全图的拼接难度和工作量很大,通常需要开发专门的绘图工具软件和维护管理软件,而此类的工具及维护软件的开发工作量也往往大于使用软件,大大增加了开发周期和成本。However, some drawing software has its own unique non-open data storage format, and does not provide a parser. It can only provide non-vectorized graphic files that can save other common formats. When the commercial drawing software saves the map, since the display scale cannot be set, and the block cannot be automatically divided into the map, it is necessary to manually save the map. The range and proportion of each graph are difficult to accurately control, and it is necessary to realize the full zoom. The splicing difficulty and workload of the figure are very large, usually need to develop specialized drawing tool software and maintenance management software, and the development workload of such tools and maintenance software is often greater than the use of software, which greatly increases the development cycle and cost.
中国发明专利CN 103700126 A公开了一种控制电子地图缩放的装置及对应方法,该方法通过选择预加载显示级别和加载并放大显示预加载瓦片,快速显示模糊的预加载瓦片,以及加载并缩小显示当前显示的瓦片;中国发明专利CN 103714164 A公开了一种控制电子地图平移的装置及对应方法,通过选择预加载显示级别和加载并放大显示预加载瓦片,当获取到目标瓦片后加载并显示目标瓦片替换对应位置的放大预加载瓦片;上述两种方法在某个图层只有局部画面需要显示的内容时,需要保存完整画面,地图创建和维护的工作量很大。Chinese invention patent CN 103700126 A discloses a device for controlling electronic map zooming and a corresponding method, which quickly displays fuzzy preloaded tiles by selecting preloaded display levels and loading and magnifying display preloaded tiles, and loading and The display of the currently displayed tile is reduced; Chinese Patent No. CN 103714164 A discloses a device for controlling the translation of an electronic map and a corresponding method, by selecting a preloaded display level and loading and enlarging the display of the preloaded tile, when the target tile is acquired After loading and displaying the target tile to replace the corresponding pre-loaded tile of the corresponding position; the above two methods need to save the complete picture when only a part of the layer needs to display the content, and the workload of map creation and maintenance is large.
发明内容Summary of the invention
本发明的目的在于提供一种便于地图的部分修改和更换的电子地图分层管理方法。It is an object of the present invention to provide an electronic map hierarchical management method that facilitates partial modification and replacement of a map.
实现本发明目的的技术方案为:一种电子地图分层管理方法,包括以下步骤:A technical solution for achieving the object of the present invention is: a method for hierarchical management of an electronic map, comprising the following steps:
步骤1、建立电子地图分层显示模型:Step 1. Establish a hierarchical display model of the electronic map:
步骤1-1、根据需要显示的内容设定N个图层,N为自然数;Step 1-1: Set N layers according to the content to be displayed, where N is a natural number;
步骤1-2、设定基本图层,设定基本图层的显示比例为L1,保存基本图层地图图片,记录地图图片角点的地面坐标,一维平面地图记录左上角点和右上角点的地面坐标,仿三维2D地图记录左上角、右上角和左下角的地面坐标;Step 1-2: Set the basic layer, set the display ratio of the basic layer to L1, save the basic layer map image, record the ground coordinates of the corner point of the map image, and record the upper left corner and the upper right corner of the one-dimensional plane map. Ground coordinates, the three-dimensional 2D map records the ground coordinates of the upper left corner, upper right corner and lower left corner;
步骤1-3、设定其他图层相对于基本图层的放大比例;设定模糊比例系数f, 其中0<f<1;Step 1-3, setting the magnification ratio of other layers relative to the basic layer; setting the fuzzy scale factor f, Where 0<f<1;
步骤1-4、绘制和截取其他图层的地图图片,地图图片的观察视角与基本图层地图图片相同,若图层的放大比例为Ln,地图图片中地图的显示比例L满足Ln*f<L<Ln/f;保存其他图层的地图图片,记录左上角点和右上角点的地面坐标;Step 1-4: Draw and intercept the map image of other layers. The viewing angle of the map image is the same as that of the basic layer map image. If the magnification ratio of the layer is Ln, the display ratio L of the map in the map image satisfies Ln*f< L<Ln/f; save the map image of other layers, and record the ground coordinates of the upper left corner and the upper right corner;
其中,画面是指显示屏幕画面,地图图片是指按照给定格式保存的地图截图;Wherein, the screen refers to a display screen image, and the map image refers to a map screenshot saved according to a given format;
步骤2、根据基本图层地图图片的左上角、右上角和左下角的像素位置和相对应的地面坐标点位置的对应关系确定基本图层地图图片与地面坐标的平面转换关系;Step 2: determining a plane conversion relationship between the map image of the basic layer and the ground coordinate according to the correspondence between the pixel positions of the upper left corner, the upper right corner, and the lower left corner of the basic layer map image and the corresponding ground coordinate point positions;
步骤3、根据地图图片左上角与右上角像素位置和相对应的地面的坐标点位置的对应关系确定画面的偏移和放大比例;Step 3: determining an offset and an enlargement ratio of the screen according to a correspondence relationship between a top left corner of the map image and a pixel position of the upper right corner and a corresponding coordinate position of the ground;
步骤4、若进行画面中地图缩放,执行步骤5;若进行画面中地图平移,执行步骤6;Step 4, if the map zoom in the screen, perform step 5; if the map shift in the screen, perform step 6;
步骤5、画面中地图缩放时,新地图图片的查找和显示包括以下步骤:Step 5: When the map is zoomed in the screen, the search and display of the new map image includes the following steps:
步骤5-1、确定当前画面中显示的地图相对于基本图层画面地图的放大/缩小比例;Step 5-1: determining an enlargement/reduction ratio of the map displayed in the current screen relative to the map of the basic layer screen;
步骤5-2、在所有地图图片中,寻找放大比例小于画面显示比例且包含当前鼠标点所在地图的坐标的所有地图图片;Step 5-2: In all map images, look for all map images whose magnification ratio is smaller than the screen display scale and includes the coordinates of the current mouse point location map;
步骤5-3、从步骤5-2得到的地图图片中确定放大比例的极大值lmax,放大比例的极小值lmin=lmax*f2,查找当前画面显示比例l满足lmin<l<lmax的所有地图图片;Step 5-3: Determine the maximum value lmax of the enlargement ratio from the map image obtained in step 5-2, and the minimum value of the enlargement ratio lmin=lmax*f 2 , and find that the current screen display ratio l satisfies lmin<l<lmax All map images;
步骤5-4、计算步骤5-3得到的地图图片的中心点的地面坐标,比较寻找中心点地面坐标距离当前画面鼠标点所在地图的坐标最近的地图图片;Step 5-4: Calculate the ground coordinates of the center point of the map image obtained in step 5-3, and compare the map image with the coordinate of the ground coordinate of the center point and the map of the current mouse point of the current screen;
步骤5-5、通过以上步骤,确定是否找到新地图图片,若没有找到新地图图片,显示原地图图片;Step 5-5, through the above steps, determine whether a new map image is found, and if no new map image is found, the original map image is displayed;
若找到新地图图片,则调出新地图图片,缩放新地图图片的显示比例至当前画面显示比例,移动地图图片的窗口显示位置,使得鼠标点在该地图图片中的地面坐标与在原地图图片中的地面坐标重合,显示新地图图片;If a new map image is found, the new map image is called up, the display ratio of the new map image is zoomed to the current screen display ratio, and the window display position of the map image is moved, so that the ground coordinates of the mouse point in the map image are in the original map image. The ground coordinates coincide, showing a new map image;
步骤6、画面中地图平移时,新地图图片的查找和显示包括以下步骤: Step 6. When the map is panned in the screen, the search and display of the new map image includes the following steps:
步骤6-1、判断窗口中心点所对应的地面坐标位置是否在当前地图图片中,若地图图片边缘移出了中心点,按步骤5在同一层的地图图片中重新寻找合适的新地图图片;Step 6-1: determining whether the ground coordinate position corresponding to the center point of the window is in the current map picture, and if the edge of the map picture moves out of the center point, according to step 5, search for a suitable new map picture in the map image of the same layer;
步骤6-2、在同一图层地图图片中寻找,若在同层地图图片中找不到新地图图片,在下一层地图图片中继续寻找,依次循环,直到找到新地图图片,显示新地图图片;Step 6-2: Search in the same layer map picture. If a new map picture cannot be found in the same layer map picture, continue to search in the next layer map picture, and then cycle until the new map picture is found, and the new map picture is displayed. ;
循环至基本图层时,确定基本地图图片为新地图图片;调出新地图图片,根据当前的显示比例和区域,调整新地图图片的显示比例并偏移,保证鼠标点所在位置的地面坐标不变,显示新地图图片。When looping to the basic layer, determine the basic map image as a new map image; call up the new map image, adjust the display scale of the new map image and offset according to the current display scale and area, and ensure that the ground coordinates of the mouse point location are not Change to display the new map image.
本发明与现有技术相比,其显著优点为:(1)本发明采用模糊分层管理算法,便于地图的部分修改和更换,不需要专门的维护管理工具,适用于小型电子地图的应用;(2)本发明只需要保存局部画面,不需要保存完整画面,大大减少了地图创建和维护工作量;(3)可以借用多种商用绘图工具最为应用软件的绘图工具,提高效率,加快开发进度。Compared with the prior art, the invention has the following advantages: (1) The invention adopts a fuzzy layered management algorithm, which facilitates partial modification and replacement of the map, does not require special maintenance management tools, and is suitable for applications of small electronic maps; (2) The invention only needs to save the partial picture, does not need to save the complete picture, and greatly reduces the workload of map creation and maintenance; (3) can use various drawing tools of the most application drawing tools of commercial drawing tools to improve efficiency and speed up development progress. .
下面结合附图对本发明做进一步说明。The invention will be further described below in conjunction with the accompanying drawings.
附图说明DRAWINGS
图1为本发明的电子地图分层管理方法的流程图。FIG. 1 is a flowchart of a method for hierarchical management of an electronic map according to the present invention.
具体实施方式detailed description
结合图1,一种电子地图分层管理方法,包括以下步骤:Referring to FIG. 1, an electronic map hierarchical management method includes the following steps:
步骤1、建立电子地图分层显示模型:Step 1. Establish a hierarchical display model of the electronic map:
步骤1-1、根据需要显示的内容设定N个图层,N为自然数;Step 1-1: Set N layers according to the content to be displayed, where N is a natural number;
步骤1-2、设定基本图层,设定基本图层的显示比例为L1,保存基本图层地图图片,记录地图图片角点的地面坐标,一维平面地图记录左上角点和右上角点的地面坐标,仿三维2D地图记录左上角、右上角和左下角的地面坐标;Step 1-2: Set the basic layer, set the display ratio of the basic layer to L1, save the basic layer map image, record the ground coordinates of the corner point of the map image, and record the upper left corner and the upper right corner of the one-dimensional plane map. Ground coordinates, the three-dimensional 2D map records the ground coordinates of the upper left corner, upper right corner and lower left corner;
步骤1-3、设定其他图层相对于基本图层的放大比例;设定模糊比例系数f,其中0<f<1;Step 1-3, setting the magnification ratio of other layers relative to the basic layer; setting a fuzzy scale factor f, where 0<f<1;
步骤1-4、绘制和截取其他图层的地图图片,地图图片的观察视角与基本图层地图图片相同,若图层的放大比例为Ln,地图图片中地图的显示比例L满足Ln*f<L<Ln/f;保存其他图层的地图图片,记录左上角点和右上角点的地 面坐标;Step 1-4: Draw and intercept the map image of other layers. The viewing angle of the map image is the same as that of the basic layer map image. If the magnification ratio of the layer is Ln, the display ratio L of the map in the map image satisfies Ln*f< L<Ln/f; save the map image of other layers, record the top left corner and the top right corner Surface coordinates
其中,画面是指显示屏幕画面,地图图片是指按照给定格式保存的地图截图;Wherein, the screen refers to a display screen image, and the map image refers to a map screenshot saved according to a given format;
步骤2、根据基本图层地图图片的左上角、右上角和左下角的像素位置和相对应的地面坐标点位置的对应关系确定基本图层地图图片与地面坐标的平面转换关系;基本图层地图图片与地面坐标的平面转换关系为:Step 2: determining a plane conversion relationship between the map image of the basic layer and the ground coordinate according to the correspondence between the pixel positions of the upper left corner, the upper right corner, and the lower left corner of the basic layer map image and the corresponding ground coordinate point position; the basic layer map The plane conversion relationship between the image and the ground coordinates is:
设画面象素坐标为[x,y],地面坐标为[X,Y],透视变换函数为F(参见《OpenGL》的glFrustum(),gluPerspective()和glOrtho()),则:Let the picture pixel coordinates be [x, y], the ground coordinates be [X, Y], and the perspective transformation function be F (see OpenGL glFrustum(), gluPerspective() and glOrtho()), then:
[x,y]=F([X,Y])[x,y]=F([X,Y])
[X,Y]=FT([x,y])[X,Y]=F T ([x,y])
其中FT为F的逆函数。Where F T is the inverse of F.
步骤3、根据地图图片左上角与右上角像素位置和相对应的地面的坐标点位置的对应关系确定画面的偏移和放大比例;画面的偏移和比例关系为:Step 3: Determine the offset and magnification ratio of the screen according to the correspondence between the upper left corner of the map image and the pixel position of the upper right corner and the corresponding coordinate position of the ground; the offset and proportional relationship of the screen are:
设画面的偏移为[bx,by],比例关系为s,画面的偏移和比例关系为:Let the offset of the picture be [bx,by], the proportional relationship be s, and the offset and proportional relationship of the picture are:
[x,y]=F([X,Y])*s+[bx,by];[x,y]=F([X,Y])*s+[bx,by];
[X,Y]=FT([x,y])/s-[bx,by];[X,Y]=F T ([x,y])/s-[bx,by];
步骤4、若进行画面中地图缩放,执行步骤5;若进行画面中地图平移,执行步骤6;Step 4, if the map zoom in the screen, perform step 5; if the map shift in the screen, perform step 6;
步骤5、画面中地图缩放时,新地图图片的查找和显示包括以下步骤:Step 5: When the map is zoomed in the screen, the search and display of the new map image includes the following steps:
步骤5-1、确定当前画面中显示的地图相对于基本图层画面地图的放大/缩小比例;Step 5-1: determining an enlargement/reduction ratio of the map displayed in the current screen relative to the map of the basic layer screen;
步骤5-2、在所有地图图片中,寻找放大比例小于画面显示比例且包含当前鼠标点所在地图的坐标的所有地图图片;Step 5-2: In all map images, look for all map images whose magnification ratio is smaller than the screen display scale and includes the coordinates of the current mouse point location map;
步骤5-3、从步骤5-2得到的地图图片中确定放大比例的极大值lmax,放大比例的极小值lmin=lmax*f2,查找当前画面显示比例l满足lmin<l<lmax的所有地图图片;Step 5-3: Determine the maximum value lmax of the enlargement ratio from the map image obtained in step 5-2, and the minimum value of the enlargement ratio lmin=lmax*f 2 , and find that the current screen display ratio l satisfies lmin<l<lmax All map images;
步骤5-4、计算步骤5-3得到的地图图片的中心点的地面坐标,比较寻找中心点地面坐标距离当前画面鼠标点所在地图的坐标最近的地图图片; Step 5-4: Calculate the ground coordinates of the center point of the map image obtained in step 5-3, and compare the map image with the coordinate of the ground coordinate of the center point and the map of the current mouse point of the current screen;
步骤5-5、通过以上步骤,确定是否找到新地图图片,若没有找到新地图图片,显示原地图图片;Step 5-5, through the above steps, determine whether a new map image is found, and if no new map image is found, the original map image is displayed;
若找到新地图图片,则调出新地图图片,缩放新地图图片的显示比例至当前画面显示比例,移动地图图片的窗口显示位置,使得鼠标点在该地图图片中的地面坐标与在原地图图片中的地面坐标重合,显示新地图图片;If a new map image is found, the new map image is called up, the display ratio of the new map image is zoomed to the current screen display ratio, and the window display position of the map image is moved, so that the ground coordinates of the mouse point in the map image are in the original map image. The ground coordinates coincide, showing a new map image;
步骤6、画面中地图平移时,新地图图片的查找和显示包括以下步骤:Step 6. When the map is panned in the screen, the search and display of the new map image includes the following steps:
步骤6-1、判断窗口中心点所对应的地面坐标位置是否在当前地图图片中,若地图图片边缘移出了中心点,按步骤4在同一层的地图图片中重新寻找合适的新地图图片;合适的新地图图片的优先选择顺序为:Step 6-1: Determine whether the ground coordinate position corresponding to the center point of the window is in the current map picture. If the edge of the map picture moves out of the center point, according to step 4, search for a suitable new map picture in the map image of the same layer; The preferred order of the new map image is:
首先,选择包含当前窗口中心点的地图图片;First, select the map image that contains the center point of the current window;
其次,选择包含当前鼠标点的地图图片;Second, select the map image that contains the current mouse point;
最后,选择画面中心点与窗口中心点最接近的地图图片;Finally, select the map image closest to the center point of the screen and the center point of the window;
步骤6-2、在同一图层地图图片中寻找,若在同层地图图片中找不到新地图图片,在下一层地图图片中继续寻找,依次循环,直到找到新地图图片,显示新地图图片;Step 6-2: Search in the same layer map picture. If a new map picture cannot be found in the same layer map picture, continue to search in the next layer map picture, and then cycle until the new map picture is found, and the new map picture is displayed. ;
循环至基本图层时,确定基本地图图片为新地图图片;调出新地图图片,根据当前的显示比例和区域,调整新地图图片的显示比例并偏移,保证鼠标点所在位置的地面坐标不变,显示新地图图片。When looping to the basic layer, determine the basic map image as a new map image; call up the new map image, adjust the display scale of the new map image and offset according to the current display scale and area, and ensure that the ground coordinates of the mouse point location are not Change to display the new map image.
本发明中模糊比例系数、图层放大比例、显示比例均根据具体情况设定,且均大于0。In the present invention, the fuzzy scale factor, the layer magnification ratio, and the display ratio are all set according to specific conditions, and both are greater than zero.
本发明采用模糊分层管理算法,便于地图的部分修改和更换,不需要专门的维护管理工具,适用于小型电子地图的应用;同时对某个图层只有局部画面有需要显示内容,只要保存局部画面,不需要保存完整画面,大大减少地图创建和维护工作量。 The invention adopts a fuzzy layered management algorithm, which is convenient for partial modification and replacement of the map, does not require special maintenance management tools, and is suitable for application of a small electronic map; at the same time, only a partial picture of a certain layer needs to display content, as long as the content is saved. The picture does not need to save the full picture, greatly reducing the workload of map creation and maintenance.

Claims (4)

  1. 一种电子地图分层管理方法,其特征在于,包括以下步骤:An electronic map hierarchical management method, characterized in that the method comprises the following steps:
    步骤1、建立电子地图分层显示模型:Step 1. Establish a hierarchical display model of the electronic map:
    步骤1-1、根据需要显示的内容设定N个图层,N为自然数;Step 1-1: Set N layers according to the content to be displayed, where N is a natural number;
    步骤1-2、设定基本图层,设定基本图层的显示比例为L1,保存基本图层地图图片,记录地图图片角点的地面坐标,一维平面地图记录左上角点和右上角点的地面坐标,仿三维2D地图记录左上角、右上角和左下角的地面坐标;Step 1-2: Set the basic layer, set the display ratio of the basic layer to L1, save the basic layer map image, record the ground coordinates of the corner point of the map image, and record the upper left corner and the upper right corner of the one-dimensional plane map. Ground coordinates, the three-dimensional 2D map records the ground coordinates of the upper left corner, upper right corner and lower left corner;
    步骤1-3、设定其他图层相对于基本图层的放大比例;设定模糊比例系数f,其中0<f<1;Step 1-3, setting the magnification ratio of other layers relative to the basic layer; setting a fuzzy scale factor f, where 0<f<1;
    步骤1-4、绘制和截取其他图层的地图图片,地图图片的观察视角与基本图层地图图片相同,若图层的放大比例为Ln,地图图片中地图的显示比例L满足Ln*f<L<Ln/f;保存其他图层的地图图片,记录左上角点和右上角点的地面坐标;Step 1-4: Draw and intercept the map image of other layers. The viewing angle of the map image is the same as that of the basic layer map image. If the magnification ratio of the layer is Ln, the display ratio L of the map in the map image satisfies Ln*f< L<Ln/f; save the map image of other layers, and record the ground coordinates of the upper left corner and the upper right corner;
    其中,画面是指显示屏幕画面,地图图片是指按照给定格式保存的地图截图;Wherein, the screen refers to a display screen image, and the map image refers to a map screenshot saved according to a given format;
    步骤2、根据基本图层地图图片的左上角、右上角和左下角的像素位置和相对应的地面坐标点位置的对应关系确定基本图层地图图片与地面坐标的平面转换关系;Step 2: determining a plane conversion relationship between the map image of the basic layer and the ground coordinate according to the correspondence between the pixel positions of the upper left corner, the upper right corner, and the lower left corner of the basic layer map image and the corresponding ground coordinate point positions;
    步骤3、根据地图图片左上角、右上角像素位置和相对应的地面的坐标点位置的对应关系确定画面的偏移和放大比例;Step 3: determining an offset and an enlargement ratio of the screen according to a correspondence relationship between a top left corner of the map image, a pixel position of the upper right corner, and a corresponding coordinate position of the ground;
    步骤4、若进行画面中地图缩放,执行步骤5;若进行画面中地图平移,执行步骤6;Step 4, if the map zoom in the screen, perform step 5; if the map shift in the screen, perform step 6;
    步骤5、画面中地图缩放时,新地图图片的查找和显示包括以下步骤:Step 5: When the map is zoomed in the screen, the search and display of the new map image includes the following steps:
    步骤5-1、确定当前画面中显示的地图相对于基本图层画面地图的放大/缩小比例;Step 5-1: determining an enlargement/reduction ratio of the map displayed in the current screen relative to the map of the basic layer screen;
    步骤5-2、在所有地图图片中,寻找放大比例小于画面显示比例且包含当前鼠标点所在地图的坐标的所有地图图片;Step 5-2: In all map images, look for all map images whose magnification ratio is smaller than the screen display scale and includes the coordinates of the current mouse point location map;
    步骤5-3、从步骤5-2得到的地图图片中确定放大比例的极大值lmax,放大比例的极小值lmin=lmax*f2,查找当前画面显示比例l满足lmin<l<lmax的所有地图图片; Step 5-3: Determine the maximum value lmax of the enlargement ratio from the map image obtained in step 5-2, and the minimum value of the enlargement ratio lmin=lmax*f 2 , and find that the current screen display ratio l satisfies lmin<l<lmax All map images;
    步骤5-4、计算步骤5-3得到的地图图片的中心点的地面坐标,比较寻找中心点地面坐标距离当前画面鼠标点所在地图的坐标最近的地图图片;Step 5-4: Calculate the ground coordinates of the center point of the map image obtained in step 5-3, and compare the map image with the coordinate of the ground coordinate of the center point and the map of the current mouse point of the current screen;
    步骤5-5、通过以上步骤,确定是否找到新地图图片,若没有找到新地图图片,显示原地图图片;Step 5-5, through the above steps, determine whether a new map image is found, and if no new map image is found, the original map image is displayed;
    若找到新地图图片,则调出新地图图片,缩放新地图图片的显示比例至当前画面显示比例,移动地图图片的窗口显示位置,使得鼠标点在该地图图片中的地面坐标与在原地图图片中的地面坐标重合,显示新地图图片;If a new map image is found, the new map image is called up, the display ratio of the new map image is zoomed to the current screen display ratio, and the window display position of the map image is moved, so that the ground coordinates of the mouse point in the map image are in the original map image. The ground coordinates coincide, showing a new map image;
    步骤6、画面中地图平移时,新地图图片的查找和显示包括以下步骤:Step 6. When the map is panned in the screen, the search and display of the new map image includes the following steps:
    步骤6-1、判断窗口中心点所对应的地面坐标位置是否在当前地图图片中,若地图图片边缘移出了中心点,按步骤5在同一层的地图图片中重新寻找合适的新地图图片;Step 6-1: determining whether the ground coordinate position corresponding to the center point of the window is in the current map picture, and if the edge of the map picture moves out of the center point, according to step 5, search for a suitable new map picture in the map image of the same layer;
    步骤6-2、在同一图层地图图片中寻找,若在同层地图图片中找不到新地图图片,在下一层地图图片中继续寻找,依次循环,直到找到新地图图片,显示新地图图片;Step 6-2: Search in the same layer map picture. If a new map picture cannot be found in the same layer map picture, continue to search in the next layer map picture, and then cycle until the new map picture is found, and the new map picture is displayed. ;
    循环至基本图层时,确定基本地图图片为新地图图片;调出新地图图片,根据当前的显示比例和区域,调整新地图图片的显示比例并偏移,保证鼠标点所在位置的地面坐标不变,显示新地图图片。When looping to the basic layer, determine the basic map image as a new map image; call up the new map image, adjust the display scale of the new map image and offset according to the current display scale and area, and ensure that the ground coordinates of the mouse point location are not Change to display the new map image.
  2. 根据权利要求1所述的电子地图分层管理方法,其特征在于,步骤2中基本图层地图图片与地面坐标的平面转换关系为:The electronic map hierarchical management method according to claim 1, wherein the plane conversion relationship between the basic layer map image and the ground coordinates in step 2 is:
    设画面象素坐标为[x,y],地面坐标为[X,Y],透视变换函数为F,则:Let the picture pixel coordinate be [x, y], the ground coordinate be [X, Y], and the perspective transformation function be F, then:
    [x,y]=F([X,Y])[x,y]=F([X,Y])
    [X,Y]=FT([x,y])[X,Y]=F T ([x,y])
    其中FT为F的逆函数。Where F T is the inverse of F.
  3. 根据权利要求2所述的电子地图分层管理方法,其特征在于,步骤3中画面的偏移和比例关系为:The electronic map hierarchical management method according to claim 2, wherein the offset and proportional relationship of the screen in step 3 are:
    设画面的偏移为[bx,by],比例关系为s,画面的偏移和比例关系为: Let the offset of the picture be [bx,by], the proportional relationship be s, and the offset and proportional relationship of the picture are:
    [x,y]=F([X,Y])*s+[bx,by];[x,y]=F([X,Y])*s+[bx,by];
    [X,Y]=FT([x,y])/s-[bx,by]。[X,Y]=F T ([x,y])/s-[bx,by].
  4. 根据权利要求1所述的电子地图分层管理方法,其特征在于,步骤6-1中合适的新地图图片的优先选择顺序为:The electronic map hierarchical management method according to claim 1, wherein the priority order of the appropriate new map image in step 6-1 is:
    首先,选择包含当前窗口中心点的地图图片;First, select the map image that contains the center point of the current window;
    其次,选择包含当前鼠标点的地图图片;Second, select the map image that contains the current mouse point;
    最后,选择画面中心点与窗口中心点最接近的地图图片。 Finally, select the map image closest to the center point of the screen and the center of the window.
PCT/CN2014/093331 2014-10-11 2014-12-09 Electronic map hierarchical management method WO2016054859A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410534705.1A CN104346771B (en) 2014-10-11 2014-10-11 A kind of electronic map tiered management approach
CN201410534705.1 2014-10-11

Publications (1)

Publication Number Publication Date
WO2016054859A1 true WO2016054859A1 (en) 2016-04-14

Family

ID=52502318

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/093331 WO2016054859A1 (en) 2014-10-11 2014-12-09 Electronic map hierarchical management method

Country Status (2)

Country Link
CN (1) CN104346771B (en)
WO (1) WO2016054859A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106204448B (en) * 2016-07-04 2019-09-13 北京空间飞行器总体设计部 The stepless zooming display methods and display system of the big figure of spacecraft stratification power supply and distribution
CN109829090A (en) * 2018-11-30 2019-05-31 青岛禧泰房地产数据有限公司 A kind of data display method using more maps
CN110473273B (en) * 2019-07-24 2023-05-09 广州视源电子科技股份有限公司 Vector graph drawing method and device, storage medium and terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070237288A1 (en) * 2006-03-31 2007-10-11 Tkaczyk J E Image-based material decomposition
CN102346923A (en) * 2010-07-30 2012-02-08 中国科学院遥感应用研究所 Data grading organization method based on longitude and latitude grid
CN102789361A (en) * 2012-06-29 2012-11-21 哈尔滨工程大学 Display style setting method of vector electronic map information
CN103617296A (en) * 2013-12-18 2014-03-05 中国电子科技集团公司第五十四研究所 Optimized display method of place name annotation image layer

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100122208A1 (en) * 2007-08-07 2010-05-13 Adam Herr Panoramic Mapping Display
CN102436669A (en) * 2011-10-13 2012-05-02 中国民用航空总局第二研究所 Two-dimensional vector map drawing method
CN103137009B (en) * 2011-11-30 2017-05-24 上海博泰悦臻电子设备制造有限公司 Display method and device for map and vehicle-mounted system
CN103927169A (en) * 2014-04-10 2014-07-16 南京信息工程大学 Method for realizing scaling of electronic map drawn by GDI (graphic device interface)+

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070237288A1 (en) * 2006-03-31 2007-10-11 Tkaczyk J E Image-based material decomposition
CN102346923A (en) * 2010-07-30 2012-02-08 中国科学院遥感应用研究所 Data grading organization method based on longitude and latitude grid
CN102789361A (en) * 2012-06-29 2012-11-21 哈尔滨工程大学 Display style setting method of vector electronic map information
CN103617296A (en) * 2013-12-18 2014-03-05 中国电子科技集团公司第五十四研究所 Optimized display method of place name annotation image layer

Also Published As

Publication number Publication date
CN104346771A (en) 2015-02-11
CN104346771B (en) 2017-08-04

Similar Documents

Publication Publication Date Title
CN101908202B (en) Method for fast displaying electronic chart
EP1008112B1 (en) Techniques for creating and modifying 3d models and correlating such models with 2d pictures
US20170262248A1 (en) Systems, methods, and devices for manipulation of images on tiled displays
US8350872B2 (en) Graphical user interfaces and occlusion prevention for fisheye lenses with line segment foci
US20140071119A1 (en) Displaying 3D Objects in a 3D Map Presentation
CA2609684A1 (en) Non-perspective variable-scale map displays
DE202010018459U1 (en) System for displaying transitions between street views
DE112013002803T5 (en) A method, system and apparatus for providing a three-dimensional transition animation for changing a map view
DE202015009167U1 (en) System for geolocation of images
CN107886561A (en) Storage scheduling and display methods based on scene of a crime cloud data
WO2018205493A1 (en) Graphic drawing method, apparatus and device
JP6096634B2 (en) 3D map display system using virtual reality
JP2010119314A (en) Cell image analyzer
WO2016054859A1 (en) Electronic map hierarchical management method
WO2022267525A1 (en) Map generation method and map generation apparatus
JPH03266086A (en) Display method for graphic
CN108830794B (en) Cross-map seamless splicing display method for PDF map of Gaussian projection
CN111915488B (en) High-performance image tile graph generation method under big data
CN111489410B (en) Method and device for drawing shot point data of observation system
JP2003250039A (en) Image processing apparatus, image processing method, and recording medium
CN110634156A (en) Online registration method of indoor plane graph
CN110580397A (en) display system for engineering project centralized display platform
JP2000011208A (en) Device and method for image display
CN116361405A (en) High-precision map rapid loading display method, electronic equipment and storage medium
CN116740298B (en) Method for constructing scene real-time map based on three-dimensional engine

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: 14903768

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: 14903768

Country of ref document: EP

Kind code of ref document: A1