我正在尝试在地面以上的 KML 中创建一个多边形。当多边形尺寸较小时,它可以正常工作,但当多边形较大时,由于 Z 冲突,它看起来很奇怪。我也试过镶嵌,但结果是一样的。
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
<Document>
<name>KmlFile</name>
<StyleMap id="TS">
<Pair>
<key>normal</key>
<styleUrl>#TS0</styleUrl>
</Pair>
<Pair>
<key>highlight</key>
<styleUrl>#TS1</styleUrl>
</Pair>
</StyleMap>
<Style id="TS0">
<LineStyle id="TSLine">
<color>7f0000c0</color>
<width>2</width>
</LineStyle>
<PolyStyle id="TSPoly">
<color>7f0000c0</color>
</PolyStyle>
</Style>
<Style id="TS1">
<LineStyle id="TSLine">
<color>7f0000c0</color>
<width>2</width>
</LineStyle>
<PolyStyle id="TSPoly">
<color>7f0000c0</color>
</PolyStyle>
</Style>
<Placemark>
<name>Z-fighting issue with polygon</name>
<description>
Tessellation not working
</description>
<styleUrl>#TS</styleUrl>
<Polygon>
<tessellate>1</tessellate>
<altitudeMode>relativeToGround</altitudeMode>
<outerBoundaryIs>
<LinearRing>
<coordinates>
108.71,17.38,785 106.74,16.93,785 106.69,16.52,785 107.66,16.06,785 107.29,15.82,785 107.71,15.46,785 107.45,14.4,785 107.84,13.24,785 107.57,12.34,785 105.82,11.51,785 106.15,10.83,785 105.39,10.85,785 104.56,10.3,785 103.96,10.53,785 102.71,8.880000000000001,785 103.02,7.04,785 105.56,7.04,785 108.04,7.04,785 111.22,8.9,785 114.02,10.47,785 114.02,12.72,785 113.98,14.53,785 112.24,14.41,785 110.23,16.06,785 108.71,17.38,785
</coordinates>
</LinearRing>
</outerBoundaryIs>
</Polygon>
</Placemark>
</Document>
</kml>
这个问题有什么解决办法吗?