GithubHelp home page GithubHelp logo

Comments (5)

kb173 avatar kb173 commented on May 25, 2024

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.
Maybe not though, since a larger size in meters of the request also increases this waiting time... Gotta figure out more exactly where it gets stuck.

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)

from geodot-plugin.

kb173 avatar kb173 commented on May 25, 2024

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.

from geodot-plugin.

kb173 avatar kb173 commented on May 25, 2024

ChunkAndWarpMulti is much faster than ChunkAndWarpImage. Makes sense that it's somewhat faster, but it doesn't exhibit the stuck behavior at all at scales where ChunkAndWarpImage does. However, it does also start getting stuck at similar points (quarters of progress) starting at a certain scale/resolution.

In order to handle images too large to hold in RAM, the warper needs to segment large images. This is the responsibility of the GDALWarpOperation class.

This could be the reason... but why is it loading everything into RAM, not just the required parts?

from geodot-plugin.

kb173 avatar kb173 commented on May 25, 2024

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.

from geodot-plugin.

kb173 avatar kb173 commented on May 25, 2024

#4 does indeed fix this! bb065db is a proof of concept where this issue is gone, but not everything is reimplemented without GDALWarp yet. Further discussion will be in #4.

from geodot-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.