mapbox / node-mapnik-bench

Framework for quickly exploring tile rendering performance across mapnik versions
4 stars 3 forks source link

Investigate the RasterIO window size Mapnik requests #4

Open springmeyer opened 9 years ago

springmeyer commented 9 years ago

@rouault noticed:

Actually, looking at RasterIO calls, I see that the first ones are done with large source windows, and involve (nearest neighbour) downsampling on GDAL side. e.g. RasterIO(band=1,5208,0,5228,5228,bufxsize=1026,bufysize=1026). Later calls are done on 165x165 windows and don't involve downsampling on GDAL side.

This is odd to me and worth a closer look. My assumption was that because tilelive-bridge is requesting 512x512 tiles from node-mapnik and because buffer-size:0 for the layer and filter-factor is 2 the window requested of GDAL should be 1024x1024.