Polygon不会填写Google地球

时间:2017-03-22 16:11:07

标签: kml google-earth

我无法让Google地球填充多边形。 显示多边形的轮廓,但未填充。我发现其他类似的问题,其中修复是删除innerBoundaryIs标记,或删除边界中的循环,但我不认为这些修复中的任何一个都与此相关。

<?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地球版本的信息:

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

2 个答案:

答案 0 :(得分:1)

问题似乎与我的显卡驱动程序有关。当我启动Google地球时,我收到一条关于仅在轮廓模式下显示的钳位多边形的消息。当时,我不知道“夹紧的多边形”是什么,所以当我试图创建一些多边形时,我没有建立连接。刚才,当我重新启动Google地球时,我理解了这条消息。

如何解决问题有一个question on another forum

答案 1 :(得分:0)

图形问题,因此从 OpenGL 更改为 Direct。

依次转到“工具”、“选项”、“3D 视图”,然后选择“DirectX”。

我遇到了类似的问题,我从 OpenGL 更改为 DirectX 并且成功了。

希望这一步能解决问题。

相关问题