Skip to main content
Solved

Convert lat/lng to geom data type

  • June 19, 2017
  • 3 replies
  • 178 views

Forum|alt.badge.img

I have to convert these lat/lng to geom data type, such these lat/lng are in space (here I have done wrong), Kindly guide how I can convert them (lat,lng) to geometry such that they occur in space. Thank you

Best answer by redgeographics

You can use a VertexCreator to create geometry from the lat and lng attributes, or the GeometryReplacer to use the geom attribute, it looks like that's in OGC WKT format.

Hope this helps.

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.

3 replies

redgeographics
Celebrity
Forum|alt.badge.img+62
  • Celebrity
  • Best Answer
  • June 19, 2017

You can use a VertexCreator to create geometry from the lat and lng attributes, or the GeometryReplacer to use the geom attribute, it looks like that's in OGC WKT format.

Hope this helps.


mark2atsafe
Safer
Forum|alt.badge.img+59

Yes, I suggest the VertexCreator transformer as Hans suggests. I made a short movie of the process that you can access here:

https://www.screencast.com/t/nFhuUqdh1tvM


mark2atsafe
Safer
Forum|alt.badge.img+59

Yes, I suggest the VertexCreator transformer as Hans suggests. I made a short movie of the process that you can access here:

https://www.screencast.com/t/nFhuUqdh1tvM

You can also find examples on the knowledge centre - for example here converting CSV to Shape: https://knowledge.safe.com/content/kbentry/1493/index.html