<!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>getFeatureInfo projection</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">Hello,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I have a map in EPSG:42304 projection. I'm trying to have a getFeatureInfo return information about clicked features, but there are always 0 results. I'm using mapserver, and when I use a template header with:<BR>
<BR>
<tr></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <th>Bounding box</th></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <td>[minx],[miny],[maxx],[maxy]</td></FONT>
<BR><FONT SIZE=2 FACE="Arial"> </tr></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <tr></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <th>Image Coordinates</th></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <td>[img.x], [img.y]</td></FONT>
<BR><FONT SIZE=2 FACE="Arial"> </tr></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <tr></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <th>Map Coordinates</th></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <td>[mapx], [mapy]</td></FONT>
<BR><FONT SIZE=2 FACE="Arial"> </tr></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <tr></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <th>Number of results</th></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <td>[nr]</td></FONT>
<BR><FONT SIZE=2 FACE="Arial"> </tr></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <tr></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <th>Scale</th></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <td>[scale]</td></FONT>
<BR><FONT SIZE=2 FACE="Arial"> </tr></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <tr></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <th>Cellsize</th></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <td>[cellsize]</td></FONT>
<BR><FONT SIZE=2 FACE="Arial"> </tr></FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I get back something like:</FONT>
<BR>
<BR><B><FONT FACE="Times New Roman">Bounding box</FONT></B><FONT FACE="Times New Roman"> 1593723.472943,6433235.946381,1740788.283491,6511201.698335</FONT>
<BR><B><FONT FACE="Times New Roman">Image Coordinates</FONT></B><FONT FACE="Times New Roman"> 227, 115</FONT>
<BR><B><FONT FACE="Times New Roman">Map Coordinates</FONT></B><FONT FACE="Times New Roman"> 1663128.279584, 6476040.672944</FONT>
<BR><B><FONT FACE="Times New Roman">Number of results</FONT></B><FONT FACE="Times New Roman"> 0 </FONT>
<BR><B><FONT FACE="Times New Roman">Scale</FONT></B><FONT FACE="Times New Roman"> -1.000000 </FONT>
<BR><B><FONT FACE="Times New Roman">Cellsize</FONT></B><FONT FACE="Times New Roman"> 0.000000</FONT>
<BR><FONT FACE="Times New Roman">Is this an issue of projection? What does a scale of -1 mean?</FONT>
</P>
<P><FONT FACE="Times New Roman">This is the relevent openlayers javascript:<BR>
</FONT><FONT SIZE=2 FACE="Courier New">map.events.register('click', map, function (e) {</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> OpenLayers.Util.getElement('nodeList').innerHTML = "Loading... please wait...";</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New"> var url = wms.getFullRequestString({</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> REQUEST: "GetFeatureInfo",</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> EXCEPTIONS: "application/vnd.ogc.se_xml",</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> BBOX: wms.map.getExtent().toBBOX(),</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> X: e.xy.x,</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> Y: e.xy.y,</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> INFO_FORMAT: 'text/html',</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> //QUERY_LAYERS: wms.params.LAYERS,</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> QUERY_LAYERS: map.getName(),</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> WIDTH: wms.map.size.w,</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> HEIGHT: wms.map.size.h});</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> OpenLayers.loadURL(url, '', this, setHTML);</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> OpenLayers.Event.stop(e);</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> });</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> function setHTML(response) {</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> OpenLayers.Util.getElement('nodeList').innerHTML = response.responseText;</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> }</FONT>
</P>
<P><FONT FACE="Times New Roman">Thank you,</FONT>
<BR><FONT FACE="Times New Roman">Alexandre Laplante</FONT>
</P>
</BODY>
</HTML>