Skip to main content
Solved

Converting the first vertex of polyline lines to points with starting line angle


Forum|alt.badge.img+1

I need to extract the starting vertex only and the line direction (angle). The polylines also have arcs in them but I only need the first vertex and starting line angle in the output. I will use this information to insert an arrow head pointing at the point with the back of the arrow or wide end in-line with the polyline. My source data is in a ARCGIS application with a SQL database and I’m converting that information into AutoCAD. So, the arrow head will be a block pointing at the first vertex with the back end in-line with the polyline. Basically, I need to insert flow arrows but in CAD. I can do it in ARCGIS without any issues but I need to get the same symbology into plain cad without a geometric network defined. I tried several transformers i.e. the chopper but it converts arc’s into line segments and inserts multiple points. Any help would be greatly appreciated. Example of the finial output attached.

Best answer by redgeographics

I think you have the order of the transformers wrong, here's what I had in mind:

That GeometryExtractor may not be necessary for you. It would allow you to recover the original geometry (by using a GeometryReplacer aftwards) but based on your description I guess that's not what you're after.

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

4 replies

redgeographics
Celebrity
Forum|alt.badge.img+49

You can use the Snipper to cut off everything after the first vertex and then an AzimuthCalculator (that's a custom transformer from the FME Hub) to calculate the angle. Once that's done there's the CoordinateFetcher that lets you grab the coordinates of the first point into attributes and then a VertexAdder to replace the geometry that you have with a point coming from those attributes.


Forum|alt.badge.img+1
  • Author
  • July 19, 2017

Thank you,

I was able to get most of the way but after adding the vertex creator I now get an error running the translation.example-2.png


redgeographics
Celebrity
Forum|alt.badge.img+49
  • Celebrity
  • Best Answer
  • July 20, 2017

I think you have the order of the transformers wrong, here's what I had in mind:

That GeometryExtractor may not be necessary for you. It would allow you to recover the original geometry (by using a GeometryReplacer aftwards) but based on your description I guess that's not what you're after.


Forum|alt.badge.img+1
  • Author
  • July 20, 2017

Great, I'll give it a try.


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