CN103177577A - Dynamic traffic information service providing method based on map layer overlapping - Google Patents

Dynamic traffic information service providing method based on map layer overlapping Download PDF

Info

Publication number
CN103177577A
CN103177577A CN 201110441060 CN201110441060A CN103177577A CN 103177577 A CN103177577 A CN 103177577A CN 201110441060 CN201110441060 CN 201110441060 CN 201110441060 A CN201110441060 A CN 201110441060A CN 103177577 A CN103177577 A CN 103177577A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
traffic information
map
tile
server
traffic
Prior art date
Application number
CN 201110441060
Other languages
Chinese (zh)
Other versions
CN103177577B (en )
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

Links

Abstract

The invention relates to the technical field of traffic information service and particularly relates to a dynamic traffic information service providing method based on the map layer overlapping. The method includes that a basic geographical information system (GIS) providing basic GIS service and a road condition information server providing a road condition information file map are matched in work, the basic GIS server receives a user request and applies for the road condition information tile map with certain proportional scale and longitude and latitude range, the road condition information tile map and a local basic CIS map are overlapped to obtain a traffic information map after feedback is obtained, and the traffic information map is fed back to a user to be displayed. The road condition information server timely acquires newest real-time road condition data, conducts road condition rendering, generates a road condition information tile map, stores the map, then receives a road condition map request, extracts a corresponding road condition information tile map from a storage catalogue, and returns the map to the basic GIS server. By means of the method, overlapping efficiency and accuracy of traffic information to common maps are improved.

Description

基于图层叠加的动态交通信息服务提供方法 Provide dynamic traffic information service based Overlay

技术领域 FIELD

[0001] 本发明涉及交通信息服务技术领域,特别是一种基于图层叠加的动态交通信息服务提供方法。 [0001] The present invention relates to the technical field of traffic information service, in particular to a method for providing dynamic traffic information service based on superimposed layers.

背景技术 Background technique

[0002] 工业化国家在市场经济的指导下,大都经历了经济的发展促进汽车的发展,而汽车产业的发展又刺激经济发展的过程,从而这些国家尽早实现了汽车化的时代。 [0002] industrialized countries under the guidance of a market economy, most experienced a process of economic development to promote the development of the car, and the development of the automobile industry and stimulate economic development in these countries as early as possible in order to achieve the era of the automobile. 汽车化社会带来的诸如交通阻塞、交通事故、能源消费和环境污染等社会问题日趋恶化,交通阻塞造成的经济损失巨大,使道路设施十分发达的美国、日本等也不得不从以往只靠供给来满足需求的思维模式转向采取供、需两方面共同管理的技术和方法来改善日益尖锐的交通问题,这些建立在汽车轮子上的工业国家在探索既要维护汽车化社会,又要缓解交通拥挤问题的办法中,旨在借助现代化科技手段来改善交通状况达到"保障安全,提高效率、改善环境、节约能源"的目的,这样ITS的概念便逐步形成。 Bring the car society such as traffic jams, accidents, energy consumption and environmental pollution, worsening social problems, economic losses caused huge traffic jams, the road infrastructure is well developed in the United States and Japan had to rely on supplies from the past mindset to meet the demand for steering adopt, techniques and methods needed both to improve the co-management of the increasingly acute traffic problems, which built on car wheels to explore both in industrial countries to maintain automobile society, but also to ease traffic congestion to the problem in it intends to take advantage of modern technological means to achieve the purpose of improving traffic conditions "to protect the safety, increase efficiency, improve the environment, energy conservation," so the concept of ITS will gradually form.

[0003] 在智能交通领域,实时动态交通信息服务能够为公众出行、交通运输等提供高效可行的交通诱导和出行规划信息,从而达到节省时间、降低成本和低碳环保等目的。 [0003] In the field of intelligent transportation, real-time dynamic traffic information services to the public travel, transportation, etc. to provide efficient and feasible route guidance and travel planning information, so as to save time, reduce cost and low-carbon and environmental protection purposes. 目前浮动车(Floating Car Data,简称F⑶)技术是智能交通系统中获取动态交通信息的最重要的技术手段之一。 Currently floating cars (Floating Car Data, referred F⑶) technology is one of Intelligent Transportation Systems acquires dynamic traffic information of the most important technical means. 其基本原理是:根据装备车载全球定位系统(GPS)的车辆,在车辆行驶过程中定期记录的位置信息,应用包括地图匹配、行车路线推测和道路交通拥堵信息计算等相关的计算模型和算法进行处理,从而使浮动车数据和城市道路在时间和空间上关联起来,最终得到浮动车所经过道路的车辆行驶速度以及道路的行车时间等交通拥堵信息。 The basic principle is: The vehicle equipment onboard global positioning system (GPS), the position information of the vehicle is running at regular intervals during the recording, the application including the relevant calculation models and algorithms map matching, route speculate and road traffic congestion information calculation etc. processing, so that the floating car data and associated urban roads in time and space, end up floating car passes road vehicle traveling speed and road travel time information such as traffic congestion.

[0004]目前给互联网用户提供交通信息服务的方式大部分是:首先通过人工方式把交通信息服务提供商的发布路网与互联网服务提供商的显示路网进行匹配编码,并制作成匹配关系表,然后互联网提供商将获取到的路况信息基于匹配表渲染到已有的地图路网上去,再展现给公众。 [0004] currently provides traffic information services to Internet users in most ways: first the traffic information service providers publish road network and Internet service providers to display road network to match encoded by artificial means and made into a matching table and Internet providers to get traffic information based on the matching table rendered to the existing road network map, and again show to the public. 当前我国经济的快速发展,道路交通行业也以爆发式地速度增长,城市城际道路数量巨大,原来的人工匹配方式需要大量的人工操作,费时费力,效率低下,且在匹配的过程中存在一定的精度损失。 Quick China's economic development, the road transport sector also explosively growth rate, huge urban intercity road number, the original manual matching method requires a lot of manual, time-consuming, inefficient, and there are some in the process of matching the loss of precision.

发明内容 SUMMARY

[0005] 本发明的目的在于提供一种基于图层叠加的动态交通信息服务提供方法,该方法提高了交通信息叠加到普通地图的效率和准确性。 [0005] The object of the present invention is to provide a method of providing dynamic traffic information service based on superimposed layers, which increases the traffic information is superimposed to the general efficiency and accuracy of the map.

[0006] 为实现上述目的,本发明的技术方案是:一种基于图层叠加的动态交通信息服务提供方法,该方法通过提供基础GIS服务的基础GIS服务器和提供路况信息瓦片图的路况信息服务器的配合工作,为用户提供基于图层叠加的动态交通信息服务; [0006] To achieve the above object, the technical solution of the present invention is: a method for providing dynamic traffic information service based on superimposed layers, by providing a basis for the method of service of the GIS and GIS server to provide traffic information is traffic information of the tile of FIG. work with the server to provide users with dynamic traffic information service based on overlay;

[0007] 所述基础GIS服务器的工作流程包括以下步骤: [0007] The GIS server based workflow comprises the steps of:

[0008] 步骤1.1:启动服务,等待用户的交通信息服务请求; [0008] Step 1.1: Start the service, waiting for the user's traffic information service request;

[0009] 步骤1.2:接收到交通信息服务请求后,向路况信息服务器发送路况图片请求,申请一定比例尺下、一定经纬度范围内的路况信息瓦片图,然后等待路况信息服务器的反馈; [0009] Step 1.2: after receiving the traffic information service request, the server transmits the traffic information to the road image request, at a certain scale applications, traffic information within a certain latitude and longitude FIG tile range, and then waits for the feedback of the road information server;

[0010] 步骤1.3:接收到路况信息服务器返回的路况信息瓦片图后,将所述路况信息瓦片图与相同比例尺和经纬度范围的本地基本GIS地图叠加,得到交通信息地图并反馈给用户显示; [0010] Step 1.3: after receiving the traffic information the traffic information returned by the server of FIG tile, and the tile of FIG local traffic information substantially the same dimensions and GIS latitude and longitude range maps superimposed to obtain the traffic information and map displays feedback to the user ;

[0011] 所述路况信息服务器上创建有瓦片地图金字塔模型,并对各瓦片地图按比例尺、经纬度范围建立路网索引文件,所述路况信息服务器的工作流程包括以下步骤: [0011] The traffic information is created on the server has a tile map pyramid model, and each tile map scale, latitude and longitude range established road network index file, the traffic information server workflow includes the following steps:

[0012] 步骤2.1:加载路网索引及相关配置文件,启动服务; [0012] Step 2.1: Load index and road network related configuration files, start the service;

[0013] 步骤2.2:创建一定时线程,定时检索(本地检索或远程调用)并获取最新实时路况数据,根据不同比例尺和经纬度范围,通过路网索引文件读取对应的路网信息,进行路况渲染,生成相应的路况信息瓦片图,建立编号并存储在指定目录下;同时,监听多路的基础GIS服务器的路况图片请求; [0013] Step 2.2: Create a certain thread, timed retrieval (local or remote retrieval calls) and get the latest real-time traffic data, depending on the latitude and longitude of scale and scope, read the road network information corresponding to the road network through the index files, rendering the road to produce the corresponding traffic information map tiles, and build number stored in the specified directory; at the same time, the basic sense multiple GIS server traffic image requests;

[0014] 步骤2.3:接收到路况图片请求后,解析出该路况图片请求涉及的比例尺、经纬度范围; [0014] Step 2.3: after receiving the image request traffic, the traffic parsed scale image according to the request, the range of latitude and longitude;

[0015] 步骤2.4:根据解析出的比例尺、经纬度范围,计算出需调取的路况信息瓦片图的数量和编号,从所述指定目录中提取出对应的路况信息瓦片图; [0015] Step 2.4: according to the parsed scale, the range of latitude and longitude, road condition information to calculate the required tile retrieved FIG quantity and number, the extracted traffic information from the tile corresponding to FIG specified directory;

[0016] 步骤2.5:将提取出的路况信息瓦片图通过信息流的方式返回给基础GIS服务器。 [0016] Step 2.5: the extracted traffic information back to the base tile of FIG GIS server by way of the flow of information.

[0017] 本发明的有益效果是可大大提高交通信息服务商的服务水平,为应用端节省繁琐的路网匹配处理工作,简化业务服务的调用复杂度,可基于B/S的ajax技术直接获取路况图片与当前已成熟的GIS瓦片API组合,达到路况信息图与基本地图的叠加效果,业务服务端无需关注路况图片的渲染,专注于业务功能,大大减轻业务服务器的负载和开发人员的技术能力要求,从而为企业节省很大的人力物力成本。 [0017] Advantageous effects of the present invention can greatly improve the service level of the traffic information service providers, saving complicated road network matching processing for the application end, to simplify call complexity of operations and services, based on ajax technology B / S is directly obtained road picture ripe tiles API combined with the current GIS, to map and traffic information base map overlay effect, rendering business services without paying attention to the road-side picture, focusing on business functions, greatly reducing the load technology developers and business server capacity requirements for enterprises to save a lot of manpower and material costs.

附图说明 BRIEF DESCRIPTION

[0018] 图1是本发明实施例中路况信息服务器的工作流程示意图。 [0018] FIG. 1 is a schematic diagram of the work flow of the traffic information server embodiment of the present invention.

[0019] 图2是本发明实施例中路况信息服务器的系统结构示意图。 [0019] FIG. 2 is a diagram of a system structure of the road information server of the embodiment of the present invention.

具体实施方式 detailed description

[0020] 本发明基于图层叠加的动态交通信息服务提供方法,该方法通过提供基础GIS服务的基础GIS服务器和提供路况信息瓦片图的路况信息服务器的配合工作,为用户提供基于图层叠加的动态交通信息服务; [0020] The present invention provides a method of dynamic traffic information service based on superimposed layers, by providing a basis for the method of service of the GIS and GIS server cooperate to provide traffic information server of FIG tile traffic information, the user-based overlay layer dynamic traffic information services;

[0021] 所述基础GIS服务器的工作流程包括以下步骤: [0021] The GIS server based workflow comprises the steps of:

[0022] 步骤1.1:启动服务,等待用户的交通信息服务请求; [0022] Step 1.1: Start the service, waiting for the user's traffic information service request;

[0023] 步骤1.2:接收到交通信息服务请求后,向路况信息服务器发送路况图片请求,申请一定比例尺下、一定经纬度范围内的路况信息瓦片图,然后等待路况信息服务器的反馈; [0023] Step 1.2: after receiving the traffic information service request, the server transmits the traffic information to the road image request, at a certain scale applications, traffic information within a certain latitude and longitude FIG tile range, and then waits for the feedback of the road information server;

[0024] 步骤1.3:接收到路况信息服务器返回的路况信息瓦片图后,将所述路况信息瓦片图与相同比例尺和经纬度范围的本地基本GIS地图叠加,得到交通信息地图并反馈给用户显示;[0025] 所述路况信息服务器上创建有瓦片地图金字塔模型,并对各瓦片地图按比例尺、经纬度范围建立路网索引文件;如图1所示,所述路况信息服务器的工作流程包括以下步骤: [0024] Step 1.3: after receiving the traffic information the traffic information returned by the server of FIG tile, and the tile of FIG local traffic information substantially the same dimensions and GIS latitude and longitude range maps superimposed to obtain the traffic information and map displays feedback to the user ; [0025] the traffic information server has created a pyramid model map tiles, and each tile build road network map index file to scale, the range of latitude and longitude; 1, the traffic information server workflow comprises the following steps:

[0026] 步骤2.1:加载路网索引及相关配置文件,启动服务; [0026] Step 2.1: Load index and road network related configuration files, start the service;

[0027] 步骤2.2:创建一定时线程,每隔几分钟检索(本地检索或远程调用)并获取最新实时路况数据,根据不同比例尺和经纬度范围,通过路网索引文件读取对应的路网信息,进行路况渲染(只渲染能清楚显示路网的比例尺),生成相应的路况信息瓦片图,建立编号并存储在指定目录下;同时,监听多路的基础GIS服务器的路况图片请求; [0027] Step 2.2: Create a certain thread every few minutes to retrieve (local or remote retrieval calls) and get the latest real-time traffic data, depending on the latitude and longitude of scale and scope, read the road network information corresponding to the road network by the index file, roads were rendered (rendering only can clearly show the scale road network) to generate the corresponding traffic information map tiles, and build number stored in the specified directory; at the same time, the basic sense multiple GIS server traffic image requests;

[0028] 步骤2.3:接收到路况图片请求后,解析出该路况图片请求涉及的比例尺、经纬度范围; [0028] Step 2.3: after receiving the image request traffic, the traffic parsed scale image according to the request, the range of latitude and longitude;

[0029] 步骤2.4:根据解析出的比例尺、经纬度范围,计算出需调取的路况信息瓦片图的数量和编号,从所述指定目录中提取出对应的路况信息瓦片图; [0029] Step 2.4: according to the parsed scale, the range of latitude and longitude, road condition information to calculate the required tile retrieved FIG quantity and number, the extracted traffic information from the tile corresponding to FIG specified directory;

[0030] 步骤2.5:将提取出的路况信息瓦片图通过信息流的方式返回给基础GIS服务器。 [0030] Step 2.5: the extracted traffic information back to the base tile of FIG GIS server by way of the flow of information.

[0031] 在本发明的较佳实施例中,路况信息服务器的系统结构如图2所示。 [0031] In the preferred embodiment of the present invention, the traffic information server system configuration is shown in Fig. 上述路况信息服务器是以Apache搭建的Web服务器。 The above-mentioned traffic information server is built Apache Web server. 路况信息服务器提供的路况信息服务被编译为DSO动态库模块。 Traffic information services traffic information provided by the server is compiled as a DSO DLL module. 系统开始运行后,启动一Apache进程,通过配置加载所述DSO动态库模块来启动路况信息服务,以进行路况数据的定时更新和用户端请求的监听。 While the system is running, start Apache a process to start the traffic information service by configuring the DSO dynamic loading library module, and to listen regularly update the client's request for data traffic. 具体实施方法为:创建一定时线程,通过路况检索模块定时进行最新实时路况数据的检索和获取,然后将获取的最新实时路况数据传输给路况渲染、图片生成模块进行路况渲染并生成相应的路况信息瓦片图,最后通过路况瓦片保存模块进行保存。 DETAILED DESCRIPTION method: creating a certain thread, for searching and retrieving the latest real-time traffic data by road retrieval module timing and the acquired latest real-time traffic data to the road rendered image generation module road render and generate corresponding traffic information FIG tile, tile traffic finally preserved by saving module. 当Apache服务器监听到有用户端请求时,交由URL、处理、返回模块进行比例尺、经纬度范围等的解析,然后调用瓦片范围处理模块计算出需调取的路况信息瓦片图的数量和编号,以从指定目录中提取出对应的路况信息瓦片图,最后,URL、处理、返回模块将提取出的路况信息瓦片图通过信息流的方式返回给用户端。 When listening to the Apache server has client requests, referred to the URL, the processing returns scale analyzing module, longitude and latitude range and the like, then call processing module calculates the range tile road condition information retrieved tile FIG required number and ID to extract from the specified directory corresponding to the traffic information in FIG tile, finally, URL, processing module returns the extracted traffic information returned to the user terminal of FIG tile through traffic.

[0032] 下面对本发明涉及的相关技术作进一步的说明。 [0032] Next, the related art of the present invention will be further described.

[0033] 1、普通路网渲染 [0033] 1, the general road network rendering

[0034]目前大部分道路信息的视觉化展现是通过互联网,以电子地图的方式提供,电子地图的展现过程主要有两种方式,一种是矢量地图方式,一种是静态地图方式。 [0034] At present most of the roads visual presentation of information through the Internet, electronic map provided by way of electronic map to show the process mainly in two ways, one is the vector maps, one is static map mode. 矢量地图在现在互联网领域已很少使用。 Vector maps Internet domain has been rarely used now. 静态地图方式也称为瓦片地图,一般是金字塔模型,瓦片地图金字塔模型是一种多分辨率层次模型,从瓦片金字塔的底层到顶层,分辨率越来越低,但表示的地理范围不变。 Geographical scope is also known as static map tile map, generally pyramid model, map tile pyramid model is a multi-resolution level model, from the bottom to the top of the pyramid of tiles, getting lower and lower resolution, but said the constant. 首先确定地图服务平台所要提供的缩放级别的数量N,把缩放级别最低、地图比例尺最大的地图图片作为金字塔的底层,即第O层,并对其进行分块,从地图图片的左上角开始,从左至右、从上到下进行切割,分割成相同大小(比如256X256像素)的正方形地图瓦片,形成第O层瓦片矩阵;在第O层地图图片的基础上,按每2 X 2像素合成为一个像素的方法生成第I层地图图片,并对其进行分块,分割成与下一层相同大小的正方形地图瓦片,形成第I层瓦片矩阵;采用同样的方法生成第2层瓦片矩阵;...;如此下去,直到第N-1层,构成整个瓦片金字塔。 First, determine the number of zoom level of the map service platform to be provided N, the lowest zoom level, map scale of the map image as the largest base of the pyramid, ie O layer, and subjected to block, starting from the top left corner of the map image, from left to right, top to bottom is cut into the same size (such as 256X256 pixels) square map tiles, the tile layer forming the first matrix O; O layer on the basis of the map image, every 2 X 2 pixel synthesis method for generating a pixel map image of layer I, and subjected to block, divided into the same size as the lower layer of square map tiles, the tile layer is formed of a matrix I; using the same method for generating the second layer tile matrix; ...; and so on until the first layer-1 N, constitute the entire tile pyramid. 目前各大互联网地图服务商均采用此种方式。 Currently the major Internet map service providers are used in this way.

[0035] 2、交通信息获取 [0035] 2, get traffic information

[0036] 这里的交通信息即为路况信息,一般是由专门的交通信息服务提供商发布,常见的是webservice形式,格式在中国范围内一般是标准的DTI格式。 [0036] traffic information here is the traffic information, usually issued by a specialized transportation information service provider, it is common webservice form, format within China is generally the standard DTI format. 如何通过url获取交通信息不在本专利的讨论范围内,本专利的前提是有交通信息的情况下如何直接提供路况图与基础图的叠加图。 How to obtain the traffic information is not within the scope of the present patent by the url, the premise of this patent how the case where there is traffic information directly with the base traffic FIG overlay of FIG.

[0037] 3、路况图渲染 [0037] 3, FIG rendering road

[0038] 基于某种编程语言建立路况内存图对象,一般大小为256*256像素,将路网点,道路平均运行速度,采用合适的颜色值,渲染到图片对象中,并返回和保存渲染结果。 [0038] Based on a programming language to build the road map memory objects, the general size of 256 * 256 pixels, the road network, road average speed, use the appropriate color values, rendering the picture object and returns and save the rendered results.

[0039] 渲染图片是一种比较常见的技术,以java为例: [0039] rendered image is a relatively common technique to java example:

[0040] [0040]

BufferedImage bi=newBufferedImage (width,height, Bufferedlmage.TYPE—INT—BGR); BufferedImage bi = newBufferedImage (width, height, Bufferedlmage.TYPE-INT-BGR);

Graphics2D g=b1.createGraphics (); //得到画布g.setFont (new Font (Font.SANS-SERIF, Font.BOLD, 20)); Graphics2D g = b1.createGraphics (); // get the canvas g.setFont (new Font (Font.SANS-SERIF, Font.BOLD, 20));

//设置字体 // set the font

g.setColor (back); g.setColor (back);

gf i I IRect (0, 0, width, height); //画背景g.setColor (f ront); gf i I IRect (0, 0, width, height); // Videos BACKGROUND g.setColor (f ront);

g.drawString (code, 18, 20); //画字符 g.drawString (code, 18, 20); // draw characters

for (int i = 0, n=random.nextInt (20); i<n; i++) { for (int i = 0, n = random.nextInt (20); i <n; i ++) {

gf iIIRect (random, nextInt (width), random, nextInt (heigh gf iIIRect (random, nextInt (width), random, nextInt (heigh

t) ,1,1); t), 1,1);

} [0041] 4、交通信息地图叠加 } [0041] 4, traffic information map overlays

[0042] 路况信息瓦片图与基本GIS地图叠加后能更好的展示道路状况以及道路周边的地物信息,这里以google的基本地图为例描述交通信息地图的叠加方法。 [0042] After the traffic information tile map and basic GIS map overlays can better display feature information and road conditions around the road, where traffic information map overlay method to basic google map described as an example.

[0043] Google地图API提供了定义自己的自定义地图类型,并开发全新的显示样式。 [0043] Google Maps API provides define your own custom map types, and the development of new display style. 要实现此效果,先构造一个GMapType对象,并使用GMap2.addMapType O方法将其添加到地图上。 To achieve this effect, first construct a GMapType object and GMap2.addMapType O method to add it to the map. 地图叠加需要解决的最基本问题是坐标系的建立和对应,相同地理位置的地图必须叠加在一起才是正确的,下面简单说明地图服务所需要的坐标系。 Map overlays need to address the fundamental problem is the establishment of maps and correspondence, the same geographic coordinate system must be added together is correct, the following brief description of the services they need map coordinate system.

[0044] —般地图服务使用以下三种坐标系:(I)像素坐标,引用图块上的一个点;(2)图块坐标,引用图块层中的一个图块;(3)缩放层,定义总的图块数。 [0044] - as a map service using the following coordinates: (I) the pixel coordinates, a point on the reference block; (2) tile coordinates, a reference tile tile layer; (3) scalable layers the definition of the total number of tiles.

[0045] 每个坐标系说明如下: [0045] Each coordinate system as follows:

[0046] (I)像素坐标[0047] Google地图中的每个图块都包含256X256个像素。 [0046] (I) pixel coordinates [0047] Google Maps of each tile contains 256X256 pixels. 可以使用GPoint (x,y)对来引用特定图块上的某个点。 You may be used GPoint (x, y) of a point on a reference to a particular tile. 每个图块的原点(0,0)表示为图块的西北角。 The origin of each tile (0,0) is expressed as the northwest corner of the tile. 因此,对于表示整个地球的单个图块,原点设置为在北极,经度-180度。 Thus, for a single tile represents the entire earth, the origin is set in the Arctic, -180 degrees longitude. x(经度)值越往东越大,而y(纬度)值越往南越大,一直到东南角(255,255)。 x (longitude) value, the more the greater the east, while y (latitude) the greater the value, the more south until the southeast corner (255,255).

[0048] 在高一级的缩放级别,像素空间在X和y方向都扩大一倍。 [0048] In a high zoom levels, the pixel space in the X and y directions are doubled. 例如,在缩放级别1,地图包括4个256 X 256像素的图块,产生512 X 512的像素空间。 For example, a zoom level, the map includes four tiles 256 X 256 pixels, 512 X 512 is generated in the pixel space. 在缩放级别N,地图上的每个X和y像素均可以使用O和.256*2N之间的值来引用。 In the zoom level N, X and y each pixel on the map can be used a value between O and .256 * 2N referenced.

[0049] (2)图块坐标 [0049] (2) tile coordinates

[0050] 引用整个地图上一个唯一的点通常是不实际的。 [0050] a unique reference point on the entire map is often not practical. 在较高的缩放级别,Google地图API不能使用一个图像文件显示整个地球。 At higher zoom levels, Google Maps API can not use an image file to display the entire planet. 因此确定正在使用哪个图块,然后相对于该图块的原点计算像素坐标非常有用。 Therefore determine which tile is being used, then the pixel coordinates relative to the origin of the tile useful computing. 任何自定义地图都需要进行相同的图块值计算。 Any custom map tiles need to be the same value calculations. Google地图中的图块从与像素相同的原点开始计算,以便使原点图块始终处于地图的西北角。 Google Maps tile counting from the pixels of the same origin, so that the origin tile is always at the northwest corner of the map. 图块使用从该原点算起的(x,y)坐标进行索引。 Using tile counting from the origin (x, y) coordinates of the index. 例如,在缩放级别2,当地球分为16个图块时,每个图块可以通过一个唯一的(X,y)对来引用。 For example, the zoom level 2, when the earth is divided into 16 tiles, each tile may be a unique (X, y) to be referenced by.

[0051]可以用 Google 地图API 构建一个GTileLayer,将GTileLayerOptions 参数作为对象常量传递。 [0051] can build a GTileLayer with Google Maps API, will GTileLayerOptions parameters passed as an object literal. GTileLayerOptions参数包含tileUrlTemplate属性,可根据图块坐标将图块 GTileLayerOptions parameters include tileUrlTemplate properties, the tile according to tile coordinates

请求映射到网址。 Map requests to the URL. 叠加层的构造函数可能如下所示: The constructor may overlay as follows:

[0052] [0052]

var t iIeLayerOver lay = new GTiIeLayerOver lay ( new GTi IeLayer (nul I, null, null, { ti IeUrITemplate: var t iIeLayerOver lay = new GTiIeLayerOver lay (new GTi IeLayer (nul I, null, null, {ti IeUrITemplate:

'http: //domain, com/myimage— {Z} _ {X} _ {Y}.png', isPng: true, opacity: 1.0 'Http: // domain, com / myimage- {Z} _ {X} _ {Y} .png', isPng: true, opacity: 1.0

}) })

); );

map.addOver lay (t lo); map.addOver lay (t lo);

[0053] 利用此方法可轻松将路况信息瓦片图与google地图叠加,提供带路况信息的GIS服务。 [0053] Using this method can easily map and traffic information tile google map overlays, providing traffic information with GIS services.

[0054] (3)转换投影坐标 [0054] (3) converting projection coordinates

[0055] 地球是一个球形,而地图是平面的二维对象。 [0055] The earth is a sphere, while a map is a flat two-dimensional object. Google地图API中的地图是这个球形在平面上的“投影”。 Google Maps API map is this sphere on the plane "projection." 最常见的是墨卡托投影。 The most common is the Mercator projection. 用最简单的方式来看,投影可以定义为GLatLng值与地图上的坐标之间的一对一对应,GProjection接口提供了用于此用途的转换实用工具。 The simplest point of view, the projection may be defined as one correspondence between the value of GLatLng coordinates on a map, the GProjection interface provides conversion utility for this purpose.

[0056] GProjection.fromLatLngToPixel O方法可将GLatLng值转换为指定缩放级别的像素坐标。 [0056] GProjection.fromLatLngToPixel O GLatLng methods may convert the pixel values ​​of the coordinates to specify a zoom level. 类似地,GProjection.fromPixelToLatLngO方法可将指定缩放级别的像素坐标转换为GLatLng值。 Similarly, GProjection.fromPixelToLatLngO the pixel coordinates of the method may be converted to GLatLng zoom level value. 在不同的地图类型位置点处理时这些方法非常有用,因为它们可让您确定显示哪些图块、怎样显示它们以及显示它们时所使用的偏移值。 When dealing with different types of map location of the point of these methods are very useful because they allow you to determine which tiles show, how to display them, and displays the offset value when they are used.

[0057] 最后所应说明的是,以上具体实施方式仅用以说明本发明的技术方案而非限制,尽管参照较佳实施例对本发明进行了详细说明,本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或者等同替换,而不脱离本发明技术方案的精神和范围,其均应涵盖在本发明的权利要求范围当中。 [0057] Finally, it should be noted that the above specific embodiments are intended to illustrate and not limit the present invention, although the present invention has been described in detail with reference to preferred embodiments, those of ordinary skill in the art should be understood made to the embodiments of the present invention, modifications or equivalent replacements without departing from the spirit and scope of the technical solutions of the present invention, which should fall within the scope of the present invention as claimed in accompanying claims.

Claims (4)

  1. 1.一种基于图层叠加的动态交通信息服务提供方法,其特征在于:该方法通过提供基础Gis服务的基础GIS服务器和提供路况信息瓦片图的路况信息服务器的配合工作,为用户提供基于图层叠加的动态交通信息服务; 所述基础GIS服务器的工作流程包括以下步骤: 步骤1.1:等待用户的交通信息服务请求; 步骤1.2:接收到交通信息服务请求后,向路况信息服务器发送路况图片请求,申请一定比例尺下、一定经纬度范围内的路况信息瓦片图,然后等待路况信息服务器的反馈; 步骤1.3:接收到路况信息服务器返回的路况信息瓦片图后,将所述路况信息瓦片图与相同比例尺和经纬度范围的本地基本GIS地图叠加,得到交通信息地图并反馈给用户显示; 所述路况信息服务器上创建有瓦片地图金字塔模型,所述路况信息服务器的工作流程包括以下步骤: 步骤2.1:启动服务; 步 1. A method of providing dynamic traffic information service based on superposed layers, characterized in that: the process provided by cooperating services based Gis GIS based traffic server and an information server to provide traffic information in FIG tiles, to provide users based overlay dynamic traffic information service; GIS server workflow said base comprises the following steps: step 1.1: waiting for the user's traffic information service request; step 1.2: receiving the traffic information service request, transmits traffic information to the road image server request, at a certain scale applications, traffic information within a certain latitude and longitude FIG tile range, and then waits for the feedback of the road information server; step 1.3: receiving traffic information the traffic information returned by the server of FIG tile after the tile the traffic information FIG local maps GIS substantially the same dimensions and range of latitude and longitude superimposed to obtain the traffic information and map displays feedback to the user; has created a map tile pyramid model server on said traffic information, the traffic information server workflow comprises the steps of: step 2.1: start services; step 骤2.2:定时获取最新实时路况数据,在对应的瓦片地图上进行路况渲染,生成相应的路况信息瓦片图并存储;同时,监听多路的基础GIS服务器的路况图片请求; 步骤2.3:接收到路况图片请求后,解析出该路况图片请求涉及的比例尺、经纬度范围; 步骤2.4:根据解析出的比例尺、经纬度范围,提取出对应的路况信息瓦片图; 步骤2.5:将提取出的路况信息瓦片图通过信息流的方式返回给基础GIS服务器。 Step 2.2: the timing for the latest real-time traffic data, road rendered on the map corresponding to the tile, to form the corresponding traffic information and stores FIG tile; at the same time, the sense multiple images based traffic GIS server request; Step 2.3: receiving after the road image request, parses the traffic scale image according to the request, the range of latitude and longitude; step 2.4: according to the parsed scale, the range of longitude and latitude, corresponding to the extracted traffic information in FIG tile; step 2.5: the extracted traffic information FIG tile is returned to the server by way of GIS based traffic.
  2. 2.根据权利要求1所述的基于图层叠加的动态交通信息服务提供方法,其特征在于:所述路况信息服务器对瓦片地图金字塔模型上的各瓦片地图按比例尺、经纬度范围建立路网索引文件,在步骤2.2中,获取最新实时路况数据后,根据不同比例尺和经纬度范围,通过所述路网索引文件读取对应的路网信息,以进行路况渲染。 The dynamic traffic information service-based method of claim Overlay claim 1, wherein: the traffic information server for each tile in the tile map pyramid model map to scale road network, latitude and longitude range after the index file, in step 2.2, the latest acquired real-time traffic data, depending on the longitude and latitude range and scale, reads the corresponding road network information through the index file of the road network, road conditions for rendering.
  3. 3.根据权利要求1所述的基于图层叠加的动态交通信息服务提供方法,其特征在于:所述路况信息服务器对生成的路况信息瓦片图建立编号并存储在指定目录下,在步骤2.4中,根据解析出的比例尺、经纬度范围,计算出需调取的路况信息瓦片图的数量和编号,然后从所述指定目录中提取出对应的路况信息瓦片图。 The dynamic traffic information service-based method of claim Overlay claim 1, wherein: the traffic information server creates an ID for the traffic information generated and stored FIG tile in the specified directory, in step 2.4 in accordance with the parsed scale, the range of latitude and longitude, road condition information to calculate the required tile map number and the number of retrieved, and then the extracted information corresponding to the road map from the tile specified directory.
  4. 4.根据权利要求1、2或3所述的基于图层叠加的动态交通信息服务提供方法,其特征在于:所述路况信息服务器是以Apache搭建的Web服务器,所述路况信息服务器提供的上述路况信息服务被编译为DSO动态库模块,通过配置加载所述DSO动态库模块来启动路况信息服务。 The dynamic traffic information service-based Overlay method according to claim 2 or 3, characterized in that: the traffic information server is built Apache Web server, the above-described traffic information provided by the server traffic information service is compiled as a DSO DLL module, to start the service traffic information configured by loading the module dynamic link library DSO.
CN 201110441060 2011-12-26 2011-12-26 Dynamic traffic information service providing method based on map layer overlapping CN103177577B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110441060 CN103177577B (en) 2011-12-26 2011-12-26 Dynamic traffic information service providing method based on map layer overlapping

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110441060 CN103177577B (en) 2011-12-26 2011-12-26 Dynamic traffic information service providing method based on map layer overlapping

Publications (2)

Publication Number Publication Date
CN103177577A true true CN103177577A (en) 2013-06-26
CN103177577B CN103177577B (en) 2015-06-17

Family

ID=48637398

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110441060 CN103177577B (en) 2011-12-26 2011-12-26 Dynamic traffic information service providing method based on map layer overlapping

Country Status (1)

Country Link
CN (1) CN103177577B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544247A (en) * 2013-10-10 2014-01-29 广东电网公司电力科学研究院 GIS display method and system
CN103559009A (en) * 2013-10-30 2014-02-05 浙江省公众信息产业有限公司 Geographic information terminal and geographic information presentation method
CN103679772A (en) * 2013-12-09 2014-03-26 中国南方电网有限责任公司超高压输电公司检修试验中心 Synergistic drawing method across power grid safe areas
CN104281709A (en) * 2014-10-27 2015-01-14 杭州智诚惠通科技有限公司 Method and system for generating traffic information tiled map
CN104318768A (en) * 2014-10-27 2015-01-28 杭州智诚惠通科技有限公司 Hadoop based self-adaption traffic information tiled map generating system and method
CN104457776A (en) * 2014-12-26 2015-03-25 深圳市凯立德欣软件技术有限公司 Traffic information display method, navigation apparatus, server and navigation system
CN104468820A (en) * 2014-12-23 2015-03-25 广东威创视讯科技股份有限公司 Map service resource obtaining method and client
CN104503981A (en) * 2014-11-28 2015-04-08 四川浩特通信有限公司 Intelligent integrated traffic guidance platform system
CN105354310A (en) * 2015-11-10 2016-02-24 西安电子科技大学 MapReduce based map tile storage layout optimization method
WO2016082617A1 (en) * 2014-11-27 2016-06-02 国家电网公司 Gis-based method and system for associating meteorological information with power device
WO2016116031A1 (en) * 2015-01-19 2016-07-28 高德软件有限公司 Method and device for establishing spatial index of electronic map
CN105874280A (en) * 2016-04-06 2016-08-17 吴鹏 A remote control method and system for air conditioners
CN104239617B (en) * 2014-09-02 2017-10-31 百度在线网络技术(北京)有限公司 Show the method and apparatus of the heatmap

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020018800A (en) * 2000-09-04 2002-03-09 김경오 Method For Unified Management Of Geographic Information Including Advertisement Data
CN101162148A (en) * 2006-11-30 2008-04-16 厦门雅迅网络股份有限公司 Method for more accurate navigation by employing dynamic map topology
CN102163214A (en) * 2011-03-07 2011-08-24 北京百度网讯科技有限公司 Numerical map generation device and method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020018800A (en) * 2000-09-04 2002-03-09 김경오 Method For Unified Management Of Geographic Information Including Advertisement Data
CN101162148A (en) * 2006-11-30 2008-04-16 厦门雅迅网络股份有限公司 Method for more accurate navigation by employing dynamic map topology
CN102163214A (en) * 2011-03-07 2011-08-24 北京百度网讯科技有限公司 Numerical map generation device and method thereof

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
肖寒冰等: "基于webGIS数据可视化方法", 《计算机系统应用》 *
谢思铭等: "基于WebGIS的城市交通信息的实时发布架构与实现", 《测绘与空间地理信息》 *

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544247A (en) * 2013-10-10 2014-01-29 广东电网公司电力科学研究院 GIS display method and system
CN103559009A (en) * 2013-10-30 2014-02-05 浙江省公众信息产业有限公司 Geographic information terminal and geographic information presentation method
CN103679772A (en) * 2013-12-09 2014-03-26 中国南方电网有限责任公司超高压输电公司检修试验中心 Synergistic drawing method across power grid safe areas
CN103679772B (en) * 2013-12-09 2016-08-17 中国南方电网有限责任公司超高压输电公司检修试验中心 A synergistic method for drawing grid security across the region
CN104239617B (en) * 2014-09-02 2017-10-31 百度在线网络技术(北京)有限公司 Show the method and apparatus of the heatmap
CN104281709A (en) * 2014-10-27 2015-01-14 杭州智诚惠通科技有限公司 Method and system for generating traffic information tiled map
CN104318768A (en) * 2014-10-27 2015-01-28 杭州智诚惠通科技有限公司 Hadoop based self-adaption traffic information tiled map generating system and method
CN104281709B (en) * 2014-10-27 2018-09-14 杭州智诚惠通科技有限公司 Traffic information tile map generating method and system
WO2016082617A1 (en) * 2014-11-27 2016-06-02 国家电网公司 Gis-based method and system for associating meteorological information with power device
CN104503981A (en) * 2014-11-28 2015-04-08 四川浩特通信有限公司 Intelligent integrated traffic guidance platform system
CN104468820A (en) * 2014-12-23 2015-03-25 广东威创视讯科技股份有限公司 Map service resource obtaining method and client
CN104468820B (en) * 2014-12-23 2018-05-22 广东威创视讯科技股份有限公司 Map Service kind of resources and client acquisition method
CN104457776A (en) * 2014-12-26 2015-03-25 深圳市凯立德欣软件技术有限公司 Traffic information display method, navigation apparatus, server and navigation system
WO2016116031A1 (en) * 2015-01-19 2016-07-28 高德软件有限公司 Method and device for establishing spatial index of electronic map
CN105354310B (en) * 2015-11-10 2018-07-10 西安电子科技大学 MapReduce-based map tiles storage layout optimization method
CN105354310A (en) * 2015-11-10 2016-02-24 西安电子科技大学 MapReduce based map tile storage layout optimization method
CN105874280A (en) * 2016-04-06 2016-08-17 吴鹏 A remote control method and system for air conditioners

Also Published As

Publication number Publication date Type
CN103177577B (en) 2015-06-17 grant

Similar Documents

Publication Publication Date Title
US8384742B2 (en) Virtual white lines (VWL) for delimiting planned excavation sites of staged excavation projects
Luxen et al. Real-time routing with OpenStreetMap data
Cecconi et al. Adaptive zooming in web cartography
Girres et al. Quality assessment of the French OpenStreetMap dataset
US8681176B1 (en) Rendering a map using style identifiers
EP1426876A1 (en) Geographical information system
US20120323992A1 (en) Geospatial visualization performance improvement for contiguous polylines with similar dynamic characteristics
US20090292464A1 (en) System and method for providing geographic markers on electronic objects and real-world objects
Over et al. Generating web-based 3D City Models from OpenStreetMap: The current situation in Germany
CN101388043A (en) OGC high performance remote sensing image map service method based on small picture
CN101452072A (en) Electronic information system for earth monitor and method thereof
US20130080504A1 (en) Managing map elements using aggregate feature identifiers
US7962281B2 (en) Generating and serving tiles in a digital mapping system
Brimicombe et al. Mobile space‐time envelopes for location‐based services
US8738284B1 (en) Method, system, and computer program product for dynamically rendering transit maps
US8589075B1 (en) Method, system, and computer program product for visualizing trip progress
CN101051077A (en) Satellite positioning, remote sensing and geographical in for mation integrating method based on mobile device
Altmaier et al. Applications and solutions for interoperable 3D geo-visualization
CN102521273A (en) High-resolution remote-sensing multifunctional urban land spatial information generation method
US20140344296A1 (en) Efficient Fetching of Map Tile Data
CN101435708A (en) Real time roaming and scaling method of vector map in mobile navigation equipment
Lu Develop web gis based intelligent transportation application systems with web service technology
CN1442835A (en) Programme setting method of electronic map
CN101706809A (en) Method, device and system for processing multi-source map data
CN102288183A (en) System and method for positioning address for reporting rural event

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model
CP03