<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>Correcting polygon with holes</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><SPAN LANG="sv"><FONT SIZE=2 FACE="Arial">Hi list,</FONT></SPAN>
</P>

<P><SPAN LANG="sv"><FONT SIZE=2 FACE="Arial">I have Shape files with polygons that I would like to store in a Postgis database. The polygons has holes in them.</FONT></SPAN>

<BR><SPAN LANG="sv"><FONT SIZE=2 FACE="Arial">I've noticed (in the Shape files i'm using) that some holes can be defined clockwise and others can be defined counter clockwise.</FONT></SPAN></P>

<P><SPAN LANG="sv"><FONT SIZE=2 FACE="Arial">Is there an easy way to redifine the polygons in Postgis, or is the anyone who has a fast algoritm to descide if it is clockwise or counter clockwise?</FONT></SPAN></P>

<P><SPAN LANG="sv"><FONT SIZE=2 FACE="Arial">Thanks,</FONT></SPAN>

<BR><SPAN LANG="sv"><FONT SIZE=2 FACE="Arial">Paul</FONT></SPAN><SPAN LANG="en-us"> </SPAN>
</P>

</BODY>
</HTML>