2017-03-22 128 views
0

我很難讓Google地球填充多邊形。 顯示了多邊形的輪廓,但未填充。我發現其他類似的問題,其中修復方法是刪除innerBoundaryIs標記或刪除邊界中的循環,但我不認爲這些修復中的任何一個在這裏相關。多邊形不會填入Google地球

<?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>polygon3.kml</name> 
     <Style id="examplePolyStyle"> 
       <PolyStyle> 
         <color>ffffff00</color> 
         <outline>0</outline> 
       </PolyStyle> 
     </Style> 
     <StyleMap id="examplePolyStyle0"> 
       <Pair> 
         <key>normal</key> 
         <styleUrl>#examplePolyStyle1</styleUrl> 
       </Pair> 
       <Pair> 
         <key>highlight</key> 
         <styleUrl>#examplePolyStyle</styleUrl> 
       </Pair> 
     </StyleMap> 
     <Style id="examplePolyStyle1"> 
       <PolyStyle> 
         <color>ffffff00</color> 
         <outline>0</outline> 
       </PolyStyle> 
     </Style> 
     <Placemark> 
       <name>Untitled Polygon</name> 
       <styleUrl>#examplePolyStyle0</styleUrl> 
       <Polygon> 
         <tessellate>1</tessellate> 
         <outerBoundaryIs> 
           <LinearRing> 
             <coordinates> 
               -74.19398870115191,48.21138137082842,0 -74.53662724779845,47.79378794242044,0 -73.97895911455657,47.72309262210254,0 -74.19398870115191,48.21138137082842,0 
             </coordinates> 
           </LinearRing> 
         </outerBoundaryIs> 
       </Polygon> 
     </Placemark> 
</Document> 
</kml> 

下面是關於谷歌地球的版本,我使用的信息:

Google Earth 7.1.8.3036 (64-bit) 
Build Date 1/17/2017 
Build Time 8:57:31 am 
Renderer OpenGL 
Operating System Linux (3.13.0.0) 
Video Driver Intel Open Source Technology Center 
Max Texture Size 8192x8192 
available video memoryinformation not available 
Server kh.google.com 
+0

確切的問題是什麼? KML示例生成填充多邊形。 InnerBoundaryIs標籤是可選的。 – JasonM1

+0

當我將上面的例子加載到Google地球中時,多邊形的輪廓會顯示出來,但它沒有被填充。我已經在問題中澄清了這一點。 – mhwombat

回答

1

的問題似乎是與我的顯卡驅動程序。當我創建Google地球時,我收到一條關於只在大綱模式下顯示的夾緊多邊形的消息。當時,我不知道什麼是「夾多邊形」,所以當我嘗試創建一些多邊形時,我沒有建立連接。就在現在,當我重新啓動Google地球時,我理解了這個信息。

有關於如何解決該問題的question on another forum