DatumShift.FromInfo Method
FromInfo(DatumShiftInfo info)
Constructs a datum shift from a DatumShiftInfo.Syntax
public static DatumShift FromInfo (
DatumShiftInfo info
)Parameters
The DatumShiftInfo, produced by GeodeticDatum.AlternativeDatumShifts or GeodeticDatum.AlternativeDatumShiftsForArea.
Return Value
The datum shift that corresponds to the info.
Remarks
The methods GeodeticDatum.AlternativeDatumShifts and GeodeticDatum.AlternativeDatumShiftsForArea give alternative ways to make a datum shift to Wgs84, but their result is a collection of DatumShiftInfo instances. When you have chosen one of the instances, you must use the FromInfo method to extract a datum shift from the instance.
If the DatumShiftInfo is for a GridFileDatumShift, and the DatumShiftInfo.FileStatus shows that the grid file is missing, then FromInfo will throw an exception.
The method can also throw an exception if you give it a manually constructed DatumShiftInfo, but there is no reason why you should do that.
Platforms
Windows, Linux, Android