public static Crtm05CoordinateSystem ToCrtm05(SouthLambertCoordinateSystem coordinates, ICoefficients coefficients) { var deltaLatitude = (coordinates.Latitude - 327987.44) * 0.00001; var deltaLongitude = (coordinates.Longitude - 500000) * 0.00001; var crtm90Latitude = FromDelta(deltaLatitude, deltaLongitude, coefficients.C00, coefficients.C10, coefficients.C01, coefficients.C20, coefficients.C11, 0, coefficients.C30, coefficients.C21, coefficients.C12, coefficients.C03); var crtm90Longitude = FromDelta(deltaLatitude, deltaLongitude, coefficients.D00, coefficients.D10, coefficients.D01, coefficients.D20, 0, coefficients.D02, 0, coefficients.D21, coefficients.D12, coefficients.D03); var crtm98Latitude = CrtmLatitude(crtm90Latitude, crtm90Longitude, coefficients.MM0, coefficients.MM1, coefficients.NN1); var crtm98Longitude = CrtmLongitude(crtm90Latitude, crtm90Longitude, coefficients.NN0, coefficients.MM1, coefficients.NN1); var latitude = CrtmLatitude(crtm98Latitude, crtm98Longitude, coefficients.EE0, coefficients.EE1, coefficients.FF1); var longitude = CrtmLongitude(crtm98Latitude, crtm98Longitude, coefficients.FF0, coefficients.EE1, coefficients.FF1); return(new Crtm05CoordinateSystem(latitude, longitude)); }
public static Crtm05CoordinateSystem ToCrtm05(SouthLambertCoordinateSystem coordinates) { return(ToCrtm05(coordinates, new Coefficients())); }