mdbartos / pysheds

:earth_americas: Simple and fast watershed delineation in python.
GNU General Public License v3.0
707 stars 191 forks source link

Turn grid into .shp file? #87

Closed PierreRCM closed 5 years ago

PierreRCM commented 5 years ago

Hey !

I was wondering if it was possible to turn my grid instance into a shape file ".shp". I'm reading a .tif, and trying to get the contribution of the watershed for a certain x,y position, then save the contribution watershed to a .shp.

Thanks for help :)

mdbartos commented 5 years ago

Hi Pierre,

Sure you can do that. I have a notebook with code here: https://github.com/mdbartos/pysheds/blob/master/recipes/write_shapefile.ipynb

More documentation is here: https://mdbartos.github.io/pysheds/file-io.html

Let me know if you have any questions.

Thanks, MDB

PierreRCM commented 5 years ago

Thanks a lot.