[GRASS5] Re: [Pkg-grass-general] update

[Pkg-grass-general]

> GRASS 6.0.1 has not been released yet.

So we should do that!

critical bugs to fix:

cs2cs doesn't see GRASS's NTv2 grid files. see:
  http://bugzilla.remotesensing.org/show_bug.cgi?id=834
(help?)

v.in.garmin - add more checks to survive above bug when downloading track.
(me)

r.out.gdal - broken with quoting problem.
(help?)

what else?

Hamish

I wrote:

[Pkg-grass-general]

[i.e. Fwd from the DebianGIS mailing list]

> > GRASS 6.0.1 has not been released yet.
>
> So we should do that!

critical bugs to fix:

cs2cs doesn't see GRASS's NTv2 grid files. see:
  http://bugzilla.remotesensing.org/show_bug.cgi?id=834

v.in.garmin - add more checks to survive above bug when downloading
track.

r.out.gdal - broken with quoting problem.

what else?

also important to fix for 6.0.1:

r.terraflow still using insecure temp files

100% cpu usage during mouse ops. Real problem for multi-user machines
and when using GRASS over a network connection.

Hamish

On Fri, May 27, 2005 at 07:07:06PM +1200, Hamish wrote:

r.out.gdal - broken with quoting problem.
(help?)

Is it possible that this problem was introduced when
making 'Krovak' et al. functional? For a while r.out.gdal
worked quite well.

BTW: I have patched the GRASS/GDAL plugin to report
the projection:
http://bugzilla.remotesensing.org/show_bug.cgi?id=822

Frank didn't apply it yet, please test it and comment into
the bug report if things do[n't] work. This patch could
simplify r.out.gdal.

Markus

> r.out.gdal - broken with quoting problem.
> (help?)

Is it possible that this problem was introduced when
making 'Krovak' et al. functional? For a while r.out.gdal
worked quite well.

I believe that is correct.

The bug should be easy to fix though. It's just shell quoting:

  http://grass.itc.it/pipermail/grassuser/2005-May/029045.html

well actually it seems to be putting 'quotes' around [brackets] with
spaces in them.

Hamish

On Mon, May 30, 2005 at 12:47:36PM +0200, Markus Neteler wrote:

On Fri, May 27, 2005 at 07:07:06PM +1200, Hamish wrote:
> r.out.gdal - broken with quoting problem.
> (help?)

Is it possible that this problem was introduced when
making 'Krovak' et al. functional? For a while r.out.gdal
worked quite well.

OK, I think I fixed it (in 6.1-CVS).

Please test. If ok, I'll merge into the 6.0.1 release branch.

Markus

> On Fri, May 27, 2005 at 07:07:06PM +1200, Hamish wrote:
> > r.out.gdal - broken with quoting problem.
> > (help?)
>
> Is it possible that this problem was introduced when
> making 'Krovak' et al. functional? For a while r.out.gdal
> worked quite well.

OK, I think I fixed it (in 6.1-CVS).

Please test. If ok, I'll merge into the 6.0.1 release branch.

Seems to fix the quoting problem, but now I get this error:

(spearfish57 test dataset on Debian)

G:user1 > r.out.gdal in=elevation.10m out=elev format=GTiff type=Float32
Writing format: GTiff
Writing type: Float32
ERROR 4: `/home/hamish/grassdata/spearfish57/PERMANENT/cellhd/elevation.10m' not recognised as a supported file format.

GDALOpen failed - 4
`/home/hamish/grassdata/spearfish57/PERMANENT/cellhd/elevation.10m' not recognised as a supported file format.

The GDAL-GRASS plugin is installed from the DebianGIS libgdal1-grass
package.

G:user1 > locate gdal_GRASS.so
/usr/lib/gdal_GRASS.so

G:user1 > gdalinfo --formats | grep -i GRASS
G:user1 >

So for some reason GDAL isn't seeing the plugin.

Same error in QGIS using all the latest debian+debianGIS packages when
loading a GRASS raster. GRASS vectors (e.g. bugsites) works fine.

libgdal1-grass Version: 1.2.5-0.dgis.unstable.2
libgdal1 Version: 1.2.6-1
grass Version: 6.0.0-1
qgis-plugin-grass Version: 0.6.0-2.dgis.unstable.1

?
Hamish

On Wed, Jun 01, 2005 at 01:11:50PM +1200, Hamish wrote:

> > On Fri, May 27, 2005 at 07:07:06PM +1200, Hamish wrote:
> > > r.out.gdal - broken with quoting problem.
> > > (help?)
> >
> > Is it possible that this problem was introduced when
> > making 'Krovak' et al. functional? For a while r.out.gdal
> > worked quite well.
>
> OK, I think I fixed it (in 6.1-CVS).
>
> Please test. If ok, I'll merge into the 6.0.1 release branch.

Seems to fix the quoting problem, but now I get this error:

.. which is unrelated to my fix.

(spearfish57 test dataset on Debian)

Please update to spearfish60 to avoid region problems.

G:user1 > r.out.gdal in=elevation.10m out=elev format=GTiff type=Float32
Writing format: GTiff
Writing type: Float32
ERROR 4: `/home/hamish/grassdata/spearfish57/PERMANENT/cellhd/elevation.10m' not recognised as a supported file format.

GDALOpen failed - 4
`/home/hamish/grassdata/spearfish57/PERMANENT/cellhd/elevation.10m' not recognised as a supported file format.

what does

gdalinfo /home/hamish/grassdata/spearfish57/PERMANENT/cellhd/elevation.10m
say?

The GDAL-GRASS plugin is installed from the DebianGIS libgdal1-grass
package.

G:user1 > locate gdal_GRASS.so
/usr/lib/gdal_GRASS.so

What does

ldd /usr/lib/gdal_GRASS.so

say?

AFAIK the plugin directory must be ../gdalplugins:

grep gdalplugins ./gcore/gdaldrivermanager.cpp
* Search in lib/gdalplugins instead of directly in lib directory.
* the /usr/local/lib/gdalplugins directory, and (if known) the lib/gdalplugins
                                        GDAL_PREFIX "/lib/gdalplugins" );
                                        "/usr/local/lib/gdalplugins" );
                                                   "lib/gdalplugins", NULL ) );

So it won't work if installed as /usr/lib/gdal_GRASS.so
(should be /usr/lib/gdalplugins/gdal_GRASS.so ?)

G:user1 > gdalinfo --formats | grep -i GRASS
G:user1 >

So for some reason GDAL isn't seeing the plugin.

Same error in QGIS using all the latest debian+debianGIS packages when
loading a GRASS raster. GRASS vectors (e.g. bugsites) works fine.

libgdal1-grass Version: 1.2.5-0.dgis.unstable.2
libgdal1 Version: 1.2.6-1
grass Version: 6.0.0-1
qgis-plugin-grass Version: 0.6.0-2.dgis.unstable.1

?
Hamish

Hope this helps

Markus

[Debian]

> G:user1 > r.out.gdal in=elevation.10m out=elev format=GTiff type=Float32
> Writing format: GTiff
> Writing type: Float32
> ERROR 4: `/home/hamish/grassdata/spearfish57/PERMANENT/cellhd/elevation.10m' not recognised as a supported file format.
>
> GDALOpen failed - 4
> `/home/hamish/grassdata/spearfish57/PERMANENT/cellhd/elevation.10m' not recognised as a supported file format.

what does

gdalinfo /home/hamish/grassdata/spearfish57/PERMANENT/cellhd/elevation.10m
say?

The same. Because 'gdalinfo --formats' is missing GRASS.....

> The GDAL-GRASS plugin is installed from the DebianGIS libgdal1-grass
> package.

..

AFAIK the plugin directory must be ../gdalplugins:

grep gdalplugins ./gcore/gdaldrivermanager.cpp
* Search in lib/gdalplugins instead of directly in lib directory.
* the /usr/local/lib/gdalplugins directory, and (if known) the lib/gdalplugins
                                        GDAL_PREFIX "/lib/gdalplugins" );
                                        "/usr/local/lib/gdalplugins" );
                                                   "lib/gdalplugins", NULL ) );

So it won't work if installed as /usr/lib/gdal_GRASS.so
(should be /usr/lib/gdalplugins/gdal_GRASS.so ?)

Ok, that is the problem and gets GRASS to show up in 'gdalinfo --formats':

mkdir /usr/lib/gdalplugins
ln -s /usr/lib/gdal_GRASS.so /usr/lib/gdalplugins/gdal_GRASS.so

If doing this is against Debian policy then the above code in Debian's
GDAL package needs to be patched to use perhaps '/usr/lib/libgdal1' or
just '/usr/lib'. (I'm not sure if it must be /usr/lib/package-name, but
everything else is /usr/lib/dir/ seems to be like that)

** So the libgdal1-grass package is broken with GDAL 1.2.6.

Hope this helps

It does.

I still get a segfault, both with r.out.gdal and loading a GRASS raster into
QGIS, but progress has been made today.

thanks,
Hamish

On Wed, 2005-06-01 at 13:11 +1200, Hamish wrote:

> > On Fri, May 27, 2005 at 07:07:06PM +1200, Hamish wrote:
> > > r.out.gdal - broken with quoting problem.
> > > (help?)
> >
> > Is it possible that this problem was introduced when
> > making 'Krovak' et al. functional? For a while r.out.gdal
> > worked quite well.
>
> OK, I think I fixed it (in 6.1-CVS).
>
> Please test. If ok, I'll merge into the 6.0.1 release branch.

Seems to fix the quoting problem, but now I get this error:

(spearfish57 test dataset on Debian)

G:user1 > r.out.gdal in=elevation.10m out=elev format=GTiff type=Float32
Writing format: GTiff
Writing type: Float32
ERROR 4: `/home/hamish/grassdata/spearfish57/PERMANENT/cellhd/elevation.10m' not recognised as a supported file format.

GDALOpen failed - 4
`/home/hamish/grassdata/spearfish57/PERMANENT/cellhd/elevation.10m' not recognised as a supported file format.

This is fixed in libgdal1-grass 1.2.5-0.dgis.unstable.3. I had uploaded
this a while ago, but didn't realize it had been rejected. I switched to
using an orig.tar.gz file and forgot to force its inclusion in
the .changes file.

It would be cool if debpool sent an email if an upload gets rejected.

Steve

The GDAL-GRASS plugin is installed from the DebianGIS libgdal1-grass
package.

G:user1 > locate gdal_GRASS.so
/usr/lib/gdal_GRASS.so

G:user1 > gdalinfo --formats | grep -i GRASS
G:user1 >

So for some reason GDAL isn't seeing the plugin.

Same error in QGIS using all the latest debian+debianGIS packages when
loading a GRASS raster. GRASS vectors (e.g. bugsites) works fine.

libgdal1-grass Version: 1.2.5-0.dgis.unstable.2
libgdal1 Version: 1.2.6-1
grass Version: 6.0.0-1
qgis-plugin-grass Version: 0.6.0-2.dgis.unstable.1

?
Hamish

_______________________________________________
Pkg-grass-general mailing list
Pkg-grass-general@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-general

> Seems to fix the quoting problem, but now I get this error:
>
> (spearfish57 test dataset on Debian)
>
> G:user1 > r.out.gdal in=elevation.10m out=elev format=GTiff
> type=Float32 Writing format: GTiff
> Writing type: Float32
> ERROR 4:
> `/home/hamish/grassdata/spearfish57/PERMANENT/cellhd/elevation.10m'
> not recognised as a supported file format.
>
> GDALOpen failed - 4
> `/home/hamish/grassdata/spearfish57/PERMANENT/cellhd/elevation.10m'
> not recognised as a supported file format.

This is fixed in libgdal1-grass 1.2.5-0.dgis.unstable.3. I had
uploaded this a while ago, but didn't realize it had been rejected. I
switched to using an orig.tar.gz file and forgot to force its
inclusion in the .changes file.

I can confirm that GRASS's r.out.gdal and QGIS GRASS plugin both now
work out of the box using the Debian+DebianGIS packages.
(i.e. libgdal1-grass 1.2.5-0.dgis.unstable.4)

(re)added a check to r.out.gdal that looks to see if the plugin is
found.

It would be nice if Debian's QGIS packages could assume GISBASE is
/usr/lib/grass so you don't have to be in GRASS to start it. Maybe
search /usr/lib/grass and wherever GRASS's default 'make install' puts
it (/usr/local/grass??) before sending the "Please set GISBASE and
restart to use GRASS plugin" message?

this works for now:

GISBASE=/usr/lib/grass qgis

thanks for the quick response,
Hamish

On Sat, 2005-06-04 at 19:13 +1200, Hamish wrote:

> > Seems to fix the quoting problem, but now I get this error:
> >
> > (spearfish57 test dataset on Debian)
> >
> > G:user1 > r.out.gdal in=elevation.10m out=elev format=GTiff
> > type=Float32 Writing format: GTiff
> > Writing type: Float32
> > ERROR 4:
> > `/home/hamish/grassdata/spearfish57/PERMANENT/cellhd/elevation.10m'
> > not recognised as a supported file format.
> >
> > GDALOpen failed - 4
> > `/home/hamish/grassdata/spearfish57/PERMANENT/cellhd/elevation.10m'
> > not recognised as a supported file format.
>
> This is fixed in libgdal1-grass 1.2.5-0.dgis.unstable.3. I had
> uploaded this a while ago, but didn't realize it had been rejected. I
> switched to using an orig.tar.gz file and forgot to force its
> inclusion in the .changes file.

I can confirm that GRASS's r.out.gdal and QGIS GRASS plugin both now
work out of the box using the Debian+DebianGIS packages.
(i.e. libgdal1-grass 1.2.5-0.dgis.unstable.4)

(re)added a check to r.out.gdal that looks to see if the plugin is
found.

It would be nice if Debian's QGIS packages could assume GISBASE is
/usr/lib/grass so you don't have to be in GRASS to start it. Maybe
search /usr/lib/grass and wherever GRASS's default 'make install' puts
it (/usr/local/grass??) before sending the "Please set GISBASE and
restart to use GRASS plugin" message?

I committed some changes to this effect in CVS a while back. It also
gives you the option to choose the correct directory if grass is not
found where expected. It will be in qgis 0.7, which should be released
Real Soon Now.

Steve

this works for now:

GISBASE=/usr/lib/grass qgis

thanks for the quick response,
Hamish

_______________________________________________
Pkg-grass-general mailing list
Pkg-grass-general@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-general