Next / Previous / Contents / Shipman's homepage

14. class LocGroup: Inheritable locality data

There are three kinds of locality data that can be attached to records in this system:

An instance of LocGroup represents any combination of these three.

Public attributes of a LocGroup instance include:

.loc

If this group is referred to specific locality code, this attribute contains the definition of the code as an instance of Section 11, “class Loc: Locality code definition”, otherwise None.

.gps

If the group is referred to a waypoint, this attribute contains the lat-lon as a string, in the same format as the waypoint attribute defined in Section 12, “class Gps: GPS waypoint”, otherwise None.

.locDetail

If there is a narrative description of the locality, this attribute contains that description as an instance of Section 19, “class Narrative: General container for narrative”, else None.