Solved

How do I get the folder name for my features stored in a KML/KMZ file?

  • 30 September 2016
  • 4 replies
  • 68 views

Userlevel 4
Badge +13

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?

icon

Best answer by lauraatsafe 30 September 2016, 23:22

View original

4 replies

Badge +9

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)?

Badge +9

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