What workflow should I follow to tile images in ImageMagick the same way MapTiler does for OL3?
Posted: 2015-11-24T00:07:12-07:00
If I'm using MapTiler to tile a raster image it seems to always provide a OL3 code that only uses resolutions that are powers of 2. I've tried to figure out how it does it, but I can't seem to find a formula for finding the right amount of tiles for each zoom level.
How should I calculate the resolution/tiles number for a zoom level? Also, what exactly do those resolutions mean for a XYZ layer with "PIXELS" projection?
After adding some borders ( full alpha ) to the pictures so they are square I tried a lot of resizing and cropping but none seemed to work the way I wanted : I tried doing a 100% 50% 25% 12.5% zoom levels, didn't work. I tried making both sizes multiples of 256px and then chosing some sizes, keeping in mind the aspect ratio, didn't work, only used sizes that are multiples of 2, did work the but difference between zoom levels was too high.
How should I calculate the resolution/tiles number for a zoom level? Also, what exactly do those resolutions mean for a XYZ layer with "PIXELS" projection?
After adding some borders ( full alpha ) to the pictures so they are square I tried a lot of resizing and cropping but none seemed to work the way I wanted : I tried doing a 100% 50% 25% 12.5% zoom levels, didn't work. I tried making both sizes multiples of 256px and then chosing some sizes, keeping in mind the aspect ratio, didn't work, only used sizes that are multiples of 2, did work the but difference between zoom levels was too high.