Thanks Andrea, I thought that could be the case and downloaded the file with a right-click-save-as and what I got seemed to be a valid json file and clearly not an html file. And that one doesn't work either. It does when I select to download as "raw".
Joaquim -----Original Message----- From: gdal-dev <gdal-dev-boun...@lists.osgeo.org> On Behalf Of Andrea Giudiceandrea via gdal-dev Sent: Friday, April 28, 2023 8:23 PM To: gdal-dev@lists.osgeo.org Cc: Andrea Giudiceandrea <andreaer...@libero.it> Subject: Re: [gdal-dev] Failure to read some geojson files 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.geojso > n > <https://github.com/OSGeo/PROJ/blob/9.1/docs/plot/data/coastline.geojs > on> > > 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 _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev