<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>Dear List</DIV>
<DIV>&nbsp;</DIV>
<DIV>I have set up Mapserver map file configured as a&nbsp;WMS service. One of my layers is a OGR point data source drawing its coodinates from x,y fields in a SQL-Server database via ODBC. The x,y coordinates are in NZ Map Grid projection&nbsp;(EPSG:27200) but all my other layers are NZ Transverse Mercator (EPSG:2193).</DIV>
<DIV>&nbsp;</DIV>
<DIV>My top level SRS is defined as EPSG:2193 (NZTM).</DIV>
<DIV>&nbsp;</DIV>
<DIV>The particular OGR data source is therefore being projected to EPSG:2193, which it seems to be doing properly.</DIV>
<DIV>&nbsp;</DIV>
<DIV>The layers in the map are displaying correctly, using a number of different clients - OpenLayers, uDig, ArcMap.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Now, my problem is that sending&nbsp;the following&nbsp;GetFeatureInfo request from OpenLayers: (also tested manually via a Browser URL):</DIV>
<DIV>&nbsp;</DIV>
<DIV><A href="http://10.65.192.1/cgi-bin/gsswms.exe?service=WMS&amp;version=1.1.1&amp;request=GetFeatureInfo&amp;LAYERS=apiaries_dev&amp;QUERY_layers=apiaries_dev&amp;FORMAT=image/png&amp;INFO_FORMAT=gml&amp;SRS=EPSG:2193&amp;BBOX=1478229.486251,5375153.051004,1482462.817299,5379386.382051&amp;WIDTH=512&amp;HEIGHT=512&amp;X=341&amp;Y=19&amp;STYLES">http://10.65.192.1/cgi-bin/gsswms.exe?service=WMS&amp;version=1.1.1&amp;request=GetFeatureInfo&amp;LAYERS=apiaries_dev&amp;QUERY_layers=apiaries_dev&amp;FORMAT=image/png&amp;INFO_FORMAT=gml&amp;SRS=EPSG:2193&amp;BBOX=1478229.486251,5375153.051004,1482462.817299,5379386.382051&amp;WIDTH=512&amp;HEIGHT=512&amp;X=341&amp;Y=19&amp;STYLES</A>=</DIV>
<DIV>&nbsp;</DIV>
<DIV>returns the first record in the database table, regardless of the BBOX and location parameters, which are all in terms of EPSG:2193 (NZTM). </DIV>
<DIV>&nbsp;</DIV>
<DIV>Can MapServer back project the GetFeatureInfo request from EPSG:2193 into valid NZMG (EPSG:27200) coordinates in order to request the correct feature details via OGR?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Any help appreciated,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Robert Sanson</DIV>
<DIV>&nbsp;</DIV>
<DIV>Robert Sanson, BVSc, MACVSc, PhD<BR>Geospatial Services<BR>AsureQuality Limited<BR>PO Box 585, Palmerston North<BR>NEW ZEALAND<BR>&nbsp;<BR>Phone: +64 6 351-7990<BR>Fax: +64 6 351-7919<BR>Mobile: 021 448-472<BR>E-mail: <A href="mailto:sansonr@asurequality.com">sansonr@asurequality.com</A></DIV><br><br><table bgcolor=white style="color:black"><tr><td><br>------------------------------------------------------------------<br>
The&nbsp;contents&nbsp;of&nbsp;this&nbsp;email&nbsp;are&nbsp;confidential&nbsp;to&nbsp;AsureQuality.&nbsp;If&nbsp;you&nbsp;have&nbsp;received&nbsp;this&nbsp;communication&nbsp;in&nbsp;error&nbsp;please&nbsp;notify&nbsp;the&nbsp;sender&nbsp;immediately&nbsp;and&nbsp;delete&nbsp;the&nbsp;message&nbsp;and&nbsp;any&nbsp;attachments.&nbsp;The&nbsp;opinions&nbsp;expressed&nbsp;in&nbsp;this&nbsp;email&nbsp;are&nbsp;not&nbsp;necessarily&nbsp;those&nbsp;of&nbsp;AsureQuality.&nbsp;This&nbsp;message&nbsp;has&nbsp;been&nbsp;scanned&nbsp;for&nbsp;known&nbsp;viruses&nbsp;before&nbsp;delivery.&nbsp;AsureQuality&nbsp;supports&nbsp;the&nbsp;Unsolicited&nbsp;Electronic&nbsp;Messages&nbsp;Act&nbsp;2007.&nbsp;If&nbsp;you&nbsp;do&nbsp;not&nbsp;wish&nbsp;to&nbsp;receive&nbsp;similar&nbsp;communications&nbsp;in&nbsp;future,&nbsp;please&nbsp;notify&nbsp;the&nbsp;sender&nbsp;of&nbsp;this&nbsp;message.<br>
------------------------------------------------------------------</td></tr></table><br><br>
<P align=center><FONT style="BACKGROUND-COLOR: #ffffff">This message has been scanned for malware by SurfControl plc.  </FONT><A href="http://www.surfcontrol.com/"><FONT style="BACKGROUND-COLOR: #ffffff" color=#000000>www.surfcontrol.com</FONT></A></P>
</body></HTML>