[gdal-dev] read S57 files from OGR

Frank Warmerdam warmerdam at pobox.com
Thu Sep 1 11:42:40 EDT 2011


On 11-09-01 02:45 AM, andval wrote:
> Hi! Sorry for my English. I trying read s-57 files by OGR. But its parsing
> into geometry layers (points, lines e.t.c.) instead objects (DEPARE, COALNE
> e.t.c.). CSV files drop into *.exe directory.

Andval,

This indicates that the S57 CSV files with the object catalog are not being
found.  They are normally in the "GDAL Data" directory, often
/usr/local/share/gdal/ on linux, and at the gdal/data directory within the
source distribution.  You can set the GDAL_DATA or perhaps S57_CSV environment
variables to point to the directory containing the files before running.

If you are writing your own program or script you might instead use the
CPLSetConfigOption() function.  Some more details on setting configuration
options is available at:

   http://trac.osgeo.org/gdal/wiki/ConfigOptions

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/warmerda
and watch the world go round - Rush    | Geospatial Software Developer



More information about the gdal-dev mailing list