Skip to main content
Solved

Exposing the X and Y Coordinates of a line

  • January 22, 2021
  • 2 replies
  • 121 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.

View original
Did this help you find an answer to your question?

2 replies

DanAtSafe
Safer
Forum|alt.badge.img+16
  • 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
DanAtSafe wrote:

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.


Reply


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