Main Content

阴谋

Plot HERE HD Live Map layer data

Description

例子

阴谋(layerdata阴谋s HERE HD Live Map1(此处HDLM)地理轴上的数据。layerdatais a map layer object that was read from the selected tiles of ahereHDLMReader目的by using theread功能。

例子

阴谋(layerdata,,,,'Axes',gxIn阴谋s the layer data in the specified geographic axes,gxIn

例子

gxOut=图(___绘制图层数据并返回绘制数据的地理轴,并使用前面任何语法的输入。采用gxOut修改地理轴的特性。

Examples

collapse all

Load a sequence of latitude and longitude coordinates from a driving route.

数据=负载('geoSequence.mat'
data =struct with fields:纬度:[1000×1双]经度:[1000×1 double]

Create a HERE HD Live Map (HERE HDLM) reader from the specified coordinates. If you have not previously set up HERE HDLM credentials, a dialog box prompts you to enter them. The reader contains layered map data for the tile that the driving route is on.

reader = hereHDLMReader(data.latitude,data.longitude);

Read road topology data from theTopologyGeometry层。绘制数据。

ROADTOPOLOGY =阅读(读者,“拓扑几何”);阴谋(roadTopology) legend('Location',,,,“东北”

Overlay the driving route coordinates on the plot.

抓住ongeoplot(数据。'bo-',,,,'显示名称',,,,'Route')抓住off

放大路线。

latcenter =中位数(data.Latitude);loncenter =中位数(data.longitude);偏移= 0.005;latlim = [latcenter-offsot,latcenter+offset];lonlim = [loncenter-offset,loncenter+偏移];Geolimits(Latlim,Lonlim)

采用the HERE HD Live Map (HERE HDLM) service to read the lane topology data of a driving route and its surrounding area. Plot this data, and then stream the route on a geographic player.

加载美国马萨诸塞州纳蒂克的驾驶路线的纬度和经度坐标。

route = load('geosequencenatickma.mat');lat =路线。lon =路线。

Stream the coordinates on a geographic player.

player = geoplayer(lat(1),lon(1),“历史记录”,,,,5); plotRoute(player,lat,lon)为了IDX = 1:长度(LAT)plotposition(player,lat(idx),lon(idx))结尾

Create a HERE HDLM reader from the route coordinates. If you have not previously set up HERE HDLM credentials, a dialog box prompts you to enter them. The reader contains map data for the two map tiles that the route crosses.

读者= therdlmreader(lat,lon);

读取从LaneTopology地图图块的层。绘制车道拓扑。

LANETOPOLOGY =阅读(阅读器,“灯笼学”);情节(灯笼学)

Overlay the route data on the plot.

抓住onGeoplot(LAT,LON,'bo-',,,,'显示名称',,,,'Route');抓住off

覆盖地理播放器上的车道拓扑数据。再次流式传输路线。

情节(灯笼学,,'Axes',,,,player.Axes)为了IDX = 1:长度(LAT)plotposition(player,lat(idx),lon(idx))结尾

使用此处的HD Live Map(此处HDLM)Web服务从地图图块读取3-D车道几何数据。然后,在OpenStreetMap®BaseMap上绘制数据的2-D部分。

在此处创建一个代表德国柏林地区的地图瓷砖ID的HDLM读取器。如果您以前没有在此处设置HDLM凭据,则会提示您输入它们。

tileid = uint32(377894435);读取器= therdlmreader(tileid);

将OpenStreetMap basemap添加到可与此处的HDLM服务一起使用的基础列表列表中。添加基础图后,您无需在以后的会议中再次添加它。

名称=“ OpenStreetMap”;url ='https://a.tile.openstreetmap.org/$ {z }/qul;版权= char(uint8(169));归因=版权 +"OpenStreetMap contributors";AddCustombaseMap(名称,URL,'归因',归因)

Read 3-D lane geometry data from the泳道元素layer of the map tile. Plot the 2-D part of the lane geometry on theOpenStreetMapbasemap.

lanemeometrypolyline = read(读取器,'LaneGeometryPolyline');gx =图(LaneGeometrypolyline);GeoBasemap(GX,“ OpenStreetMap”

Zoom in on the central coordinate of the map tile.

latcenter = lanegeometrypolyline.tilecenterhere3dcoorcorion.here2dcoorcorion(1);lonencenter = lanegeometrypolyline.tilecenterhere3dcoorcorion.here2dcoorcorion(2);偏移= 0.001;latlim = [latcenter-offsot,latcenter+offset];lonlim = [loncenter-offset,loncenter+偏移];Geolimits(Latlim,Lonlim)

输入参数

collapse all

在这里,HDLM层数据要绘制,该数据指定为表中显示的图层对象之一。

Layer Object Description 样品图
泳道元素

3-D车道几何形状由一组3-D点组成的几何形状连接到polyline中。

带有边界,车道组参考,车道路径和车道边界的泳道元素图图

LaneTopology

Topologies of the HD Lane model, including lane group, lane group connector, lane, and lane connector topologies. This layer also contains the simplified 2-D boundary geometry of the lane model for determining map tile affinity and overflow.

LaneTopology layer with boundaries, lane group connectors, and lane groups

TopologyGeometry

Topology and 2-D line geometry of the road. This layer also contains definitions of the links (streets) and nodes (intersections and dead-ends) in the map tile.

TopologyGeometry layer with boundaries, nodes, and links

To obtain these layers from map tiles selected by ahereHDLMReader目的,,,,use theread功能。

绘制数据的地理轴,,,,specified as aGeographicAxes目的。2

输出参数

collapse all

绘制数据的地理轴,返回为GeographicAxes目的。采用this object to customize the map display. For more details, seeGeographicAxes Properties

版本历史记录

在R2019a中引入

1您需要与HERE为了访问HDLM服务并获得使用此处服务所需的凭据(access_key_id and Access_key_secret)。

2Alignment of boundaries and region labels are a presentation of the feature provided by the data vendors and do not imply endorsement by MathWorks®