Re: [mapserver-users] rasterquery

2010-06-10 Thread Sven Schroeter

Frank,

thank you for the hint, I have found that it only doesn't work with a ESRI 
Grid.

With a .tif / geotif the rasterquery works without problems. Is this a bug?

Greetings
Sven



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] rasterquery

2010-06-09 Thread Sven Schroeter

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 



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] rasterquery

2010-06-09 Thread Frank Warmerdam

Sven Schroeter wrote:

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

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


Sven,

Looking at one of my raster query tests, the one noteworthy difference I
see is that I have DUMP TRUE in the layer.  If you you still get no
results with that in place, file a ticket and assign it to me warmerdam
with full details to reproduce and I'll take a look.

Best regards,
--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users