Python – Drivers of Fiona

fionapython

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?

Best Answer

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.

Related Question