Skip to main content

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?

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