Skip to content

Commit

Permalink
Merge pull request #30 from DanielJMaher/master
Browse files Browse the repository at this point in the history
Bounding Box for swe_sos, fixes #27
  • Loading branch information
daf committed May 20, 2014
2 parents 5d05444 + 912045f commit 1e7f5fe
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pyoos/collectors/ioos/swe_sos.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,8 @@ def metadata(self, output_format=None, feature_name_callback=None, **kwargs):
def setup_params(self, **kwargs):
params = kwargs

# TODO: BBOX needs to be implemented as an OGC Filter.
# This page has a good example: http://opendap.co-ops.nos.noaa.gov/ioos-dif-sos/index.jsp
# Click on "Collection" in the POST example to see what it should look like.
# Requires changing from GET to POST...
if self.bbox is not None:
print "BBOX requests for IOOS SWE SOS services are not yet implemented"
params["featureOfInterest"] = "BBOX:%s,%s,%s,%s" %(self.bbox[0],self.bbox[1],self.bbox[2],self.bbox[3])

if self.start_time is not None:
params["eventTime"] = self.start_time.strftime('%Y-%m-%dT%H:%M:%SZ')
Expand Down

1 comment on commit 1e7f5fe

@emiliom
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very cool! Looking forward to testing it.

Please sign in to comment.