GRASS, GDAL/OGR working under Ubuntu

23.02.2009 – 4:27 pm

It took me almost half a year, but finally, it is possible to import vector files into GRASS using v.in.ogr again! Several people reported, that it is working.

I compiled gdal-1.6.0 as well, so you can enjoy this fresh library for your work. Let me know, in case, some problems did remain.

Share Button
  1. One Response to “GRASS, GDAL/OGR working under Ubuntu”

  2. I think I found a bug in your python-gdal package for Ubuntu Intrepid (1.6.0-1):

    >>> import osgeo.gdal as gdal
    >>> ds = gdal.Open(‘anyraster’)
    >>> data = ds.readAsArray(ds)
    Traceback (most recent call last):
    File “”, line 1, in
    File “/usr/lib/python2.5/site-packages/osgeo/gdal.py”, line 507, in
    __getattr__ = lambda self, name: _swig_getattr(self, Dataset, name)
    File “/usr/lib/python2.5/site-packages/osgeo/gdal.py”, line 34, in _swig_getattr
    raise AttributeError,name
    AttributeError: readAsArray
    >>> data = ds.ReadAsArray(ds)
    Traceback (most recent call last):
    File “”, line 1, in
    File “/usr/lib/python2.5/site-packages/osgeo/gdal.py”, line 602, in ReadAsArray
    import gdalnumeric
    File “/usr/lib/python2.5/site-packages/osgeo/gdalnumeric.py”, line 1, in
    from gdal_array import *
    File “/usr/lib/python2.5/site-packages/osgeo/gdal_array.py”, line 7, in
    import _gdal_array
    ImportError: dynamic module does not define init function (init_gdal_array)

    This code works with version 1.5.4-2~intrepid3 –from qgis ppa, I guess.

    Maybe a python-gdal bug (or a mesh in my system) but I thought I should contact the packager first. Feel free to contact me .

    By Goyo on Mar 7, 2009

Post a Comment