Skip to main content

When I open my KML file in Google Earth, I can see the data displayed in folders in the table of contents. When I use the KML reader to read the data, that folder name doesn't show up on my features. How do I get that out?

The folder name isn't added as an attribute onto placemarks read from KML directly. The folders themselves are read separately as a feature type called Folders. The Placemarks will have a format attribute added to them called kml_parent which contains an id value that will match the kml_id from one of the Folder features. To add the folder name onto the Placemarks, you can use a FeatureMerger transformer to join on those two attributes.

Here's a sample template file to show how that would look within FME: kmlgetfoldername.fmwt


Where can I find the file described above (​kmlgetfoldername.fmwt)?


Where can I find the file described above (​kmlgetfoldername.fmwt)?

Thanks @kerkhoff​! I'm attaching that file to this comment.


Thanks @kerkhoff​! I'm attaching that file to this comment.

Thanks Laura at Safe.

 


Reply