geotiff.js icon indicating copy to clipboard operation
geotiff.js copied to clipboard

RGB is 1 or 0

Open ghost opened this issue 6 years ago • 6 comments

Hi I have a file where the RGBs are read as either 1 or 0 I was hoping to share the file privately since it is a confidential file 88MB

I have loaded the file okay in QGIS - so I believe the file to be valid

ghost avatar Dec 06 '18 20:12 ghost

Hi @khanhankkhan

Is your e-mail address on your github profile valid? In that case I can provide you a Drive folder where you can upload it.

constantinius avatar Dec 06 '18 20:12 constantinius

Yes. That would be great.

khanhankkhan avatar Dec 06 '18 23:12 khanhankkhan

Okay, you can now upload your file

constantinius avatar Dec 07 '18 15:12 constantinius

Did you resolve this?

dartmoordunbar avatar Nov 09 '21 12:11 dartmoordunbar

Although geotiff.js supports n-bit decompression, the main issue (I believe) is that 1/0 data is often encoded using CCITT Group 4 Compression and geotiff.js doesn't support this. I haven't even been able to find a JavaScript package that provides this decompression algorithm. If anyone would like to take on writing this algorithm, let us know! Would be a great opportunity to support the project!

@constantinius , let me know if I got anything wrong here :-)

DanielJDufour avatar Nov 09 '21 15:11 DanielJDufour

Yes, CCITT is not (yet) implemented. I tried around a bit but never really got far and there is not much demand for that.

I don't remember if the original issue was because of this compression, though.

constantinius avatar Nov 11 '21 10:11 constantinius