Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KAP Files Supported? #24

Open
mludlum opened this issue Aug 12, 2018 · 0 comments
Open

KAP Files Supported? #24

mludlum opened this issue Aug 12, 2018 · 0 comments

Comments

@mludlum
Copy link

mludlum commented Aug 12, 2018

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant