You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gdal2mbtiles BSB_ROOT/14927/14927_1.KAP
Traceback (most recent call last):
File "/usr/local/bin/gdal2mbtiles", line 11, in
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/gdal2mbtiles/main.py", line 309, in main
colors=colors, band=band)
File "/usr/local/lib/python2.7/dist-packages/gdal2mbtiles/helpers.py", line 194, in warp_mbtiles
validate_resolutions(resolution=dataset.GetNativeResolution(),
File "/usr/local/lib/python2.7/dist-packages/gdal2mbtiles/gdal.py", line 497, in GetNativeResolution
dst_ref = self.GetSpatialReference()
File "/usr/local/lib/python2.7/dist-packages/gdal2mbtiles/gdal.py", line 463, in GetSpatialReference
sr = sr.FromEPSG(sr.GetEPSGCode())
File "/usr/local/lib/python2.7/dist-packages/gdal2mbtiles/gdal.py", line 799, in FromEPSG
s.ImportFromEPSG(code)
File "/usr/lib/python2.7/dist-packages/osgeo/osr.py", line 1123, in ImportFromEPSG
return _osr.SpatialReference_ImportFromEPSG(self, *args)
TypeError: in method 'SpatialReference_ImportFromEPSG', argument 2 of type 'int'
The text was updated successfully, but these errors were encountered:
I'm running this with the following and getting an error. I extracted the BSB/KAP files from here: https://www.charts.noaa.gov/RNCs/IL_RNCs.zip
gdal2mbtiles BSB_ROOT/14927/14927_1.KAP
Traceback (most recent call last):
File "/usr/local/bin/gdal2mbtiles", line 11, in
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/gdal2mbtiles/main.py", line 309, in main
colors=colors, band=band)
File "/usr/local/lib/python2.7/dist-packages/gdal2mbtiles/helpers.py", line 194, in warp_mbtiles
validate_resolutions(resolution=dataset.GetNativeResolution(),
File "/usr/local/lib/python2.7/dist-packages/gdal2mbtiles/gdal.py", line 497, in GetNativeResolution
dst_ref = self.GetSpatialReference()
File "/usr/local/lib/python2.7/dist-packages/gdal2mbtiles/gdal.py", line 463, in GetSpatialReference
sr = sr.FromEPSG(sr.GetEPSGCode())
File "/usr/local/lib/python2.7/dist-packages/gdal2mbtiles/gdal.py", line 799, in FromEPSG
s.ImportFromEPSG(code)
File "/usr/lib/python2.7/dist-packages/osgeo/osr.py", line 1123, in ImportFromEPSG
return _osr.SpatialReference_ImportFromEPSG(self, *args)
TypeError: in method 'SpatialReference_ImportFromEPSG', argument 2 of type 'int'
The text was updated successfully, but these errors were encountered: