[Mapserver-users] Query Raster Layer for Pixel Values

Kralidis,Tom [Burlington] Tom.Kralidis at ec.gc.ca
Tue Jun 15 13:25:03 PDT 2004


Will this also be supported in WMS GetFeatureInfo requests?

..Tom


> -----Original Message-----
> From: mapserver-users-admin at lists.gis.umn.edu 
> [mailto:mapserver-users-admin at lists.gis.umn.edu] On Behalf Of 
> Frank Warmerdam
> Sent: Tuesday, June 15, 2004 4:03 PM
> To: John Norton
> Cc: mapserver-users at lists.gis.umn.edu
> Subject: Re: [Mapserver-users] Query Raster Layer for Pixel Values
> 
> 
> John Norton wrote:
> > Sorry I missed the meeting in Ottawa. Frank W. probably discussed
> > querying raster layers in his workshop. Basically, I would 
> like to a 
> > query a raster layer (8 bit or 16 bit if possible) with a bounding 
> > rectangle or possibly a user selected/defined shape and 
> apply a function 
> > to each of the pixel values, eg find the average value. Or 
> could a query 
> > just return a vector with the pixel values. I don't need 
> the spatial 
> > location for each, just the DN value. Any ideas how this 
> may be done 
> > with MS or where might I start?
> 
> John,
> 
> I would suggest you start by reading over the wiki topic:
> 
   http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RasterQuery

Basically, you can use normal query by point, rect or shape against
raster layers, but you need to include a template for the raster layer.
The results can be displayed using a template, or consumed in mapscript.

Best regards,

-- 
---------------------------------------+--------------------------------
---------------------------------------+------
I set the clouds in motion - turn up   | Frank Warmerdam,
warmerdam at 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 at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users




More information about the MapServer-users mailing list