[Gvsig_english] polylines to polygon
Luigi Castro Cardeles
luigi.cardeles at gmail.com
Fri Jul 4 22:06:22 CEST 2008
Hi,
is your polyline draw in some CAD? Imported from dxf, dwg files?
Is that a closed polyline?
i resolve that putting this file on the cad and using (at AutoCAD), explode
and pedit -> join. After that the polyline convert to polygon without
problem.
i think that happens to me when i import closed polylines from this file
types. i believe that happens because the order off the vertices (first
point, second point etc) is not correct. i think exist two index inside this
that of archive: an index of points and an index of point's order. maybe
your's points is not in the same order of point's order.
for example: an square have 4 points.
index of points
pt1, pt3, pt4, pt2
index of point's order
pt1, pt2, pt3, pt4
i think that is the problem but i am just guessing.
If that polyline has rings (some people draw ring's with a unique draw
comand, putting two or more points over and over, like this image i send.
thi image has only one polyline).
to correct this problem only to redraw the feature or to draw an outer
polygon and using processing you can obtain the inner polygon (the "hole")
and the outer polygon (with the hole inside).
best regards,
--
Luigi Castro Cardeles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://runas.cap.gva.es/pipermail/gvsig_internacional/attachments/20080704/63c20c60/attachment.htm
More information about the Gvsig_internacional
mailing list