Skip to main content
Question

Create points from coordinates in Attribute

  • February 10, 2020
  • 2 replies
  • 2509 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

2 replies

jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • 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+48

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

 


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