Skip to content

Instantly share code, notes, and snippets.

@sofferm
Created September 26, 2013 07:41
Show Gist options
  • Save sofferm/6710988 to your computer and use it in GitHub Desktop.
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
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()
@sofferm
Copy link
Author

sofferm commented Sep 26, 2013

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment