I’ve tried this on the HowDoI example WPF app with version 12.3.10 of ThinkGeo.UnmanagedProj.
I also tried updating all the packages included in the example app to the latest beta versions but the issue was still present.
we have several samples in the latest HowDoI showing how to reproject an XYZ based layer between Spherical Mercator (3857) and Decimal Degrees (4326).
We found it does have some issues reprojecting to certain projections (including 25832) though, and we’ve fixed it in the latest beta (14.4.0-beta059).
Please pull the latest beta and the following changes to the "Display Raster from XYZ Server will do the projection as expected:
_osmLayer = new OpenStreetMapAsyncLayer();
......
switch (radioButton.Tag.ToString())
{
case "3857":
MapView.MapUnit = GeographyUnit.Meter;
_osmLayer.ProjectionConverter = null;
break;
case "4326":
MapView.MapUnit = GeographyUnit.Meter;
_osmLayer.ProjectionConverter = new GdalProjectionConverter(3857, 25832);
break;
default:
return;
}
await _osmLayer.CloseAsync();
await _osmLayer.OpenAsync();
var extentIn25832 = new RectangleShape(166021.4, 9328006,833978, 0);
MapView.CenterPoint = extentIn25832.GetCenterPoint();
MapView.CurrentScale = MapUtil.GetScale(MapView.MapUnit, extentIn25832, MapView.MapWidth, MapView.MapHeight);
await MapView.RefreshAsync();
Here is what it looks like with the above changes on the existing HowDoI sample