Polyline order in multipart polyline - again

767
1
10-12-2011 06:30 AM
MatejTacer
New Contributor III
Hi, let me rephrase my question.
I have many short polylines that I want to assemble into one multipart polyline in certain order. The consecutive number of each polyline is stored in attribute table.

My function reads the individual polylines in that order and adds them to the array object which is latter on assigned to the multipart polyline geometry. However, when I try to analize, that way generated, multipart polyline from beginning to the end, it does not proceed in the same order.

How can I define the order (first, second and so on) of segments which constitute multipart polyline? Thank you,
Tags (2)
0 Kudos
1 Reply
MatejTacer
New Contributor III
Finnaly, I have solved the problem. All attempts inside the geoprocessing (arcgisscripting) failed even if I constructed compeletely new objects from scratch setting vertices' coordinate values.

So, I resorted to Osgeo.ogr library to create new shape file. The data had been imported using WKT data format (mustilinestring). The order defined in WKT format was preserved in the newly created multipart polylines.
Thank you,
0 Kudos