-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loading from higher resolution geoimages / extracting larger-scale textures is slower #15
Comments
Seems like I misread the logs there: It doesn't only happen in the warp operation, but also before it. The time this takes could be related to reading the metadata of the dataset or something else that happens when first opening it. We could cache it, it's not a problem if it only happens the first time. Weird - the warp operation is only slow with a larger output pixel size (which is expected), but the amount it gets slower seems to be different depending on the raw data. It's also not consistently slow but it gets stuck - seemingly after each quarter of warping. Funnily, an image size of 3x3 gets slow after each third of warping, whereas a 2x2 image warps instantly even when requesting 5x5km. I might want to test this with a different hard drive, that could be the reason too... or maybe it depends on how well the file system handles large files like that? (The TIF I'm testing with is over 100GB large) |
No, GDALOpen is not the problem - It seems like it gets stuck before the warp, but apparently it's just stuck at 0% of the warp. I guess this makes it somewhat easier since the warp is the only problem. |
This could be the reason... but why is it loading everything into RAM, not just the required parts? |
Ok, to some extent it's definitely a hard drive thing because loading it the first time takes long, and each time the same raster is requested afterwards is much faster. I tried fixing #4 and this solves this issue because we can get rid of the whole warping stuff. It needs to be cleaned up though because something is not quite right with the coordinate transformation. |
With nearest neighbor sampling, the scale of the desired image / the resolution (pixels / meter) of the raw geodata should have close to no effect on performance because only single points are sampled either way. Only the resolution of the output texture should have an effect.
For some reason though, the resolution / scale does have a pretty significant impact that is especially noticeable with very high-resolution images and large-scale (overview) extraction. It seems to stem from the warp operation. We should investigate whether additional samples or a different algorithm is used somewhere there. Perhaps #4 could come into play here too!
The text was updated successfully, but these errors were encountered: