What drivers does the python package fiona have? When I check the manual it says [...] and the possible formats are enumerated in the fiona.drivers list. However, when I type in python

from fiona import drivers
print drivers
> <function drivers at 0x108763050>

How can I look "into" that?


you can get a list of the drivers with

>>> import fiona
>>> fiona.supported_drivers
{'ESRI Shapefile': 'raw', 'ARCGEN': 'r', 'PCIDSK': 'r', 'SUA': 'r', 
'DGN': 'raw', 'SEGY': 'r', 'MapInfo File': 'raw', 'GeoJSON': 'rw', 'PDS': 'r', 
'FileGDB': 'raw', 'GPX': 'raw', 'DXF': 'raw', 'GMT': 'raw', 'Idrisi': 'r', 
'GPKG': 'rw', 'OpenFileGDB': 'r', 'BNA': 'raw', 'AeronavFAA': 'r', 
'GPSTrackMaker': 'raw'}

The function is being introduced in the module's init.py file

please also see drvsupport.py for some notes from the authors that you may or may not find useful.

  • Do any of these drivers work for reading a spatialite file? – grego Oct 1 '19 at 20:43
  • 1
    Unfortunately no as far as I can tell. You might want to check geoalchemy2 – nickves Oct 1 '19 at 21:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.