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

Reply via email to