<br><font size=2 face="sans-serif">In the metadata tag of your layer try
set</font>
<br><tt><font size=2>"wms_srs" "EPSG:4326 EPSG:900913"</font></tt>
<br><font size=2 face="sans-serif"><br>
</font>
<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-01-16 05:03</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">[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>Hi,<br>
<br>
I am trying to send WMS GetFeatureInfo request using OL WMSGetFeatureInfo
control. My source data is in 4326 and map is displayed in 900913. I have
something like this in mapfile:<br>
<br>
LAYER<br>
NAME "mylayer"<br>
TYPE RASTER<br>
STATUS ON<br>
PROJECTION<br>
"init=epsg:4326"<br>
END <br>
METADATA<br>
"wms_srs" "EPSG:4326"<br>
"wms_title" "whatever"<br>
"gml_include_items" "value_0"<br>
"gml_value_0_alias" "Value 0"<br>
"gml_geometries" "none"<br>
END<br>
OPACITY 0<br>
TILEINDEX "mylayer_index"<br>
TILEITEM "LOCATION"<br>
TEMPLATE void<br>
DUMP true<br>
END<br>
<br>
In OL, I am using something like:<br>
<br>
var layer = new OpenLayers.Layer.WMS(<br>
'mylayer',<br>
'http://my.domain.com/cgi-bin/mywms?',<br>
{<br>
format:'image/png',<br>
transparent:true,<br>
isBaseLayer:false,<br>
layers:'mylayer'<br>
});<br>
<br>
control = new OpenLayers.Control.WMSGetFeatureInfo({<br>
url: "http://my.domain.com/cgi-bin/mywms?",<br>
layers: [layer],<br>
hover: false,<br>
infoFormat: 'gml',<br>
maxFeatures: 1<br>
});<br>
<br>
wms_srs in WEB part is "EPSG:900913 EPSG:4326" so it can serve
data in both projections<br>
<br>
The problem is - when I click to get the info I get "Internal server
error" and in apache log I get "Segmentation fault" followed
by "Premature end of script headers: mywms"<br>
<br>
For test, I reprojected my source rasters to 900913, changed PROJECTION
and wms_srs in LAYER to 900913 and then everything works.<br>
<br>
Does anyone know what can be the problem? I am using MapServer 6.0.1 on
debian os.<br>
<br>
Thanks for any help<br>
<br>
regards, dejan<br>
<br>
<br>
<br>
<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>