[Gdal-dev] problem with new pyton-gdal

Frank Warmerdam warmerdam at pobox.com
Tue Feb 10 10:52:03 EST 2004


Fulko van Westrenen wrote:
> IndexError: No layer BOYLAT on datasource
> 
...
> GetLayerCount() reports 4 layers, there should be 57(?)
> 
> Downgrading is not an option. Does anyone have an idea what is wrong?

Fulko,

The problem is that the S-57 reader can't find the S-57 .csv files such as
s57objectclasses.csv.   Normally these would be installed in
/usr/local/share/gdal, are they on your system?

In any event, you can likely get things working by setting the GDAL_DATA
environment variable to point to the directory with the .csv files in it.
When they aren't found the S-57 driver just makes layers from the object
based on their geometry class instead of by object class.

Best regards,

-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the Gdal-dev mailing list