aboutsummaryrefslogtreecommitdiffstats
path: root/webmap-import
diff options
context:
space:
mode:
Diffstat (limited to 'webmap-import')
-rwxr-xr-xwebmap-import5
1 files changed, 4 insertions, 1 deletions
diff --git a/webmap-import b/webmap-import
index 6502c8f..8512e6d 100755
--- a/webmap-import
+++ b/webmap-import
@@ -948,7 +948,10 @@ def importSource2(lyr_dst, path, args={}, basedir=None, extent=None):
raise Exception('Source layer has no SRS')
srs_dst = lyr_dst.GetSpatialRef()
- if srs_dst.IsSame(srs):
+ if srs_dst is None:
+ logging.warning('Destination has no SRS, skipping coordinate transformation')
+ ct = None
+ elif srs_dst.IsSame(srs):
logging.debug('Both source and destination have the same SRS (%s), skipping coordinate transformation',
srs_dst.GetName())
ct = None