Code Monkey home page Code Monkey logo

Comments (7)

davidfrantz avatar davidfrantz commented on July 26, 2024 1

I worked on a fix: d9759f6

I think it solves this issue.

The only thing to mention (and I believe this already did not work before) is that I could not make create/copy drivers work for block-output (like in HLPS). If full files are written, it works, however (like the OVV images in L2PS).

from force.

davidfrantz avatar davidfrantz commented on July 26, 2024

I wonder what I changed... I guess I will need to implement the CSO fix in each sub-module

from force.

davidfrantz avatar davidfrantz commented on July 26, 2024

Hey @ernstste, did #26 ever work? I just made a small test, and it doesn't work for TSA and CSO.

I tried to pin down the issue, and problem is, that data for this chunk are neither read, computed, nor written.
I guess that the GeoTiff is sparse, though I do not understand yet why this worked in the past.

from force.

davidfrantz avatar davidfrantz commented on July 26, 2024

Damn

from force.

davidfrantz avatar davidfrantz commented on July 26, 2024

This bug was introduced when implementing the custom GDAL options where you can define your own output format and choose your own driver.

Not every driver supports "creating" a dataset, some need to create by copying an existing one. This can be an in-memory dataset, however. And to be most flexible and simplify the code, I followed that strategy for all drivers, i.e.

  1. create dataset in-memory
  2. copy dataset to disk

Apparently, this does not work with sparse files somehow... ugh.

I guess I will need to check if the driver can create files, and then work around this by either directly creating or create/copying only if needed.

from force.

ernstste avatar ernstste commented on July 26, 2024

Ouch. Custom GDAL options come back to bite you again.

I'm pretty sure #26 did work back then. I tried it right after you implemented the fix and the results looked ok.

from force.

davidfrantz avatar davidfrantz commented on July 26, 2024

It might be, that the problem does not consistently surface - you also mentioned that you did not see that issue with Landsat data.

from force.

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.