[gdal-dev] Why gdal_rasterize fails with MBTiles output?
Rahkonen Jukka (MML)
jukka.rahkonen at maanmittauslaitos.fi
Mon Dec 18 02:53:51 PST 2017
Hi,
Captured from gis.stackexchange https://gis.stackexchange.com/questions/264899/create-mbtiles-from-geojson-in-raster-format
I made some test data in EPSG:3857 and while GeoTIFF output works fine with GDAL 2.3dev
gdal_rasterize -ot Byte -burn 255 -burn 0 -burn 0 -ts 4950 4950
-of GTiff points_3857.json points_3857.tif -co tiled=yes
0...10...20...30...40...50...60...70...80...90...100 - done.
the same command with MBTiles outpur gives me the same error than in the question
gdal_rasterize -ot Byte -burn 255 -burn 0 -burn 0 -ts 4950 4950
-of MBTiles points_3857.json points_3857.mbtiles
ERROR 6: Could not find an appropriate zoom level that matches raster pixel size
0...10...20...30...40...50...60...70...80...90...100 - done.
ERROR 6: IWriteBlock() not supported if georeferencing not set
ERROR 6: IWriteBlock() not supported if georeferencing not set
ERROR 6: IWriteBlock() not supported if georeferencing not set
So it seems that having geojson as input is not the issue, but having MBTiles as output.
-Jukka Rahkonen-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20171218/5b06b5d9/attachment-0001.html>
More information about the gdal-dev
mailing list