Hi, What you describe is, more or less, what "line merge" and "line sequence" do (in geometry functions). line sequence just change the orientation of contiguous lines without merging them merge will revert lines if necessary and merge them, but it will not merge if three or more lines share the same node
It works on multilinestring (indeed, it works only on multilinestrings) Michaël > Hi, > > Is there some clever way for organizing multilinestrings and making them as > simple and directional as possible? > Workflow would be like > - take the first part of multilinestring (P1) > - check if there is exactly one other part with starting point = end point of > P1 > - if yes, then merge with P1 > - if not a single fitting start points was found, check if there is exactly > one other part with end point = end point of P1 > - if yes, reverse part and merge with P1 > - if nothing to merge with P1, take the next part and repeat the cycle > > Finally after enough many rounds all that can be merged is processed and the > end result would be a multilinestring with minimal number of parts. > > -Jukka Rahkonen- > > > ------------------------------------------------------------------------------ > 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 > _______________________________________________ > Jump-pilot-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > > ------------------------------------------------------------------------------ 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 _______________________________________________ Jump-pilot-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
