<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<font style="" face="Courier New">Hello,<br><br></font><blockquote><font style="" face="Courier New">I get the following error when I execute the map file at the bottom of this message: </font><br></blockquote><font style="" face="Courier New"><br></font><br><font style="" color="#1F497D">msDrawMap(): Image handling error. Failed to draw layer named 'nationalPark'.
msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR:  Operation on two geometries with different SRIDs
 
</font><br><font style="" face="Courier New"><br></font><blockquote>I can get this to work when its just a shapefile, but it doesn't work when its coming from PostGIS.&nbsp; I am using Mapserver 6.0.2 with postgresql 9.1 and postgis 1.5.3<br><br>Thanks for your help!<br></blockquote><font style="" face="Courier New"><br><font style="" color="#1F497D"># Map file created from QGIS project file /htgProject/htgProject_POSTGIS_forMapserver.qgs</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D"># Edit this file to customize for your map interface</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D"># (Created with PyQgis MapServer Export plugin)</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">MAP</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp; NAME "HTG-MAP"</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp; # Map image size</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp; SIZE 600 600</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp; UNITS meters</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp; </font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp; EXTENT -68586.071680 -336740.884289 1941518.891992 2241795.401077</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp; FONTSET './fonts/fontset.txt'</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp; SYMBOLSET './symbols/symbols.txt'</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp; SHAPEPATH './data'</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp; PROJECTION</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "init=epsg:3005"</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp; END</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp; # Background color for the map canvas -- change as desired</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp; IMAGECOLOR 255 255 255</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp; IMAGEQUALITY 95</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp; IMAGETYPE png</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp; OUTPUTFORMAT</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; NAME png</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; DRIVER 'GD/PNG'</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; MIMETYPE 'image/png'</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; IMAGEMODE PC256</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; EXTENSION 'png'</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp; END</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp; # Legend</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp; LEGEND</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IMAGECOLOR 255 255 255</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; STATUS ON</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; KEYSIZE 18 12</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; LABEL</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE BITMAP</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE MEDIUM</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 0 0 89</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; END</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp; END</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp; # Web interface definition. Only the template parameter</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp; # is required to display a map. See MapServer documentation</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp; WEB</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; # Set IMAGEPATH to the path where MapServer should</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; # write its output.</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; IMAGEPATH '/tmp/'</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; # Set IMAGEURL to the url that points to IMAGEPATH</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; # as defined in your web server configuration</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; IMAGEURL '/tmp/'</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; # WMS server settings</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; #Scale range at which web interface will operate</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; # Template and header/footer settings</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; # Only the template parameter is required to display a map. See MapServer documentation</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; TEMPLATE './template/template3.html'</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp; END</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp; LAYER</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; NAME 'nationalPark'</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; TYPE POLYGON</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; TEMPLATE './template/template3.html'</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; EXTENT -68586.071680 -336740.884289 1941518.891992 2241795.401077</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; CONNECTIONTYPE postgis</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; CONNECTION "dbname='...' host=... port=5432 user='...' password='...' sslmode=disable"</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; DATA 'the_geom FROM "nationalPark" USING UNIQUE gid USING srid=3005'</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; #DATA 'the_geom FROM nationalPark'</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; #DATA 'nationalPark'</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; METADATA</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'ows_title' 'nationalPark'</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; END</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; STATUS default</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; TRANSPARENCY 100</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; PROJECTION</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "init=epsg:3005"</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; END # End Projection</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; CLASS</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME 'sea_bc_alb' </font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STYLE</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WIDTH 0.91 </font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0 0</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 158 156 14</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp;&nbsp;&nbsp; END # End Class</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">&nbsp; END # End Layer nationalPark</font><font style="" color="#1F497D"><br></font><font style="" color="#1F497D">END</font><br></font><font style="" face="Courier New"><br></font>                                               </div></body>
</html>