<HTML><HEAD><TITLE>Re: [Gvsig_english] clean polygon? Issue with layers importedfromOracle Spatial</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16981" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText19835>
<DIV><FONT face="Times New Roman" color=#000000 size=3>Hello,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>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:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3><A href="http://developer.classpath.org/doc/java/awt/geom/GeneralPath.html">http://developer.classpath.org/doc/java/awt/geom/GeneralPath.html</A></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>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).</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>Regards,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Courier New" size=2><FONT face="Times New Roman" size=3></FONT></FONT> </DIV>
<DIV><FONT face="Courier New" size=2><FONT face="Times New Roman" size=3>Juan Lucas Domínguez Rubio<BR></FONT>---</FONT></DIV></DIV>
<DIV id=idSignature65564>
<DIV><FONT face="Courier New" size=2><FONT face="Courier New" size=2><FONT face="Courier New" size=2>Prodevelop SL, Valencia (España)</FONT></DIV>
<DIV>
<DIV><FONT face="Courier New" size=2>Tlf.: 96.351.06.12 -- Fax: 96.351.09.68<BR></FONT><A href="http://www.prodevelop.es/"><FONT face="Courier New" size=2>http://www.prodevelop.es</FONT></A><BR><FONT face="Courier New" size=2>---</FONT></DIV></FONT></DIV></FONT></DIV>
<DIV><BR>
<HR>
<FONT face=Tahoma size=2><B>De:</B> gvsig_internacional-bounces@listserv.gva.es en nombre de Wolfgang Qual<BR><B>Enviado el:</B> mié 17/02/2010 16:06<BR><B>Para:</B> gvsig_internacional@listserv.gva.es<BR><B>Asunto:</B> Re: [Gvsig_english] clean polygon? Issue with layers importedfromOracle Spatial<BR></FONT><BR></DIV>
<DIV><BR>
<P><FONT size=2>Dear list,<BR>in fact, exporting a shapefile to Oracle Spatial will result in change of<BR>the orientation of the vertices. When re-importing that Oracle spatial layer<BR>to shapefile (export Oracle Spatial layer to shapefile), this "oracle<BR>spatial" orientation of vertices will remain! Is it a bug?<BR><BR>Best,<BR>Wolfgang<BR><BR>--<BR>View this message in context: <A href="http://n2.nabble.com/clean-polygon-Issue-with-layers-imported-from-Oracle-Spatial-tp4585686p4586476.html">http://n2.nabble.com/clean-polygon-Issue-with-layers-imported-from-Oracle-Spatial-tp4585686p4586476.html</A><BR>Sent from the gvSIG international mailing list archive at Nabble.com.<BR>_______________________________________________<BR>Gvsig_internacional mailing list<BR>Gvsig_internacional@listserv.gva.es<BR><A href="http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional">http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional</A><BR></FONT></P></DIV></BODY></HTML>