Hi, My customer wants to merge any lines (trenches) that are "roughly" parallel and close together into an "average" line.
There are up to 7 parallel lines in places that he wants converted into single lines. Parallel lines may only partially overlap lengthwise. So it about merging sections that are parallel not the whole lines. Parallel lines may curve together round corners - they are not just straight parallel lines. I've done a bit of work finding sections of pairs of lines that are parallel. That seems OK. Next is find groups of lines with parallelism. e.g if A and B have a parallel section and are close together but C is a bit far from A. But B and C are close enough together and have a parallel section then together A, B and C are candidates for a merge operation. Here is a stylized example. Customer wants the parallel sections removed (they are still there) and replaced with the blue line. <http://osgeo-org.1560.n6.nabble.com/file/n5035456/Trench.png> The bit that has me really stumped is how when I do find groups of lines that have parallelism - is how to turn them into a resultant "average" line. (these lines may follow a curve around a corner). Here is some real data - the worse case I could find. <http://osgeo-org.1560.n6.nabble.com/file/n5035456/RealTrench.png> Looking at the horizontal lines. He wants the 3 lines that are close together merged into 1. The other line north of the 3 is the other side of the road and not to be merged. It could be excluded by setting tolerance for "close together" to less than width of a road. Any suggestions appreciated thanks. It's looking like the too hard basket at the moment. Cheers, Andrew -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Merge-parallel-lines-that-are-close-together-in-an-average-line-tp5035456.html Sent from the geotools-gt2-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ GeoTools-GT2-Users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
