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?
Solved
How do I get the folder name for my features stored in a KML/KMZ file?
Best answer by laurawatsafe
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
Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.