forked from geopython/OWSLib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove root loggers (geopython#923) (geopython#930)
- Loading branch information
1 parent
13b0050
commit 44e3ece
Showing
19 changed files
with
170 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,21 +3,23 @@ | |
# Copyright (c) 2004, 2006 Sean C. Gillies | ||
# Copyright (c) 2007 STFC <http://www.stfc.ac.uk> | ||
# | ||
# Authors : | ||
# Authors: | ||
# Dominic Lowe <[email protected]> | ||
# | ||
# Contact email: [email protected] | ||
# ============================================================================= | ||
|
||
from owslib.coverage.wcsBase import WCSBase, WCSCapabilitiesReader, ServiceException | ||
from urllib.parse import urlencode | ||
from owslib.util import openURL, testXMLValue | ||
from owslib.etree import etree | ||
from owslib.crs import Crs | ||
import os | ||
import errno | ||
import logging | ||
from urllib.parse import urlencode | ||
|
||
from owslib.coverage.wcsBase import WCSBase, WCSCapabilitiesReader, ServiceException | ||
from owslib.crs import Crs | ||
from owslib.etree import etree | ||
from owslib.util import makeString, openURL, testXMLValue | ||
|
||
from owslib.util import log, makeString | ||
LOGGER = logging.getLogger(__name__) | ||
|
||
|
||
# function to save writing out WCS namespace in full each time | ||
|
@@ -108,7 +110,7 @@ def getCoverage(self, identifier=None, bbox=None, time=None, format=None, crs=No | |
""" | ||
msg = 'WCS 1.0.0 DEBUG: Parameters passed to GetCoverage: identifier={}, bbox={}, time={}, format={}, crs={}, width={}, height={}, resx={}, resy={}, resz={}, parameter={}, method={}, other_arguments={}' # noqa | ||
log.debug(msg.format( | ||
LOGGER.debug(msg.format( | ||
identifier, bbox, time, format, crs, width, height, resx, resy, resz, parameter, method, str(kwargs))) | ||
|
||
try: | ||
|
@@ -117,7 +119,7 @@ def getCoverage(self, identifier=None, bbox=None, time=None, format=None, crs=No | |
except StopIteration: | ||
base_url = self.url | ||
|
||
log.debug('WCS 1.0.0 DEBUG: base url of server: %s' % base_url) | ||
LOGGER.debug('WCS 1.0.0 DEBUG: base url of server: %s' % base_url) | ||
|
||
# process kwargs | ||
request = {'version': self.version, 'request': 'GetCoverage', 'service': 'WCS'} | ||
|
@@ -151,7 +153,7 @@ def getCoverage(self, identifier=None, bbox=None, time=None, format=None, crs=No | |
|
||
# encode and request | ||
data = urlencode(request) | ||
log.debug('WCS 1.0.0 DEBUG: Second part of URL: %s' % data) | ||
LOGGER.debug('WCS 1.0.0 DEBUG: Second part of URL: %s' % data) | ||
|
||
u = openURL(base_url, data, method, self.cookies, auth=self.auth, timeout=timeout, headers=self.headers) | ||
return u | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,26 +3,26 @@ | |
# Copyright (c) 2004, 2006 Sean C. Gillies | ||
# Copyright (c) 2007 STFC <http://www.stfc.ac.uk> | ||
# | ||
# Authors : | ||
# Authors: | ||
# Dominic Lowe <[email protected]> | ||
# | ||
# Contact email: [email protected] | ||
# ============================================================================= | ||
|
||
# NOTE: Does not conform to new interfaces yet ################# | ||
|
||
from .wcsBase import WCSBase, WCSCapabilitiesReader, ServiceException | ||
from owslib.util import openURL, testXMLValue | ||
import errno | ||
import logging | ||
import os | ||
from urllib.parse import urlencode | ||
|
||
from .wcsBase import WCSBase, WCSCapabilitiesReader, ServiceException | ||
from owslib.etree import etree | ||
import os | ||
import errno | ||
from owslib.coverage import wcsdecoder | ||
from owslib.crs import Crs | ||
from owslib.util import openURL, testXMLValue | ||
|
||
import logging | ||
from owslib.util import log | ||
|
||
LOGGER = logging.getLogger(__name__) | ||
|
||
class Namespaces_1_1_0(): | ||
|
||
|
@@ -157,7 +157,7 @@ def getCoverage(self, identifier=None, bbox=None, time=None, format=None, store= | |
if store = false, returns a multipart mime | ||
""" | ||
msg = 'WCS 1.1.0 DEBUG: Parameters passed to GetCoverage: identifier={}, bbox={}, time={}, format={}, rangesubset={}, gridbaseCRS={}, gridtype={}, gridCS={}, gridorigin={}, gridoffsets={}, method={}, other_arguments={}' # noqa | ||
log.debug(msg.format( | ||
LOGGER.debug(msg.format( | ||
identifier, bbox, time, format, rangesubset, gridbaseCRS, gridtype, gridCS, | ||
gridorigin, gridoffsets, method, str(kwargs))) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,33 +3,34 @@ | |
# Copyright (c) 2004, 2006 Sean C. Gillies | ||
# Copyright (c) 2007 STFC <http://www.stfc.ac.uk> | ||
# | ||
# Authors : | ||
# Authors: | ||
# Oliver Clements <[email protected]> | ||
# | ||
# Contact email: [email protected] | ||
# ============================================================================= | ||
|
||
# !!! NOTE: Does not conform to new interfaces yet ################# | ||
|
||
from datetime import timedelta | ||
import errno | ||
import logging | ||
import os | ||
from urllib.parse import urlencode | ||
|
||
import dateutil.parser as parser | ||
|
||
from owslib.coverage.wcsBase import WCSBase, WCSCapabilitiesReader, ServiceException | ||
from owslib.crs import Crs | ||
from owslib.etree import etree | ||
from owslib.ows import ( | ||
OwsCommon, | ||
ServiceIdentification, | ||
ServiceProvider, | ||
OperationsMetadata, | ||
OperationsMetadata | ||
) | ||
from owslib.util import datetime_from_ansi, datetime_from_iso, openURL, param_list_to_url_string, testXMLValue | ||
|
||
from urllib.parse import urlencode | ||
from owslib.util import openURL, testXMLValue | ||
from owslib.etree import etree | ||
from owslib.crs import Crs | ||
import os | ||
import errno | ||
import dateutil.parser as parser | ||
from datetime import timedelta | ||
import logging | ||
from owslib.util import log, datetime_from_ansi, datetime_from_iso, param_list_to_url_string | ||
LOGGER = logging.getLogger(__name__) | ||
|
||
|
||
# function to save writing out WCS namespace in full each time | ||
|
@@ -153,7 +154,7 @@ def getCoverage( | |
""" | ||
log.debug( | ||
LOGGER.debug( | ||
"WCS 2.0.0 DEBUG: Parameters passed to GetCoverage: identifier=%s, bbox=%s, time=%s, format=%s, crs=%s, width=%s, height=%s, resx=%s, resy=%s, resz=%s, parameter=%s, method=%s, other_arguments=%s" # noqa | ||
% ( | ||
identifier, | ||
|
@@ -183,7 +184,7 @@ def getCoverage( | |
except StopIteration: | ||
base_url = self.url | ||
|
||
log.debug("WCS 2.0.0 DEBUG: base url of server: %s" % base_url) | ||
LOGGER.debug("WCS 2.0.0 DEBUG: base url of server: %s" % base_url) | ||
|
||
request = {"version": self.version, "request": "GetCoverage", "service": "WCS"} | ||
assert len(identifier) > 0 | ||
|
@@ -207,12 +208,12 @@ def getCoverage( | |
if subsets: | ||
data += param_list_to_url_string(subsets, 'subset') | ||
if resolutions: | ||
log.debug('Adding vendor-specific RESOLUTION parameter.') | ||
LOGGER.debug('Adding vendor-specific RESOLUTION parameter.') | ||
data += param_list_to_url_string(resolutions, 'resolution') | ||
if sizes: | ||
log.debug('Adding vendor-specific SIZE parameter.') | ||
LOGGER.debug('Adding vendor-specific SIZE parameter.') | ||
data += param_list_to_url_string(sizes, 'size') | ||
log.debug("WCS 2.0.0 DEBUG: Second part of URL: %s" % data) | ||
LOGGER.debug("WCS 2.0.0 DEBUG: Second part of URL: %s" % data) | ||
|
||
u = openURL(base_url, data, method, self.cookies, auth=self.auth, timeout=timeout, headers=self.headers) | ||
return u | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,33 +3,32 @@ | |
# Copyright (c) 2004, 2006 Sean C. Gillies | ||
# Copyright (c) 2007 STFC <http://www.stfc.ac.uk> | ||
# | ||
# Authors : | ||
# Authors: | ||
# Oliver Clements <[email protected]> | ||
# | ||
# Contact email: [email protected] | ||
# ============================================================================= | ||
|
||
# !!! NOTE: Does not conform to new interfaces yet ################# | ||
|
||
import os | ||
from datetime import timedelta | ||
import errno | ||
import logging | ||
from urllib.parse import urlencode | ||
|
||
import dateutil.parser as parser | ||
|
||
from owslib.coverage.wcsBase import WCSBase, WCSCapabilitiesReader, ServiceException | ||
from owslib.etree import etree | ||
from owslib.crs import Crs | ||
from owslib.ows import ( | ||
OwsCommon, | ||
ServiceIdentification, | ||
ServiceProvider, | ||
OperationsMetadata, | ||
OperationsMetadata | ||
) | ||
|
||
from urllib.parse import urlencode | ||
from owslib.util import openURL, testXMLValue | ||
from owslib.etree import etree | ||
from owslib.crs import Crs | ||
import os | ||
import errno | ||
import dateutil.parser as parser | ||
from datetime import timedelta | ||
import logging | ||
from owslib.util import log, datetime_from_ansi, datetime_from_iso, param_list_to_url_string | ||
from owslib.util import datetime_from_ansi, datetime_from_iso, openURL, param_list_to_url_string, testXMLValue | ||
|
||
|
||
# function to save writing out WCS namespace in full each time | ||
|
@@ -153,7 +152,7 @@ def getCoverage( | |
""" | ||
log.debug( | ||
LOGGER.debug( | ||
"WCS 2.0.1 DEBUG: Parameters passed to GetCoverage: identifier=%s, bbox=%s, time=%s, format=%s, crs=%s, width=%s, height=%s, resx=%s, resy=%s, resz=%s, parameter=%s, method=%s, other_arguments=%s" # noqa | ||
% ( | ||
identifier, | ||
|
@@ -183,7 +182,7 @@ def getCoverage( | |
except StopIteration: | ||
base_url = self.url | ||
|
||
log.debug("WCS 2.0.1 DEBUG: base url of server: %s" % base_url) | ||
LOGGER.debug("WCS 2.0.1 DEBUG: base url of server: %s" % base_url) | ||
|
||
request = {"version": self.version, "request": "GetCoverage", "service": "WCS"} | ||
assert len(identifier) > 0 | ||
|
@@ -207,13 +206,13 @@ def getCoverage( | |
if subsets: | ||
data += param_list_to_url_string(subsets, 'subset') | ||
if resolutions: | ||
log.debug('Adding vendor-specific RESOLUTION parameter.') | ||
LOGGER.debug('Adding vendor-specific RESOLUTION parameter.') | ||
data += param_list_to_url_string(resolutions, 'resolution') | ||
if sizes: | ||
log.debug('Adding vendor-specific SIZE parameter.') | ||
LOGGER.debug('Adding vendor-specific SIZE parameter.') | ||
data += param_list_to_url_string(sizes, 'size') | ||
|
||
log.debug("WCS 2.0.1 DEBUG: Second part of URL: %s" % data) | ||
LOGGER.debug("WCS 2.0.1 DEBUG: Second part of URL: %s" % data) | ||
|
||
u = openURL(base_url, data, method, self.cookies, auth=self.auth, timeout=timeout, headers=self.headers) | ||
return u | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.