Skip to main content
Solved

Exposing the X and Y Coordinates of a line

  • January 22, 2021
  • 2 replies
  • 204 views

inframan
Contributor
Forum|alt.badge.img

I have a shapefile, it is all lines with only two points in each line. Ultimately I'd like to expose the X and Y, start and end, of each line. CoordinateExtractor seems to be able to expose the X and Y of all the points but is there a way to filter that list, like Start X, Start Y; End X, End Y?

Best answer by DanAtSafe

Hi @inframan​  You could use two CoordinateExtractors to get both coordinates without a list. The first coordinate is 0 and the last is -1.

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

DanAtSafe
Safer
Forum|alt.badge.img+21
  • Safer
  • Best Answer
  • January 22, 2021

Hi @inframan​  You could use two CoordinateExtractors to get both coordinates without a list. The first coordinate is 0 and the last is -1.


inframan
Contributor
Forum|alt.badge.img
  • Author
  • Contributor
  • January 22, 2021

Hi @inframan​  You could use two CoordinateExtractors to get both coordinates without a list. The first coordinate is 0 and the last is -1.

That worked, I put two Extractors inline then changed mode to Specify Coordinate and changed the names to x_a, y_b, etc. Thanks.