- 积分
- 3638
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2014-10-21
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2019-1-29 16:08:47
|
显示全部楼层
案例:利用<Polygon>的外边框和内边框绘制五角大楼
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2"> <Placemark>
<name>The Pentagon</name>
<Style>
<LineStyle>
<color>ff0000ff</color>
<width>1</width>
</LineStyle>
<PolyStyle>
<color>ffcdff32</color>
<outline>1</outline>
</PolyStyle>
</Style>
<Polygon>
<extrude>1</extrude>
<altitudeMode>relativeToGround</altitudeMode>
<outerBoundaryIs>
<LinearRing>
<coordinates>
118.05788457660967,38.87253259892824,100
118.05465973756702,38.87291016281703,100
118.05315536854791,38.87053267794386,100
118.05552622493516,38.868757801256,100
118.05844056290393,38.86996206506943,100
118.05788457660967,38.87253259892824,100
</coordinates>
</LinearRing>
</outerBoundaryIs>
<innerBoundaryIs>
<LinearRing>
<coordinates>
118.05668055019126,38.87154239798456,100
118.05542625960818,38.87167890344077,100
118.05485125901024,38.87076535397792,100
118.05577677433152,38.87008686581446,100
118.05691162017543,38.87054446963351,100
118.05668055019126,38.87154239798456,100
</coordinates>
</LinearRing>
</innerBoundaryIs>
</Polygon>
</Placemark> </kml>
|
|