Skip to main content
Solved

KML Subfolder

  • September 5, 2025
  • 5 replies
  • 56 views

hdnguyen
Contributor
Forum|alt.badge.img+2

I’ve seen both examples of creating KML:
https://support.safe.com/hc/en-us/articles/25407754952717-Creating-KML-Folders-Through-KML-IDs
https://support.safe.com/hc/en-us/articles/25407609389453-Creating-KML-Folders-By-Feature-Type-Fanout

I’m able to create folder structure:

When I tried to add placemarks under subfolder, my folder structure gets overwritten.   Subfolder has ID in the form of State and AssetType (minus spaces and special characters, you can see the ID below in folder name).

 

Example, Alabama’s only plant asset has parent ID Alabama01Plant.

What am I missing?  Have latest FME 2025.1 Form.

Best answer by liamfez

I know what I did differently today vs last week.  Last week, I would run the folder steps first, then run the placemarks after.  Today, I ran everything at once.  They both share same KML writer!

Ah, that would do it. When writing just the placemarks by itself it will overwrite the KMZ and then only have the placemarks, but because of the kml attributes it was trying to make the folders based on the limited info it had. I have had that happen before as I often write just the folders first as a test. Then just need to make sure you hit the right run button for all featuretypes for that writer.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • September 6, 2025

Hello ​@hdnguyen 

 

Could you share your workspace to analize?

 

Thanks in Advance,


liamfez
Influencer
Forum|alt.badge.img+43
  • Influencer
  • September 6, 2025

Which of the two methods you mentioned are you using? If you are using the kml attribute method I am assuming your folder levels are something like this?
Level 1:

kml_id= value(State)

kml_parent= doc

Level 2:

kml_id= value(State)value(AssetType)

kml_name= value(AssetType)

kml_parent=value(State)

Features for both of these levels are created and sent to the kml writer as a folder.

 

Placemarks:

kml_id= value(example)

kml_parent= value(State)value(AssetType)


hdnguyen
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • September 8, 2025

Which of the two methods you mentioned are you using? If you are using the kml attribute method I am assuming your folder levels are something like this?
Level 1:

kml_id= value(State)

kml_parent= doc

Level 2:

kml_id= value(State)value(AssetType)

kml_name= value(AssetType)

kml_parent=value(State)

Features for both of these levels are created and sent to the kml writer as a folder.

 

Placemarks:

kml_id= value(example)

kml_parent= value(State)value(AssetType)

 

I used KML ID method, already had everything configured the way you suggested.  For some odd reason, it worked today.  See screenshot.  I’m not sure what I did last week prior to leaving, but it’s perfect now.  Now I’m curious as to why it worked.  Tried it a few more time, KML is exactly as intended.

 


hdnguyen
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • September 8, 2025

I know what I did differently today vs last week.  Last week, I would run the folder steps first, then run the placemarks after.  Today, I ran everything at once.  They both share same KML writer!


liamfez
Influencer
Forum|alt.badge.img+43
  • Influencer
  • Best Answer
  • September 8, 2025

I know what I did differently today vs last week.  Last week, I would run the folder steps first, then run the placemarks after.  Today, I ran everything at once.  They both share same KML writer!

Ah, that would do it. When writing just the placemarks by itself it will overwrite the KMZ and then only have the placemarks, but because of the kml attributes it was trying to make the folders based on the limited info it had. I have had that happen before as I often write just the folders first as a test. Then just need to make sure you hit the right run button for all featuretypes for that writer.