Git Product home page Git Product logo

Comments (7)

Twinside avatar Twinside commented on July 30, 2024

Hi, do you have a sample image?

from juicy.pixels.

relet avatar relet commented on July 30, 2024

You can get one from the URL below.

http://wcs.geonorge.no/skwms1/wcs.dtm?SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCoverage&FORMAT=GeoTIFF&COVERAGE=bathymetry50m&BBOX=296350,7429950,1156300,8117350&CRS=EPSG:32633&WIDTH=800&HEIGHT=600

It should be a 32 bit GeoTIFF, which contains some extra tags for georeferencing, so the error message did not come unexpected. I'm just trying to identify what the parsing process actually stumbles over, to see if it can be helped.

from juicy.pixels.

Twinside avatar Twinside commented on July 30, 2024

After a quick glance, the image causes various distinct problems in the Tiff parser, I'm going to look after it.

from juicy.pixels.

Twinside avatar Twinside commented on July 30, 2024

I've pushed a fix to handle 32bits int monochrome picture, I reduced pixel depth to 16 bits. Is this ok or do you need the full values of the 32bits?

from juicy.pixels.

relet avatar relet commented on July 30, 2024

Awesome! Thanks a lot. That was quick.

Technically the 32bit may be used, since the TIFF is just a container format for arbitrary data in a raster arrangement (temperature data, elevation data in the example, etc.). That said most applications scale the data to the range that is actually used after loading anyway, so this helps a lot.

from juicy.pixels.

Twinside avatar Twinside commented on July 30, 2024

I am wondering, is there other color spaces used for these kind of images? I was thinking of RGB/RGBA. If these images are restricted to monochrome, I may add support for them and loading/saving them from Tiff.

from juicy.pixels.

relet avatar relet commented on July 30, 2024

I think that's a semi-safe assumption.

The specification is here: http://www.remotesensing.org/geotiff/spec/contents.html and should be fully Tiff 6.0 compatible.

In practice, I have only seen either "grayscale" raster data, or regular georeferenced images which make use of the RGB* space (you could georeference a scan of a map for example). The latter won't use 32bit. The spec won't prohibit you from using 32bit RGBA for several data layers, but the software I know wouldn't expect data to be layered like this.

from juicy.pixels.

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.