[mapserver-users] Problem using WMS GetFeatureInfo in OpenLayers with different projections

Lars Lingner gislars+list at googlemail.com
Fri Jan 17 04:25:42 PST 2014


On 17.01.2014 11:10, Dejan Gambin wrote:
>> What is the mywms? MapServer binary, wrapper script, ...?
> wrapper script. Something like:
> 
> #! /bin/sh MS_MAPFILE=/path_to_my_map_file export MS_MAPFILE 
> /usr/lib/cgi-bin/mapserv6
> 

AFAIK nothing wrong here.

>> 
>> Did you check the actual requests? Does the bbox parameter fit to
>> the srs? Could you compare a working GetFeatureInfo request in
>> 900913 with a failing one in 4326?
> Yes, bbox parameter fits to srs in both cases. So, if I put bbox/srs
> params in 426 everything works, if I put them in 900913 then error
> happens

Does other maps work with 900913?

I would check which pro4 epsg file mapserver is using, check if there is
a definition for 90013 and if it looks like

+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0
+k=1.0 +units=m +nadgrids=@null +wktext  +no_defs

On the other hand, if GetMap ist working fine, projection definition
should be fine too. Just thinking out loud...


>> 
>> Raise the debug level to 3 at map level and layer level. You can
>> let MapServer write its own error logfile, so your apache log stays
>> clean.

Could you find anything in the MapServer log file?

Here I would identify a working 4326 GFI request and compare the
corresponding log with a 900913 request. There should be a difference.


Best wishes,

Lars



More information about the mapserver-users mailing list