How can I get a pixel value from tiff image?

Bart van den Eijnden bartvde at XS4ALL.NL
Sat Jun 4 05:22:44 EDT 2005


Hi,

you could have a look here (Section Raster query):

http://dl.maptools.org/dl/omsug/osgis2004/NewMapServerRasterFeatures.pdf

Pixel:<br>
values=[values]<br>
value_0=[value_0]<br>
value_1=[value_1]<br>
value_2=[value_2]<br>
RGB = [red],[green],[blue]<p>
Class = [class]<br>

Best regards,
Bart

On Fri, 03 Jun 2005 23:32:16 +0200, Farid Vakilzadeh <jalfarid at GMAIL.COM>  
wrote:

> Hi All,
>
> I have a raster tiff image. After displaying it under Mapserver I want
> to display each pixel value that I need. Also I don't want to use
> MapScript language such as PHP. So far I can query something such as
> map coordinates by using  [mapx] and [mapy] in my query template file
> but I don't know How I can query pixel value. Some body who knows
> please tell me how?  Here is my query template file :
>
> <html>
> <head>
>  <title> Query Results </title>
> </head>
> <body>
>    <table class="centered" border="1">
>       <tr>
>          <th>Bounding box</th>
>          <td>[minx],[miny],[maxx],[maxy]</td>
>       </tr>
>       <tr>
>          <th>Image Coordinates</th>
>          <td>[img.x], [img.y]</td>
>       </tr>
>       <tr>
>          <th>Map Coordinates</th>
>          <td>[mapx], [mapy]</td>
>       </tr>
>       <tr>
>          <th>Number of results</th>
>          <td>[nr]</td>
>       </tr>
>       <tr>
>          <th>Scale</th>
>          <td>[scale]</td>
>       </tr>
>       <tr>
>          <th>Cellsize</th>
>          <td>[cellsize]</td>
>       </tr>
>  </table>
>  <hr/>
> </body>
> </html>
>
> Farid
>
>



-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/



More information about the mapserver-users mailing list