Importing KMLs - no point names
This should be simple but I can't figure it out. When I drag and drop a KML into my project, the <Placemark><name> is not pulled into the layer attributes. Is there a way of seeing this information in the attribute editor so I can add point labels?
Comments
-
Can you provide a sample (either here or to geohelp@bluemarblegeo.com)? I would expect the <Name> field to become the display label of the feature. This would is a special 'attribute' that should still show in the Attribute Editor as the <Feature Label> field.
Thanks,
Mike
Global Mapper Guru
-
It gets imported like this... no name info.
-
@bmg_mike Any update on this Mike?
-
Can you provide a sample KML/KMZ file that demonstrates this issue? You may have to zip it up to attach it here.
Thanks,
Mike
Global Mapper Guru
-
Thanks Mike, Sure thing, see attached.
-
I just looked at your file, and it seems that the Point features do have names, it is only the lines which have no name. This makes sense as the <Placemarks> that define the lines have <name></name>, so no name, while the points do have names.
<Placemark> <name></name> <styleUrl>#segment0</styleUrl> <LineString> <gx:altitudeMode xmlns:gx="http://www.google.com/kml/ext/2.2">clampToSeaFloor</gx:altitudeMode> <coordinates>130.821466224955,25.8715681382228 145.468760029565,25.3887184712628</coordinates> </LineString> </Placemark>
It looks like everything is reading correctly to me.
Thanks,
Mike
Global Mapper Guru
-
Thanks Mike,
Interesting. It looks like the program generating the KMLs has recently changed it output formatting. Is there an easy way to set up multiple label layers similar to Google Earth?
-
In Global Mapper, you could right-click on the loaded KML layer and split into layers by some attribute. Then you could just turn the layers on and off.
Mike
Global Mapper Guru
Categories
- 12.8K All Categories
- 5.7K Features Discussion
- 345 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 636 GM Script Language
- 54 User Scripts
- 114 GPS Features
- 417 Projection Questions
- 825 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 178 Announcement and News
- 912 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 569 Other Discussion
- 131 GIS Data Sources
- 27 Global Mapper Showcase
- 238 How I use Global Mapper
- 107 Global Mapper Forum Website