aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2021-11-22 12:58:00 +0100
committerEven Rouault <even.rouault@spatialys.com>2021-11-22 12:58:00 +0100
commit7ebe82026f95f61ae1e7fb81e739ebdb139b2387 (patch)
treebaa2e21fcd72da7c061e53561bf7e1fed57881fa /scripts
parenta46e315eefa9e75b150a349270e718df8027c3db (diff)
downloadPROJ-7ebe82026f95f61ae1e7fb81e739ebdb139b2387.tar.gz
PROJ-7ebe82026f95f61ae1e7fb81e739ebdb139b2387.zip
build_db_from_esri.py: fix pyflakes3 warning, and make it python 3.8 compatible
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build_db_from_esri.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/build_db_from_esri.py b/scripts/build_db_from_esri.py
index 1c08838e..d6ec1321 100755
--- a/scripts/build_db_from_esri.py
+++ b/scripts/build_db_from_esri.py
@@ -382,7 +382,7 @@ def import_prime_meridian():
value = match.group(2)
angle_unit = match.group(3)
unit_size = float(match.group(4))
- assert angle_unit == 'Degree', 'Unhandled prime meridian unit: {}'.format(length_unit)
+ assert angle_unit == 'Degree', 'Unhandled prime meridian unit: {}'.format(angle_unit)
assert unit_size == 0.0174532925199433, 'Unhandled prime meridian unit size: {}'.format(unit_size)
deprecated = 1 if row[idx_deprecated] == 'yes' else 0
@@ -994,7 +994,7 @@ EPSG_CONVERSION_PARAM_NAMES = {
def insert_conversion_sql(esri_code: str, esri_name: str, epsg_code: str, epsg_name: str,
- params: dict[str, ParameterValue],
+ params: Dict[str, ParameterValue],
param_mapping: Dict[int, str],
deprecated: bool = False) -> str:
"""