[Mapserver-users] Mapscript : extent of a raster layer?

Thevenon Fabrice fabrice.thevenon at cg64.fr
Tue Feb 17 01:20:41 PST 2004


Hi list !

Could you help me to find the best way to get the extent of a raster layer?

With PHP Mapscript (3.6.2), I build a map composed with Tiff Images (with tfw) and vector layers selected by queries.
I need to get the extent of the tiff image to set exactly the extent of the map.

Any idea?

If there is no way to do that, how can I get with PHP mapscript the number of pixels of a tiff image?

I use MapServer version 3.6.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

Many thanks !

Fabrice THEVENON
Conseil Général des Pyrénées Atlantiques 
Direction des Moyens Techniques 
64 avenue Jean Biray 
64058 Pau Cedex 9  




More information about the MapServer-users mailing list