Skip to content

Commit cc84c63

Browse files
committed
Don't reset the offset while processing river shapefiles
1 parent 361bf75 commit cc84c63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/readboundaries_shp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,9 @@ def get_wdb_boundaries(resolution,level,rivers=False):
215215
# Levels above 5 are intermittent rivers and irrigation canals.
216216
# They haven't been included in the past, as far as I can tell, so I'm
217217
# not including them here...
218+
offset = 0
218219
for level in range(1, 6):
219220
poly, polymeta = get_wdb_boundaries(resolution,level,rivers=True)
220-
offset = 0
221221
for p,pm in zip(poly,polymeta):
222222
typ = pm[0]; area = pm[1]; south = pm[2]; north = pm[3]; npts = pm[4]
223223
id = pm[5]

0 commit comments

Comments
 (0)