KML DESC
I converted few shapefiles to KML format using GM script. When viewd in the Notepad++, the below mentioned tag comes which i dont want. Is there any way through script to remove this tag? If so please help me out here. thank you
<altitudeMode>clampToGround</altitudeMode>
<altitudeMode>clampToGround</altitudeMode>
<extrude>0</extrude>
Answers
-
Hello,
It is not possible to remove the <altitudeMode> and <extrude> tags altogether, but this is how the related script parameters work, so you can decide what works for you.
There are three parameters that affect the <altitudeMode> tag. The description below covers the parameters for area features, but there are similar parameters for line and point features.
The first parameter is KML_AREA_DISPLAY_ABOVE_TERRAIN. If this is NO, the altitude mode value will be "clampToGround" and all of the other altitude parameters will be ignored. If it is YES, then the value will be determined by the other parameters.- KML_AREA_FAKE_HEIGHTS -- if this is YES, the value will be "clampToGround". If it is NO, the value will be determined by the KML_AREA_ELEVS_RELATIVE parameter.
- KML_AREA_ELEVS_RELATIVE -- if this is YES, the value will be "relativeToGround".
The KML_AREA_EXTRUDE parameter controls the value of the <extrude> tag. If it is YES, the value will be 1, and extrusion will be indicated. If it is NO, the value will be 0, and there will be no extrusion.
By default, the value for all of these parameters is NO, and the result will be:<altitudeMode>clampToGround</altitudeMode>
<extrude>0</extrude>
Cheers,
Bob -
Thank you so much for the reply
Categories
- 12.8K All Categories
- 5.7K Features Discussion
- 345 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 639 GM Script Language
- 54 User Scripts
- 115 GPS Features
- 417 Projection Questions
- 827 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 178 Announcement and News
- 918 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 570 Other Discussion
- 131 GIS Data Sources
- 27 Global Mapper Showcase
- 239 How I use Global Mapper
- 107 Global Mapper Forum Website