Skip to content

Commit

Permalink
Fixing missing SRID override for registration command.
Browse files Browse the repository at this point in the history
  • Loading branch information
constantinius committed Jan 13, 2015
1 parent 12b8145 commit 10c226a
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,8 @@ def handle_with_cache(self, cache, *args, **kwargs):

def _get_overrides(self, identifier=None, size=None, extent=None,
begin_time=None, end_time=None, footprint=None,
projection=None, coverage_type=None, **kwargs):
projection=None, coverage_type=None, srid=None,
**kwargs):

overrides = {}

Expand Down Expand Up @@ -439,6 +440,12 @@ def _get_overrides(self, identifier=None, size=None, extent=None,
except ValueError:
overrides["projection"] = projection

elif srid:
try:
overrides["projection"] = int(srid)
except ValueError:
pass

return overrides

def _get_location_chain(self, items):
Expand Down

0 comments on commit 10c226a

Please sign in to comment.