-
Notifications
You must be signed in to change notification settings - Fork 7
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
Deflate decoder is not yet implemented #18
Comments
|
Hey! We are using the Java version (in android project) of this library which implements this feature and would be nice if our iOS version had equivalent functionality. Thank you. |
It was a pull request we pulled into the Java library which is why the libraries aren't synched for deflate compression. It could probably be implemented on iOS using ZLIB compression. |
Hi! Hey, last question on this. I'm trying to flow the exception so my app does not exit. It looks like the exception is generated but that exception does not filter back to the caller. do { readRasters() certainly trips the fault but Xcode is telling me that no calls to throwing functions occur within try expression. Is there a way to catch this exception? Bobby |
I don't think there currently is a way to catch exceptions when calling Swift to Objective-C. The library would need to be updated to support Cocoa's error pattern. https://developer.apple.com/documentation/swift/handling-cocoa-errors-in-swift |
Thought I'd chip in here: We've gotten great results using the equivalent tiff-java library with the OpenAthena project, which allows users to tap-to-locate any point in a drone image: @rdkgit is hard at work on an iOS version, however an issue we're encountering is that some methods used to create a GeoTIFF file automatically compress larger-sized rasters, making them incompatible with this iOS library. Equivalent capabilities for this iOS library may provide significant benefits for the NGA and its partners. It seems like a common use case that could deliver a lot of value |
There are no near term plans to implement this at the moment, but open to pull requests if someone wants to take a shot. |
Please fill out as much known and relevant information as possible.
Version Information:
Expected Results:
Observed Results:
Output:
*** First throw call stack:
(
0 CoreFoundation 0x000000018040e7c8 __exceptionPreprocess + 172
1 libobjc.A.dylib 0x0000000180051144 objc_exception_throw + 56
2 CoreFoundation 0x000000018040e6d8 -[NSException initWithCoder:] + 0
3 tiff_ios 0x000000010079ef38 -[TIFFDeflateCompression decodeData:withByteOrder:] + 96
4 tiff_ios 0x0000000100792b1c -[TIFFFileDirectory tileOrStripWithX:andY:andSample:] + 1700
5 tiff_ios 0x0000000100791b3c -[TIFFFileDirectory readRastersWithWindow:andSamples:andRasters:] + 1256
6 tiff_ios 0x00000001007915f0 -[TIFFFileDirectory readRastersWithWindow:andSamples:andSampleValues:andInterleaveValues:] + 1460
7 tiff_ios 0x0000000100790d44 -[TIFFFileDirectory readRastersWithWindow:andSamples:] + 112
8 tiff_ios 0x0000000100790aec -[TIFFFileDirectory readRastersWithWindow:] + 72
9 tiff_ios 0x0000000100790a04 -[TIFFFileDirectory readRasters] + 72
Steps to Reproduce:
Relevant Code:
ios swift
rasters = directory!.readRasters()
// Code to reproduce the problem?
Test Files:
Additional Information:
The text was updated successfully, but these errors were encountered: