diff --git a/geopetl/oracle_sde.py b/geopetl/oracle_sde.py index afd66b4..888e03a 100644 --- a/geopetl/oracle_sde.py +++ b/geopetl/oracle_sde.py @@ -627,9 +627,10 @@ def _get_srid(self): # 2272: NAD 1983 StatePlane Pennsylvania South FIPS 3702 (US Feet) # 3857: WGS 1984 Web Mercator (auxiliary sphere) if srid: - bad_srid_map = {300001: 2272, 300003: 2272, 300046: 2272, 300006: 2272, 300010: 2272, 300008: 2272, 300004: 2272, 300007: 2272, 300067: 2272, 300100: 2272, 300101: 2272, 300084: 3857, 300073: 4326, 300042: 4326, 300090: 4269, 300091: 4326, 300092: 4326, 300042: 4326, 300086: 6565, 300087: 6565 } + bad_srid_map = {300103: 4326, 300001: 2272, 300003: 2272, 300046: 2272, 300006: 2272, 300010: 2272, 300008: 2272, 300004: 2272, 300007: 2272, 300067: 2272, 300100: 2272, 300101: 2272, 300084: 3857, 300073: 4326, 300042: 4326, 300090: 4269, 300091: 4326, 300092: 4326, 300042: 4326, 300086: 6565, 300087: 6565 } if srid in bad_srid_map.keys(): # Reassign our bad SRID to a typical one. + print('Bad SRID detected, reassigning {srid} to {bad_srid_map[srid]}') srid = bad_srid_map[srid] # If it's still in the 300,000 range, default to 2272. if str(srid)[:4] == '3000':