[Qgis-user] order of shapes and polygons while drawing

ranjith kumar ranjithproxy at gmail.com
Mon Nov 2 04:46:40 PST 2015


Hi,

What is the order QGIS uses while drawing shapes ?
Is it from shape number 0 to shape number n-1 (n is total number of
zones)? or Shape number n-1 to 0?

Also each shape may contain more than 1 part and each part(polygon)
may be a normal shape(vertices are clockwise direction) or a
hole(vertices are in anticlockwise direction)?
What is the order QGIS draws ? First normal shapes and then holes? or
whatever order the shape file(.shp) contains?

Why I am asking this question is I am calling windows API to draw the
shapes from 0 to n-1, and each part in the order same as in the .shp
file.
But the shapes drawn(final result) are different from the QGIS.

Does any body know the order QGIS draws?

Thanks in advance.



More information about the Qgis-user mailing list