[gdal-dev] Failure to read some geojson files
Scott
public at postholer.com
Fri Apr 28 15:22:52 PDT 2023
Yeah, the raw works. It's easiest to grab it with vsi:
ogrinfo
/vsicurl/https://github.com/OSGeo/PROJ/raw/9.1/docs/plot/data/coastline.geojson
On 4/28/23 15:09, Joaquim Manuel Freire Luís via gdal-dev wrote:
> 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-bounces at lists.osgeo.org> On Behalf Of Andrea Giudiceandrea via gdal-dev
> Sent: Friday, April 28, 2023 8:23 PM
> To: gdal-dev at lists.osgeo.org
> Cc: Andrea Giudiceandrea <andreaerdna at 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 at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
More information about the gdal-dev
mailing list