[Mapserver-users] gdal reading grass-database

Matt Doggett mdoggett at coas.oregonstate.edu
Wed Apr 9 17:16:06 EDT 2003


I just got it working myself a couple days ago.  I had to put a
.grassrc5 into the Document_Root location as defined in the httpd.conf
file (e.g. /usr/local/apache2/htdocs). Also, the LAYER object DATA
element needs to reference the raster from the cellhd directory (e.g.
/data/grass/location/mapset/cellhd/mymap).

Hope this helps.

-Matt

(RedHat8.0, Apache2.0, Mapserver 3.6.4, Php4.2.3)

Matt Doggett
Spatial Climate Analysis Service
Oregon State University
316 Strand Ag Hall
Corvallis, OR 97331
(541)737-9153
mdoggett at coas.oregonstate.edu
 

> -----Original Message-----
> From: mapserver-users-admin at lists.gis.umn.edu [mailto:mapserver-users-
> admin at lists.gis.umn.edu] On Behalf Of Stephan Holl
> Sent: Wednesday, April 09, 2003 1:13 PM
> To: mapserver-users
> Subject: [Mapserver-users] gdal reading grass-database
> 
> Dear List,
> 
> what do I have to do that I can read raster-images directly out of a
> grass-location?
> I cannot make it working...unsupported image format?!
> mapserver is compiled against gdal, which is compiled against libgrass
> as read in the manual written at the grass-homepage.
> 
> the CGI-version of mapserver says:
> msDrawRaster(): Image handling error. Unrecognized or unsupported
image
> format
> 
> the php_mapscript says:
> Warning: MapServer Error in msDrawRaster(): Unrecognized or
unsupported
> image format in /var/www/php/ mapscript.phtml on line 101
> 
> $ > ldd /var/cgi-bin/mapserv
>         libgd.so.2 => /usr/lib/libgd.so.2 (0x40021000)
>         libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40057000)
>         libfreetype.so.6 => /usr/X11R6/lib/libfreetype.so.6
(0x40075000)
>         libpng.so.2 => /usr/lib/libpng.so.2 (0x400b0000)
>         libz.so.1 => /usr/lib/libz.so.1 (0x400db000)
>         libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x400e9000)
>         libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x400f7000)
>         libpdf.so.1 => /usr/local/lib/libpdf.so.1 (0x401b2000)
>         libproj.so.0 => /usr/lib/libproj.so.0 (0x40243000)
>         libgdal.1.1.so => /usr/local/lib/libgdal.1.1.so (0x40272000)
>         libm.so.6 => /lib/libm.so.6 (0x4056e000)
>         libc.so.6 => /lib/libc.so.6 (0x4058f000)
>         libdl.so.2 => /lib/libdl.so.2 (0x406aa000)
>         libpq.so.2 => /usr/lib/libpq.so.2 (0x406ad000)
>         libungif.so.4 => /usr/lib/libungif.so.4 (0x406bf000)
>         libgeotiff.so => /usr/local/lib/libgeotiff.so (0x406c6000)
>         libtiff.so.3 => /usr/lib/libtiff.so.3 (0x406e7000)
>         libgrass5.so.0 => /usr/local/lib/libgrass5.so.0 (0x40729000)
>         libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3
> (0x407af000)
>         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
>         libssl.so.0.9.6 => /usr/lib/libssl.so.0.9.6 (0x407f8000)
>         libcrypto.so.0.9.6 => /usr/lib/libcrypto.so.0.9.6 (0x40824000)
>         libcrypt.so.1 => /lib/libcrypt.so.1 (0x408de000)
>         libresolv.so.2 => /lib/libresolv.so.2 (0x4090c000)
>         libnsl.so.1 => /lib/libnsl.so.1 (0x4091c000)
> 
> perhaps anybody could point me to the right direction.
> 
> Thanks in advance,
> --
> Stephan Holl
> 
> GnuPG Key-ID: 11946A09
> ICQ# 117277975




More information about the mapserver-users mailing list