Hi,
I’ve been using the HasBoundingBox property to see if an image has the bounding box so that I can load the image without having the user supply a world file. However, I am now finding that for any image that doesn’t have the internal bounding box defined that the HasBoundingBox property still returns True at least for the NativeImageRasterLayer type.
E.G.
if (layer.HasBoundingBox)
{
RectangleShape bounds = layer.GetBoundingBox();
// Exception thrown: ‘System.InvalidOperationException’ in ThinkGeo.MapSuite.dll
layer = new NativeImageRasterLayer(fileName, bounds);
}
Thanks,
Damian