ezwarp ideas... #9
Replies: 1 comment 9 replies
-
I understand better now why the key focus is on resolution, it's because usually we're reprojecting a whole map, and it will have a new extent but we'd like to match the resolution of the source, or we know the resolution we need. This is different to my first successes with the warper, I knew it could deliver pixels to any window fast, and the minimum is ncol,nrow,extent, which is the way rasters in R are presented too (and rasterImage and any plot for that matter). So with gdalwarp most users just give a crs, and it figures out the projected extent, and does a bit of heuristics to match the target resolution to the source - next level user (probably) specifies the resolution, and further use then the extent. It's advanced use to set up a target extent, and especially one aligned to a specific (integer) offset, but that's where I started getting traction (also that works for multiple disparate and global sources, we might want a map anywhere it has no real relationship to the entire available dataset). So then, there's all the alignment logic, for the source and no crs change that is what projwin in gdal_translate does (with nearest neighbour), and in gdalwarp there is -tap that ensures the -te if specifed (or the implied extent if not) aligns neatly to the grain of -tr and there's a few other cases for alignment heuristics and desirable situations. (one thing gdal needs is -tap for -ts, to align to the source so it's the same as a simple gdal_translate call without us doing the math externally). All that stuff for me is in vaster , and I'd like to collect it all in one place, I just haven't done anything with a resolution-first input, and some of the cases need actual proj to reproject, but most is pure arithmetic. I'm putting some stuff into gdal itself, but I haven't figured it all out yet and there's a few complications still. This project is awesome for stimulating my thoughts and perspectives, in summ for now I just want to make sure we get this core logic stuff in one place, not all in gdal but at least clear how it relates to it. The wk package will be important here too, and I hope we can get all the pure grid logic cleaned up into one core. (slippymath is another part of this). more later, thanks! interested to hear your thoughts |
Beta Was this translation helpful? Give feedback.
-
👋 Hello and welcome to ezwarp!
This package is very new and no doubt could be improved - let's chat about what could be better!
Beta Was this translation helpful? Give feedback.
All reactions