Skip to content

Instantly share code, notes, and snippets.

@kudarisenmon
Created July 12, 2016 11:32
Show Gist options
  • Save kudarisenmon/26edffd8b6a058ed3fbb58bbb2d3fb63 to your computer and use it in GitHub Desktop.
Save kudarisenmon/26edffd8b6a058ed3fbb58bbb2d3fb63 to your computer and use it in GitHub Desktop.
「ERROR 6: EPSG PCS/GCS code 900913 not found in EPSG support files.」を回避するパッチ
--- /usr/bin/gdal2tiles.py 2014-04-05 23:21:17.000000000 +0900
+++ /home/kudarisenmon/bin/gdal2tiles.py 2016-07-09 18:08:34.012957232 +0900
@@ -783,7 +783,7 @@
self.out_srs = osr.SpatialReference()
if self.options.profile == 'mercator':
- self.out_srs.ImportFromEPSG(900913)
+ self.out_srs.ImportFromEPSG(3857)
elif self.options.profile == 'geodetic':
self.out_srs.ImportFromEPSG(4326)
else:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment