/// <summary> /// Get coordinate converter transformator. /// </summary> /// <param name="fromCoordinateSystem">From coordinate system.</param> /// <param name="toCoordinateSystem">To coordinate system.</param> /// <returns>Coordinate converter transformator.</returns> private ICoordinateTransformation GetTransformator(ICoordinateSystem fromCoordinateSystem, ICoordinateSystem toCoordinateSystem) { CoordinateTransformationFactory factory; ProjNet.CoordinateSystems.ICoordinateSystem fromSystem, toSystem; factory = new CoordinateTransformationFactory(); fromSystem = CoordinateSystemWktReader.Parse(fromCoordinateSystem.GetWkt()) as ProjNet.CoordinateSystems.ICoordinateSystem; toSystem = CoordinateSystemWktReader.Parse(toCoordinateSystem.GetWkt()) as ProjNet.CoordinateSystems.ICoordinateSystem; return(factory.CreateFromCoordinateSystems(fromSystem, toSystem)); }