Skip to main content

GvSig should test the polygon orientation before writing the shapefile

Portal Admin
Published on: 13/04/2010 Discussion Archived

On the editing mode GvSig uses JTS orientation following the OGC specification but orientation on shapefiles is just the opposite so it is necessary to turn round the polygons ( and check them too) before writing the shapefile The easy way to do it would be using the flip function (already implemented) but perhaps it would also be necesary to check all the polygons (with Geometry.isValid method.) The problem then is what to do if it is not valid. Perhaps using an exception when trying to write the shape if this happens would be difficult to administrate ( showing it to the user selecting the wrong polygons...) Bug reported to the international mailing list



OperatingSystemNone
BuildNumberCog A
ResolutionNone
SeverityNone
SubprojectNamegvSIG
ComponentNone
VersiongvSIG - 1.9.0
SubprojectVersiongvSIG - 1.9.0
SubprojectResolveVersionNone
Has patchNone

Category

Bugs

Comments

gvsigbot (not verified) Tue, 13/04/2010 - 11:25

Logged In: YES user_id=1799 Se corresponde con el ticket del iti 2899 Reported by rsoler in date 2010-02-18

Login or create an account to comment.