Skip to content

Commit

Permalink
Add missing spatial ref arg
Browse files Browse the repository at this point in the history
  • Loading branch information
bkg committed Aug 12, 2015
1 parent 6f0ecfa commit dc33c46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion greenwich/raster.py
Expand Up @@ -80,7 +80,7 @@ def transform_mask(geom, to_sref):
try:
geom_sref = geom.GetSpatialReference()
except AttributeError:
return transform_mask(Geometry(geom))
return transform_mask(Geometry(geom), to_sref)
if geom_sref is None:
raise Exception('Cannot transform from unknown spatial reference')
# Reproject geom if necessary
Expand Down

0 comments on commit dc33c46

Please sign in to comment.