Hi,
we’ve been using ThinkGeo since v9 (with Framework v4.8) and have successfully implemented a tool to show aerial images.
Now I’ve ported this tool to .NET 8 and the ThinkGeo WPF 14.3-beta022. But unfortunately the aerial images cannot be shown anymore.
I’ve tried several approaches:
- NativeImageRasterLayer used in v9 now crashes the application when I try to open the layer.
Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at ThinkGeo.Core.GeoImage.get_Width()
at ThinkGeo.Core.NativeImageRasterSource.oCM=()
at ThinkGeo.Core.NativeImageRasterSource.OpenCore()
at ThinkGeo.Core.RasterSource.Open()
at ThinkGeo.Core.RasterLayer.OpenCore()
at ThinkGeo.Core.Layer.Open()
This behaviour can be repoduced when I load the TIFF file into a GeoImage and then try to access the With of the image.
-
GeoTiffRasterLayer does not crash but no image is visible.
-
UnmanagedGeoTiffRasterLayer does not crash but shows only a black rectangle. It will crash however when I try to change the image.
-
GeoTiffGdalRasterLayer behaves exacly the same like UnmanagedGeoTiffRasterLayer.
I’ve not changed anything else and the images can be viewed using the old version of the tool with ThinkGeo v9 and NativeImageRasterLayer.
Do you have any ideas how to proceed?
Thank you for your help.
Regards,
Peter