Skip to main content
Question

Combine fragmented lines, close, then convert to polygon

  • August 6, 2021
  • 1 reply
  • 21 views

I have a linear input file from a survey depicting the edge of roads, that requires writing to a polygon feature class. The problem is the source data lines are not closed and very fragmented. I have tried combinations of areabuilder/linecloser/donutbuilder/geometrycoercer and neighborfinder/vertexcreators/geometrycoercer to join these lines together unsucessfully, Please see screenshot of sample data, anyone have any ideas?

1 reply

redgeographics
Celebrity
Forum|alt.badge.img+50

Oh my goodness, that is messy!

 

From what it looks like in the first two images the gaps in the lines are in the same order of magnitude as the widths of the streets so anything that has to do with tolerances is going to be really risky. The other images don't really instill much confidence either to be honest.

 

You can try a LineExtender with the Segments to Average parameter set to say 4 (it'll extend the line and use the average direction of the previous x segments to determine the direction of the extension) and then a Snapper (or the tolerance parameters in the LineCloser / AreaBuilder transformers) but I would be very careful with the results coming out of this and do a good visual check, possibly with manual edits.

 

Or send the survey crew out again...


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