Fiona: Support GeoJSONSeq

Created on 7 Feb 2019  路  3Comments  路  Source: Toblerity/Fiona

https://gdal.org/drv_geojsonseq.html says a GeoJSONSeq file is:

  • Plain text file with GeoJSON data - identified from the file extension .geojsonl or .geojsons

versions

$ pip freeze | grep -i fiona
Fiona==1.8.4
$ pip freeze | grep -i gdal
GDAL==2.4.0

format support

$ ogrinfo --formats | grep -i json
  GeoJSON -vector- (rw+v): GeoJSON
  GeoJSONSeq -vector- (rw+v): GeoJSON Sequence
  ESRIJSON -vector- (rov): ESRIJSON
  TopoJSON -vector- (rov): TopoJSON

BTW, add a similar --formats option to fio for a bonus 馃挴 points!

In [1]: import fiona                                                                                                                                                                                                             

In [2]: fiona.supported_drivers                                                                                                                                                                                                  
Out[2]: 
{'AeronavFAA': 'r',
 'ARCGEN': 'r',
 'BNA': 'raw',
 'DXF': 'raw',
 'CSV': 'raw',
 'OpenFileGDB': 'r',
 'ESRI Shapefile': 'raw',
 'GeoJSON': 'rw',
 'GPKG': 'rw',
 'GML': 'raw',
 'GPX': 'raw',
 'GPSTrackMaker': 'raw',
 'Idrisi': 'r',
 'MapInfo File': 'raw',
 'DGN': 'raw',
 'PCIDSK': 'r',
 'S57': 'r',
 'SEGY': 'r',
 'SUA': 'r'}
bug

Most helpful comment

Yes, thanks for the reminder. GeoJSON text sequences were pretty much born in this project and a lot of the API is already compatible, but I've overlooked adding the format to the list.

All 3 comments

Yes, thanks for the reminder. GeoJSON text sequences were pretty much born in this project and a lot of the API is already compatible, but I've overlooked adding the format to the list.

BTW, is there a glossary for the acronyms of the supported drivers?

I was just going to comment that the "ESRIJSON" driver is missing as well (it is in the ogrinfo list above); @sgillies if you add that one as well when you update the format list I'd be much obliged!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sgillies picture sgillies  路  3Comments

huevosabio picture huevosabio  路  8Comments

SeanDS picture SeanDS  路  3Comments

culebron picture culebron  路  4Comments

sgillies picture sgillies  路  4Comments