mhweber / ICRW8_Geospatial_Workshop

Working with Geospatial Hydrologic Data for Watershed Analyses in R and Python Using Web Services
https://mhweber.github.io/ICRW8_Geospatial_Workshop/Slides.html
11 stars 3 forks source link

Introduce pyogrio in addition to fiona #14

Closed cheginit closed 1 year ago

cheginit commented 1 year ago

In the slides notebook, I highly recommend introducing PyOGRIO package as an alternative library to fiona for reading GDAL supported data. You can also pass engine=pyogrio to geopandas.read_file to take advantage of this library. This allows to pass use_arrow=True among some other kwargs to this function that can further speed up reading large files such as NHDPlus. You can mention that fiona supports a wider range of GDAL supported files but is slow for large datasets.

Moreover, I recommend at least mentioning (Geo)Parquet and Feather formats as an alternative to more mature geospatial formats.

cheginit commented 1 year ago

I use pyogrio in pynhd.nhdplus_l48 function. You can check it out here.

mhweber commented 1 year ago

Thanks @cheginit , just finished adding pyogrio to slides notebook (and to environment) and will push update shortly