<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN 
class=963043520-20072004>Frank,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=963043520-20072004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=963043520-20072004>The OGC Spec says 
that the Polygon method getExteriorRing() should return a LineString.  Just 
out of curiosity, why do you return a LinearRing from your implementation 
OGRPolygon::getExteriorRing()?  It would make sense to me that the spec is 
wrong and what you want is always a ring.  Do you think the OGC spec is 
wrong.  The following is from the spec:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=963043520-20072004></SPAN></FONT> </DIV>
<DIV><FONT><SPAN class=963043520-20072004><FONT face=Arial size=2>
<P>OpenGIS Simple Features Specification for SQL, Revision1.1</P></FONT><B>
<P><FONT face=Arial size=2>2.1.10.1 </FONT></B><FONT face=Arial 
size=2>Methods</FONT></P><B>
<P><FONT face=Arial size=2>ExteriorRin</FONT></B><FONT face=Arial><FONT 
size=2>g( ):LineString—Returns the exterior ring of <I>this </I></FONT><FONT 
size=2>Polygon.</FONT></FONT></P><B>
<P><FONT face=Arial size=2>NumInteriorRin</FONT></B><FONT face=Arial><FONT 
size=2>g( ):Integer—Returns the number of interior rings in <I>this 
</I></FONT><FONT size=2>Polygon.</FONT></FONT></P><B>
<P><FONT face=Arial size=2>InteriorRing</FONT></B><FONT face=Arial><FONT 
size=2>N(N:Integer):LineString—Returns the Nth interior ring for <I>this 
</I></FONT><FONT size=2>Polygon as a LineString.</FONT></FONT></P>
<P><FONT face=Arial size=2><SPAN 
class=963043520-20072004></SPAN></FONT> </P>
<P><FONT face=Arial size=2><SPAN class=963043520-20072004>OGR 
is:</SPAN></FONT></P>
<P><FONT size=2><FONT face=Arial><FONT size=3>OGRLinearRing 
*getExteriorRing();<BR>00553     <SPAN 
class=keyword>const</SPAN> OGRLinearRing *getExteriorRing() <SPAN 
class=keyword>const</SPAN>;<BR>00554     <SPAN 
class=keywordtype>int</SPAN>         
getNumInteriorRings() <SPAN 
class=keyword>const</SPAN>;<BR>00555     OGRLinearRing 
*getInteriorRing( <SPAN class=keywordtype>int</SPAN> 
);<BR>00556     <SPAN class=keyword>const</SPAN> 
OGRLinearRing *getInteriorRing( <SPAN class=keywordtype>int</SPAN> ) <SPAN 
class=keyword>const</SPAN>;<BR></FONT> </FONT></FONT></P>
<P></SPAN></FONT><SPAN class=963043520-20072004><FONT face=Arial 
size=2>Thanks,</FONT></SPAN></P></DIV>
<DIV align=left><FONT face=Arial size=2>
<DIV align=left><FONT face=Arial size=2>Martin Chapman</FONT></DIV>
<DIV align=left><FONT face=Arial><FONT size=2><SPAN 
class=812572720-02042003>Cell</SPAN> 303-885-1936</FONT></FONT></DIV>
<DIV align=left><FONT face=Arial size=2><SPAN class=812572720-02042003>Office 
303-495-6300 x326</SPAN></FONT></DIV>
<DIV align=left><FONT face=Arial size=2><SPAN class=812572720-02042003><A 
href="mailto:mchapman@sanz.com">mchapman@sanz.com</A></SPAN></FONT></DIV>
<DIV align=left><FONT face=Arial size=2><SPAN class=812572720-02042003><A 
href="http://www.sanz.com/">http://www.sanz.com</A></SPAN></FONT></DIV></FONT></DIV>
<DIV align=left><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV></BODY></HTML>