GRASS-MapServer
- DEMO 1:
- DEMO 2 (New 1/2003):
- DEMO 3 (New 8/2007):
- DEMO 4 (New 8/2007):
-
Troubleshooting for MapServer/GRASS support:
(updated 10/2006)
- Is GDAL enabled:
/var/www/cgi-bin/mapserv -v
You should see 'GDAL', otherwise recompile 'mapserv'
- Is GDAL compiled with GRASS support:
gdal_translate --formats | grep -i grass
You should see 'GRASS', otherwise compile GDAL-OGR-GRASS-Plugin
- "msDrawRaster():Image handling error. Unrecognized or unsupported image format."
NOTE: GRASS raster map directly read from location should be in 8bit.
If 'r.info' reports values higher that 255, you somehow have to
reduce the number of categories (e.g. 'r.rescale'). Such rescaled
maps are only usable for visualization purposes.
- - When using libgrass5: Take care that the GRASS settings file is named '.grassrc5' (and NOT '.grassrc57')
and stored in the server's DocumentRoot directory.
- When using GRASS/GDAL plugin: no .grassrc file needed.
- ... data not found or unsupported format: full data path need to be world readable. Really. Check parent dirs, too.
For raster queries see here.
PHP/GRASS Demo
Markus Neteler
vmap0