Created
September 26, 2013 07:41
-
-
Save sofferm/6710988 to your computer and use it in GitHub Desktop.
This patch fixes the problem of connection errors in the Esri ArcGIS "Validate Cache Tool" of Tom Brenneman. The original tool can be found here:
http://resources.arcgis.com/gallery/file/enterprise-gis/details?entryID=632A4F2B-1422-2418-34C2-3BC3E9F063ED
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
response = conn.getresponse() # line 244 in original findBadTiles.py | |
except: | |
# re-open connection | |
conn = httplib.HTTPConnection(parsedUrl.netloc) | |
conn.request("GET", partTileURL, headers=txtheaders) | |
response = conn.getresponse() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To apply the patch, find line 244 in the original findBadTiles.py script. The line should be the same as line 2 in this gist. Replace line 244 with the lines of this gist and be sure that the indentation is correct after you pasted these lines. Connection errors should be gone.