Hi,
I've just upgraded from Map Suite 3.0 to 4.0 and no longer seem to be able to reproject from WGS84 into OSB 1936. I'm using the following code to convert:
>
Proj4Projection proj4Projection = null;
PointShape currentPoint = new PointShape(lon, lat);
PointShape reprojectedPoint = currentPoint;
try
{
proj4Projection = new Proj4Projection();
proj4Projection.InternalProjectionParametersString = Proj4Projection.GetEpsgParametersString(4326);
proj4Projection.ExternalProjectionParametersString = Proj4Projection.GetEpsgParametersString(27700);
proj4Projection.Open();
reprojectedPoint = (PointShape)proj4Projection.ConvertToExternalProjection(currentPoint);
}
finally
{
proj4Projection.Close();
}
The error message I'm getting is:
Projection initialization failed.
Parameter name: externalProjectionParameters
This is thrown when on the call to open the projection libary, but the same code worked fine before I upgraded.
Best regards,
Gary