Browse Source

Merge branch 'master' of git+ssh://git.ccss.cz/hsrs/owsproxy

Jachym Cepicky 14 years ago
parent
commit
7b4d88af0d
1 changed files with 3 additions and 0 deletions
  1. 3 0
      OWS.py

+ 3 - 0
OWS.py

@@ -35,6 +35,7 @@ class OWS:
         self.requestUrl = url
         self.requestUrl = url
         if url:
         if url:
             self.url = url
             self.url = url
+            logging.debug("OWS.py::__init__()::url: '%s'" % url)
             self.__getCapabilities()
             self.__getCapabilities()
         if qstring:
         if qstring:
             self.qstring = qstring
             self.qstring = qstring
@@ -57,6 +58,7 @@ class OWS:
         logging.debug("%s initialized"%self.service)
         logging.debug("%s initialized"%self.service)
 
 
     def __getCapabilities(self):
     def __getCapabilities(self):
+        logging.debug("OWS.py::__getCapabilities::self.url: '%s'" % self.url)
         self.parsedUrl = urlparse.urlparse(self.url)
         self.parsedUrl = urlparse.urlparse(self.url)
         if self.service == "WFS":
         if self.service == "WFS":
             from owslib.wfs import WebFeatureService
             from owslib.wfs import WebFeatureService
@@ -308,6 +310,7 @@ def getService():
 
 
         if params["owsService"][0].lower() == "wfs":
         if params["owsService"][0].lower() == "wfs":
             from wfs import WFS
             from wfs import WFS
+            logging.debug("OWS.py::getService()::owsUrl: '%s'" % owsUrl)
             return WFS(owsUrl,qstring)
             return WFS(owsUrl,qstring)
         elif params["owsService"][0].lower() == "wcs":
         elif params["owsService"][0].lower() == "wcs":
             from wcs import WCS
             from wcs import WCS