aboutsummaryrefslogtreecommitdiffstats
path: root/import_source.py
diff options
context:
space:
mode:
Diffstat (limited to 'import_source.py')
-rw-r--r--import_source.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/import_source.py b/import_source.py
index 04dea4b..46ec1e9 100644
--- a/import_source.py
+++ b/import_source.py
@@ -449,6 +449,9 @@ class ImportStatus(Enum):
IMPORT_ERROR = 1
IMPORT_NOCHANGE = 255
+ def __str__(self):
+ return self.name.removeprefix('IMPORT_')
+
# pylint: disable-next=dangerous-default-value
def importSources(dso : gdal.Dataset, lyr : ogr.Layer,
sources : dict[str,Any] = {},
@@ -651,6 +654,7 @@ def _importSource2(lyr_dst : ogr.Layer, path : str, args : dict[str,Any],
else:
# TODO Use GetSupportedSRSList() and SetActiveSRS() with GDAL ≥3.7.0
# when possible, see apps/ogr2ogr_lib.cpp
+ # pylint: disable=duplicate-code
logging.debug('Creating transforming from source SRS (%s) to destination SRS (%s)',
srs.GetName(), srs_dst.GetName())
ct = osr.CoordinateTransformation(srs, srs_dst)