[gdal-dev] Parsing s57 chart with GDAL.

Aryan Landi aryan.landi at trelleborg.com
Thu Jan 19 04:23:34 PST 2023


Hi all,

I am unable to use the GDAL/OGR S57 driver to parse s57 charts. According to the official tutorial at https://gdal.org/tutorials/vector_api_tut.html<https://ddec1-0-en-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fgdal.org%2ftutorials%2fvector%5fapi%5ftut.html&umid=13d2fd67-3eca-462f-840d-c2d3dbebac5c&auth=b6670b9751c5c90ededae23711566d84a7ddb070-2fb38fd794274bb72553fe7321f02a983f2a6600>, I should be able to do something like:


GDALDataset       *poDS;

poDS = (GDALDataset*) GDALOpenEx( “s57Chart.000", GDAL_OF_VECTOR, NULL, NULL, NULL );

However, poDS becomes NULL. On further investigation, invoking the gdalinfo command on a file returns

ERROR 4: `s57Chart.000' not recognized as a supported file format.
gdalinfo failed - unable to open ’s57Chart.000’.

If I use the ogrinfo command, the result is correct.

So it seems that GDALOpenEx is unable to locate the correct driver, which is shipped with GDAL.

Anyone who knows how to parse a s57 chart using GDAL 3.7?

Best regards,

Aryan Mohammadi Landi.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20230119/99a91c33/attachment.htm>


More information about the gdal-dev mailing list