-
Notifications
You must be signed in to change notification settings - Fork 184
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
1 bit support? #69
Comments
Hi @getDOKI, |
Hi, @getDOKI . I'd love to take on this task. Do you have an example 1-bit file that you want decoded by geotiff.js? |
Hi, @DanielJDufour thanks for your reply. I will be very grateful if you will be able to add 1 bit support. Here is the 1-bit tiff image. |
@DanielJDufour @getDOKI |
Will do! |
I'm writing some tests now for this including testing the 1bit.tiff @getDOKI has provided. |
@DanielJDufour |
Hey, @getDOKI and @constantinius . Just wanted to give you an update. I copied the n-bit-support branch and add a test for a 2-bit raster. Everything looks good so far! I plan on adding some more tests before it's ready for merging. I'll probably work on the Fax Group 4 decoding issue after the n-bit support is merged. You can view my progress here: #75 And if you have any rasters of different n-bit length that I can test, please attach those. Thanks! :-) |
You can generate n-bit tiffs using |
@constantinius , I updated my PR to point to your n-bit-support branch. There was an issue with getUint32 with a 17-bit raster that I noted here: #75 Open to your thoughts. I'm not a pro on bit-math, so definitely open to your guidance :-) |
FYI: I've made some progress with adding n-bit-support. I've completed writing code that passes tests for stripped big-endian TIFFs with between 1 and 32 bits (and currently supported compressions). I now need to check if it works on rasters with internal tiling and numbers stored as both little endian. I'll clean the code up and hopefully submit a final pull request within the next month. |
PR for adding support for unsigned integers of 1-32 bits is ready for review: #78 However, it doesn't include support for CCITTRLE (Fax Group 4) Compression, which I'll work on on a separate branch. |
Has this problem been solved yet, i've met the same problem with “arrayForType“ function params that "bitsPerSample=1" |
@youyouliangshao , thanks for your interest. Unfortunately, this problem hasn't been solved yet. I still have work to do on #78. Unfortunately, I'm busy at the moment and don't expect finding time within the next few months to contribute to it. Would you like to contribute to it? We could sure use your help :-) |
Im afraid i can't do any help for you , its too busy for developers in china ,996 you know |
Anyone added this yet? |
I'm trying to add GeoTiff with 1 bit per sample (black and white) and I'm getting this error:
Thanks for any reply.
The text was updated successfully, but these errors were encountered: