LatLongEllipsodial.fromDms constructor

LatLongEllipsodial.fromDms(
  1. dynamic latdeg,
  2. dynamic latmin,
  3. dynamic latsec,
  4. dynamic longdeg,
  5. dynamic longmin,
  6. dynamic longsec,
  7. dynamic h,
  8. Map<String, Object> datum,
)

Creates a new Lat Long object with a given latitude and longitude in degrees, minutes and seconds form

Implementation

LatLongEllipsodial.fromDms(var latdeg, var latmin, var latsec, var longdeg, var longmin, var longsec, var h, this.datum) {
  this.lat = Dms().wrap90(getDecimalFromDegree(latdeg, latmin, latsec));
  this.long = Dms().wrap180(getDecimalFromDegree(longdeg, longmin, longsec));
  this.height = h;
}