Hi,

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:

LAYER
  NAME "mylayer"
  TYPE RASTER
  STATUS ON
  PROJECTION
    "init=epsg:4326"
  END      
  METADATA
    "wms_srs"   "EPSG:4326"
    "wms_title"  "whatever"
    "gml_include_items" "value_0"
    "gml_value_0_alias" "Value 0"
    "gml_geometries" "none"
  END
  OPACITY 0
  TILEINDEX "mylayer_index"
  TILEITEM "LOCATION"
  TEMPLATE void
  DUMP true
END

In OL, I am using something like:

            var layer = new OpenLayers.Layer.WMS(
                'mylayer',
                'http://my.domain.com/cgi-bin/mywms?',
                {
                    format:'image/png',
                    transparent:true,
                    isBaseLayer:false,
                    layers:'mylayer'
                });

            control = new OpenLayers.Control.WMSGetFeatureInfo({
                url:  "http://my.domain.com/cgi-bin/mywms?";,
                layers: [layer],
                hover: false,
                infoFormat: 'gml',
                maxFeatures: 1
            });

wms_srs in WEB part is "EPSG:900913 EPSG:4326" so it can serve data in both 
projections

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"

For test, I reprojected my source rasters to 900913, changed PROJECTION and 
wms_srs in LAYER to 900913 and then everything works.

Does anyone know what can be the problem? I am using MapServer 6.0.1 on debian 
os.

Thanks for any help

regards, dejan





_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to