I have the following function, and having the parameter values as:
inParameters = "+proj=utm +zone=29 +ellps=WGS84 +datum=WGS84 +units=m +no_defs +towgs84=0,0,0";
outParameters="+proj=tmerc +lat_0=39.66825833333333 +lon_0=-8.133108333333334 +k=1 +x_0=0 +y_0=0 +ellps=GRS80 +units=m +no_defs";
public static BaseShape ProjectToPassingParameters(string inParameters, string outParameters, BaseShape shape)
{
BaseShape returnShape;
ThinkGeo.MapSuite.Core.ManagedProj4Projection proj = new ManagedProj4Projection(inParameters, outParameters);
proj.Open(); //Gives exception here! -> An item with the same key has already been added.
returnShape = proj.ConvertToExternalProjection(shape);
proj.Close();
return returnShape;
}