[mapserver-users] rasterquery
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
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
[mapserver-users] Define WKT shape with projection
I think I'm missing something obvious here. I'm using PHP mapscript and I have two points (epsg:4326). I want to measure the distance between the two points and get the result in meters. I've come at it a couple ways and I'm definitely getting degrees returned. Well, I think I'm just getting the simple difference between the two points. For example, I'm getting the distance between point (0,0) and (0,1) as 1. I've tried making a shape object (MS_SHAPE_LINE) and using getLength() and I've tried making two point objects and using distanceToPoint. I get the same sort of thing. I guess I'm just looking for how I can define the output unit on a dynamically created shape. Any suggestions are welcome. Thanks! Josh ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Define WKT shape with projection
What I think you need to do is reproject those points to a projection that uses meters rather than degrees. You'll still be getting the same basic result where the distance between 0,0,and 0,1 is one but now the distance between those points is one meter. Mark On Wed, Jun 9, 2010 at 2:23 PM, Josh Hevenor jheve...@rogers.com wrote: I think I'm missing something obvious here. I'm using PHP mapscript and I have two points (epsg:4326). I want to measure the distance between the two points and get the result in meters. I've come at it a couple ways and I'm definitely getting degrees returned. Well, I think I'm just getting the simple difference between the two points. For example, I'm getting the distance between point (0,0) and (0,1) as 1. I've tried making a shape object (MS_SHAPE_LINE) and using getLength() and I've tried making two point objects and using distanceToPoint. I get the same sort of thing. I guess I'm just looking for how I can define the output unit on a dynamically created shape. Any suggestions are welcome. Thanks! Josh ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Have fun or die trying - but try not to actually die. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users