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.
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.
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.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.