Hello,
I’m just getting started with the evaluation version of your product. I have a fairly simple task…need to overlay jpgs on a map (already have geo information and can provide as world files, affine transforms, you name it).
Using GdiPlusRasterLayer, I can get a non-rotated image with no problem. The difficulty seems to emerge when I try to use ImageSource.Projection =… Here is the code:
winformsMap1.MapUnit = GeographyUnit.DecimalDegree;
winformsMap1.BackgroundOverlay.BackgroundBrush = new GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean);
WorldMapKitWmsDesktopOverlay worldMapKitDesktopOverlay = new WorldMapKitWmsDesktopOverlay();
winformsMap1.Overlays.Add(worldMapKitDesktopOverlay);
RectangleShape gRextent = new RectangleShape(-98.8, 33.36, -98.785, 33.345);
GdiPlusRasterLayer gR = new GdiPlusRasterLayer(@"C:\Users\mnichols\Desktop\geotagged\rawJpgsX\IMG_2167_geotag.jpg",gRextent);
gR.Open();
gR.UpperThreshold = double.MaxValue;
gR.LowerThreshold = double.MinValue;
RotationProjection rr = new RotationProjection(20.0);
rr.Open();
gR.ImageSource.Projection = rr;
LayerOverlay lOverlay = new LayerOverlay();
lOverlay.Layers.Add("rrLayer",gR);
winformsMap1.Overlays.Add("rasterOverlay",lOverlay);
winformsMap1.CurrentExtent = new RectangleShape(-98.82, 33.38, -98.78, 33.3426);
winformsMap1.Refresh()
If I comment out the lines "RotationProjection rr=… to gR.ImageSource.Projection=rr, the image displays but is obviously non-rotated. If I enter 0.0 in new RotationProjection(), I get a not implemented exception.
Any ideas? Really intrigued by the product so far, would just like to confirm this functionality before jumping all the way in.
Thanks,
Mark