I am trying to use GDAL 2.2.2 and the gdal_polygonize
command to convert a TIF into vector MBtiles from the link:
https://github.com/geostarters/gdal_snipets
I run the following command on the tif as in the link:
gdal_polygonize.py -8 -nomask -b 1 input_4326.tif \
-f "MBTiles" output.mbtiles \
-lco NAME=nameoutput \
-dsco WRITE_BOUNDS=YES \
-dsco MAX_FEATURES=20000000 \
-dsco MAXZOOM=15
However I get the following ERROR:
Traceback (most recent call last): File "/usr/bin/gdal_polygonize.py", line 180, in dst_ds = drv.CreateDataSource( dst_filename ) AttributeError: 'NoneType' object has no attribute 'CreateDataSource'
It seems to me that I do not have the GDAL MBTiles Driver 'installed':
https://gdal.org/drivers/raster/mbtiles.html
I installed gdal onto Uubntu 16.04 via the terminal.
Is there anything I can do to get this working?
ogrinfo --format mbtiles
. – user30184 Jan 26 at 19:14