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
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
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.
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 ?
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 ?
You can try the NeighborFinder, with the caveat that the closest point to a line may not be the correct one.