From 897c7a4410e0aa2daf2b066b8c9ba05db205d9c3 Mon Sep 17 00:00:00 2001 From: James Douglass Date: Tue, 29 Aug 2023 13:29:05 -0700 Subject: [PATCH] Noting SRS requirements in docstring. RE:#254 --- src/pygeoprocessing/routing/watershed.pyx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/pygeoprocessing/routing/watershed.pyx b/src/pygeoprocessing/routing/watershed.pyx index a76b2e9b..0500c0ce 100644 --- a/src/pygeoprocessing/routing/watershed.pyx +++ b/src/pygeoprocessing/routing/watershed.pyx @@ -628,10 +628,16 @@ def delineate_watersheds_d8( target_layer_name='watersheds'): """Delineate watersheds for a vector of geometries using D8 flow dir. + Note: + The ``d8_flow_dir_raster_path_band`` and ``outflow_vector_path`` files + must have the same spatial reference system. The output watersheds + vector will use this same spatial reference system. + Args: d8_flow_dir_raster_path_band (tuple): A (path, band_id) tuple to a D8 flow direction raster. This raster must be a tiled raster - with block sizes being a power of 2. + with block sizes being a power of 2. The output watersheds vector + will have its spatial reference copied from this raster. outflow_vector_path (str): The path to a vector on disk containing features with valid geometries from which watersheds will be delineated. Only those parts of the geometry that overlap valid