<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>MapServer and PostGIS GEOMETRY type</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hi List,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">For a particular client I have to translate a lot of MapInfo files into PostGIS. Some files may contain some different geometries, which ogr2ogr doesn't like. So I force the geometry type to &quot;GEOMETRY&quot; (-nlt GEOMETRY). It translates fine, and seems to draw fine in MapServer. But how does MapServer really deal with it?</FONT></P>

<P><FONT SIZE=2 FACE="Arial">If I have a polygon layer, and point it to a PostGIS table that contains objects of the type &quot;GEOMETRY&quot;, does it simply ignore anything that is not a polygon? What about the results of attribute queries? Would those be filtered on the geometry type of the layer?</FONT></P>

<P><FONT SIZE=2 FACE="Arial">I can avoid using &quot;GEOMETRY type&quot; by translating the files in FME, but I'd prefer to recommend an Open Source solution.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Regards,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Jacob</FONT>
</P>
<BR>

<P><B><FONT COLOR="#009500" FACE="Arial">J</FONT><FONT COLOR="#009500" SIZE=1 FACE="Arial">ACOB</FONT> <FONT COLOR="#009500" FACE="Arial">D</FONT><FONT COLOR="#009500" SIZE=1 FACE="Arial">ELFOS<BR>
</FONT><FONT COLOR="#009500" FACE="Arial">GIS</FONT><FONT COLOR="#009500" SIZE=1 FACE="Arial"></FONT> <FONT COLOR="#009500" FACE="Arial">A</FONT><FONT COLOR="#009500" SIZE=1 FACE="Arial">NALYST</FONT><BR>
</B><FONT COLOR="#000000" SIZE=2 FACE="Arial">Maunsell Australia Pty Ltd<BR>
629 Newcastle Street, Leederville, WA 6007</FONT>

<BR><FONT COLOR="#000000" SIZE=2 FACE="Arial">PO Box 81, Leederville, WA 6902</FONT>

<BR><FONT COLOR="#000000" SIZE=2 FACE="Arial">Western Australia</FONT>

<BR><FONT COLOR="#000000" SIZE=2 FACE="Arial">ABN 20 093 846 925<BR>
<BR>
Tel     + 61 8 9281 6185<BR>
Fax    + 61 8 9281 6297<BR>
</FONT><U><FONT COLOR="#009C21" SIZE=2 FACE="Arial">jacob.delfos@maunsell.com</FONT></U>
</P>

</BODY>
</HTML>
<table><tr><td bgcolor=#ffffff><font color=#000000>This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use.<br>
</font></td></tr></table>