Skip to content

Commit

Permalink
make sos2 consistent with sos1
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Apr 16, 2015
1 parent 3dca1dc commit d23f930
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion owslib/swe/observation/sos100.py
Expand Up @@ -15,7 +15,7 @@

def get_namespaces():
n = Namespaces()
ns = n.get_namespaces(["ogc","sml","gml","sos","swe","xlink","sa"])
ns = n.get_namespaces(["ogc","sa","sml","gml","sos","swe","xlink"])
ns["ows"] = n.get_namespace("ows110")
return ns
namespaces = get_namespaces()
Expand Down
5 changes: 4 additions & 1 deletion owslib/swe/observation/sos200.py
Expand Up @@ -15,7 +15,7 @@

def get_namespaces():
n = Namespaces()
ns = n.get_namespaces(["fes","ogc","om","gml32","sml","swe20","swes","xlink"])
ns = n.get_namespaces(["fes","ogc","om","gml32","sa","sml","swe20","swes","xlink"])
ns["ows"] = n.get_namespace("ows110")
ns["sos"] = n.get_namespace("sos20")
return ns
Expand Down Expand Up @@ -182,6 +182,9 @@ def get_observation(self, responseFormat=None,
if 'timeout' in kwargs:
url_kwargs['timeout'] = kwargs.pop('timeout') # Client specified timeout value

if procedure is not None:
request['procedure'] = procedure

if kwargs:
for kw in kwargs:
request[kw]=kwargs[kw]
Expand Down

0 comments on commit d23f930

Please sign in to comment.