[mapserver-users] rasterquery

Sven Schroeter schroeter at netgis.de
Wed Jun 9 05:27:27 PDT 2010


Hi,
I try to make a raster query using phpmapscript
My layer in the mapfile:

# DHM ESRI Grid
LAYER
     NAME "mydhm"
     DATA "dhm_vg/grid/dhm_vg" #grid dir
     STATUS default
     TYPE RASTER
     TEMPLATE "template/query.html"
END

My php code:

//load mapfile
$map= ms_newMapObj($mapfilepath.'\map.map');

//create point
$qPoint = ms_newPointObj();
$qPoint->setXY(2554032,5521435);

//set layer
$layer = $map->getLayerByName("mydhm");

//query
@$datQuery = $layer->queryByPoint($qPoint, MS_SINGLE, 1);

if ($datQuery == MS_SUCCESS) {
  echo "OK!";
}

this works fine with mapserver 5.02 but there is no result  with mapserver 
5.6.1

apServer version 5.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP 
OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG 
SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER 
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT 
SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS 
SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS INPUT=OGR 
INPUT=GDAL INPUT=SHAPEFILE

Any idea?
Sven 





More information about the MapServer-users mailing list