Question

I am trying to figure out a way to crop large TIFF images in .NET. Specifically, I am trying to do this operation on a GeoTiff, a TIFF that allows georeferencing information to be embedded within itself. For those unfamiliar with this type of dataset, it is fully compliant with TIFF 6.0 and is usually huge in size; many times in the gigabyte range.

I've been messing around with the System.Windows.Media.Imaging namespace to try to accomplish this task. However, the size of the tiff to be cropped causes out of memory errors. Can anyone point me to some information showing how to crop an image without reading input image into memory at the onset?

FYI - I am fully aware that GDAL is more than capable for this task. However, without getting into unecessary details, deploying GDAL with my app is not an option at this point for several reasons, hence my desire to do this with native .NET classes. However, if there are other 3rd party .NET libraries that could be of use, I'm all ears.

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top