Skip to main content
Question

Create points from coordinates in Attribute

  • February 10, 2020
  • 2 replies
  • 3457 views

Hello

I have four records in a workbench file with two column containing coordinates. They are of the type:

(column 1): 56° 05.702

(column 2): 012° 28.757

When I try to use a VertexCreator (add point) on them they are rejected. How can I convert them to something usefull and/or how can I derive coordinates/points from them

Thanks

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.

2 replies

jdh
Contributor
Forum|alt.badge.img+37
  • Contributor
  • 2002 replies
  • February 10, 2020

The VertexCreator is expecting the lat/long coordinates to be in decimal degrees not degrees decimal minutes. You can use an attributeSplitter °{space} to separate the degrees from the decimal minutes and then use a DecimalDegreesCalculator. You may need to use an AttributeTrimmer to strip the leading zeros.


redgeographics
Celebrity
Forum|alt.badge.img+59
  • Celebrity
  • 3700 replies
  • February 10, 2020

You'll need to use a DecimalDegreesCalculator to turn them in to decimal degrees before using the VertexCreator.

And in order to use the DecimalDegreesCalculcator you'll need to split them in separate degree and minute attributes and calculate the decimal minutes to seconds.

Turned out to be a bit more complex than I thought (and this probably needs some tweaking if you have negative coordinate values)

none2none.fmw