Skip to main content
Question

Can I read an xml containing horizontal geometry for an alignment chain (in N,E) and have it write out a list of points along the alignment(s) (in lat,long)?

  • April 2, 2021
  • 4 replies
  • 37 views

Forum|alt.badge.img+1

I'd like to build a workflow that creates a list of points for each alignment chain from an XML file. Is this possible? The points would be at each end of the alignment and a specified equidistant along the alignment. Is this possible?

4 replies

caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • April 2, 2021

Yes. Use Reprojector, PROJReprojector, CSMAPReprojector, or any other reprojector you need to get your data to Lat/Long, then use the DistanceMarker transformer from the FME Hub.

Then just create the attributes you need (with @XValue, @YValue).


Forum|alt.badge.img+1
  • Author
  • April 2, 2021

Thanks a lot caracadrian! I'm brand new to FME, so not sure how to do any of this year, but I'll will give it a try. Any suggestions on how to learn how to build this workflow?


caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • April 2, 2021

Thanks a lot caracadrian! I'm brand new to FME, so not sure how to do any of this year, but I'll will give it a try. Any suggestions on how to learn how to build this workflow?

Short answer is https://www.safe.com/training/recorded/

Long answer: figure out what kind of xml you have, use the apropiate reader, get the geometry (GeometryReplacer maybe), create the points along your line with DistanceMarker, reproject to a lat/long projection, use attribute creator to create Lat and Long attributes from point coordinates. So: XML Reader - > DistanceMarker - > Reprojector - > AttributeCreator - > Writer of your choice


Forum|alt.badge.img+1
  • Author
  • April 2, 2021

Awesome - thanks for the help!