Thanks,Paul,that's very helpful!
2007/7/25, Paul Austin <[EMAIL PROTECTED]>:
A simple way to do this is find which ends of the two line strings are
the closest by comparing the distances between the start/end coordinates
of each one (remember to take into account one maybe reversed). Then if
the distance is > 0 create a new line string using the coordinates from
the two closest coordinates.
Then add the three line strings to line merger to get the reversed line.
That's the simple way, another way would be to optimize it by manually
copying the coordinates from both to a new coordinate array with one
line first and the other second (potentially reversed).
Paul
li ethan wrote:
> Dear listers:
> can anyone tell me how to merge two LineStrings,there is a little
> gap between two LineStrings,can i merge them to one LineString?
> Thanks!
> _______________________________________________
> jts-devel mailing list
> [email protected]
> http://lists.refractions.net/mailman/listinfo/jts-devel
_______________________________________________
jts-devel mailing list
[email protected]
http://lists.refractions.net/mailman/listinfo/jts-devel
_______________________________________________
jts-devel mailing list
[email protected]
http://lists.refractions.net/mailman/listinfo/jts-devel