Class "DMS" for degree, minute, decimal second values
Class "DMS" for degree, minute, decimal second values
The class provides a container for coordinates stored as degree, minute, decimal second values.
class
Objects from the Class
Objects can be created by calls of the form new("DMS", ...), converted from decimal degrees using dd2dms(), or converted from character strings using char2dms().
Slots
WS:: Object of class "logical" TRUE if input value negative
deg:: Object of class "numeric" degrees
min:: Object of class "numeric" minutes
sec:: Object of class "numeric" decimal seconds
NS:: Object of class "logical" TRUE if input value is a Northing
Methods
coerce: signature(from = "DMS", to = "numeric"): convert to decimal degrees
show: signature(object = "DMS"): print data values