KML文件学习-点、线

这篇博客介绍了如何使用KML文件创建并显示地理信息中的点和线。通过XML格式的KML代码,展示了如何定义多个点坐标以及绘制连接这些点的线,并在Google Earth(GE)中进行展示。内容包括点的坐标定义、线的颜色宽度设定以及Placemark的使用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.1" >
  <Document>
	<Placemark>
      <name>#1</name>
      <Point>
        <coordinates>113.068899,25.745336,15</coordinates>
      </Point>
    </Placemark>
	
	<Placemark>
      <name>#2</name>
      <Point>
        <coordinates>113.068899,25.844481,30</coordinates>
      </Point>
    </Placemark>
	
	<Placemark>
      <name>#3</name>
      <Point>
        <coordinates>112.978279,25.844481,45</coordinates>
      </Point>
    </Placemark>
	
	<Placemark>
      <name>#4</name>
      <Point>
        <coordinates>112.978279,25.745336,60</coordinates>
      </Point>
    </Placemark>
  
  
  
    <Placemark>
      <name>
        轨迹
      </name>
	  <Style id="yellowLineGreenPoly">
		  <LineStyle>
			<color>7f00ffff</color>
			<width>4</width>
		  </LineStyle>
		  <PolyStyle>
			<color>7f00ffff</color>
		  </PolyStyle>
	  </Style>

	  
      <LineString>
        <coordinates>
          113.068899,25.745336,15 
		  113.068899,25.844481,30 
		  112.978279,25.844481,45 
		  112.978279,25.745336,60
        </coordinates>
		
      </LineString>
	
    </Placemark>
  </Document>
</kml>
点、线在GE显示
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值