[GRASS-user] gdal, grass, and qgis

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[GRASS-user] gdal, grass, and qgis

pcav
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all.
I tied compiling gdal with grass support for use with qgis, following
http://grass.gdf-hannover.de/wiki/Compile_and_install_GRASS_and_QGIS_with_GDAL/OGR_Plugin
and http://casoilresource.lawr.ucdavis.edu/drupal/node/123. Vectors go
well, but I cannot load grass rasters in qgis:
ERROR 4: `/home/Documenti/datigrass/Toscana/PERMANENT/cellhd/d260160'
not recognised as a supported file format.
However, gdalinfo can see the layer:
$ gdalinfo /home/Documenti/datigrass/Toscana/PERMANENT/cellhd/d260160
Driver: GRASS/GRASS Database Rasters (5.7+)
Size is 11530, 8919
Coordinate System is `'
Origin = (1599890.279998,4855983.000000)
Pixel Size = (0.63492801,-0.63437605)
...
Any hint on how to solve this?
All the best.
pc
- --
Paolo Cavallini
email+jabber: [hidden email]
www.faunalia.it
Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy   Tel: (+39)348-3801953
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFErotT/NedwLUzIr4RAptxAJ49MsP+jYgLFjYjOYIimjPj7cqVCACfU15x
e8h7EPW2+GUGadf57Hh9nxc=
=OUU1
-----END PGP SIGNATURE-----

Reply | Threaded
Open this post in threaded view
|

Re: [GRASS-user] gdal, grass, and qgis

Maciek Sieczka
On Fri, 07 Jul 2006 18:26:59 +0200
Paolo Cavallini <[hidden email]> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi all.
> I tied compiling gdal with grass support for use with qgis, following
> http://grass.gdf-hannover.de/wiki/Compile_and_install_GRASS_and_QGIS_with_GDAL/OGR_Plugin
> and http://casoilresource.lawr.ucdavis.edu/drupal/node/123. Vectors go
> well, but I cannot load grass rasters in qgis:
> ERROR 4: `/home/Documenti/datigrass/Toscana/PERMANENT/cellhd/d260160'
> not recognised as a supported file format.

What versions? Using current Grass and Qgis CVS, Gdal 2006-02-10 and
gdal-grass 1.3.1.1 it works for me.

> However, gdalinfo can see the layer:
> $ gdalinfo /home/Documenti/datigrass/Toscana/PERMANENT/cellhd/d260160
> Driver: GRASS/GRASS Database Rasters (5.7+)
> Size is 11530, 8919
> Coordinate System is `'
> Origin = (1599890.279998,4855983.000000)
> Pixel Size = (0.63492801,-0.63437605)
> ...
> Any hint on how to solve this?

At first I thought maybe the missing projection was the case but QGIS
reads my xy Grass rasters fine.

How about this:

http://grass.gdf-hannover.de/wiki/Compile_and_install_GRASS_and_QGIS_with_GDAL/OGR_Plugin
reads: "New plugin version as of 19 Oct 2005, requires GDAL 1.3.1 or
later"

Are you sure your Gdal instalation is new enough?

Maciek

--------------------
W polskim Internecie s? setki milion?w stron. My przekazujemy Tobie tylko najlepsze z nich!
http://katalog.panoramainternetu.pl/

Reply | Threaded
Open this post in threaded view
|

Re: [GRASS-user] gdal, grass, and qgis

Markus Neteler-3
In reply to this post by pcav
On Fri, Jul 07, 2006 at 06:26:59PM +0200, Paolo Cavallini wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi all.
> I tied compiling gdal with grass support for use with qgis, following
> http://grass.gdf-hannover.de/wiki/Compile_and_install_GRASS_and_QGIS_with_GDAL/OGR_Plugin
> and http://casoilresource.lawr.ucdavis.edu/drupal/node/123. Vectors go
> well, but I cannot load grass rasters in qgis:
> ERROR 4: `/home/Documenti/datigrass/Toscana/PERMANENT/cellhd/d260160'
> not recognised as a supported file format.
> However, gdalinfo can see the layer:
> $ gdalinfo /home/Documenti/datigrass/Toscana/PERMANENT/cellhd/d260160
> Driver: GRASS/GRASS Database Rasters (5.7+)
> Size is 11530, 8919
> Coordinate System is `'
> Origin = (1599890.279998,4855983.000000)
> Pixel Size = (0.63492801,-0.63437605)
> ...
> Any hint on how to solve this?

Paolo,

are you sure that QGIS uses the same GDAL installation (and sees
the plugin .so files)?

ldd may help to find out.

Markus

> All the best.
> pc
> - --
> Paolo Cavallini
> email+jabber: [hidden email]
> www.faunalia.it
> Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy   Tel: (+39)348-3801953
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.3 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFErotT/NedwLUzIr4RAptxAJ49MsP+jYgLFjYjOYIimjPj7cqVCACfU15x
> e8h7EPW2+GUGadf57Hh9nxc=
> =OUU1
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> grassuser mailing list
> [hidden email]
> http://grass.itc.it/mailman/listinfo/grassuser

--
Markus Neteler  <neteler itc it>  http://mpa.itc.it/markus/
ITC-irst -  Centro per la Ricerca Scientifica e Tecnologica
MPBA - Predictive Models for Biol. & Environ. Data Analysis
Via Sommarive, 18        -       38050 Povo (Trento), Italy

Reply | Threaded
Open this post in threaded view
|

Re: [GRASS-user] gdal, grass, and qgis

pcav
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ciao Markus.
Thanks for helping. I removed the previous gdal, so I think qgis is just
not using the new one.
How do I know this?
# ldd /usr/local/lib/gdalplugins/gdal_GRASS.so
        linux-gate.so.1 =>  (0xffffe000)
        libgrass_I.so => /usr/local/grass-6.1.cvs/lib/libgrass_I.so
(0xb7fc0000)
        libgrass_vask.so =>
/usr/local/grass-6.1.cvs/lib/libgrass_vask.so (0xb7fba000)
        libgrass_gmath.so =>
/usr/local/grass-6.1.cvs/lib/libgrass_gmath.so (0xb7fb4000)
        libgrass_gis.so => /usr/local/grass-6.1.cvs/lib/libgrass_gis.so
(0xb7f10000)
        libgrass_datetime.so =>
/usr/local/grass-6.1.cvs/lib/libgrass_datetime.so (0xb7f08000)
        libgrass_gproj.so =>
/usr/local/grass-6.1.cvs/lib/libgrass_gproj.so (0xb7f00000)
        libgrass_vect.so =>
/usr/local/grass-6.1.cvs/lib/libgrass_vect.so (0xb7ecf000)
        libgrass_dbmibase.so =>
/usr/local/grass-6.1.cvs/lib/libgrass_dbmibase.so (0xb7ec0000)
        libgrass_dbmiclient.so =>
/usr/local/grass-6.1.cvs/lib/libgrass_dbmiclient.so (0xb7eb7000)
        libgdal.so.1 => not found
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7dd5000)
        libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7daf000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7da4000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7c6c000)
        libfftw.so.2 => /usr/lib/libfftw.so.2 (0xb7c40000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb7c2b000)
        libncurses.so.5 => /lib/libncurses.so.5 (0xb7be9000)
        libproj.so.0 => /usr/lib/libproj.so.0 (0xb7bb4000)
        libgdal1.3.1.so.1 => /usr/lib/libgdal1.3.1.so.1 (0xb777f000)
        libgrass_dig2.so =>
/usr/local/grass-6.1.cvs/lib/libgrass_dig2.so (0xb776d000)
        libgrass_dgl.so => /usr/local/grass-6.1.cvs/lib/libgrass_dgl.so
(0xb7756000)
        libgrass_rtree.so =>
/usr/local/grass-6.1.cvs/lib/libgrass_rtree.so (0xb7751000)
        libgrass_linkm.so =>
/usr/local/grass-6.1.cvs/lib/libgrass_linkm.so (0xb774f000)
        /lib/ld-linux.so.2 (0x80000000)
        libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb774b000)
        libgeos.so.2 => /usr/lib/libgeos.so.2 (0xb7658000)
        libodbc.so.1 => /usr/lib/libodbc.so.1 (0xb75f8000)
        libxerces-c.so.26 => /usr/lib/libxerces-c.so.26 (0xb72a8000)
        libjasper-1.701.so.1 => /usr/lib/libjasper-1.701.so.1 (0xb725b000)
        libmfhdf.so.4 => /usr/lib/libmfhdf.so.4 (0xb7239000)
        libdf.so.4 => /usr/lib/libdf.so.4 (0xb719a000)
        libungif.so.4 => /usr/lib/libungif.so.4 (0xb7192000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb7171000)
        libtiff.so.4 => /usr/lib/libtiff.so.4 (0xb711d000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb70f8000)
        libnetcdf.so.3 => /usr/lib/libnetcdf.so.3 (0xb70c4000)
        libcfitsio.so.2 => /usr/lib/libcfitsio.so.2 (0xb6f56000)
        libpq.so.4 => /usr/lib/libpq.so.4 (0xb6f39000)
        libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb6f25000)
        librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb6f1c000)
        libltdl.so.3 => /usr/lib/libltdl.so.3 (0xb6f15000)
        libicuuc.so.34 => /usr/lib/libicuuc.so.34 (0xb6e0a000)
        libicudata.so.34 => /usr/lib/libicudata.so.34 (0xb6595000)
        libssl.so.0.9.8 => /usr/lib/i686/cmov/libssl.so.0.9.8 (0xb6555000)
        libcrypto.so.0.9.8 => /usr/lib/i686/cmov/libcrypto.so.0.9.8
(0xb641b000)
        libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0xb639d000)
        libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0xb6378000)
        libcom_err.so.2 => /lib/libcom_err.so.2 (0xb6375000)
        libcrypt.so.1 => /lib/tls/i686/cmov/libcrypt.so.1 (0xb6347000)
        libresolv.so.2 => /lib/tls/i686/cmov/libresolv.so.2 (0xb6333000)
        libnsl.so.1 => /lib/tls/i686/cmov/libnsl.so.1 (0xb631d000)
        libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0xb6318000)


Markus Neteler wrote:
>> Paolo,
>
>> are you sure that QGIS uses the same GDAL installation (and sees
>> the plugin .so files)?
>
>> ldd may help to find out.
>
>> Markus
- --
Paolo Cavallini
email+jabber: [hidden email]
www.faunalia.it
Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy   Tel: (+39)348-3801953
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEr0h8/NedwLUzIr4RAkv2AKCifV8/SzJu4K83ROPJWaGaIVdPFwCeOBXc
D4cg7QsmBJA75QYpBPt4uDs=
=ro2M
-----END PGP SIGNATURE-----

Reply | Threaded
Open this post in threaded view
|

Re: [GRASS-user] gdal, grass, and qgis

pcav
In reply to this post by Maciek Sieczka
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Maciek.
Tanks for helping. I'm using grass+qgis from yesterday cvs/svn, gdal
1.3.2 stable, so it should be ok from this side.
pc

Maciek Sieczka wrote:

> What versions? Using current Grass and Qgis CVS, Gdal 2006-02-10 and
> gdal-grass 1.3.1.1 it works for me.
>
...
> How about this:
>
> http://grass.gdf-hannover.de/wiki/Compile_and_install_GRASS_and_QGIS_with_GDAL/OGR_Plugin
> reads: "New plugin version as of 19 Oct 2005, requires GDAL 1.3.1 or
> later"
>
> Are you sure your Gdal instalation is new enough?
>
> Maciek
- --
Paolo Cavallini
email+jabber: [hidden email]
www.faunalia.it
Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy   Tel: (+39)348-3801953
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEr0kO/NedwLUzIr4RAhKYAJ924Jm4bdBeslONIdQ3IkIBo78QgACeNuLr
ZT3/u35NzDV556T+3i+gRSM=
=WOZP
-----END PGP SIGNATURE-----

Reply | Threaded
Open this post in threaded view
|

Re: [GRASS-user] gdal, grass, and qgis

pcav
In reply to this post by pcav
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I restarted from the beginning.
ln -s /usr/local/lib/libgdal.so.1 /usr/lib/libgdal1.3.1.so.1
did the job, although I do not know why qgis is looking for
/usr/lib/libgdal1.3.1.so.1 (it is compiled
- --with-gdal=/usr/local/bin/gdal-config and # gdal-config --version
1.3.2).
Anyway, now everything seems to be working well.
All the best.
pc

Paolo Cavallini wrote:
> Ciao Markus.
> Thanks for helping. I removed the previous gdal, so I think qgis is just
> not using the new one.
...
- --
Paolo Cavallini
email+jabber: [hidden email]
www.faunalia.it
Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy   Tel: (+39)348-3801953
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEr2Rp/NedwLUzIr4RAnrhAKCX9QYSt5BRKGn32kGJ1E/dLgbPBgCfW/Dn
rl35DwEuYey01vZUtR1/PMg=
=mSvq
-----END PGP SIGNATURE-----