publiclab / mapknitter-exporter

The GDAL/ImageMagick-based exporter system from MapKnitter
GNU General Public License v3.0
5 stars 4 forks source link

add -t_srs EPSG:4326 to gdalwarp, -z 10-22 for gdal2tiles.py #79

Closed jywarren closed 2 years ago

jywarren commented 2 years ago

Fixing https://github.com/publiclab/mapknitter-exporter/issues/78

This is almost done but we have an off by 1 error...

jywarren commented 2 years ago

OK we're running out of disk space for this test:

gdalwarp -s_srs EPSG:3857 -t_srs EPSG:4326 -te -71.3983854668186 41.8351476451765 -71.3916477577732 41.8403113680142  public/warps/99/w1.tif public/warps/99/99.tif
ERROR 3: public/warps/99/99.tif: Free disk space available is 33968488448 bytes, whereas 109940197683614720 are at least necessary. You can disable this check by defining the CHECK_DISK_FREE_SPACE configuration option to FALSE.
jywarren commented 2 years ago

Uhh did I make a mistake? Creating output file that is 189375122P x 145135481L.

jywarren commented 2 years ago

gdalwarp -s_srs EPSG:3857 -t_srs EPSG:4326 -te -71.3983854668186 41.8351476451765 -71.3916477577732 41.8403113680142 public/warps/99/w1.tif public/warps/99/99.tif

jywarren commented 2 years ago

OK i think we could release a new gem version to try this.