[gdal-dev] Parsing s57 chart with GDAL.
Even Rouault
even.rouault at spatialys.com
Thu Jan 19 04:30:39 PST 2023
Aryan,
You likely need to register the drivers with GDALAllRegister():
https://gdal.org/tutorials/vector_api_tut.html#reading-from-ogr
Even
Le 19/01/2023 à 13:23, Aryan Landi a écrit :
> 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.
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
--
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20230119/81e41690/attachment-0001.htm>
More information about the gdal-dev
mailing list