aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-03-25 15:54:28 +0000
committerEven Rouault <even.rouault@spatialys.com>2019-03-25 15:54:28 +0000
commitb3e82bdb2080295c252b6e40e39e2186f60c7608 (patch)
treeb34421a59a2bb76375ceb8c4007b0065fc515516 /scripts
parentc22a0390071e6cc3375714e2cd604756167bc7c9 (diff)
downloadPROJ-b3e82bdb2080295c252b6e40e39e2186f60c7608.tar.gz
PROJ-b3e82bdb2080295c252b6e40e39e2186f60c7608.zip
Database: update to IGNF v3.0.3
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build_db_create_ignf_from_xml.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/build_db_create_ignf_from_xml.py b/scripts/build_db_create_ignf_from_xml.py
index b70952bd..97ff0c74 100755
--- a/scripts/build_db_create_ignf_from_xml.py
+++ b/scripts/build_db_create_ignf_from_xml.py
@@ -501,9 +501,10 @@ for node in root.iterfind('.//Transformation'):
print('Fixing URL of ' + filename + ' to ' + mapGridURLs[filename])
filename = mapGridURLs[filename]
- r = requests.head(filename, allow_redirects = True )
- if r.status_code not in (200, 302):
- assert False, (r.status_code, id, name, filename)
+ if not filename.endswith('RAF09.mnt'): # no longer available
+ r = requests.head(filename, allow_redirects = True )
+ if r.status_code not in (200, 302):
+ assert False, (r.status_code, id, name, filename)
setVerticalGrids.add(filename)