1

There is a KML file that I created by exporting a layer from ArcGIS10.0. The file shows some placemarks that I need to be labeled. However, I want the labels (and the points themselves) to be visible in Google Earth only at or below a certain altitude. I know that using the <Region> tag is the way to do this, but, with a triple-digit number of placemarks, typing in the tag and all the rest of the code for every single placemark does not seem very practical.

The points are all located in one folder, and I wonder if I can use <Region> at the folder level. However, placing <Region> and the rest of the code after the <folder> tag and </Region> just before </folder> did not work. If I am to modify the behavior of the labels at the folder level, where should I place the tags? Also, how do I edit KML code? I know that I can right-click a file in Google Earth, copy it, and paste the code into a text editor, but how do I get the edited code back into the file?

Sorry for such trivial questions, I'm as new to KML as can be.

4

1 回答 1

0

通过它的声音,你已经尝试过这个:

<folder>
  <region>
    <placemark></placemark>
    <placemark></placemark>
    <placemark></placemark>
    ...
  </region>
</folder>

从 KML文档

此外,在 KML 文件中,请注意 Region 是其可见性影响的图像(或几何)的兄弟。

因此,您想要做的是:

<folder>
  <region>
    [scale limits go here]
  </region>

  <placemark></placemark>
  <placemark></placemark>
  <placemark></placemark>
    ...
</folder>

在编辑 KML 文件方面 - 只需直接在文本编辑器中打开它,不要将其从 Google 地球中复制出来。

于 2013-05-21T06:14:08.387 回答