Hello,
I am experiencing a bug with the GeoTiffRasterLayer object type. I am attaching a sample. This error occurs only with GeoTiffRasterLayer so far. I have used Jpeg2000RasterLayer and MrSidRasterLayer in exactly the same manner with total success, so it is definitely something specific to the GeoTiffRasterLayer. It's worth noting that the size of the file I am trying to use is 390MB. I don't have any smaller ones so when testing, it may be best to use a GeoTiff of similar size.
I recieve an "Exception has been thrown by the target of an invocation." error on map.refresh after adding the layer to the overlay. The inner exception reads: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
I created a project with the path to the file hardcoded and the layer draws correctly. But that won't work for my application. The user must be able to select any TIF they want. So, I resort to using an OpenFileDialog. That seems to be the start of the problem.
When using the OpenFileDialog.FileName as the source of the filepath for the layer, on map.refresh the above error occurs. Please advise..
Thanks,
Nelson
1961-GeoTiff.zip (66.9 KB)