Skip to main content
Solved

Dynamic schema


Hello,

 

 

I wiould like to convert csv file which has Lat/long in atrributes to KML. I am adding point to KML using "2DpointAdder". It works fine if I have static source schema. But I have csv files with only Lat/long as common attributes and other attributes may vary.

 

 

e.g. CSV 1 contains "Attr1,Attr2,Lat,Long"

 

CSV 2 contains "Test1,Test2,Lat,Long"

 

CSV3 may contain "Lat,Long,XYZ,ABC,DEF"

 

 

What is the best way to convert these csv to KML?

 

 

Cheers

 

John

Best answer by davideagle

John,

 

 

Set the process up as a Dynamic process, then on the canvas add a CoordinateSystemSetter first to define the local grid, then add an AttributeExposer to expose the Long/Lat attributes to the workspace. Now add your 2DPointReplacer (VertexCreator). Now give that a go running several CSVs.

 

 

You may also need to expose the attribute fme_basename so that you can fanout to either multiple KML files or multiple KML layers by CSV.

 

 

Cheers, Dave
View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, 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.

2 replies

davideagle
Contributor
Forum|alt.badge.img+21
  • Contributor
  • Best Answer
  • October 6, 2014
John,

 

 

Set the process up as a Dynamic process, then on the canvas add a CoordinateSystemSetter first to define the local grid, then add an AttributeExposer to expose the Long/Lat attributes to the workspace. Now add your 2DPointReplacer (VertexCreator). Now give that a go running several CSVs.

 

 

You may also need to expose the attribute fme_basename so that you can fanout to either multiple KML files or multiple KML layers by CSV.

 

 

Cheers, Dave

  • Author
  • October 6, 2014
Thanks Dave.

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings