From: Frederic C. <fre...@ma...> - 2007-05-30 06:22:24
|
I tried to post to openev-announce, but that is probably misplaced, so I'm reposting here : Dear list, juste wanted to report a suprising behaviour about shapefile export. When exporting a vector as a shapefile, using menu "File->Save Vector layer", I always obtain inversed polygons : the areas with a filled inside are exported counterclockwise, and those with filled outside are exported clockwise. This can be eaisly checked with ogrinfo -al <myshapefile.shp> Note : generated shapefiles can then be reread afterwards by either openEv or GDAL, since they apply inside/outside auto detection, and don't rely on the shapefiles rings beeing properly ordered. I applied a quick patch, systematcally reversing each polygon's vertices, and it seems to work fine (See attached file, line 486->513) has this issue already been detected / fixed ? I'm using a version of OpenEv from CVS (:pserver:ano...@op...:2401/cvsroot/openev, extracted around July 2006) regards, Frederic Claudel |