添加kml文件成功,但内容不显示

0 投票
添加一带有NetworkLink内容的kml后,图层有了,但没有对应的模型出现。用谷歌地球打开能够正常显示。

kml文件内容如下

1.kml

<?xml version="1.0" encoding="utf-8"?>
<kml xmlns="http://earth.google.com/kml/2.1">
    <Document>
        <name>Production_1</name>
        <description>Generated using Bentley ContextCapture</description>
        <Style>
            <ListStyle id="hideChildren">
                <listItemType>check</listItemType>
            </ListStyle>
        </Style>
        <NetworkLink>
            <open>1</open>
            <Link>
                <href>Data/Tile_1/Tile_1.kml</href>
            </Link>
        </NetworkLink>
    </Document>
</kml>

Tile_1.kml

<?xml version="1.0" encoding="UTF-8"?>
<kml>
  <Document>
    <name>Tile_1</name>
    <visibility>1</visibility>
    <description>Generated using Bentley ContextCapture</description>
    <Placemark>
      <name>Tile_1</name>
      <visibility>1</visibility>
      <Model>
        <altitudeMode>relativeToGround</altitudeMode>
        <Location>
          <longitude>104.250576241113</longitude>
          <latitude>30.3377070007537</latitude>
          <altitude>10</altitude>
        </Location>
        <Orientation>
          <heading>0</heading>
          <tilt>0</tilt>
          <roll>0</roll>
        </Orientation>
        <Scale>
          <x>1</x>
          <y>1</y>
          <z>1</z>
        </Scale>
        <Link>
          <href>./Tile_1.dae</href>
        </Link>
      </Model>
    </Placemark>
    <Document>
      <visibility>0</visibility>
    </Document>
  </Document>
</kml>
4月 29, 2020 分类:  890次浏览 | 用户: lierisme 初出茅庐 (45 分)
重新分类 4月 29, 2020 用户:张亮

1个回答

0 投票

您好,您的嵌套的kml可能添加不了,您直接添加Tile_1.kml到场景中能否看到呢?

4月 29, 2020 用户: 宋翔 学富五车 (704 分)

直接添加Tile_1.kml是可以正常显示的。

是超图没有支持NetworkLink吗?
 

对,我们里面没去是被这个节点。所以加不了。我们基本上都是一个kml就是一个kml而不会在里面去镶嵌其他kml
...