Details Ticket 1537


Comment | Reply | Open


Serial Number 1537
Subject Canīt read GRASS locations using MapServer
Area bug
Queue grass
Requestors sonia.rosas@eresmas.com
Owner fwarmerdam
Status resolved
Last User Contact Thu Jan 23 11:00:57 2003 (6 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Thu Jan 23 11:01:22 2003 (6 yr ago)
Created Tue Jan 21 10:49:05 2003 (6 yr ago)

Transaction History Ticket 1537


Tue, Jan 21 2003 10:49:05    Request created by guest  
Subject: Canīt read GRASS locations using MapServer

Platform: other
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources
GRASS Version: GRASS-5.0.0

I can run GRASS5.0.0 and MapServer3.6.3, but I canīt read GRASS locations using
MapServer. Following the installation instructions of the GRASS/MapServer Demo
Site, I have installed:
- libgrass5-1.0.0, 
- gdal1.1.8 (--without-python --with-grass=/datos/others/libgrass5-1.0.0/gis),
and 
- mapserver3.6.3 (--with-proj --with-ogr --with-gdal --with-gd --with-png --with-php=../php-4.1.2/ma
in)
I have downloaded the sample server and I have put:
- mapserv file in /var/www/cgi-bin/
- mapserver.map (modified) in /datos/others/grass-5.0.0/grass5_mapserver/map-script/
- start.html and spearfish.html (modified) in /datos/others/grass-5.0.0/grass5_mapserver/
I can view the elevation (GeoTIFF), roads (SHAPE lines) and fields (SHAPE polygons)
maps, but when I select the soil maps (GRASS) I get this message:
'msDrawRaster():Image handling error. Unrecognized or unsupported image format'
Sonia R.
Tue, Jan 21 2003 14:56:28    Taken by fwarmerdam  
Tue, Jan 21 2003 14:59:37    Mail sent by fwarmerdam  
Sonia, 

I need to know:

  1) Does the output of "gdalinfo --formats" include a "GRASS: GRASS Database
Rasters" line?

  2) What did you use as the argument to the "DATA" keyword in your map file?
3) Can gdalinfo access the grass raster in question?

PS. 

I think this bug report more properly belongs in the GDAL bug list but we
can handle it here for now.   You can email me directly at 
warmerdam@pobox.com if you like. 
Tue, Jan 21 2003 16:16:32    Mail sent by guest  
Hi,
Following the steps of the Troubleshooting for MapServer/GRASS support, I 
have found that GDAL is enabled and GDAL is compiled with GRASS support, but
libgrass5 is NOT found (ldd /usr/local/lib/libgdal.1.1.so). The 
libgrass5.so.0 is in /usr/local/lib. I have configured the GDAL installation
in several ways, but the library is not found:
--with-grass=/usr/local/lib, or
--with-grass=/datos/others/libgrass-5.0.0/gis

Thanks,
Sonia R.
  
Tue, Jan 21 2003 18:09:34    Mail sent by neteler@itc.it  
Return-Path <neteler@itc.it>
Delivered-To grass-bugs@lists.intevation.de
Resent-Message-Id <200301211709.h0LH9UP17122@thuille.itc.it.>
Date Tue, 21 Jan 2003 18:03:42 +0100
From Markus Neteler <neteler@itc.it>
To Sonia Rosas <sonia.rosas@madrid.sema.slb.com>
Cc grass-bugs@intevation.de
Subject Re: Can't read GRASS locations using MapServer Was: [GRASS5] [bug #1537]
Message-ID <20030121180342.E13447@itc.it>
References <3E2D6594.F9F8655D@madrid.sema.slb.com> <20030121164302.Y13447@itc.it> <3E2D750B.E98BE25D@madrid.sema.slb.com>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.2.5.1i
In-Reply-To <3E2D750B.E98BE25D@madrid.sema.slb.com>; from sonia.rosas@madrid.sema.slb.com on Tue, Jan 21, 2003 at 05:27:55PM +0100
Resent-From neteler@itc.it
Resent-Date Tue, 21 Jan 2003 18:09:30 +0100
Resent-To grass-bugs@intevation.de
X-Spam-Status No, hits=-5.3 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,RESENT_TO, SIGNATURE_SHORT_SPARSE,SPAM_PHRASE_02_03,USER_AGENT, USER_AGENT_MUTT version=2.43
X-Spam-Level
Hello Sonia,

The trick is that your system obviously expects the libs
in /usr/lib and not /usr/local/lib

So try:
cd /usr/local/lib/
mv libgrass5.* /usr/lib
ldconfig

Then again the 'ldd' test from below (and voila, it should be ok).

Cheers

 Markus

On Tue, Jan 21, 2003 at 05:27:55PM +0100, Sonia Rosas wrote:
> Hello Markus,
> 
> Thanks for your answer!
> 
> The 'ldd' output is:
>         libpq.so.2 => /usr/lib/libpq.so.2 (0x40263000)
>         libungif.so.4 => /usr/lib/libungif.so.4 (0x40274000)
>         libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x4027c000)
>         libpng.so.2 => /usr/lib/libpng.so.2 (0x4029b000)
>         libgrass5.so.0 => not found
>         libz.so.1 => /usr/lib/libz.so.1 (0x402bc000)
>         libdl.so.2 => /lib/libdl.so.2 (0x402cb000)
>         libm.so.6 => /lib/i686/libm.so.6 (0x402cf000)
>         libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3
> (0x402f2000)
>         libc.so.6 => /lib/i686/libc.so.6 (0x40334000)
>         libssl.so.2 => /lib/libssl.so.2 (0x4046f000)
>         libcrypto.so.2 => /lib/libcrypto.so.2 (0x4049c000)
>         libkrb5.so.3 => /usr/kerberos/lib/libkrb5.so.3 (0x40560000)
>         libk5crypto.so.3 => /usr/kerberos/lib/libk5crypto.so.3 (0x405b8000)
>         libcom_err.so.3 => /usr/kerberos/lib/libcom_err.so.3 (0x405c9000)
>         libcrypt.so.1 => /lib/libcrypt.so.1 (0x405cc000)
>         libresolv.so.2 => /lib/libresolv.so.2 (0x405f9000)
>         libnsl.so.1 => /lib/libnsl.so.1 (0x4060b000)
>         libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40622000)
>         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
> 
> 
> 
> The 'ls' output is:
>      -rw-r--r--    1 root     root      4644204 ene 17 10:08
> /usr/local/lib/libgrass5.a
>     -rwxr-xr-x    1 root     root          666 ene 17 10:08
> /usr/local/lib/libgrass5.la
>     lrwxrwxrwx    1 root     root           18 ene 17 10:08
> /usr/local/lib/libgrass5.so -> libgrass5.so.0.3.0
>     lrwxrwxrwx    1 root     root           18 ene 17 10:08
> /usr/local/lib/libgrass5.so.0 -> libgrass5.so.0.3.0
>     -rwxr-xr-x    1 root     root      1027579 ene 17 10:08
> /usr/local/lib/libgrass5.so.0.3.0
> 
> 
> 
> The 'echo' output is empty.
> 
> 
> 
> On the other hand, the output of the 'gdalinfo' is:
> 'gdalinfo: error while loading shared libraries: libgrass5.so.0: cannot open
> shared object file: No such file or directory'
> 
> 
> Regards,
> Sonia
> 
> Markus Neteler wrote:
> 
> > On Tue, Jan 21, 2003 at 04:21:57PM +0100, Sonia Rosas wrote:
> > > Hello,
> > > Thanks for the Troubleshooting for MapServer/GRASS support in the web
> > > site.
> > > Following the steps, I have found that GDAL is enabled and GDAL is
> > > compiled with GRASS support, but libgrass5 is NOT found (ldd
> > > /usr/local/lib/libgdal.1.1.so). The libgrass5.so.0 is in /usr/local/lib.
> > > I have configured the GDAL installation in several ways, but the library
> > > is not found:
> > >     --with-grass=/usr/local/lib, or
> > >     --with-grass=/datos/others/libgrass-5.0.0/gis
> > > Thanks again!
> > > Regards,
> > > Sonia
> >
> > Please send the output of
> >
> > ldd /usr/local/lib/libgdal.1.1.so
> >
> > and of
> > ls -la /usr/local/lib/libgrass5*
> >
> > and of
> > echo $LD_LIBRARY_PATH
> >
> > Regards,
> >
> >  Markus

-- 
Markus Neteler

ITC-irst, Istituto per la Ricerca Scientifica e Tecnologica
      Project on Predictive Models for the Environment    
Via Sommarive, 18        -       38050 Povo (Trento), Italy
tel +39 0461 314 520 (fax -591)           http://mpa.itc.it


Wed, Jan 22 2003 10:42:39    Mail sent by sonia.rosas@madrid.sema.slb.com  
Return-Path <neteler@itc.it>
Delivered-To grass-bugs@lists.intevation.de
Resent-Message-Id <200301220942.h0M9g8M24039@thuille.itc.it.>
Date Wed, 22 Jan 2003 09:22:56 +0100
From Sonia Rosas <sonia.rosas@madrid.sema.slb.com>
Subject Re: Can't read GRASS locations using MapServer Was: [GRASS5] [bug #1537]
To Markus Neteler <neteler@itc.it>
Message-id <3E2E54E0.6C8A4853@madrid.sema.slb.com>
MIME-version 1.0
X-Mailer Mozilla 4.78 [en] (Windows NT 5.0; U)
Content-type text/plain; charset=us-ascii
Content-transfer-encoding 7BIT
X-Accept-Language en
References <3E2D6594.F9F8655D@madrid.sema.slb.com> <20030121164302.Y13447@itc.it> <3E2D750B.E98BE25D@madrid.sema.slb.com> <20030121180342.E13447@itc.it>
Resent-From neteler@itc.it
Resent-Date Wed, 22 Jan 2003 10:42:08 +0100
Resent-To grass-bugs@intevation.de
X-Spam-Status No, hits=-2.3 required=5.0 tests=EMAIL_ATTRIBUTION,QUOTED_EMAIL_TEXT,REFERENCES,RESENT_TO, SPAM_PHRASE_03_05,USER_AGENT_MOZILLA_XM,X_ACCEPT_LANG version=2.43
X-Spam-Level
Hello Markus,

Thanks for your help again!

The 'ldd' test is ok now. I will continue with the mapserver installation now.
Cheers,
Sonia
:-)

Markus Neteler wrote:

> Hello Sonia,
>
> The trick is that your system obviously expects the libs
> in /usr/lib and not /usr/local/lib
>
> So try:
> cd /usr/local/lib/
> mv libgrass5.* /usr/lib
> ldconfig
>
> Then again the 'ldd' test from below (and voila, it should be ok).
>
> Cheers
>
>  Markus
>
> On Tue, Jan 21, 2003 at 05:27:55PM +0100, Sonia Rosas wrote:
> > Hello Markus,
> >
> > Thanks for your answer!
> >
> > The 'ldd' output is:
> >         libpq.so.2 => /usr/lib/libpq.so.2 (0x40263000)
> >         libungif.so.4 => /usr/lib/libungif.so.4 (0x40274000)
> >         libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x4027c000)
> >         libpng.so.2 => /usr/lib/libpng.so.2 (0x4029b000)
> >         libgrass5.so.0 => not found
> >         libz.so.1 => /usr/lib/libz.so.1 (0x402bc000)
> >         libdl.so.2 => /lib/libdl.so.2 (0x402cb000)
> >         libm.so.6 => /lib/i686/libm.so.6 (0x402cf000)
> >         libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3
> > (0x402f2000)
> >         libc.so.6 => /lib/i686/libc.so.6 (0x40334000)
> >         libssl.so.2 => /lib/libssl.so.2 (0x4046f000)
> >         libcrypto.so.2 => /lib/libcrypto.so.2 (0x4049c000)
> >         libkrb5.so.3 => /usr/kerberos/lib/libkrb5.so.3 (0x40560000)
> >         libk5crypto.so.3 => /usr/kerberos/lib/libk5crypto.so.3 (0x405b8000)
> >         libcom_err.so.3 => /usr/kerberos/lib/libcom_err.so.3 (0x405c9000)
> >         libcrypt.so.1 => /lib/libcrypt.so.1 (0x405cc000)
> >         libresolv.so.2 => /lib/libresolv.so.2 (0x405f9000)
> >         libnsl.so.1 => /lib/libnsl.so.1 (0x4060b000)
> >         libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40622000)
> >         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
> >
> >
> >
> > The 'ls' output is:
> >      -rw-r--r--    1 root     root      4644204 ene 17 10:08
> > /usr/local/lib/libgrass5.a
> >     -rwxr-xr-x    1 root     root          666 ene 17 10:08
> > /usr/local/lib/libgrass5.la
> >     lrwxrwxrwx    1 root     root           18 ene 17 10:08
> > /usr/local/lib/libgrass5.so -> libgrass5.so.0.3.0
> >     lrwxrwxrwx    1 root     root           18 ene 17 10:08
> > /usr/local/lib/libgrass5.so.0 -> libgrass5.so.0.3.0
> >     -rwxr-xr-x    1 root     root      1027579 ene 17 10:08
> > /usr/local/lib/libgrass5.so.0.3.0
> >
> >
> >
> > The 'echo' output is empty.
> >
> >
> >
> > On the other hand, the output of the 'gdalinfo' is:
> > 'gdalinfo: error while loading shared libraries: libgrass5.so.0: cannot open
> > shared object file: No such file or directory'
> >
> >
> > Regards,
> > Sonia
> >
> > Markus Neteler wrote:
> >
> > > On Tue, Jan 21, 2003 at 04:21:57PM +0100, Sonia Rosas wrote:
> > > > Hello,
> > > > Thanks for the Troubleshooting for MapServer/GRASS support in the web
> > > > site.
> > > > Following the steps, I have found that GDAL is enabled and GDAL is
> > > > compiled with GRASS support, but libgrass5 is NOT found (ldd
> > > > /usr/local/lib/libgdal.1.1.so). The libgrass5.so.0 is in /usr/local/lib.
> > > > I have configured the GDAL installation in several ways, but the library
> > > > is not found:
> > > >     --with-grass=/usr/local/lib, or
> > > >     --with-grass=/datos/others/libgrass-5.0.0/gis
> > > > Thanks again!
> > > > Regards,
> > > > Sonia
> > >
> > > Please send the output of
> > >
> > > ldd /usr/local/lib/libgdal.1.1.so
> > >
> > > and of
> > > ls -la /usr/local/lib/libgrass5*
> > >
> > > and of
> > > echo $LD_LIBRARY_PATH
> > >
> > > Regards,
> > >
> > >  Markus
>
> --
> Markus Neteler
>
> ITC-irst, Istituto per la Ricerca Scientifica e Tecnologica
>       Project on Predictive Models for the Environment
> Via Sommarive, 18        -       38050 Povo (Trento), Italy
> tel +39 0461 314 520 (fax -591)           http://mpa.itc.it


Thu, Jan 23 2003 11:00:57    Mail sent by neteler@itc.it  
Return-Path <neteler@itc.it>
Delivered-To grass-bugs@lists.intevation.de
Date Thu, 23 Jan 2003 11:00:48 +0100
From Markus Neteler <neteler@itc.it>
To Sonia Rosas <sonia.rosas@madrid.sema.slb.com>
Cc grass-bugs@intevation.de
Subject Re: Can read GRASS locations using MapServer Was: [GRASS5] [bug #1537]
Message-ID <20030123110048.D7380@itc.it>
References <3E2E7ACC.720EEF6C@madrid.sema.slb.com> <20030122142449.C25363@itc.it> <3E2FB210.D750F227@madrid.sema.slb.com>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.2.5.1i
In-Reply-To <3E2FB210.D750F227@madrid.sema.slb.com>; from sonia.rosas@madrid.sema.slb.com on Thu, Jan 23, 2003 at 10:12:48AM +0100
X-Spam-Status No, hits=-2.5 required=5.0 tests=IN_REP_TO,REFERENCES,SPAM_PHRASE_01_02,USER_AGENT, USER_AGENT_MUTT version=2.43
X-Spam-Level
On Thu, Jan 23, 2003 at 10:12:48AM +0100, Sonia Rosas wrote:
> Hi Markus,
> Finally I can read GRASS locations using MapServer.
> Thank you for all your help!
> Kind regards,
> Sonia

Good to hear that!

Enjoy GRASS/MapServer. Probably in future there will be also vector
support as 'v.out.ogr' for GRASS 5.1 already exists. This has to be
implemented into either OGR or a (new) libgrass. We'll see.

Cheers

 Markus


Thu, Jan 23 2003 11:01:22    Status changed to resolved by mneteler  
Comment | Reply | Open

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request