Skip to main content
Solved

How could i extract the coordinates of lines from Adobe Geospatial PDF ( whats is point of start and end point ) and also the length

  • February 22, 2022
  • 3 replies
  • 62 views

gogopotter90
Contributor
Forum|alt.badge.img+14

i have adobe geospatial pdf and it has lots of points that connects together with different lines ,i would like to extract the lines coordinates and also the length and extract also line number for each line .

 

FME 2020.2

 

Thanks in advance

Best answer by redgeographics

You can use the CoordinateExtractor to get coordinates from a line and store them in attributes. Use two of them, with the mode set to Specify Coordinate and the indexes to 0 (first coordinate) and -1 (last coordinate).

 

Calculating the length of a line can be done with the LengthCalculator.

 

I don't think GeoPDF maintains an internal line id, but you can use a Counter to create your own.

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+59
  • Celebrity
  • 3700 replies
  • Best Answer
  • February 22, 2022

You can use the CoordinateExtractor to get coordinates from a line and store them in attributes. Use two of them, with the mode set to Specify Coordinate and the indexes to 0 (first coordinate) and -1 (last coordinate).

 

Calculating the length of a line can be done with the LengthCalculator.

 

I don't think GeoPDF maintains an internal line id, but you can use a Counter to create your own.


gogopotter90
Contributor
Forum|alt.badge.img+14
  • Author
  • Contributor
  • 239 replies
  • February 25, 2022

You can use the CoordinateExtractor to get coordinates from a line and store them in attributes. Use two of them, with the mode set to Specify Coordinate and the indexes to 0 (first coordinate) and -1 (last coordinate).

 

Calculating the length of a line can be done with the LengthCalculator.

 

I don't think GeoPDF maintains an internal line id, but you can use a Counter to create your own.

Thanks for reply but after i read adobe geospatial pdf , there is a point that has id close to each line

 

i would like to extract the id number for each line . Could u give me an idea ,how to extract it ?

 

 

id_lineid_line2


redgeographics
Celebrity
Forum|alt.badge.img+59
  • Celebrity
  • 3700 replies
  • February 25, 2022

Thanks for reply but after i read adobe geospatial pdf , there is a point that has id close to each line

 

i would like to extract the id number for each line . Could u give me an idea ,how to extract it ?

 

 

id_lineid_line2

You can try the NeighborFinder, with the caveat that the closest point to a line may not be the correct one.