{"id":950,"date":"2017-11-27T20:28:37","date_gmt":"2017-11-27T19:28:37","guid":{"rendered":"http:\/\/hannes.enjoys.it\/blog\/?p=950"},"modified":"2017-11-27T20:28:37","modified_gmt":"2017-11-27T19:28:37","slug":"zxy-ext-tiles-to-mbtilesgpkg","status":"publish","type":"post","link":"https:\/\/hannes.enjoys.it\/blog\/2017\/11\/zxy-ext-tiles-to-mbtilesgpkg\/","title":{"rendered":"z\/x\/y.ext tiles to mbtiles\/gpkg"},"content":{"rendered":"<p>I just had some trouble converting a set of tiles I scraped into a nice package. I tried both mb-util and <a href=\"https:\/\/github.com\/GitHubRGI\/geopackage-python\/\">tiles2gpkg_parallel.py<\/a>. Both seemed to work but QGIS did not display anything. The &#8220;solution&#8221; was to convert the tiles from 512&#215;512 pixels to 256&#215;256. WTF?<\/p>\n<p>tiles2gpkg_parallel.py also crashed at joining its intermediate files if used in Python 3.6. It needs &#8220;-tileorigin ul&#8221; for OSM-like tile names.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just had some trouble converting a set of tiles I scraped into a nice package. I tried both mb-util and tiles2gpkg_parallel.py. Both seemed to work but QGIS did not display anything. The &#8220;solution&#8221; was to convert the tiles from 512&#215;512 pixels to 256&#215;256. WTF? tiles2gpkg_parallel.py also crashed at joining its intermediate files if used [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,29,43,40],"tags":[],"class_list":["post-950","post","type-post","status-publish","format-standard","hentry","category-commandline","category-gis","category-python","category-small-things"],"_links":{"self":[{"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/posts\/950","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/comments?post=950"}],"version-history":[{"count":2,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/posts\/950\/revisions"}],"predecessor-version":[{"id":953,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/posts\/950\/revisions\/953"}],"wp:attachment":[{"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/media?parent=950"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/categories?post=950"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/tags?post=950"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}