[gdal-dev] Failure to read some geojson files

Andrea Giudiceandrea andreaerdna at libero.it
Fri Apr 28 12:23:00 PDT 2023


Il 28/04/2023 19:08, Joaquim Manuel Freire Luís via gdal-dev ha scritto:
> This is with OSGeo4W GDAL but I get the same with my own build. But I 
> can read some other geojson files. Why?
> 
> ogrinfo 
> https://github.com/OSGeo/PROJ/blob/9.1/docs/plot/data/coastline.geojson 
> <https://github.com/OSGeo/PROJ/blob/9.1/docs/plot/data/coastline.geojson>
> 
> ERROR 4: Failed to read TopoJSON data

Hi Joaquim,
the URL 
https://github.com/OSGeo/PROJ/blob/9.1/docs/plot/data/coastline.geojson 
does not point to the actual coastline.geojson file. It points to a 
GitHub HTML page.

You need to use the URL 
https://github.com/OSGeo/PROJ/raw/9.1/docs/plot/data/coastline.geojson 
instead.

Best regards.

Andrea Giudiceandrea


More information about the gdal-dev mailing list