Thanks Armin- I got this all correct now. The problem I discovered is that my map display is projected but my raster is not. While the vector queries handle this just fine, the raster query does not correctly translate the unprojected raster into projected map units. Is this a problem that I can correct in p.mapper code somewhere?
Matt -----Original Message----- From: Armin Burger [mailto:armin.bur...@gmail.com] Sent: Saturday, June 25, 2011 5:09 AM To: pmapper-users@lists.sourceforge.net Subject: Re: [pmapper-users] raster pixel query/identify see http://svn.pmapper.net/trac/browser/trunk/pmapper/config/dev/pmapper_demo_de v.map and http://mapserver.org/input/raster.html#raster-query armin On 25/06/2011 00:37, Matt Doggett wrote: > How can I query/identify the pixel/cell value of a raster at the > location of mouse click? I've searched online and have found vague > older references to a pmapper_demo_dev.map and a "corine" layer (which > apparently doesn't exist > anymore) that demonstrates how to use metadata tags for use with > rasters to query/identify. I think I've figured out the METADATA tags > that I should use, But nothing I've tried yet returns the pixel value of the raster. > Mapserver renders this raster layer without any problem. How do I > identify/query the pixel cell value? > > > > I'm using p.mapper 4.1.1 and php_mapscript 5.6. > > > > The layer snippet from my mapfile is below. > > > > Many thanks. Matt > > > > > > LAYER > > NAME "ppt" > > GROUP "ppt" > > DATA "precipitation_data.bil" > > PROJECTION > > "proj=latlong" > > END > > STATUS ON > > TYPE RASTER > > UNITS METERS > > TEMPLATE void > > TOLERANCEUNITS pixels > > TOLERANCE 0 > > METADATA > > "DESCRIPTION" "Rainfall data" > > "RESULT_HEADERS" "xcoord,ycoord" > > "RESULT_FIELDS" "x,y" > > END > > ---------------------------------------------------------------------- > -------- All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity and more. Splunk takes this data > and makes sense of it. Business sense. IT sense. Common sense.. > http://p.sf.net/sfu/splunk-d2d-c1 > _______________________________________________ > pmapper-users mailing list > pmapper-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pmapper-users > ---------------------------------------------------------------------------- -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense.. http://p.sf.net/sfu/splunk-d2d-c1 _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users