<br><font size=2 face="sans-serif">Here are some ideas...</font>
<br><font size=2 face="sans-serif">I would add 900913 to wms_srs. If that
doesn't solve the problem keep it there, it has to be there.</font>
<br><tt><font size=2>"wms_srs"   "EPSG:4326 EPSG:900913"</font></tt>
<br>
<br><font size=2 face="sans-serif">Add this in the MAP section of your
mapfile to make sure it read the good epsg file. this is an example of
a path to the epsg file</font>
<br><font size=2 face="sans-serif">CONFIG "PROJ_LIB" "/srv/www/services/epsg/"</font>
<br>
<br><font size=2 face="sans-serif">Perhaps you need to add the definition
of 900913 to proj4 used by OpenLayers</font>
<br><font size=2 face="sans-serif">create epsg900913.js, with this in</font>
<br><font size=2 face="sans-serif">Proj4js.defs["EPSG:900913"]=
"+title= Google Mercator EPSG:900913 +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
+no_defs";</font>
<br>
<br><font size=2 face="sans-serif">Make sure to add this script after loading
proj4.js <br>
</font>
<p>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Dejan Gambin <dejan.gambin@coin.hr>@lists.osgeo.org</b>
</font>
<br><font size=1 face="sans-serif">Envoyé par : mapserver-users-bounces@lists.osgeo.org</font>
<p><font size=1 face="sans-serif">2014-02-13 08:06</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">mapserver-users@lists.osgeo.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">[Polluriel potentiel]  Re: [mapserver-users]
Problem using WMS GetFeatureInfo in OpenLayers with different projections</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br>
<br>
<br><tt><font size=2>Since I didn't solve this yet, do you think it could
be a bug and/or should I try with some newer MapServer version? I am currently
using 6.0.3<br>
<br>
Thx<br>
<br>
Dejan Gambin<br>
<br>
On 22. sij. 2014., at 10:35, Dejan Gambin wrote:<br>
<br>
> Sorry for being late...<br>
> <br>
> So, I have tested it all with browser of course. Here are some working
and non-working requests:<br>
> <br>
> Mapfile part:<br>
> <br>
>  PROJECTION<br>
>    "init=epsg:4326"    <br>
>  END      <br>
>  METADATA<br>
>    "wms_srs"   "EPSG:4326"  
 <br>
>    "wms_title"  "aster_dem"<br>
>    "gml_include_items" "value_0"<br>
>    "gml_value_0_alias" "Nadmorska_visina"<br>
>  END<br>
>  TILEINDEX "../aster/aster_index"  #original raster
in 4326<br>
> <br>
> <br>
> Working GetMap request in 900913:<br>
> <br>
> http://mydomain.com/cgi-bin/mywms/?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=aster_dem_info&STYLES=&SRS=EPSG:900913&FORMAT=image/png&WIDTH=400&HEIGHT=300&BBOX=1496080.301904,5576310.226428,1593919.698096,5649689.773572<br>
> <br>
> Non-working GetFeatureInfo request in 900913:<br>
> <br>
> http://mydomain.com/cgi-bin/mywms/?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=aster_dem_info&STYLES=&SRS=EPSG:900913&FORMAT=image/png&WIDTH=400&HEIGHT=300&BBOX=1496080.301904,5576310.226428,1593919.698096,5649689.773572&QUERY_LAYERS=aster_dem_info&INFO_FORMAT=gml&X=200&Y=100<br>
> <br>
> Working GetMap request in 4326:<br>
> <br>
> http://mydomain.com/cgi-bin/mywms/?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=aster_dem_info&STYLES=&SRS=EPSG:4326&FORMAT=image/png&WIDTH=400&HEIGHT=300&BBOX=13.439518,44.712096,14.318424,45.178647<br>
> <br>
> Working GetFeatureInfo request in 4326:<br>
> <br>
> http://mydomain.com/cgi-bin/mywms/?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=aster_dem_info&STYLES=&SRS=EPSG:4326&FORMAT=image/png&WIDTH=400&HEIGHT=300&BBOX=13.439518,44.712096,14.318424,45.178647&QUERY_LAYERS=aster_dem_info&INFO_FORMAT=gml&X=200&Y=100<br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> On 17. sij. 2014., at 13:52, Rahkonen Jukka (Tike) wrote:<br>
> <br>
>> Hi,<br>
>> <br>
>> Please show us the complete GetFeatureInfo requests for both cases.
Server urls are not interesting but all the WMS parameters. Have you already
tried to send them from browser? Testing with OpenLayers is waste of time
because you can't control what really happens but with hand written requests
you are the master.<br>
>> <br>
>> -Jukka Rahkonen-<br>
>> <br>
>> <br>
>> Lars Lingner wrote:<br>
>>> <br>
>>> On 17.01.2014 11:10, Dejan Gambin wrote:<br>
>>>>> What is the mywms? MapServer binary, wrapper script,
...?<br>
>>>> wrapper script. Something like:<br>
>>>> <br>
>>>> #! /bin/sh MS_MAPFILE=/path_to_my_map_file export MS_MAPFILE<br>
>>>> /usr/lib/cgi-bin/mapserv6<br>
>>>> <br>
>>> <br>
>>> AFAIK nothing wrong here.<br>
>>> <br>
>>>>> <br>
>>>>> Did you check the actual requests? Does the bbox parameter
fit to<br>
>>>>> the srs? Could you compare a working GetFeatureInfo
request in<br>
>>>>> 900913 with a failing one in 4326?<br>
>>>> Yes, bbox parameter fits to srs in both cases. So, if
I put bbox/srs<br>
>>>> params in 426 everything works, if I put them in 900913
then error<br>
>>>> happens<br>
>>> <br>
>>> Does other maps work with 900913?<br>
>>> <br>
>>> I would check which pro4 epsg file mapserver is using, check
if there is<br>
>>> a definition for 90013 and if it looks like<br>
>>> <br>
>>> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0
+y_0=0<br>
>>> +k=1.0 +units=m +nadgrids=@null +wktext  +no_defs<br>
>>> <br>
>>> On the other hand, if GetMap ist working fine, projection
definition<br>
>>> should be fine too. Just thinking out loud...<br>
>>> <br>
>>> <br>
>>>>> <br>
>>>>> Raise the debug level to 3 at map level and layer
level. You can<br>
>>>>> let MapServer write its own error logfile, so your
apache log stays<br>
>>>>> clean.<br>
>>> <br>
>>> Could you find anything in the MapServer log file?<br>
>>> <br>
>>> Here I would identify a working 4326 GFI request and compare
the<br>
>>> corresponding log with a 900913 request. There should be a
difference.<br>
>>> <br>
>>> <br>
>>> Best wishes,<br>
>>> <br>
>>> Lars<br>
>>> <br>
>>> _______________________________________________<br>
>>> mapserver-users mailing list<br>
>>> mapserver-users@lists.osgeo.org<br>
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users<br>
>> _______________________________________________<br>
>> mapserver-users mailing list<br>
>> mapserver-users@lists.osgeo.org<br>
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users<br>
> <br>
> _______________________________________________<br>
> mapserver-users mailing list<br>
> mapserver-users@lists.osgeo.org<br>
> http://lists.osgeo.org/mailman/listinfo/mapserver-users<br>
<br>
_______________________________________________<br>
mapserver-users mailing list<br>
mapserver-users@lists.osgeo.org<br>
http://lists.osgeo.org/mailman/listinfo/mapserver-users<br>
</font></tt>
<br>
<br>
<br>