[Gvsig_english] clean polygon? Issue with layers importedfromOracle Spatial

Juan Lucas Dominguez Rubio jldominguez at prodevelop.es
Wed Feb 17 16:45:39 CET 2010


Hello,
 
If I understood it well, gvSIG does not use the clockwise/counter-clockwise rule to decide what is inside and what is outside. It inherits the so-called 'winding rule' from AWT:
 
http://developer.classpath.org/doc/java/awt/geom/GeneralPath.html
 
That's why the Oracle Spatial writer checks that the orientation respects the Oracle rule (outer ring is counter-clockwise), but does not reverse it when you add an Oracle Spatial layer to a gvSIG view (because the Oracle Spatial orientation is also valid using the winding rule).
 
Regards,
 
 
Juan Lucas Domínguez Rubio
---
Prodevelop SL, Valencia (España)
Tlf.: 96.351.06.12 -- Fax: 96.351.09.68
http://www.prodevelop.es <http://www.prodevelop.es/> 
---

________________________________

De: gvsig_internacional-bounces at listserv.gva.es en nombre de Wolfgang Qual
Enviado el: mié 17/02/2010 16:06
Para: gvsig_internacional at listserv.gva.es
Asunto: Re: [Gvsig_english] clean polygon? Issue with layers importedfromOracle Spatial




Dear list,
in fact, exporting a shapefile to Oracle Spatial will result in change of
the orientation of the vertices. When re-importing that Oracle spatial layer
to shapefile (export Oracle Spatial layer to shapefile), this "oracle
spatial" orientation of vertices will remain! Is it a bug?

Best,
Wolfgang

--
View this message in context: http://n2.nabble.com/clean-polygon-Issue-with-layers-imported-from-Oracle-Spatial-tp4585686p4586476.html
Sent from the gvSIG international mailing list archive at Nabble.com.
_______________________________________________
Gvsig_internacional mailing list
Gvsig_internacional at listserv.gva.es
http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserv.gva.es/pipermail/gvsig_internacional/attachments/20100217/7382adf2/attachment.htm 


More information about the Gvsig_internacional mailing list