[go: up one dir, main page]

CN102819530A - Method and device for displaying electronic map - Google Patents

Method and device for displaying electronic map Download PDF

Info

Publication number
CN102819530A
CN102819530A CN2011101554256A CN201110155425A CN102819530A CN 102819530 A CN102819530 A CN 102819530A CN 2011101554256 A CN2011101554256 A CN 2011101554256A CN 201110155425 A CN201110155425 A CN 201110155425A CN 102819530 A CN102819530 A CN 102819530A
Authority
CN
China
Prior art keywords
map
tile map
tile
latitude
longitude
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2011101554256A
Other languages
Chinese (zh)
Inventor
陈郁锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2011101554256A priority Critical patent/CN102819530A/en
Publication of CN102819530A publication Critical patent/CN102819530A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Instructional Devices (AREA)

Abstract

本发明公开了一种电子地图的显示方法及装置,该方法包括如下步骤:预先下载电子地图的瓦片地图,并将瓦片地图以多级目录索引的方式存储在本地;接收查询请求,确定查询请求对应的瓦片地图;从本地获取瓦片地图,组织并显示瓦片地图。通过本发明提高了用户体验。

Figure 201110155425

The invention discloses a method and device for displaying an electronic map. The method includes the following steps: downloading the tile map of the electronic map in advance, and storing the tile map locally in the form of a multi-level directory index; receiving a query request, determining Query the tile map corresponding to the request; obtain the tile map locally, organize and display the tile map. The user experience is improved through the present invention.

Figure 201110155425

Description

电子地图的显示方法及装置Electronic map display method and device

技术领域 technical field

本发明涉及通信领域,具体而言,涉及一种电子地图的显示方法及装置。The present invention relates to the communication field, in particular to a method and device for displaying an electronic map.

背景技术 Background technique

随着瓦片地图技术的出现,许多互联网电子地图供应商(例如,谷歌Google、雅虎Yahoo、百度Baidu)都使用了瓦片地图这一技术,使得在线的电子地图提供服务中的地图的拖动、缩放以及不同比例尺下的快速浏览都有了很大的改善。With the emergence of tile map technology, many Internet electronic map providers (for example, Google, Yahoo, Baidu) have used the technology of tile map, which makes the dragging of the map in the online electronic map service , zooming, and quick browsing at different scales have all been greatly improved.

但是,目前的互联网电子地图服务都是在线服务,例如,以Web方式直接访问,调用API进行间接访问,这样,在网络状况差的环境下显示会有时延,降低了用户体验,并且,在无法接入互联网的环境下,电子地图更是无法使用的。However, the current Internet electronic map services are all online services, such as direct access through the Web, and indirect access by calling APIs. In this way, there will be a delay in displaying in an environment with poor network conditions, which reduces the user experience. In an environment connected to the Internet, electronic maps cannot be used.

针对相关技术中存在的电子地图的使用不方便的问题,目前尚未提出有效的解决方案。Aiming at the problem of inconvenient use of the electronic map existing in related technologies, no effective solution has been proposed yet.

发明内容 Contents of the invention

本发明的主要目的在于提供一种电子地图的显示方法及装置,以至少解决上述问题。The main purpose of the present invention is to provide a method and device for displaying an electronic map to at least solve the above problems.

根据本发明的一个方面,提供了一种电子地图的显示方法,该方法包括如下步骤:预先下载所述电子地图的瓦片地图,并将所述瓦片地图以多级目录索引的方式存储在本地;接收查询请求,确定所述查询请求对应的瓦片地图;从本地获取所述瓦片地图,组织并显示所述瓦片地图。According to one aspect of the present invention, a method for displaying an electronic map is provided. The method includes the following steps: downloading the tile map of the electronic map in advance, and storing the tile map in the form of a multi-level directory index in Local: receiving a query request, determining a tile map corresponding to the query request; obtaining the tile map locally, organizing and displaying the tile map.

在上述方法中,预先下载所述电子地图的瓦片地图包括:获取电子地图服务提供商提供瓦片地图的统一资源定位符;根据需要下载的瓦片地图填充所述统一资源定位符中的参数,形成完整的统一资源定位符;根据所述完整的统一资源定位符下载所述需要下载的瓦片地图。In the above method, pre-downloading the tile map of the electronic map includes: obtaining the uniform resource locator of the tile map provided by the electronic map service provider; filling the parameters in the uniform resource locator according to the tile map to be downloaded , forming a complete uniform resource locator; downloading the tile map to be downloaded according to the complete uniform resource locator.

在上述方法中,根据需要下载的瓦片地图填充所述统一资源定位符中的经纬度包括:根据墨卡托投影公式使用地球半径的长度将全球经纬度转换为平面坐标系;使用所述平面坐标系的坐标填充所述统一资源定位符中的经纬度参数。In the above method, filling the latitude and longitude in the uniform resource locator according to the tile map that needs to be downloaded includes: converting the global latitude and longitude into a plane coordinate system by using the length of the earth's radius according to the Mercator projection formula; using the plane coordinate system The coordinates to populate the latitude and longitude parameters in the URL.

在上述方法中,所述多级目录索引的方式包括:根据以下至少之一建立所述多级目录:所述电子地图的类型、经纬度、缩放等级,其中,所述经纬度表示为(x、y),x和y组成的坐标系为根据墨卡托投影公式将经度转换为平面坐标系,原点位于所述平面坐标系的左上角,将经度转换为所述平面坐标系的横向x轴,将纬度转换为所述平面坐标系纵向y轴,当所述电子地图的瓦片地图的最大缩放等级为n时,则所述x的值最大为2n-1,所述y的值为2n-1。In the above method, the manner of the multi-level directory index includes: establishing the multi-level directory according to at least one of the following: the type of the electronic map, the latitude and longitude, and the zoom level, wherein the latitude and longitude are expressed as (x, y ), the coordinate system that x and y form is that longitude is converted into a plane coordinate system according to the Mercator projection formula, and the origin is positioned at the upper left corner of the plane coordinate system, and the longitude is converted into the horizontal x axis of the plane coordinate system, and The latitude is converted to the longitudinal y axis of the plane coordinate system. When the maximum zoom level of the tile map of the electronic map is n, the value of x is at most 2n-1, and the value of y is 2n-1 .

在上述方法中,所述多级目录索引的方式还包括:每个缩放等级均对应一个目录,将该缩放等级下的瓦片地图的x值除以M,商数为该缩放等级目录下二级目录名,余数为该缩放等级目录下的三级目录名,将该缩放等级下的瓦片地图的y值除以M,商数为该缩放等级目录下的四级目录名,余数为该瓦片地图的图片文件的文件名,其中,所述M为正整数,所述M与缩放等级相对应。In the above method, the method of multi-level directory indexing also includes: each zoom level corresponds to a directory, and the x value of the tile map under the zoom level is divided by M, and the quotient is two in the zoom level directory. level directory name, the remainder is the third-level directory name under the zoom level directory, divide the y value of the tile map under the zoom level by M, the quotient is the fourth-level directory name under the zoom level directory, and the remainder is the The file name of the picture file of the tile map, wherein, the M is a positive integer, and the M corresponds to the zoom level.

在上述方法中,所有缩放等级对应的M值均为1024。In the above method, the M value corresponding to all zoom levels is 1024.

在上述方法中,确定所述查询请求对应的瓦片地图,从本地获取所述瓦片地图,组织并显示所述瓦片地图包括:根据所述查询请求中的缩放等级和经纬度,确定瓦片地图的(x,y)和所述瓦片地图内的像素坐标,并将所述像素坐标转换为显示屏幕的屏幕坐标;确定填充满所述显示屏幕的瓦片数量及所述显示屏幕的坐标范围;根据瓦片地图的(x,y)从本地获取瓦片地图,组织并显示所获取的瓦片地图。In the above method, determining the tile map corresponding to the query request, obtaining the tile map locally, organizing and displaying the tile map includes: determining the tile according to the zoom level and latitude and longitude in the query request (x, y) of the map and pixel coordinates in the tile map, and convert the pixel coordinates into screen coordinates of the display screen; determine the number of tiles filling the display screen and the coordinates of the display screen Scope; According to the (x, y) of the tile map, obtain the tile map from the local, organize and display the obtained tile map.

在上述方法中,从本地获取所述瓦片地图,组织并显示所述瓦片地图还包括:从内存缓冲区中获取所述瓦片地图的数据,在从内存中获取不到所述瓦片地图的数据的情况下,则从本地存储器加载所述瓦片地图的数据,将所述瓦片地图的数据存放至所述内存缓冲区。In the above method, obtaining the tile map locally, organizing and displaying the tile map further includes: obtaining the data of the tile map from the memory buffer, and obtaining the tile map from the memory In the case of map data, the data of the tile map is loaded from the local memory, and the data of the tile map is stored in the memory buffer.

根据本发明的另一个方面,还提供了一种电子地图的显示装置,包括:下载模块,用于预先下载所述电子地图的瓦片地图;存储模块,用于将所述瓦片地图以多级目录索引的方式存储在本地;查询模块,用于接收查询请求,确定所述查询请求对应的瓦片地图;显示模块,用于从本地获取所述瓦片地图,组织并显示所述瓦片地图。According to another aspect of the present invention, there is also provided a display device for an electronic map, including: a download module, configured to pre-download the tile map of the electronic map; a storage module, configured to store the tile map in multiple The method of level directory index is stored locally; the query module is used to receive the query request and determine the tile map corresponding to the query request; the display module is used to obtain the tile map locally, organize and display the tiles map.

在上述装置中,所述下载模块包括:获取单元,用于获取电子地图服务提供商提供瓦片地图的统一资源定位符;形成单元,用于根据需要下载的瓦片地图填充所述统一资源定位符中的参数,形成完整的统一资源定位符;下载单元,用于根据所述完整的统一资源定位符下载所述需要下载的瓦片地图。In the above device, the downloading module includes: an obtaining unit, configured to obtain the URL of the tile map provided by the electronic map service provider; a forming unit, configured to fill the URL with the tile map downloaded as required parameters in the symbol to form a complete uniform resource locator; a downloading unit configured to download the tile map to be downloaded according to the complete uniform resource locator.

在上述装置中,所述存储模块用于根据以下至少之一建立所述多级目录:所述电子地图的类型、经纬度、缩放等级,其中,所述经纬度表示为(x、y),x和y组成的坐标系为根据墨卡托投影公式转换的坐标系,原点位于所述坐标系的左上角,将经度转换为平面坐标系的坐标系横向x轴,将纬度转换为所述平面坐标系纵向y轴,当所述电子地图的瓦片地图的最大缩放等级为n时,则所述x的值最大为2n-1,所述y的值为2n-1。In the above device, the storage module is used to establish the multi-level directory according to at least one of the following: the type of the electronic map, the latitude and longitude, and the zoom level, wherein the latitude and longitude are expressed as (x, y), x and The coordinate system composed of y is a coordinate system transformed according to the Mercator projection formula. The origin is located in the upper left corner of the coordinate system. The longitude is converted to the horizontal x-axis of the coordinate system of the plane coordinate system, and the latitude is converted to the plane coordinate system. On the vertical y axis, when the maximum zoom level of the tile map of the electronic map is n, the value of x is at most 2n-1, and the value of y is 2n-1.

通过本发明,采用预先下载电子地图的瓦片地图,并将瓦片地图以多级目录索引的方式存储在本地;接收查询请求,确定查询请求对应的瓦片地图;从本地获取瓦片地图,组织并显示瓦片地图。解决了现有技术中电子地图使用不方便的问题,从而用户在没有互联网接入时仍然可以使用电子地图,提高了用户体验。Through the present invention, the tile map of the electronic map is downloaded in advance, and the tile map is stored locally in the form of a multi-level directory index; the query request is received, and the tile map corresponding to the query request is determined; the tile map is obtained locally, Organize and display tile maps. The problem of inconvenient use of the electronic map in the prior art is solved, so that the user can still use the electronic map when there is no Internet access, and the user experience is improved.

附图说明 Description of drawings

此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described here are used to provide a further understanding of the present invention and constitute a part of the application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations to the present invention. In the attached picture:

图1是根据本发明实施例的电子地图的显示方法的流程图;FIG. 1 is a flowchart of a method for displaying an electronic map according to an embodiment of the present invention;

图2是根据本发明实施例的电子地图的显示装置的结构框图;Fig. 2 is a structural block diagram of an electronic map display device according to an embodiment of the present invention;

图3是根据本发明优选实施例的电子地图的显示装置的结构框图;Fig. 3 is a structural block diagram of an electronic map display device according to a preferred embodiment of the present invention;

图4是根据本发明另一个优选实施例的电子地图的显示装置的结构框图;Fig. 4 is a structural block diagram of an electronic map display device according to another preferred embodiment of the present invention;

图5是与本发明实施例相关的缩放等级为1时地图的切片分布示意图;Fig. 5 is a schematic diagram of the slice distribution of the map when the zoom level is 1 related to the embodiment of the present invention;

图6是根据本发明优选实施例的下载及存储瓦片地图数据的流程图;Fig. 6 is a flow chart of downloading and storing tile map data according to a preferred embodiment of the present invention;

图7是根据本发明优选实施例的瓦片地图数据组织结构示意图;Fig. 7 is a schematic diagram of a tile map data organization structure according to a preferred embodiment of the present invention;

图8是根据本发明优选实施例的离线显示谷歌地图的流程图。FIG. 8 is a flow chart of offline displaying Google Maps according to a preferred embodiment of the present invention.

具体实施方式 Detailed ways

下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Hereinafter, the present invention will be described in detail with reference to the drawings and examples. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.

在以下实施例中均以瓦片地图为例进行说明,瓦片地图本质上就是把通用的地图作为主要地图背景,采用预先生成的方法存放在服务器端,然后根据用户提交的不同请求,把相应的地图瓦片发送给客户端浏览。并且,由于客户端请求的地图是预先生成,不需要像传统的WebGIS那样对用户的请求进行实时计算和绘图,所以瓦片地图技术能够在地图的显示方面具有速度的优越性。In the following embodiments, the tile map is taken as an example for illustration. The tile map essentially uses a general-purpose map as the main map background, and stores it on the server side by a pre-generated method. Then, according to different requests submitted by users, the corresponding The map tiles are sent to the client for browsing. Moreover, since the map requested by the client is pre-generated, it does not need to calculate and draw the user's request in real time like traditional WebGIS, so the tile map technology can have the advantage of speed in the display of the map.

图1是根据本发明实施例的电子地图的显示方法的流程图,如图1所示,该流程包括如下步骤:Fig. 1 is a flowchart of a method for displaying an electronic map according to an embodiment of the present invention. As shown in Fig. 1, the process includes the following steps:

步骤S102,预先下载电子地图的瓦片地图,并将瓦片地图以多级目录索引的方式存储在本地;Step S102, pre-downloading the tile map of the electronic map, and storing the tile map locally in the form of a multi-level directory index;

步骤S104,接收查询请求,确定查询请求对应的瓦片地图;Step S104, receiving the query request, and determining the tile map corresponding to the query request;

步骤S106,从本地获取瓦片地图,组织并显示瓦片地图。Step S106, obtaining tile maps locally, organizing and displaying the tile maps.

通过上述步骤,可以预先下载瓦片地图,从而在使用时直接从本地获取瓦片地图,避免了使用电子地图对网络的依赖。Through the above steps, the tile map can be downloaded in advance, so that the tile map can be directly obtained from the local when using, avoiding the dependence of the electronic map on the network.

对于提供地图服务的服务商而言,其必然有下载瓦片地图数据的接口,通过该接口可以下载该瓦片地图。一般而言,可以通过统一资源定位符(Universal Resource Locator,简称为URL)的方式来获取瓦片地图,例如,可以首先获取电子地图服务提供商提供瓦片地图的URL,然后根据需要下载的瓦片地图填充URL中的参数,形成完整的URL,例如,可以填充的参数可以至少包括电子地图的类型、经纬度、区域跨度、缩放等级,优选地,还可以包括标签语言。在得到该完整的URL之后,就可以根据该完整的URL下载需要下载的瓦片地图。对于该URL的获取,可以通过网络抓包工具对与电子地图服务商进行的交互进行抓包,通过对抓取的数据包的分析就可以得到该URL。当然,对于某些开放端口的电子地图的服务提供商,其可能直接提供了可以下载瓦片地图的URL。对于经纬度,可以根据墨卡托投影公式将全球经纬度转化为平面坐标系;使用平面坐标系的坐标填充URL中的经纬度参数该坐标系的原点可以根据需要来设置,例如,可以以本初子午线和赤道交叉点为原点,此时的x和y的取值有正有负;为了使x和y的取值全部为正值,也可以将该坐标系的原点移至左上角,在使用墨卡托投影公式时,可以使用地球半径的长度来计算平面坐标系。For a service provider that provides map services, it must have an interface for downloading tile map data, through which the tile map can be downloaded. Generally speaking, the tile map can be obtained through a Universal Resource Locator (URL for short). For example, you can first obtain the URL of the tile map provided by the electronic map service provider, and then download the tile map as needed Fill the parameters in the URL with the tile map to form a complete URL. For example, the parameters that can be filled can include at least the type of electronic map, latitude and longitude, area span, zoom level, and preferably, can also include label language. After obtaining the complete URL, the tile map to be downloaded can be downloaded according to the complete URL. For obtaining the URL, a packet capture tool can be used to capture the interaction with the electronic map service provider, and the URL can be obtained by analyzing the captured data packets. Of course, for some electronic map service providers with open ports, they may directly provide URLs for downloading tile maps. For latitude and longitude, the global latitude and longitude can be transformed into a plane coordinate system according to the Mercator projection formula; use the coordinates of the plane coordinate system to fill the longitude and latitude parameters in the URL. The origin of the coordinate system can be set as required, for example, you can use the prime meridian and The intersection point of the equator is the origin, and the values of x and y at this time can be positive or negative; in order to make the values of x and y all positive, you can also move the origin of the coordinate system to the upper left corner, and use the ink card When using the projection formula, the length of the earth's radius can be used to calculate the plane coordinate system.

以坐标系的原点位于左上角为例,在将瓦片地图下载在本地之后,可以采用多种的建立目录的方式,在本实施例中提供了一种较优的建立目录的方式:可以根据以下至少之一建立多级目录:电子地图的类型、经纬度、缩放等级。比较优,经纬度表示为(x、y),x和y组成的坐标系为根据墨卡托投影公式将经度转换为平面坐标系的横向x轴,将纬度转换为平面坐标系的纵向y轴,当电子地图的瓦片地图的最大缩放等级为n时,则x的值最大为2n-1,y的值为2n-1。Taking the origin of the coordinate system at the upper left corner as an example, after downloading the tile map locally, you can use various ways to create a directory. In this embodiment, a better way to create a directory is provided: you can use the A multi-level directory is established by at least one of the following: type of electronic map, latitude and longitude, zoom level. The latitude and longitude are expressed as (x, y), and the coordinate system composed of x and y is converted from longitude to the horizontal x-axis of the plane coordinate system according to the Mercator projection formula, and from latitude to the vertical y-axis of the plane coordinate system. When the maximum zoom level of the tile map of the electronic map is n, the value of x is at most 2 n -1, and the value of y is 2 n -1.

下面选取了一个最佳的建立目录的实施方式进行说明。在该最佳的实施方式中,每个缩放等级均对应一个目录,将该缩放等级下的瓦片地图的x值除以M,商数为该缩放等级目录下二级目录名,余数为该缩放等级目录下的三级目录名,将该缩放等级下的瓦片地图的y值除以M,商数为该缩放等级目录下的四级目录名,余数为该瓦片地图的图片文件的文件名,其中,M为正整数,M与缩放等级相对应。通过该实施方式,可以通过设置M的值来确定目录的级数,例如,对于缩放等级1,其目录下的图片数量要远远小于缩放等级10目录下的图片数量,那么对于缩放等级为1时,相除的结果商数为0,即其二级目录名为0,需要说明的是,可以以0作为二级目录名,也可以将二级目录名省略,不再设置二级目录,而对于缩放等级10可能就有必要设置二级目录,甚至设置三级目录。对于从哪些缩放等级开始需要设置二级目录等可以通过调整M值来进行控制。当缩放等级最大为20时,M值取值为1024是比较优的。An optimal implementation manner of creating a directory is selected below for illustration. In the best implementation, each zoom level corresponds to a directory, and the x value of the tile map under the zoom level is divided by M, the quotient is the name of the secondary directory under the zoom level directory, and the remainder is the The third-level directory name under the zoom level directory, divide the y value of the tile map under the zoom level by M, the quotient is the fourth-level directory name under the zoom level directory, and the remainder is the image file of the tile map File name, where M is a positive integer, and M corresponds to the zoom level. Through this embodiment, the number of levels of the directory can be determined by setting the value of M. For example, for zoom level 1, the number of pictures in the directory is much smaller than the number of pictures in the directory of zoom level 10, then for zoom level 1 , the quotient of the division result is 0, that is, the name of the secondary directory is 0. It should be noted that 0 can be used as the name of the secondary directory, or the name of the secondary directory can be omitted, and the secondary directory is no longer set. For zoom level 10, it may be necessary to set a secondary directory, or even a tertiary directory. From which zoom levels need to set the secondary directory, etc. can be controlled by adjusting the M value. When the maximum zoom level is 20, the value of M is 1024, which is more optimal.

以下载的瓦片地图的电子地图的缩放等级最大为n=20,M=1024为例,对多级目录索引的存储方式进行说明。Taking the zoom level of the electronic map of the downloaded tile map as the maximum n=20, M=1024 as an example, the storage method of the multi-level directory index is described.

当需要下载的瓦片地图的电子地图的最大缩放等级为20时,则电子地图的横向最大索引x为220-1,电子地图的纵向最大索引y为220-1,其中,x和y组成的坐标系为根据墨卡托投影公式将纬度转换为平面坐标系的横向x轴,将经度转换为平面坐标系的纵向y轴。首先以电子地图的类型分为不同的目录,其次,以缩放等级为一级目录,将电子地图的横向最大索引x值除以1024,商数为二级目录名,余数为三级目录名,将电子地图的纵向最大索引y值除以1024,商数为四级目录名,余数为瓦片地图的图片文件的文件名。When the maximum zoom level of the electronic map of the tile map to be downloaded is 20, the horizontal maximum index x of the electronic map is 2 20 -1, and the vertical maximum index y of the electronic map is 2 20 -1, where x and y The formed coordinate system is to transform the latitude into the horizontal x-axis of the plane coordinate system according to the Mercator projection formula, and convert the longitude into the longitudinal y-axis of the plane coordinate system. Firstly, it is divided into different categories according to the type of electronic map. Secondly, with the zoom level as the first-level category, divide the horizontal maximum index x value of the electronic map by 1024, the quotient is the second-level category name, and the remainder is the third-level category name. Divide the maximum vertical index y value of the electronic map by 1024, the quotient is the name of the fourth-level directory, and the remainder is the file name of the image file of the tile map.

需要说明的是,在实施时,不同的电子地图提供商提供的电子地图的缩放等级不完全相同,缩放等级的级数越高,电子地图的精确度越高,存储的目录等级取决于选择的除数的大小,例如,当电子地图的最大缩放等级为10时,电子地图的横向最大索引x为210-1,纵向最大索引y为210-1,经过电子地图的横向最大索引x值除以1024,商数为二级目录名,余数为三级目录名,将电子地图的纵向最大索引y值除以1024,商数为四级目录名,余数为瓦片地图的图片文件的文件名,只有一个目录名;如果电子地图的横向最大索引x值除以512,商数为二级目录名,余数为三级目录名,将电子地图的纵向最大索引y值除以512,商数为四级目录名,余数为瓦片地图的图片文件的文件名,则可以有三个目录名和一个文件夹,又或者,当电子地图的最大缩放等级为22时,电子地图的横向最大索引x为222-1,纵向最大索引y为222-1,经过电子地图的横向最大索引x值除以2048,商数为二级目录名,余数为三级目录名,将电子地图的纵向最大索引y值除以2048,商数为四级目录名,余数为瓦片地图的图片文件的文件名。由此可见,上述计算中的除数的选择可以有不同的方式,本实施方式是比较优选的一种,但不限于此。It should be noted that during implementation, the zoom levels of the electronic maps provided by different electronic map providers are not exactly the same. The higher the zoom level, the higher the accuracy of the electronic map. The stored directory level depends on the selected The size of the divisor, for example, when the maximum zoom level of the electronic map is 10, the maximum horizontal index x of the electronic map is 2 10 -1, the maximum vertical index y is 2 10 -1, after dividing by the maximum horizontal index x of the electronic map Take 1024, the quotient is the name of the second-level directory, and the remainder is the name of the third-level directory. Divide the maximum vertical index y value of the electronic map by 1024, the quotient is the name of the fourth-level directory, and the remainder is the file name of the image file of the tile map , there is only one directory name; if the horizontal maximum index x value of the electronic map is divided by 512, the quotient is the second-level directory name, and the remainder is the third-level directory name, and the vertical maximum index y value of the electronic map is divided by 512, the quotient is The four-level directory name, the remainder is the file name of the image file of the tile map, then there can be three directory names and one folder, or, when the maximum zoom level of the electronic map is 22, the horizontal maximum index x of the electronic map is 2 22 -1, the maximum vertical index y is 2 22 -1, after dividing the maximum horizontal index x value of the electronic map by 2048, the quotient is the name of the second-level directory, and the remainder is the name of the third-level directory, and the maximum vertical index y of the electronic map is The value is divided by 2048, the quotient is the name of the fourth-level directory, and the remainder is the file name of the image file of the tile map. It can be seen that there may be different ways to select the divisor in the above calculation, and this embodiment is a preferred one, but is not limited thereto.

作为一个较优的实施方式,在从本地获取瓦片地图,组织并显示瓦片地图中,可以根据查询请求中的缩放等级和经纬度获取图块编号和图块内的像素坐标,并将图块编号转换为显示屏幕的屏幕坐标;根据图块编号和图块内的像素坐标获取填充满显示屏幕的瓦片数量及显示屏幕的坐标范围;将坐标范围转换为图块的编号,根据编号依次获取瓦片地图的数据,并组织和显示所获取的瓦片地图,优选地,从内存缓冲区中获取瓦片地图的数据,在从内存中获取不到瓦片地图的数据的情况下,则从本地存储器加载瓦片地图的数据,将瓦片地图的数据存放至内存缓冲区。As a preferred implementation, in obtaining the tile map locally, organizing and displaying the tile map, the tile number and the pixel coordinates in the tile can be obtained according to the zoom level and latitude and longitude in the query request, and the tile The number is converted to the screen coordinates of the display screen; the number of tiles filling the display screen and the coordinate range of the display screen are obtained according to the block number and the pixel coordinates in the block; the coordinate range is converted into the number of the block, and obtained sequentially according to the number tile map data, and organize and display the obtained tile map, preferably, obtain the tile map data from the memory buffer, if the tile map data cannot be obtained from the memory, then from The local memory loads the data of the tile map, and stores the data of the tile map into the memory buffer.

通过上述实施例,采用预先下载电子地图的瓦片地图,并将瓦片地图以多级目录索引的方式存储在本地;接收查询请求,确定查询请求对应的瓦片地图;从本地获取瓦片地图,组织并显示瓦片地图。使得在没有互联网接入时,可以快速地、实时浏览电子地图,提高了用户体验。Through the above embodiment, the tile map of the electronic map is downloaded in advance, and the tile map is stored locally in the form of a multi-level directory index; the query request is received, and the tile map corresponding to the query request is determined; the tile map is obtained from the local , organizes and displays the tile map. This makes it possible to browse the electronic map quickly and in real time when there is no Internet access, thereby improving user experience.

在本实施例中,还提供了一种电子地图的显示装置,用于实现上述实施例及其优选实施方式,已经进行过说明的不再赘述,下面对该系统中涉及到的模块进行说明。需要说明的是,以下所使用的术语“模块”“单元”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的系统和方法较佳地以软件来实现,但是硬件或者软件和硬件的组合的实现也是可以的。In this embodiment, an electronic map display device is also provided, which is used to realize the above-mentioned embodiment and its preferred implementation mode, which has already been described and will not be repeated, and the modules involved in the system will be described below . It should be noted that the terms "module" and "unit" used below may be a combination of software and/or hardware that implements predetermined functions. Although the systems and methods described in the following embodiments are preferably implemented in software, implementations in hardware or a combination of software and hardware are also possible.

图2是根据本发明实施例的电子地图的显示装置的结构框图,如图2所示,该装置包括下载模块20,存储模块30,查询模块40,显示模块50。下面对该装置的各个模块进行说明。FIG. 2 is a structural block diagram of an electronic map display device according to an embodiment of the present invention. As shown in FIG. 2 , the device includes a download module 20 , a storage module 30 , a query module 40 and a display module 50 . Each module of the device will be described below.

下载模块20,用于预先下载电子地图的瓦片地图;存储模块30连接至下载模块20,用于将瓦片地图以多级目录索引的方式存储在本地;查询模块40连接至存储模块30,用于接收查询请求,确定查询请求对应的瓦片地图;显示模块50连接至查询模块40,用于从本地获取瓦片地图,组织并显示瓦片地图。The download module 20 is used to pre-download the tile map of the electronic map; the storage module 30 is connected to the download module 20, and is used to store the tile map locally in the form of a multi-level directory index; the query module 40 is connected to the storage module 30, It is used to receive a query request and determine the tile map corresponding to the query request; the display module 50 is connected to the query module 40 and used to obtain the tile map locally, organize and display the tile map.

图3是根据本发明优选实施例的电子地图的显示装置的结构框图,如图3所示,在该装置中,下载模块20还可以包括获取单元200,形成单元202,下载单元204。下面对该装置的各个模块进行说明,已经进行过说明的不再赘述。FIG. 3 is a structural block diagram of an electronic map display device according to a preferred embodiment of the present invention. As shown in FIG. Each module of the device will be described below, and those that have already been described will not be repeated.

获取单元200,用于获取电子地图服务提供商提供瓦片地图的URL;形成单元204连接至获取单元200,用于根据需要下载的瓦片地图填充URL中的参数,形成完整的URL;下载单元206连接至行程单元204,用于根据完整的URL下载需要下载的瓦片地图。The obtaining unit 200 is used to obtain the URL of the tile map provided by the electronic map service provider; the forming unit 204 is connected to the obtaining unit 200, and is used to fill the parameters in the URL according to the tile map downloaded as required to form a complete URL; the download unit 206 is connected to the trip unit 204, and is used for downloading the tile map to be downloaded according to the complete URL.

存储模块30,用于根据以下至少之一建立多级目录:电子地图的类型、经纬度、缩放等级,其中,经纬度表示为(x、y),x和y组成的坐标系为根据墨卡托投影公式将全球经纬度转换为平面坐标系,原点位于该坐标系的左上角,将经度转换为坐标系横向x轴,将纬度转换为平面坐标系纵向y轴,当电子地图的瓦片地图的最大缩放等级为n时,则x的值最大为2n-1,y的值为2n-1。The storage module 30 is used to establish a multi-level directory according to at least one of the following: the type of electronic map, latitude and longitude, and zoom level, wherein the latitude and longitude are expressed as (x, y), and the coordinate system formed by x and y is based on the Mercator projection The formula converts the global longitude and latitude into a plane coordinate system, the origin is located in the upper left corner of the coordinate system, converts the longitude into the horizontal x-axis of the coordinate system, and converts the latitude into the vertical y-axis of the plane coordinate system, when the maximum zoom of the tile map of the electronic map When the level is n, the value of x is at most 2 n -1, and the value of y is 2 n -1.

图4是根据本发明另一个优选实施例的电子地图的显示装置的结构框图,如图4所示,在该装置中,显示模块50还可以包括获取单元500。获取单元500,用于从内存缓冲区中获取瓦片地图的数据,在从内存中获取不到瓦片地图的数据的情况下,则从本地存储器加载瓦片地图的数据,将瓦片地图的数据存放至内存缓冲区。已经进行过说明的不再赘述。FIG. 4 is a structural block diagram of an electronic map display device according to another preferred embodiment of the present invention. As shown in FIG. 4 , in this device, the display module 50 may further include an acquisition unit 500 . The obtaining unit 500 is used to obtain the data of the tile map from the memory buffer, and when the data of the tile map cannot be obtained from the memory, load the data of the tile map from the local memory, and convert the data of the tile map into Data is stored in the memory buffer. Those that have already been described will not be repeated.

下面结合上述实施例及优选实施方式对一个优选实施例进行说明。该优选实施例虽然以Google地图为例进行说明,但是对于其他地图提供商所提供的电子地图同样适用。在Google成功推出谷歌地图以来,瓦片地图技术向前推进了一大步,谷歌地图从最初的普通地图,到目前的地形地图、卫星地图以及合成地图,都使用了这一技术,让覆盖全球的丰富地图资源,都可以通过网络进行浏览。A preferred embodiment will be described below in conjunction with the above embodiments and preferred implementation modes. Although this preferred embodiment is described by taking Google Maps as an example, it is also applicable to electronic maps provided by other map providers. Since Google successfully launched Google Maps, the tile map technology has taken a big step forward. Google Maps has used this technology from the initial ordinary map to the current terrain map, satellite map and synthetic map, allowing global coverage The rich map resources can be browsed through the network.

在本优选实施例中下载指定区域的瓦片地图数据并有效组织数据存储和确定离线显示地图时的显示边界,读取、缓存地图数据。在接入互联网的环境下,预先获得谷歌地图的瓦片地图数据,并将该瓦片地图数据存储在本地。在离线环境状态下,以这些已获取的瓦片地图数据为依据,实现在客户端浏览电子地图,并可进行平移、缩放等操作。In this preferred embodiment, the tiled map data of the specified area is downloaded, and the data storage is effectively organized, and the display boundary when the map is displayed offline is determined, and the map data is read and cached. In an environment connected to the Internet, the tile map data of Google Maps is obtained in advance, and the tile map data is stored locally. In the offline environment, based on these acquired tile map data, the electronic map can be browsed on the client side, and operations such as panning and zooming can be performed.

在本优选实施例中,由于瓦片地图数据采用的是谷歌的地图数据,因此,本实施例中对谷歌地图的地图切片规则及获取机制进行了说明,并且对下载的数据进行了有效地组织,建立快速的索引机制,以便显示时快速检索到数据。离线浏览地图时,需要准确确定地图边界并获取相应瓦片地图,还将使用缓存技术将读取过的瓦片地图数据存入内存缓冲区,并建立索引,这将能在平移等操作中更快速显示地图。In this preferred embodiment, since the tile map data uses Google's map data, the map slice rules and acquisition mechanism of Google Maps are described in this embodiment, and the downloaded data is effectively organized , establish a fast indexing mechanism so that the data can be retrieved quickly when displaying. When browsing the map offline, it is necessary to accurately determine the map boundary and obtain the corresponding tile map. The cache technology will also be used to store the read tile map data into the memory buffer and create an index, which will be able to update the tile map in operations such as translation. Quickly display the map.

谷歌地图使用的是Web墨卡托投影(Spherical Mercator EPSG:900913(EPSG:3857)),将地球模拟成圆球体,以整个世界为范围,赤道作为标准纬线,本初子午线作为中央经线,两者交点为坐标原点,向东向北为正,向西向南为负,南北极在地图的正下、正上,而东西方向处于地图的正右、正左。谷歌地图切片时,以纬线方向为x轴,向右为正;以经线方向为y轴,向下为正,将原点移至左上角,这样保证了切片之后的瓦片地图的编号在x、y方向上均为正值,便于计算。Google Maps uses the Web Mercator projection (Spherical Mercator EPSG: 900913 (EPSG: 3857)), which simulates the earth as a sphere, with the entire world as the scope, the equator as the standard parallel, and the prime meridian as the central meridian. The point of intersection is the origin of the coordinates, the east to north is positive, the west to south is negative, the north and south poles are directly below and above the map, and the east-west direction is on the right and left of the map. When slicing Google Maps, take the latitude direction as the x-axis, positive to the right; use the meridian direction as the y-axis, and downwards as positive, and move the origin to the upper left corner, which ensures that the number of the tile map after slicing is in x, All positive values in the y direction are convenient for calculation.

谷歌地图主要提供普通地图(也称为平面地图)、地形地图、卫星地图以及合成地图。地图数据都是栅格数据,参照金字塔模型按照不同的缩放等级,切割成256×256像素大小的流式网络图形格式(Portable Network Graphic Format,简称为PNG)的地图瓦片,谷歌地图目前提供23个缩放等级,即,0~22,其中,缩放等级为0时,全球被容纳在一块瓦片中显示。Google Maps mainly provides ordinary maps (also known as flat maps), topographic maps, satellite maps, and composite maps. The map data is all raster data. Referring to the pyramid model and according to different zoom levels, it is cut into 256×256 pixel map tiles in the Portable Network Graphic Format (PNG for short). Google Maps currently provides 23 zoom levels, that is, 0-22, wherein, when the zoom level is 0, the whole world is displayed in one tile.

图5是与本发明实施例相关的缩放等级为1时地图的切片分布示意图,如图5所示,缩放等级为1时,整个世界被切片为4块图片(例如,当为谷歌地图时,整个世界地图可以被切片为4块256×256像素的图片),每块的编号如图所示,依次为(0,0),即左上x=0,y=0;(1,0),即右上x=1,y=0;(0,1),即左下x=0,y=1;(1,1),即右下x=1,y=1。依此类推,缩放等级每增加1级,每一小块都又被切片为4块,瓦片数量将在横向和纵向上各增加1倍,总数将较上一级增加4倍。切片后按照x轴方向从左往右及y轴方向从上往下依次编号。当缩放等级为22时,此时为地图最精细的时候,瓦片数量将增加为22×22。x、y的取值范围则为0~222-1。Fig. 5 is a schematic diagram of the slice distribution of the map when the zoom level is 1 related to the embodiment of the present invention. As shown in Fig. 5, when the zoom level is 1, the whole world is sliced into 4 pictures (for example, when it is a Google map, The whole world map can be sliced into 4 blocks of 256×256 pixel pictures), and the number of each block is as shown in the figure, which is (0, 0) in turn, that is, x=0, y=0 in the upper left; (1, 0), That is, upper right x=1, y=0; (0,1), that is, lower left x=0, y=1; (1,1), that is, lower right x=1, y=1. By analogy, every time the zoom level increases by 1, each small block is sliced into 4 pieces, the number of tiles will be doubled in the horizontal and vertical directions, and the total will be increased by 4 times compared with the previous level. After slicing, they are numbered sequentially from left to right in the direction of the x-axis and from top to bottom in the direction of the y-axis. When the zoom level is 22, when the map is at its finest, the number of tiles will be increased to 2 2×22 . The value ranges of x and y are 0 to 2 22 -1.

图6是根据本发明优选实施例的下载及存储瓦片地图数据的流程图,下载时用户使用下载程序可以输入如下参数:需要下载的电子地图的类型、需要下载的电子地图的经纬度、需要下载的区域跨度、缩放等级,优选地,还可以输入标签语言,例如,可以是en,表示英文,当然,该标签语言也可以不输入,直接下载默认语言的版本,或者是根据下载者所在地当地语言下载,例如,在中国地域内,默认为中文。如图6所示,该流程包括如下步骤:Fig. 6 is a flow chart of downloading and storing tile map data according to a preferred embodiment of the present invention. When downloading, the user can use the download program to input the following parameters: the type of electronic map to be downloaded, the latitude and longitude of the electronic map to be downloaded, and the map to be downloaded. The region span, zoom level, preferably, you can also enter the label language, for example, it can be en, which means English, of course, the label language can also not be input, directly download the version in the default language, or according to the local language of the downloader's location Download, for example, in China, the default is Chinese. As shown in Figure 6, the process includes the following steps:

步骤S601,获取基准URL,即网页地址。首先根据电子地图的类型,请求如下URL:http://maps.google.com/maps?t=?,其中,t为m时表示普通地图,t为h时表示合成地图,t为k时表示卫星地图,t为p时表示地形地图。Step S601, acquiring a reference URL, that is, a webpage address. First, according to the type of electronic map, request the following URL: http://maps.google.com/maps? t=? , where, when t is m, it represents a normal map, when t is h, it represents a synthetic map, when t is k, it represents a satellite map, and when t is p, it represents a terrain map.

分析响应页面,根据如下正则表达式列表依次匹配:Analyze the response page and match in sequence according to the following list of regular expressions:

Figure BDA0000067414240000071
Figure BDA0000067414240000071

获取的形式有多种,例如,获取形式可能是http://mt0.google.com/vt/lyrs=m140&,或者http://mt0.google.com/vt/v=m140&,或者http://khm0.google.com/kh/v=79&,但不限于此。在上述的列表提供的是目前谷歌服务器能够提供的地图服务的URL格式,匹配的格式即为当前地图类型下的基准URL。There are many forms of acquisition, for example, the form of acquisition may be http://mt0.google.com/vt/lyrs=m140&, or http://mt0.google.com/vt/v=m140&, or http:/ /khm0.google.com/kh/v=79&, but not limited to. The above list provides the URL format of the map service currently provided by the Google server, and the matching format is the base URL of the current map type.

步骤S602,根据经纬度计算区域编号(x,y)。需要说明的是,Google采用的是Web墨卡托投影,即,将地球当作圆球体进行投影,半径可取定长6378137米,以本初子午线和赤道交叉点为原点。并且,采用WGS84(EPSG:4326)地心坐标系中的经纬度,在WGS84(EPSG:4326)中,经度为东经,取值范围为-180~180度;纬度为北纬,取值范围为-90~90度。其他的电子地图提供商可以采用其他的方式,不限于此。Step S602, calculating the area number (x, y) according to the latitude and longitude. It should be noted that Google uses the Web Mercator projection, that is, the earth is projected as a sphere with a radius of 6,378,137 meters and the origin at the intersection of the prime meridian and the equator. In addition, the latitude and longitude in the geocentric coordinate system of WGS84 (EPSG: 4326) is adopted. In WGS84 (EPSG: 4326), the longitude is east longitude, and the value range is -180 to 180 degrees; the latitude is north latitude, and the value range is -90 ~90 degrees. Other electronic map providers may adopt other methods, which are not limited thereto.

用户输入WGS84(EPSG:4326)地心坐标系中的经纬度,然后根据墨卡托投影公式将经纬度转换成平面坐标系中的坐标(x,y),单位为米,再以此为中心根据输入的区域跨度,反向计算出投影到平面上时的左上角及右下角的WGS84坐标系中的经纬度,该计算出的经纬度即为边界经纬度。The user inputs the latitude and longitude in the geocentric coordinate system of WGS84 (EPSG: 4326), and then converts the latitude and longitude into coordinates (x, y) in the plane coordinate system according to the Mercator projection formula, and the unit is meters, and then takes this as the center according to the input The area span of the region is reversely calculated to the latitude and longitude in the WGS84 coordinate system of the upper left corner and the lower right corner when projected onto the plane, and the calculated latitude and longitude are the boundary latitude and longitude.

需要说明的是,Google按经度方向及纬度方向给瓦片地图编号x、y时,将坐标原点移到图5中的O点,需要在公式中进行坐标的变换,然后按照谷歌地图编号计算规则,计算出边界经纬度的x、y编号,x及y的范围就是该区域编号的范围。需要注意的是,实施时,由于web墨卡托投影为正方形,由墨卡托曲线通过计算可得出实际纬度取值范围是-85.051128~85.051128度,所以当纬度φ靠近极地时地图将产生严重变形,因此,谷歌暂时不提供高纬度地区的高精度地图。It should be noted that when Google numbers the tile map x and y according to the direction of longitude and latitude, the origin of the coordinates is moved to the point O in Figure 5, and the coordinates need to be transformed in the formula, and then the numbering rules of Google Maps are followed. , calculate the x and y numbers of the boundary latitude and longitude, and the range of x and y is the range of the area number. It should be noted that during the implementation, since the web Mercator projection is a square, the actual latitude range is -85.051128 to 85.051128 degrees through the calculation of the Mercator curve, so when the latitude φ is close to the poles, the map will have serious problems. Deformation, therefore, Google does not provide high-resolution maps of high latitudes for the time being.

计算出的x、y值中的整数部分即为经纬度为(λ,φ)时在谷歌地图坐标中的图块坐标,小数部分再按照谷歌地图每块瓦片256×256像素计算,可获得该点在该图块坐标中的偏移值。显示地图时也将使用该公式计算。The integer part of the calculated x and y values is the tile coordinate in the Google map coordinates when the latitude and longitude are (λ, φ), and the fractional part is calculated according to the 256×256 pixels of each tile in the Google map, and the The offset of the point in the coordinates of this tile. This formula will also be used when displaying the map.

步骤S603,组织完整URL,多线程获取瓦片地图数据。获取到边界的x、y编号范围后,将其与基准URL、标签语言、缩放等级一起,拼接成形式为:基准URL&hl=?&x=?&y=?&z=?的完整URL,其中,标签语言hl可以为en,表示英文,zh,表示中文,jp,表示日文等,z为缩放等级。Step S603, organize the complete URL, and obtain the tile map data through multiple threads. After obtaining the range of x and y numbers of the boundary, it is spliced together with the base URL, label language, and zoom level into a form: base URL&hl=? &x=? &y=? &z=? The complete URL of , where the label language hl can be en, which means English, zh, which means Chinese, jp, which means Japanese, etc., and z is the zoom level.

Google采取负载平衡,将存放地图数据的服务器分为4台,分别为mt0、mt1、mt2、mt3,4台服务器上的数据完全一样。卫星地图数据单独提供4台服务器存放,分别为khm0、khm1、khm2、khm3。并且Google对过多的并发获取地图数据会采取限制,过多的请求数据时,会返回错误的页面。所以使用多线程技术,向不同的服务器循环请求生成的完整URL来获取所需的瓦片地图数据。Google adopts load balancing and divides the servers storing map data into 4 sets, namely mt0, mt1, mt2, and mt3. The data on the 4 servers are exactly the same. Satellite map data is separately provided by 4 servers for storage, namely khm0, khm1, khm2, and khm3. And Google will take restrictions on too much concurrent acquisition of map data, and when too much data is requested, an error page will be returned. Therefore, multi-threading technology is used to circularly request the generated complete URL to different servers to obtain the required tile map data.

步骤S604,建立多级目录索引机制,存储瓦片地图数据。获取到数据后,按照多级目录索引的方式将其存储在本地,便于显示时快速索引数据。为了达到地图分辨率和数据管理之间的平衡,本优选实施例中,选取地图最大缩放等级为20,横向坐标x的最大索引为220-1,纵向坐标y的最大索引也为220-1。Step S604, establishing a multi-level directory index mechanism to store tile map data. After the data is obtained, it is stored locally in the form of a multi-level directory index, which is convenient for quickly indexing the data when displaying. In order to achieve a balance between map resolution and data management, in this preferred embodiment, the maximum zoom level of the map is selected as 20, the maximum index of the horizontal coordinate x is 2 20 −1, and the maximum index of the vertical coordinate y is also 2 20 − 1.

在本优选实施例中,以地图最大缩放等级为20,横向坐标x的最大索引为220-1,纵向坐标y的最大索引也为220-1为例对本地保存瓦片地图进行说明。In this preferred embodiment, the maximum zoom level of the map is 20, the maximum index of the horizontal coordinate x is 2 20 -1, and the maximum index of the vertical coordinate y is 2 20 -1 as an example to illustrate the locally saved tile map.

图7是根据本发明优选实施例的瓦片地图数据组织结构示意图,如图7所示:首先按照地图类型分不同目录(例如,普通地图,地形地图分为两个不同的目录),其次以缩放等级为目录(例如,缩放等级为9时,存放的目录名就为9),在该缩放等级目录下,按照x值除以1024,商数为二级目录名,余数为三级目录名,这两级目录一共可包含1024×1024个目录,可全部容纳等级为20时的最大索引220-1,同样,将y值除以1024,商数为四级目录名,余数为PNG文件的文件名,可容纳1024个文件夹,每个文件夹下又能容纳1024个PNG文件。Fig. 7 is a schematic diagram of the tile map data organization structure according to a preferred embodiment of the present invention, as shown in Fig. 7: firstly divide different catalogs according to map type (for example, common map, topographic map is divided into two different catalogs), secondly with The zoom level is a directory (for example, when the zoom level is 9, the stored directory name is 9), under this zoom level directory, divide the x value by 1024, the quotient is the second-level directory name, and the remainder is the third-level directory name , the two levels of directories can contain a total of 1024×1024 directories, which can fully accommodate the maximum index 2 20 -1 when the level is 20. Similarly, divide the value of y by 1024, the quotient is the name of the fourth-level directory, and the remainder is the PNG file The file name can hold 1024 folders, and each folder can hold 1024 PNG files.

图8是根据本发明优选实施例的离线显示谷歌地图的流程图,离线浏览地图时,用户在系统中输入所需电子地图的经纬度,系统将以此经纬度为中心在浏览窗口的中心位置显示该点,根据区域跨度确定的周边区域将填满整个窗口,对地图进行浏览、缩放、平移等操作。如图8所示,该流程包括如下步骤:Figure 8 is a flow chart of offline display of Google Maps according to a preferred embodiment of the present invention. When browsing maps offline, the user inputs the latitude and longitude of the desired electronic map in the system, and the system will display the map at the center of the browsing window centered on the latitude and longitude. point, the surrounding area determined according to the span of the area will fill the entire window, and operations such as browsing, zooming, and panning can be performed on the map. As shown in Figure 8, the process includes the following steps:

步骤S801,根据用户输入获取相应的瓦片地图图块坐标及偏移像素位置,并将其转换为屏幕坐标。在该步骤S801中,以浏览窗口为范围,确定屏幕坐标系,横向为x轴,纵向为y轴,浏览窗口中心点为原点。根据用户输入的缩放等级及经纬度计算图块编号(x,y)以及图块内的像素坐标,并将该图块坐标变换为屏幕坐标。Step S801, obtain corresponding tile map block coordinates and offset pixel positions according to user input, and convert them into screen coordinates. In this step S801, the screen coordinate system is determined with the browsing window as the scope, the x-axis is the horizontal direction, the y-axis is the vertical direction, and the center point of the browsing window is the origin. Calculate the block number (x, y) and pixel coordinates in the block according to the zoom level and latitude and longitude input by the user, and transform the block coordinates into screen coordinates.

步骤S802,将步骤S801中的图块作为中心,根据浏览窗口大小确定需要显示的边界。其中,将步骤S801中计算出的图块的坐标及图块内的像素坐标作为浏览窗口的中心,计算填充满该浏览窗口所需的瓦片数量及屏幕坐标范围。Step S802, taking the tile in step S801 as the center, and determining the boundary to be displayed according to the size of the browsing window. Wherein, the coordinates of the block and the pixel coordinates in the block calculated in step S801 are taken as the center of the browsing window, and the number of tiles and the range of screen coordinates required to fill the browsing window are calculated.

步骤S803,查询缓冲区,获取和拼接瓦片地图。将步骤S802中计算出的屏幕坐标范围变换为图块编号(x,y),然后依次获取瓦片地图数据并在浏览窗口拼接图片。Step S803, querying the buffer, acquiring and splicing tile maps. Transform the screen coordinate range calculated in step S802 into a tile number (x, y), and then sequentially acquire tile map data and stitch pictures in the browsing window.

获取数据时需要判断该瓦片地图数据是否为初次加载瓦片地图数据,判断的方法可以是以需要查询的图片完整路径为索引查询缓冲区,若查询不到则从本地存储系统加载瓦片地图数据,加载时根据图块编号(x,y)及存储瓦片地图数据时的数据组织方式(例如,可以使用图7所示的方式)计算出实际瓦片地图的文件路径,然后加载地图数据,并以图片完整路径为索引将其放入缓冲区;若能查询到则直接从缓冲区加载瓦片地图数据。When obtaining data, it is necessary to judge whether the tile map data is the first time to load the tile map data. The method of judging can be to use the full path of the image to be queried as the index to query the buffer. If the query cannot be found, load the tile map from the local storage system Data, when loading, calculate the file path of the actual tile map according to the tile number (x, y) and the data organization method when storing the tile map data (for example, the method shown in Figure 7 can be used), and then load the map data , and put it into the buffer with the full path of the image as the index; if it can be queried, directly load the tile map data from the buffer.

步骤S804,改变坐标或缩放、平移地图时刷新显示页面。当浏览窗口发生变化或地图平移、缩放时,需要刷新图片,此时需重新计算需要加载的图片的屏幕坐标和图块编号,然后计算图片完整路径,然后在缓冲区中查找,如果找不到,在可以再次查找本地存储的瓦片地图,如果能够找到,则直接加载。在此使用缓冲区存储,并且直接从内存读取数据有效地解决了图像反复平移时对本地存储文件的频繁访问,还可以大大减少时延。Step S804, refreshing the displayed page when changing the coordinates or zooming or panning the map. When the browsing window changes or the map is panned or zoomed, the image needs to be refreshed. At this time, the screen coordinates and block numbers of the image to be loaded need to be recalculated, and then the full path of the image is calculated, and then searched in the buffer. If not found , you can find the tile map stored locally again, and if it can be found, load it directly. The buffer storage is used here, and the data is directly read from the memory, which effectively solves the frequent access to the local storage file when the image is repeatedly panned, and can also greatly reduce the delay.

通过上述实施例及其优选实施方式,使瓦片地图数据和使用电子地图服务分离,在有互联网接入时预先下载所需要的电子地图的瓦片地图数据,使用时不需要互联网接入,由于瓦片地图数据是预先下载的,且只须下载一次,客户端浏览时直接从本地获取数据,从而使得浏览的速度极快,并且可以实时显示地图,提高了用户体验。Through the above-mentioned embodiment and its preferred implementation mode, the tile map data is separated from the use of electronic map services, and the required tile map data of the electronic map is downloaded in advance when there is Internet access, and Internet access is not required during use, because The tile map data is pre-downloaded and only needs to be downloaded once. The client directly obtains the data from the local when browsing, so that the browsing speed is extremely fast, and the map can be displayed in real time, which improves the user experience.

在另外一个实施例中,还提供了一种软件,该软件用于执行上述实施例及优选实施例中描述的技术方案。In another embodiment, software is also provided, and the software is used to implement the technical solutions described in the above embodiments and preferred embodiments.

在另外一个实施例中,还提供了一种存储介质,该存储介质中存储有上述软件,该存储介质包括但不限于光盘、软盘、硬盘、可擦写存储器等。In another embodiment, there is also provided a storage medium in which the above software is stored, and the storage medium includes but not limited to an optical disk, a floppy disk, a hard disk, a rewritable memory, and the like.

显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而可以将它们存储在存储装置中由计算装置来执行,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each module or each step of the above-mentioned present invention can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network formed by multiple computing devices Optionally, they can be implemented with program codes executable by computing devices, so that they can be stored in storage devices and executed by computing devices, or they can be made into individual integrated circuit modules, or their Multiple modules or steps are implemented as a single integrated circuit module. As such, the present invention is not limited to any specific combination of hardware and software.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (11)

1.一种电子地图的显示方法,其特征在于包括如下步骤:1. A method for displaying an electronic map, comprising the steps of: 预先下载所述电子地图的瓦片地图,并将所述瓦片地图以多级目录的方式存储在本地;downloading the tile map of the electronic map in advance, and storing the tile map locally in a multi-level directory; 接收查询请求,确定所述查询请求对应的瓦片地图;receiving a query request, and determining a tile map corresponding to the query request; 从本地获取所述瓦片地图,组织并显示所述瓦片地图。Obtain the tile map locally, organize and display the tile map. 2.根据权利要求1所述的方法,其特征在于,预先下载所述电子地图的瓦片地图包括:2. The method according to claim 1, wherein downloading the tile map of the electronic map in advance comprises: 获取电子地图服务提供商提供瓦片地图的统一资源定位符;Obtain the uniform resource locator of the tile map provided by the electronic map service provider; 根据需要下载的瓦片地图填充所述统一资源定位符中的参数,形成完整的统一资源定位符;Filling the parameters in the uniform resource locator according to the tile map to be downloaded to form a complete uniform resource locator; 根据所述完整的统一资源定位符下载所述需要下载的瓦片地图。Downloading the tile map to be downloaded according to the complete uniform resource locator. 3.根据权利要求2所述的方法,其特征在于,根据需要下载的瓦片地图填充所述统一资源定位符中的经纬度包括:3. The method according to claim 2, wherein filling the latitude and longitude in the uniform resource locator according to the tile map to be downloaded comprises: 根据墨卡托投影公式使用地球半径的长度将全球经纬度转换为平面坐标系;Convert global latitude and longitude to a plane coordinate system using the length of the earth's radius according to the Mercator projection formula; 使用所述平面坐标系的坐标填充所述统一资源定位符中的经纬度参数。The latitude and longitude parameters in the uniform resource locator are filled with the coordinates of the plane coordinate system. 4.根据权利要求1所述的方法,其特征在于,所述多级目录索引的方式包括:4. The method according to claim 1, wherein the manner of the multi-level directory index comprises: 根据以下至少之一建立所述多级目录:所述电子地图的类型、经纬度、缩放等级,其中,所述经纬度表示为(x、y),x和y组成的坐标系为根据墨卡托投影公式将经度转换为平面坐标系,原点位于所述平面坐标系的左上角,将经度转换为所述平面坐标系的横向x轴,将纬度转换为所述平面坐标系纵向y轴,当所述电子地图的瓦片地图的最大缩放等级为n时,则所述x的值最大为2n-1,所述y的值为2n-1。The multi-level directory is established according to at least one of the following: the type of the electronic map, the latitude and longitude, and the zoom level, wherein the latitude and longitude are expressed as (x, y), and the coordinate system composed of x and y is based on the Mercator projection The formula converts longitude into a plane coordinate system, the origin is located in the upper left corner of the plane coordinate system, converts longitude into the horizontal x-axis of the plane coordinate system, and converts latitude into the vertical y-axis of the plane coordinate system, when the When the maximum zoom level of the tile map of the electronic map is n, the value of x is at most 2 n -1, and the value of y is 2 n -1 at most. 5.根据权利要求4所述的方法,其特征在于,所述多级目录索引的方式还包括:5. The method according to claim 4, wherein the manner of the multi-level directory index further comprises: 每个缩放等级均对应一个目录,将该缩放等级下的瓦片地图的x值除以M,商数为该缩放等级目录下二级目录名,余数为该缩放等级目录下的三级目录名,将该缩放等级下的瓦片地图的y值除以M,商数为该缩放等级目录下的四级目录名,余数为该瓦片地图的图片文件的文件名,其中,所述M为正整数,所述M与缩放等级相对应。Each zoom level corresponds to a directory, divide the x value of the tile map under the zoom level by M, the quotient is the name of the second-level directory under the zoom level directory, and the remainder is the name of the third-level directory under the zoom level directory , dividing the y value of the tile map under the zoom level by M, the quotient is the fourth-level directory name under the zoom level directory, and the remainder is the file name of the image file of the tile map, wherein the M is A positive integer, the M corresponds to the zoom level. 6.根据权利要求5所述的方法,其特征在于,所有缩放等级对应的M值均为1024。6. The method according to claim 5, wherein the M values corresponding to all zoom levels are 1024. 7.根据权利要求4至6中任一项所述的方法,其特征在于,确定所述查询请求对应的瓦片地图,从本地获取所述瓦片地图,组织并显示所述瓦片地图包括:7. The method according to any one of claims 4 to 6, wherein determining the tile map corresponding to the query request, obtaining the tile map locally, organizing and displaying the tile map includes : 根据所述查询请求中的缩放等级和经纬度,确定瓦片地图的(x,y)和所述瓦片地图内的像素坐标,并将所述像素坐标转换为显示屏幕的屏幕坐标;According to the zoom level and latitude and longitude in the query request, determine (x, y) of the tile map and pixel coordinates in the tile map, and convert the pixel coordinates into screen coordinates of the display screen; 确定填充满所述显示屏幕的瓦片数量及所述显示屏幕的坐标范围;determining the number of tiles filling the display screen and the coordinate range of the display screen; 根据瓦片地图的(x,y)从本地获取瓦片地图,组织并显示所获取的瓦片地图。Acquire the tile map locally according to (x, y) of the tile map, organize and display the obtained tile map. 8.根据权利要求1所述的方法,其特征在于,从本地获取所述瓦片地图,组织并显示所述瓦片地图还包括:8. The method according to claim 1, wherein obtaining the tile map locally, organizing and displaying the tile map further comprises: 从内存缓冲区中获取所述瓦片地图的数据,在从内存中获取不到所述瓦片地图的数据的情况下,则从本地存储器加载所述瓦片地图的数据,将所述瓦片地图的数据存放至所述内存缓冲区。Acquire the data of the tile map from the memory buffer, if the data of the tile map cannot be obtained from the memory, load the data of the tile map from the local memory, and store the tile The data of the map is stored in the memory buffer. 9.一种电子地图的显示装置,其特征在于包括:9. A display device for an electronic map, characterized in that it comprises: 下载模块,用于预先下载所述电子地图的瓦片地图;The download module is used to pre-download the tile map of the electronic map; 存储模块,用于将所述瓦片地图以多级目录索引的方式存储在本地;A storage module, configured to store the tile map locally in the form of a multi-level directory index; 查询模块,用于接收查询请求,确定所述查询请求对应的瓦片地图;A query module, configured to receive a query request and determine a tile map corresponding to the query request; 显示模块,用于从本地获取所述瓦片地图,组织并显示所述瓦片地图。The display module is configured to obtain the tile map locally, organize and display the tile map. 10.根据权利要求9所述的装置,其特征在于,所述下载模块包括:10. The device according to claim 9, wherein the download module comprises: 获取单元,用于获取电子地图服务提供商提供瓦片地图的统一资源定位符;The obtaining unit is used to obtain the uniform resource locator of the tile map provided by the electronic map service provider; 形成单元,用于根据需要下载的瓦片地图填充所述统一资源定位符中的参数,形成完整的统一资源定位符;A forming unit, configured to fill parameters in the uniform resource locator according to the tile map to be downloaded to form a complete uniform resource locator; 下载单元,用于根据所述完整的统一资源定位符下载所述需要下载的瓦片地图。A downloading unit, configured to download the tile map to be downloaded according to the complete uniform resource locator. 11.根据权利要求9或10所述的装置,其特征在于,所述存储模块用于根据以下至少之一建立所述多级目录:所述电子地图的类型、经纬度、缩放等级,其中,所述经纬度表示为(x、y),x和y组成的坐标系为根据墨卡托投影公式转换的坐标系,原点位于所述坐标系的左上角,将经度转换为平面坐标系的坐标系横向x轴,将纬度转换为所述平面坐标系纵向y轴,当所述电子地图的瓦片地图的最大缩放等级为n时,则所述x的值最大为2n-1,所述y的值为2n-1。11. The device according to claim 9 or 10, wherein the storage module is used to establish the multi-level directory according to at least one of the following: the type, latitude and longitude, and zoom level of the electronic map, wherein the The latitude and longitude are expressed as (x, y), and the coordinate system formed by x and y is a coordinate system converted according to the Mercator projection formula. The x-axis converts the latitude into the longitudinal y-axis of the plane coordinate system. When the maximum zoom level of the tile map of the electronic map is n, the value of x is at most 2 n -1, and the value of y The value is 2n -1.
CN2011101554256A 2011-06-10 2011-06-10 Method and device for displaying electronic map Pending CN102819530A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011101554256A CN102819530A (en) 2011-06-10 2011-06-10 Method and device for displaying electronic map

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011101554256A CN102819530A (en) 2011-06-10 2011-06-10 Method and device for displaying electronic map

Publications (1)

Publication Number Publication Date
CN102819530A true CN102819530A (en) 2012-12-12

Family

ID=47303644

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011101554256A Pending CN102819530A (en) 2011-06-10 2011-06-10 Method and device for displaying electronic map

Country Status (1)

Country Link
CN (1) CN102819530A (en)

Cited By (46)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103065544A (en) * 2012-12-19 2013-04-24 江苏省城市规划设计研究院 Network map rectifying and drawing method under dynamic map projection
CN103164517A (en) * 2013-03-05 2013-06-19 北京超图软件股份有限公司 Quality control method and system of electronic map slice library
CN103473732A (en) * 2013-08-30 2013-12-25 国家电网公司 Mobile GIS (Geographic Information System) slice map showing method based on concurrent control and double-cache technologies
CN103971326A (en) * 2013-01-28 2014-08-06 百度在线网络技术(北京)有限公司 Personalized cache method and device of map tiles
CN103984720A (en) * 2014-05-13 2014-08-13 Tcl集团股份有限公司 Tile map establishment method and device based on OpenGL (open graphics library)
CN104050263A (en) * 2014-06-18 2014-09-17 厦门雅迅网络股份有限公司 Method for efficiently having access to intersection enlarged map file data in navigation terminal
CN104134187A (en) * 2014-07-30 2014-11-05 陈军 Point-to-point tile map dynamic projection method and device
CN104375991A (en) * 2013-08-12 2015-02-25 华平信息技术股份有限公司 Image map-based urban monitoring system
CN104537068A (en) * 2014-12-29 2015-04-22 浙江宇视科技有限公司 Electronic map accessing method and device
CN104729521A (en) * 2015-04-08 2015-06-24 广东好帮手电子科技股份有限公司 Satellite cloud picture fused vehicle-mounted navigation terminal and implementation method thereof
WO2015101070A1 (en) * 2013-12-30 2015-07-09 北京奇虎科技有限公司 Device and method for controlling electronic map
CN104992616A (en) * 2015-07-31 2015-10-21 小米科技有限责任公司 Map display method and device thereof
CN105068737A (en) * 2015-07-29 2015-11-18 中国地质科学院地质力学研究所 Use method for multi-scale rock slice image management system
CN105093245A (en) * 2015-08-18 2015-11-25 国网山东省电力公司电力科学研究院 GPS auxiliary positioning method and system operating in intelligent hand-held data acquisition terminal
CN105589861A (en) * 2014-10-22 2016-05-18 杭州海康威视系统技术有限公司 Method for rapid positioning in map data
CN105808617A (en) * 2014-12-31 2016-07-27 高德软件有限公司 Generation method and device of electronic map, and display method and device of the electronic map
CN105824843A (en) * 2015-01-08 2016-08-03 中国移动通信集团河南有限公司 Geographic information system map rendering method and device
WO2016131390A1 (en) * 2015-02-16 2016-08-25 高德软件有限公司 Electronic map display method, apparatus and electronic device
CN105956117A (en) * 2016-05-05 2016-09-21 量子数聚(北京)科技有限公司 Method and system for space loading of point data
CN106157798A (en) * 2015-03-23 2016-11-23 高德软件有限公司 A kind of processing method and processing device of polygon facet
CN106227853A (en) * 2016-07-28 2016-12-14 裘羽 One map generalization method electronically and processing method
CN106462945A (en) * 2014-07-29 2017-02-22 谷歌公司 Represents the hierarchy of map data at different zoom levels
CN106484693A (en) * 2015-08-25 2017-03-08 普天信息技术有限公司 Map-indication method, picture block storage method and picture display terminal
CN107016924A (en) * 2016-12-20 2017-08-04 阿里巴巴集团控股有限公司 Tile map generation method, update method and device in virtual map
WO2017206484A1 (en) * 2016-05-30 2017-12-07 中兴通讯股份有限公司 Geographic data presentation method and apparatus
CN107506489A (en) * 2017-09-22 2017-12-22 广西灵图信息科技有限公司 A kind of method that Large Copacity JPG pictures are checked in Android and apple system
CN107589924A (en) * 2016-07-07 2018-01-16 北京四维新世纪信息技术有限公司 A kind of quick methods of exhibiting in remotely-sensed data mobile terminal of five layer of ten Pyatyi institutional framework
CN108304239A (en) * 2018-01-26 2018-07-20 杨立群 For remote-operated quick interface exchange method and device
CN109407950A (en) * 2018-10-17 2019-03-01 厦门科灿信息技术有限公司 A kind of multistage Map Switch method, apparatus, equipment and readable storage medium storing program for executing
CN109729123A (en) * 2017-10-31 2019-05-07 北京国双科技有限公司 The monitoring method and device of region are launched in a kind of advertisement
WO2019100218A1 (en) * 2017-11-21 2019-05-31 深圳市大疆创新科技有限公司 Method and apparatus for presenting maps in superposed manner, and unmanned flight system
CN110019584A (en) * 2017-08-30 2019-07-16 腾讯科技(深圳)有限公司 Map datum generation method, map-indication method, server and terminal
WO2019179237A1 (en) * 2018-03-22 2019-09-26 杭州海康威视系统技术有限公司 Satellite-view electronic map acquisition method and device, apparatus, and storage medium
CN110457408A (en) * 2019-06-24 2019-11-15 平安国际智慧城市科技股份有限公司 Personalized map download method, device, equipment and storage medium
CN111078814A (en) * 2019-12-10 2020-04-28 孝感科先电力工程咨询设计有限责任公司 A Map Drawing Method Based on Tile Map
CN111369643A (en) * 2020-02-26 2020-07-03 洛阳中科晶上智能装备科技有限公司 Method for customizing map annotation in iOS system
CN112131333A (en) * 2020-09-29 2020-12-25 中国船舶重工集团公司第七二四研究所 Tile map storage method based on oracle data file
CN112364469A (en) * 2020-12-01 2021-02-12 中冶南方(武汉)自动化有限公司 Method and system for generating path of underground comprehensive pipe gallery
CN112380302A (en) * 2020-10-23 2021-02-19 北京建筑大学 Thermodynamic diagram generation method and device based on track data, electronic equipment and storage medium
CN112632207A (en) * 2020-12-25 2021-04-09 江西裕丰智能农业科技有限公司 Method for loading tile layer in android system
CN112908146A (en) * 2020-12-26 2021-06-04 云景文旅科技有限公司 Hand-drawn map cutting and presenting method and intelligent tour guide and visiting guide system
CN113360281A (en) * 2021-06-02 2021-09-07 成都比格图数据处理有限公司 File organization structure of off-line map and multithreading tile downloading and reading method
CN113656528A (en) * 2021-08-31 2021-11-16 平安医疗健康管理股份有限公司 Map layer loading method, device, equipment and storage medium
CN113689562A (en) * 2021-08-31 2021-11-23 威创集团股份有限公司 Map tile conversion method, system, device and storage medium
CN114021059A (en) * 2021-11-09 2022-02-08 西安热工研究院有限公司 Method, system, device and storage medium for downloading off-line digital map
CN115408450A (en) * 2022-10-31 2022-11-29 博和利统计大数据(天津)集团有限公司 Economic data statistical method, device, equipment and medium based on geographic information

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101388043A (en) * 2008-09-26 2009-03-18 北京航空航天大学 A OGC high-performance remote sensing image map service method based on small block pictures
US20100146436A1 (en) * 2008-02-01 2010-06-10 Gabriel Jakobson Displaying content associated with electronic mapping systems

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100146436A1 (en) * 2008-02-01 2010-06-10 Gabriel Jakobson Displaying content associated with electronic mapping systems
CN101388043A (en) * 2008-09-26 2009-03-18 北京航空航天大学 A OGC high-performance remote sensing image map service method based on small block pictures

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
姚真凯: ""瓦片地图技术在水利WebGIS 系统", 《浙江水利科技》 *
邹北骥等: ""WebGIS 平台构建中的若干关键技术研究"", 《企业技术开发》 *

Cited By (72)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103065544A (en) * 2012-12-19 2013-04-24 江苏省城市规划设计研究院 Network map rectifying and drawing method under dynamic map projection
CN103065544B (en) * 2012-12-19 2014-08-13 江苏省城市规划设计研究院 Network map rectifying and drawing method under dynamic map projection
CN103971326A (en) * 2013-01-28 2014-08-06 百度在线网络技术(北京)有限公司 Personalized cache method and device of map tiles
CN103164517A (en) * 2013-03-05 2013-06-19 北京超图软件股份有限公司 Quality control method and system of electronic map slice library
CN103164517B (en) * 2013-03-05 2018-11-09 北京超图软件股份有限公司 The method of quality control and system of electronic map slice library
CN104375991A (en) * 2013-08-12 2015-02-25 华平信息技术股份有限公司 Image map-based urban monitoring system
CN103473732A (en) * 2013-08-30 2013-12-25 国家电网公司 Mobile GIS (Geographic Information System) slice map showing method based on concurrent control and double-cache technologies
CN103473732B (en) * 2013-08-30 2016-04-20 国家电网公司 Based on the mobile GIS slice map exhibiting method of con current control and dual-cache mechanism
US9972285B2 (en) 2013-12-30 2018-05-15 Beijing Qihoo Technology Company Limited Device and method for controlling electronic map
WO2015101070A1 (en) * 2013-12-30 2015-07-09 北京奇虎科技有限公司 Device and method for controlling electronic map
US9728167B2 (en) 2013-12-30 2017-08-08 Beijing Qihoo Technology Company Limited Device and method for controlling electronic map
CN103984720B (en) * 2014-05-13 2018-01-26 Tcl集团股份有限公司 Method and device for creating tile map based on OpenGL
CN103984720A (en) * 2014-05-13 2014-08-13 Tcl集团股份有限公司 Tile map establishment method and device based on OpenGL (open graphics library)
CN104050263A (en) * 2014-06-18 2014-09-17 厦门雅迅网络股份有限公司 Method for efficiently having access to intersection enlarged map file data in navigation terminal
CN106462945A (en) * 2014-07-29 2017-02-22 谷歌公司 Represents the hierarchy of map data at different zoom levels
CN106462945B (en) * 2014-07-29 2019-06-18 谷歌有限责任公司 Rendering a hierarchy of map data at different zoom levels
CN104134187A (en) * 2014-07-30 2014-11-05 陈军 Point-to-point tile map dynamic projection method and device
CN104134187B (en) * 2014-07-30 2017-05-24 成都信息工程大学 Point-to-point tile map dynamic projection method and device
CN105589861B (en) * 2014-10-22 2019-02-05 杭州海康威视系统技术有限公司 A method of it is quickly positioned in map datum
CN105589861A (en) * 2014-10-22 2016-05-18 杭州海康威视系统技术有限公司 Method for rapid positioning in map data
CN104537068B (en) * 2014-12-29 2018-11-13 浙江宇视科技有限公司 A kind of electronic map cut-in method and device
CN104537068A (en) * 2014-12-29 2015-04-22 浙江宇视科技有限公司 Electronic map accessing method and device
CN105808617A (en) * 2014-12-31 2016-07-27 高德软件有限公司 Generation method and device of electronic map, and display method and device of the electronic map
CN105808617B (en) * 2014-12-31 2020-02-07 高德软件有限公司 Electronic map generating and displaying method and device
CN105824843A (en) * 2015-01-08 2016-08-03 中国移动通信集团河南有限公司 Geographic information system map rendering method and device
CN105824843B (en) * 2015-01-08 2020-05-01 中国移动通信集团河南有限公司 Map rendering method and device for geographic information system
WO2016131390A1 (en) * 2015-02-16 2016-08-25 高德软件有限公司 Electronic map display method, apparatus and electronic device
CN105989130B (en) * 2015-02-16 2019-06-14 高德软件有限公司 Electronic map methods of exhibiting, device and electronic equipment
CN105989130A (en) * 2015-02-16 2016-10-05 高德软件有限公司 Electronic map display method and device and electronic device
CN106157798A (en) * 2015-03-23 2016-11-23 高德软件有限公司 A kind of processing method and processing device of polygon facet
CN104729521A (en) * 2015-04-08 2015-06-24 广东好帮手电子科技股份有限公司 Satellite cloud picture fused vehicle-mounted navigation terminal and implementation method thereof
CN105068737B (en) * 2015-07-29 2018-09-28 中国地质科学院地质力学研究所 Multi-scale rock sectioning image manages the application method of system
CN105068737A (en) * 2015-07-29 2015-11-18 中国地质科学院地质力学研究所 Use method for multi-scale rock slice image management system
CN104992616A (en) * 2015-07-31 2015-10-21 小米科技有限责任公司 Map display method and device thereof
CN105093245A (en) * 2015-08-18 2015-11-25 国网山东省电力公司电力科学研究院 GPS auxiliary positioning method and system operating in intelligent hand-held data acquisition terminal
CN106484693A (en) * 2015-08-25 2017-03-08 普天信息技术有限公司 Map-indication method, picture block storage method and picture display terminal
CN106484693B (en) * 2015-08-25 2019-09-17 普天信息技术有限公司 Map-indication method, picture block storage method and picture display terminal
CN105956117A (en) * 2016-05-05 2016-09-21 量子数聚(北京)科技有限公司 Method and system for space loading of point data
CN105956117B (en) * 2016-05-05 2019-04-19 量子数聚(北京)科技有限公司 A kind of point data space loading method and system
CN107451150B (en) * 2016-05-30 2023-01-20 中兴通讯股份有限公司 Geographic data presentation method and device
CN107451150A (en) * 2016-05-30 2017-12-08 中兴通讯股份有限公司 Geodata rendering method and device
WO2017206484A1 (en) * 2016-05-30 2017-12-07 中兴通讯股份有限公司 Geographic data presentation method and apparatus
CN107589924A (en) * 2016-07-07 2018-01-16 北京四维新世纪信息技术有限公司 A kind of quick methods of exhibiting in remotely-sensed data mobile terminal of five layer of ten Pyatyi institutional framework
CN106227853A (en) * 2016-07-28 2016-12-14 裘羽 One map generalization method electronically and processing method
CN107016924A (en) * 2016-12-20 2017-08-04 阿里巴巴集团控股有限公司 Tile map generation method, update method and device in virtual map
US10628975B2 (en) 2016-12-20 2020-04-21 Alibaba Group Holding Limited Method and apparatus for generating and updating tiles maps in virtual maps
US10896528B2 (en) 2016-12-20 2021-01-19 Advanced New Technologies Co., Ltd. Method and apparatus for generating and updating tiles maps in virtual maps
CN110019584A (en) * 2017-08-30 2019-07-16 腾讯科技(深圳)有限公司 Map datum generation method, map-indication method, server and terminal
CN107506489A (en) * 2017-09-22 2017-12-22 广西灵图信息科技有限公司 A kind of method that Large Copacity JPG pictures are checked in Android and apple system
CN109729123A (en) * 2017-10-31 2019-05-07 北京国双科技有限公司 The monitoring method and device of region are launched in a kind of advertisement
WO2019100218A1 (en) * 2017-11-21 2019-05-31 深圳市大疆创新科技有限公司 Method and apparatus for presenting maps in superposed manner, and unmanned flight system
CN108304239A (en) * 2018-01-26 2018-07-20 杨立群 For remote-operated quick interface exchange method and device
WO2019179237A1 (en) * 2018-03-22 2019-09-26 杭州海康威视系统技术有限公司 Satellite-view electronic map acquisition method and device, apparatus, and storage medium
CN109407950A (en) * 2018-10-17 2019-03-01 厦门科灿信息技术有限公司 A kind of multistage Map Switch method, apparatus, equipment and readable storage medium storing program for executing
CN110457408A (en) * 2019-06-24 2019-11-15 平安国际智慧城市科技股份有限公司 Personalized map download method, device, equipment and storage medium
CN111078814A (en) * 2019-12-10 2020-04-28 孝感科先电力工程咨询设计有限责任公司 A Map Drawing Method Based on Tile Map
CN111369643A (en) * 2020-02-26 2020-07-03 洛阳中科晶上智能装备科技有限公司 Method for customizing map annotation in iOS system
CN112131333A (en) * 2020-09-29 2020-12-25 中国船舶重工集团公司第七二四研究所 Tile map storage method based on oracle data file
CN112380302A (en) * 2020-10-23 2021-02-19 北京建筑大学 Thermodynamic diagram generation method and device based on track data, electronic equipment and storage medium
CN112380302B (en) * 2020-10-23 2023-07-21 北京建筑大学 Thermal map generation method, device, electronic device and storage medium based on trajectory data
CN112364469A (en) * 2020-12-01 2021-02-12 中冶南方(武汉)自动化有限公司 Method and system for generating path of underground comprehensive pipe gallery
CN112364469B (en) * 2020-12-01 2023-12-12 中冶南方(武汉)自动化有限公司 Method and system for generating path of underground comprehensive pipe rack
CN112632207A (en) * 2020-12-25 2021-04-09 江西裕丰智能农业科技有限公司 Method for loading tile layer in android system
CN112908146A (en) * 2020-12-26 2021-06-04 云景文旅科技有限公司 Hand-drawn map cutting and presenting method and intelligent tour guide and visiting guide system
CN113360281A (en) * 2021-06-02 2021-09-07 成都比格图数据处理有限公司 File organization structure of off-line map and multithreading tile downloading and reading method
CN113360281B (en) * 2021-06-02 2024-05-07 成都比格图数据处理有限公司 Multithreading tile downloading and reading method for offline map
CN113689562B (en) * 2021-08-31 2023-08-18 威创集团股份有限公司 Map tile conversion method, system, device and storage medium
CN113689562A (en) * 2021-08-31 2021-11-23 威创集团股份有限公司 Map tile conversion method, system, device and storage medium
CN113656528A (en) * 2021-08-31 2021-11-16 平安医疗健康管理股份有限公司 Map layer loading method, device, equipment and storage medium
CN113656528B (en) * 2021-08-31 2024-09-10 深圳平安医疗健康科技服务有限公司 Map layer loading method, device, equipment and storage medium
CN114021059A (en) * 2021-11-09 2022-02-08 西安热工研究院有限公司 Method, system, device and storage medium for downloading off-line digital map
CN115408450A (en) * 2022-10-31 2022-11-29 博和利统计大数据(天津)集团有限公司 Economic data statistical method, device, equipment and medium based on geographic information

Similar Documents

Publication Publication Date Title
CN102819530A (en) Method and device for displaying electronic map
US11748372B2 (en) Server implemented geographic information system with graphical interface
US10795958B2 (en) Intelligent distributed geographic information system
KR102196401B1 (en) Electronic map interface
KR101804602B1 (en) 3d layering of map metadata
US7353114B1 (en) Markup language for an interactive geographic information system
US9110573B2 (en) Personalized viewports for interactive digital maps
US9269190B1 (en) System and method for displaying transitions between map views
CN112069285B (en) Map generation method and device based on three-dimensional high-precision map slice and electronic equipment
US20120158762A1 (en) Methods, apparatuses and computer program products for converting a geographical database into a map tile database
TW200817958A (en) Panoramic ring interface for interactive mapping
CN106204734A (en) The map integrated based on multi-source map generates method and device
CN100452050C (en) Method of generating and organizing source data of grid electron map and method of generating target data
CN108536732A (en) Support the on-line automatic slice method of servicing of tile map and system of MapGIS67 map engineerings
CN114020756B (en) Remote sensing image real-time map service publishing method and device
US20140157139A1 (en) Systems and methods for managing and presenting geolocation data
CN106534478A (en) Map information display system based on asynchronous loading
CN110300156A (en) For handling the method and drawing system of geographical contents
WO2023123583A1 (en) Fusion method, apparatus and system suitable for geological data and geographic information data
US20150058390A1 (en) Storage of Arbitrary Points in N-Space and Retrieval of Subset Thereof Based on a Determinate Distance Interval from an Arbitrary Reference Point
CN114020755B (en) Image map tile publishing method, image map tile generating method and device
US8977719B1 (en) Content oriented copyright display
US10460427B2 (en) Converting imagery and charts to polar projection
EP3311366B1 (en) Hybrid map drawing display
CN115203594B (en) Multi-temporal remote sensing data display method, device, equipment and medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20121212

WD01 Invention patent application deemed withdrawn after publication