Skip to main content

YANG Geo Location
draft-chopps-netmod-geo-location-00

The information below is for an old version of the document.
Document Type
This is an older version of an Internet-Draft whose latest revision state is "Replaced".
Author Christian Hopps
Last updated 2019-02-26
Replaced by draft-ietf-netmod-geo-location, draft-ietf-netmod-geo-location, RFC 9179
RFC stream (None)
Formats
Additional resources
Stream Stream state (No stream defined)
Consensus boilerplate Unknown
RFC Editor Note (None)
IESG IESG state I-D Exists
Telechat date (None)
Responsible AD (None)
Send notices to (None)
draft-chopps-netmod-geo-location-00
Network Working Group                                           C. Hopps
Internet-Draft                                   LabN Consulting, L.L.C.
Intended status: Standards Track                        26 February 2019
Expires: 30 August 2019

                           YANG Geo Location
                  draft-chopps-netmod-geo-location-00

Abstract

   This document defines a generic geographical location object YANG
   grouping.  The geographical location grouping is intended to be used
   in YANG models for specifying a location on or in reference to the
   Earth or any other astronomical object.

Status of This Memo

   This Internet-Draft is submitted in full conformance with the
   provisions of BCP 78 and BCP 79.

   Internet-Drafts are working documents of the Internet Engineering
   Task Force (IETF).  Note that other groups may also distribute
   working documents as Internet-Drafts.  The list of current Internet-
   Drafts is at https://datatracker.ietf.org/drafts/current/.

   Internet-Drafts are draft documents valid for a maximum of six months
   and may be updated, replaced, or obsoleted by other documents at any
   time.  It is inappropriate to use Internet-Drafts as reference
   material or to cite them other than as "work in progress."

   This Internet-Draft will expire on 30 August 2019.

Copyright Notice

   Copyright (c) 2019 IETF Trust and the persons identified as the
   document authors.  All rights reserved.

   This document is subject to BCP 78 and the IETF Trust's Legal
   Provisions Relating to IETF Documents (https://trustee.ietf.org/
   license-info) in effect on the date of publication of this document.
   Please review these documents carefully, as they describe your rights
   and restrictions with respect to this document.  Code Components
   extracted from this document must include Simplified BSD License text
   as described in Section 4.e of the Trust Legal Provisions and are
   provided without warranty as described in the Simplified BSD License.

Table of Contents

   1.  Introduction
       1.1.  Terminology
   2.  The Geo Location Object
       2.1.  Frame of Reference
       2.2.  Location
       2.3.  Motion
       2.4.  Tree
   3.  YANG Module
   4.  ISO 6709:2008 Conformance
   5.  Usability
       5.1.  Portability
             5.1.1.  IETF URI Value
             5.1.2.  W3C
             5.1.3.  Geography Markup Language (GML)
             5.1.4.  KML
   6.  IANA Considerations
       6.1.  Geodetic System Value Registry
   7.  Security Considerations
   8.  Normative References
   9.  Informative References
   Appendix A.  Examples
   Appendix B.  Acknowledgements
   Author's Address

1.  Introduction

   In many applications we would like to specify the location of
   something geographically.  Some examples of locations in networking
   might be the location of data center, a rack in an internet exchange
   point, a router, a firewall, a port on some device, or it could be
   the endpoints of a fiber, or perhaps the failure point along a fiber.

   Additionally, while this location is typically relative to The Earth,
   it does not need to be.  Indeed it is easy to imagine a network or
   device located on The Moon, on Mars, on Enceladus (the moon of
   Saturn) or even a comet (e.g., 67p/churyumov-gerasimenko).

   Finally, one can imagine defining locations using a different frames
   of reference or even alternate systems (e.g., a simulations or
   virtual realities).

   This document defines a "geo-location" YANG grouping that allows for
   all of the above data to be captured.

   This specification conforms to [ISO.6709.2008].

   The YANG data model described in this document conforms to the
   Network Management Datastore Architecture defined in [RFC8342].

1.1.  Terminology

   The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
   "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and
   "OPTIONAL" in this document are to be interpreted as described in
   [RFC2119] [RFC8174] when, and only when, they appear in all capitals,
   as shown here.

2.  The Geo Location Object

2.1.  Frame of Reference

   The frame of reference ("reference-frame") defines what the location
   values refer to and their meaning.  The referred to object can be any
   astronomical body.  It could be a planet such as The Earth or Mars, a
   moon such as Enceladus, an asteroid such as Ceres, or even a comet
   such as 1P/Halley.  This value is specified in "astronomical-body"
   and is defined by the International Astronomical Union
   (http://www.iau.org), The default "astronomical-body" value is
   "earth".

   In addition to identifying the astronomical body we also need to
   define the meaning of the coordinates (e.g., latitude and longitude)
   and the definition of 0-height.  This is done with a "geodetic-datum"
   value.  The default value for "geodetic-datum" is "wgs-84" (i.e., the
   World Geodetic System, [WGS84]), which is used by the Global
   Positioning System (GPS) among many others.  We define an IANA
   registry for specifying standard values for the "geodetic-datum".

   In addition to the "geodetic-datum" value we allow refining the
   coordinate and height accuracy using "coord-accuracy" and "height-
   accuracy" respectively.  When specified these values override the
   defaults implied by the "geodetic-datum" value.

   Finally, we define an optional feature which allows for changing the
   system for which the above values are defined.  This optional feature
   adds an "alternate-system" value to the reference frame.  This value
   is normally not present which implies the natural universe is the
   system.  The use of this value is intended to allow for creating
   virtual realities or perhaps alternate coordinate systems.  The
   definition of alternate systems is outside the scope of this
   document.

2.2.  Location

   This is the location on or relative to the astronomical object.  It
   is specified using 2 or 3 coordinates values.  These values are given
   either as "latitude", "longitude", and an optional "height", or as
   Cartesian coordinates of "x", "y" and an optional "z".  For the
   standard location choice "latitude" and "longitude" are specified as
   fractions of decimal degrees, and the "height" value is in fractions
   of meters.  For the Cartesian choice "x", "y" and "z" are in
   fractions of meters.  In both choices the exact meanings of all of
   the values are defined by the "geodetic-datum" value in the
   Section 2.1.

2.3.  Motion

   Support is added for objects in relatively stable motion.  For
   objects in relatively stable motion there are an additional 2 values
   to describe their velocity; these are "heading" and "speed".  The
   "heading" value is relative to true-north as defined by the
   "reference-frame" for the astronomical body.  The "speed" value is in
   fractional meters per second.  For some applications that demand high
   accuracy, and where the data is infrequently updated this value can
   track very slow movement such as continental drift.

2.4.  Tree

   The following is the YANG tree diagram [RFC8340] for the geo-location
   grouping.

     module: geo-location
         +-- geo-location
            +-- reference-frame
            |  +-- alternate-system?    string {alternate-systems}?
            |  +-- astronomical-body?   string
            |  +-- geodetic-system
            |     +-- geodetic-datum?    string
            |     +-- coord-accuracy?    decimal64
            |     +-- height-accuracy?   decimal64
            +-- (location)
            |  +--:(ellipsoid)
            |  |  +-- latitude     degrees
            |  |  +-- longitude    degrees
            |  |  +-- height?      decimal64
            |  +--:(cartesian)
            |     +-- x            decimal64
            |     +-- y            decimal64
            |     +-- z?           decimal64
            +-- velocity
            |  +-- heading?   degrees
            |  +-- speed?     decimal64
            +-- timestamp?         types:date-and-time

                 Figure 1: Geo Location YANG tree diagram.

3.  YANG Module

   // -*- fill-column: 69 -*-
   module geo-location {
     namespace "urn:ietf:geo-location";
     prefix geo;
     import ietf-yang-types { prefix types; }

     organization
       "IETF NETMOD Working Group (NETMOD)";
     contact
       "Christian Hopps <chopps@chopps.org>";

     // RFC Ed.: replace XXXX with actual RFC number and
     // remove this note.

     description
       "This module defines a grouping of a container object for
        specifying a location on or around an astronomical object (e.g.,
        The Earth).

        Copyright (c) 2018 IETF Trust and the persons identified as
        authors of the code. All rights reserved.

        Redistribution and use in source and binary forms, with or
        without modification, is permitted pursuant to, and subject to
        the license terms contained in, the Simplified BSD License set
        forth in Section 4.c of the IETF Trust's Legal Provisions
        Relating to IETF Documents
        (https://trustee.ietf.org/license-info).

        The key words 'MUST', 'MUST NOT', 'REQUIRED', 'SHALL', 'SHALL
        NOT', 'SHOULD', 'SHOULD NOT', 'RECOMMENDED', 'NOT RECOMMENDED',
        'MAY', and 'OPTIONAL' in this document are to be interpreted as
        described in BCP 14 [RFC2119] [RFC8174] when, and only when,
        they appear in all capitals, as shown here.

        This version of this YANG module is part of RFC XXXX
        (https://tools.ietf.org/html/rfcXXXX); see the RFC itself for
        full legal notices.";

     // RFC Ed.: replace XXXX with actual RFC number and
     // remove this note.

     revision 2019-02-17 {
       description "Initial Revision";
       reference "RFC XXXX: YANG Geo Location";
     }

     typedef degrees {
       type decimal64 {
         fraction-digits 16;
       }
       units "decimal degrees";
       description "Coordinate value.";
     }

     feature alternate-systems {
       description
         "This feature means the device supports specifying locations
          using alternate systems for reference frames.";
     }

     grouping geo-location {
      description
         "Grouping to identify a location on an astronomical object.";

       container geo-location {
         description
           "A location on an astronomical body (e.g., The Earth)
            somewhere in a universe.";

         container reference-frame {
           description
             "The Frame of Reference for the location values.";

           leaf alternate-system {
             if-feature alternate-systems;
             type string;
             description
               "The system in which the astronomical body and
                geodetic-datum is defined. Normally, this value is not
                present and the system is the natural universe; however,
                when present this value allows for specifying alternate
                systems (e.g., virtual realities). An alternate-system
                modifies the definition (but not the type) of the other
                values in the reference frame.";
           }
           leaf astronomical-body {
             type string {
               pattern
                 '[-0-9a-z #x22#x23#x5B#x5D' +
                   '!$%&()*+,\./:;<=>?@\\^_`{|}~]+';
             }
             default "earth";
             description
               "An astronomical body as named by the International
                Astronomical Union (IAU) or according to the alternate
                system if specified. Examples include 'sun' (our star),
                'earth' (our planet), 'moon' (our moon), 'enceladus' (a
                moon of Saturn), 'ceres' (an asteroid),
                '67p/churyumov-gerasimenko (a comet). The value should
                be comprised of all lower case ASCII characters not
                including control characters (i.e., values 32..64, and
                91..126)";
           }
           container geodetic-system {
             description
               "The geodetic system of the location data.";
             leaf geodetic-datum {
               type string {
                 pattern
                   '[-0-9a-z#x22#x23#x5B#x5D' +
                     '!$%&()*+,\./:;<=>?@\\^_`{|}~]+';
               }
               default "wgs-84";
               description
                 "A geodetic-datum defining the meaning of latitude,
                  longitude and height. The default is 'wgs-84' which is
                  used by the Global Positioning System (GPS)";
             }
             leaf coord-accuracy {
               type decimal64 {
                 fraction-digits 6;
               }
               description
                 "The accuracy of the latitude longitude pair. When
                  coord-accuracy is specified it overrides the
                  geodetic-datum implied accuracy. If Cartesian
                  coordinates are in use this accuracy corresponds to
                  the X and Y components";
             }
             leaf height-accuracy {
               type decimal64 {
                 fraction-digits 6;
               }
               units "meters";
               description
                 "The accuracy of height value. When specified it
                  overrides the geodetic-datum implied default. If
                  Cartesian coordinates ar in use this accuracy
                  corresponds to the Z component.";
             }
           }
         }
         choice location {
           mandatory true;
           description
             "The location data either in lat/long or Cartesian values";
           case ellipsoid {
             leaf latitude {
               type degrees;
               mandatory true;
               description
                 "The latitude value on the astronomical body. The
                  definition and precision of this measurement is
                  indicated by the reference-frame value.";
             }
             leaf longitude {
               type degrees;
               mandatory true;
               description
                 "The longitude value on the astronomical body. The
                  definition and precision of this measurement is
                  indicated by the reference-frame.";
             }
             leaf height {
               type decimal64 {
                 fraction-digits 6;
               }
               units "meters";
               description
                 "Height from a reference 0 value. The precision and '0'
                  value is defined by the reference-frame.";
             }
           }
           case cartesian {
             leaf x {
               type decimal64 {
                 fraction-digits 6;
               }
               mandatory true;
               description
                 "The X value as defined by the reference-frame.";
             }
             leaf y {
               type decimal64 {
                 fraction-digits 6;
               }
               mandatory true;
               description
                 "The Y value as defined by the reference-frame.";
             }
             leaf z {
               type decimal64 {
                 fraction-digits 6;
               }
               units "meters";
               description
                 "The Z value as defined by the reference-frame.";
             }
           }
         }
         container velocity {
           description
             "If the object is in motion the velocity describes this
              motion at the the time given by the timestamp.";

           leaf heading {
               type degrees;
               description
                   "If the object is in motion then the heading will
                   indicate the direction in which the object is
                   currently moving. It is specified in fractions of
                   degrees from true north of the astronomical object";
           }
           leaf speed {
             type decimal64 {
               fraction-digits 12;
             }
             units "meters per second";
             description
               "If the object is in motion then the speed will
                indicate the rate at which the object is currently
                traveling along it's heading.";
           }
         }
         leaf timestamp {
           type types:date-and-time;
           description "Reference time when location was recorded.";
         }
       }
     }
   }

4.  ISO 6709:2008 Conformance

   [ISO.6709.2008] provides an appendix with a set of tests for
   conformance to the standard.  The tests and results are given in the
   following table along with an explanation of non-applicable tests.

           +---------+----------------------+------------------+
           | Test    | Description          | Pass Explanation |
           +=========+======================+==================+
           | A.1.2.1 | elements reqd. for a | CRS is always    |
           |         | geo. point location  | indicated        |
           +---------+----------------------+------------------+
           | A.1.2.2 | Description of a CRS | CRS register is  |
           |         | from a register      | defined          |
           +---------+----------------------+------------------+
           | A.1.2.3 | definition of CRS    | N/A - Don't      |
           |         |                      | define CRS       |
           +---------+----------------------+------------------+
           | A.1.2.4 | representation of    | lat/long values  |
           |         | horizontal position  | conform          |
           +---------+----------------------+------------------+
           | A.1.2.5 | representation of    | height value     |
           |         | vertical position    | conforms         |
           +---------+----------------------+------------------+
           | A.1.2.6 | text string          | N/A - No string  |
           |         | representation       | format           |
           +---------+----------------------+------------------+

                     Table 1: Conformance Test Results

   For test "A.1.2.1" the YANG geo location object either includes a CRS
   ("reference-frame") or has a default defined ([WGS84]).

   For "A.1.2.3" we do not define our own CRS, and doing so is not
   required for conformance.

   For "A.1.2.6" we do not define a text string representation, which is
   also not required for conformance.

5.  Usability

   The geo-location object defined in this document and YANG module have
   been designed to be usable in a very broad set of applications.  This
   includes the ability to locate things on astronomical bodies other
   than The Earth, and to utilize entirely different coordinate systems
   and realities.

   Many systems make use of geo-location data, and so it's important to
   be able describe this data using this geo-location object defined in
   this document.

5.1.  Portability

   In order to verify portability while developing this module the
   following standards and standard APIs and were considered.

5.1.1.  IETF URI Value

   [RFC5870] defines a standard URI value for geographic location data.
   It includes the ability to specify the "geodetic-value" (it calls
   this "crs") with the default being "wgs-84" [WGS84].  For the
   location data it allows 2 to 3 coordinates defined by the "crs"
   value.  For accuracy it has a single "u" parameter for specifying
   uncertainty.  The "u" value is in fractions of meters and applies to
   all the location values.  As the URI is a string, all values are
   specifies as strings and so are capable of as much precision as
   required.

   URI values can be mapped to and from the YANG grouping, with the
   caveat that some loss of precision (in the extremes) may occur due to
   the YANG grouping using decimal64 values rather than strings.

5.1.2.  W3C

   See https://w3c.github.io/geolocation-api/#dom-geolocationposition.

   W3C Defines a geo-location API in [W3CGEO].  We show a snippet of
   code below which defines the geo-location data for this API.  This is
   used by many application (e.g., Google Maps API).

      interface GeolocationPosition {
        readonly attribute GeolocationCoordinates coords;
        readonly attribute DOMTimeStamp timestamp;
      };

      interface GeolocationCoordinates {
        readonly attribute double latitude;
        readonly attribute double longitude;
        readonly attribute double? altitude;
        readonly attribute double accuracy;
        readonly attribute double? altitudeAccuracy;

        readonly attribute double? speed;
      };

             Figure 2: Snippet Showing Geo-Location Definition

5.1.2.1.  Compare with YANG Model

    +------------------+--------------+-----------------+-------------+
    | Field            | Type         | YANG            | Type        |
    +==================+==============+=================+=============+
    | accuracy         | double       | coord-accuracy  | dec64 fr 6  |
    +------------------+--------------+-----------------+-------------+
    | altitude         | double       | height          | dec64 fr 6  |
    +------------------+--------------+-----------------+-------------+
    | altitudeAccuracy | double       | height-accuracy | dec64 fr 6  |
    +------------------+--------------+-----------------+-------------+
    | heading          | double       | heading         | dec64 fr 16 |
    +------------------+--------------+-----------------+-------------+
    | latitude         | double       | latitude        | dec64 fr 16 |
    +------------------+--------------+-----------------+-------------+
    | longitude        | double       | longitude       | dec64 fr 16 |
    +------------------+--------------+-----------------+-------------+
    | speed            | double       | speed           | dec64 fr 12 |
    +------------------+--------------+-----------------+-------------+
    | timestamp        | DOMTimeStamp | timestamp       | string      |
    +------------------+--------------+-----------------+-------------+

                                  Table 2

   accuracy (double)  Accuracy of "latitude" and "longitude" values in
      meters.

   altitude (double)  Optional height in meters above the [WGS84]
      ellipsoid.

   altitudeAccuracy (double)  Optional accuracy of "altitude" value in
      meters.

   heading (double)  Optional Direction in decimal deg from true north
      increasing clock-wise.

   latitude, longitude (double)  Standard lat/long values in decimal
      degrees.

   speed (double)  Speed along heading in meters per second.

   timestamp (DOMTimeStamp)  Specifies milliseconds since the Unix EPOCH
      in 64 bit unsigned integer.  The YANG model defines the timestamp
      with arbitrarily large precision by using a string which
      encompasses all representable values of this timestamp value.

   W3C API values can be mapped to the YANG grouping, with the caveat
   that some loss of precision (in the extremes) may occur due to the
   YANG grouping using decimal64 values rather than doubles.

   Conversely, only YANG values for The Earth using the default "wgs-84"
   [WGS84] as the "geodetic-datum", can be directly mapped to the W3C
   values, as W3C does not provide the extra features necessary to map
   the broader set of values supported by the YANG grouping.

5.1.3.  Geography Markup Language (GML)

   ISO adopted the Geography Markup Language (GML) defined by OGC 07-036
   as [ISO.19136.2007].  GML defines, among many other things, a
   position type "gml:pos" which is a sequence of "double" values.  This
   sequence of values represent coordinates in a given CRS.  The CRS is
   either inherited from containing elements or directly specified as
   attributes "srsName" and optionally "srsDimension" on the "gml:pos".

   GML defines an Abstract CRS type which Concrete CRS types derive
   from.  This allows for many types of CRS definitions.  We are
   concerned with the Geodetic CRS type which can have either
   ellipsoidal or Cartesian coordinates.  We believe that other non-
   Earth based CRS as well as virtual CRS should also be representable
   by the GML CRS types as well.

   Thus GML "gml:pos" values can be mapped directly to the YANG
   grouping, with the caveat that some loss of precision (in the
   extremes) may occur due to the YANG grouping using decimal64 values
   rather than doubles.

   Conversely, YANG grouping values can be mapped to GML as directly as
   the GML CRS available definitions allow with a minimum of Earth-based
   geodetic systems fully supported.

   GML also defines an observation value in "gml:Observation" which
   includes a timestamp value "gml:validTime" in addition to other
   components such as "gml:using" "gml:target" and "gml:resultOf".  Only
   the timestamp is mappable to and from the YANG grouping.  Furthermore
   "gml:validTime" can either be an Instantaneous measure
   ("gml:TimeInstant") or a time period ("gml:TimePeriod").  Only the
   instantaneous "gml:TimeInstant" is mappable to and from the YANG
   grouping.

5.1.4.  KML

   KML 2.2 [KML22] (formerly Keyhole Markup Language) was submitted by
   Google to Open Geospatial Consortium (OGC)
   https://www.opengeospatial.org/ and was adopted.  The latest version
   as of this writing is KML 2.3 [KML23].  This schema includes
   geographic location data in some of it's objects (e.g., <kml:Point or
   <kml:Camera> objects).  This data is provided in string format and
   corresponds to the [W3CGEO] values.  The timestamp value is also
   specified as a string as in our YANG grouping.

   KML has some special handling for the height value useful for
   visualization software, "kml:altitudeMode".  These values for
   "kml:altitudeMode" include indicating the height is ignored
   ("clampToGround"), in relation to the locations ground level
   ("relativeToGround"), or in relation to the geodetic datum
   ("absolute").  The YANG grouping can directly map the ignored and
   absolute cases, but not the relative to ground case.

   In addition to the "kml:altitudeMode" KML also defines two seafloor
   height values using "kml:seaFloorAltitudeMode".  One value is to
   ignore the height value ("clampToSeaFloor") and the other is relative
   ("relativeToSeaFloor").  As with the "kml:altitudeMode" value, the
   YANG grouping supports the ignore case but not the relative case.

   The KML location values use a geodetic datum defined in Annex A by
   the GML Coordinate Reference System (CRS) [ISO.19136.2007] with
   identifier "LonLat84_5773".  The altitude value for KML absolute
   height mode is measured from the vertical datum specified by [WGS84].

   Thus the YANG grouping and KML values can be directly mapped in both
   directions (when using a supported altitude mode) with the caveat
   that some loss of precision (in the extremes) may occur due to the
   YANG grouping using decimal64 values rather than strings.  For the
   relative height cases the application doing the transformation is
   expected to have the data available to transform the relative height
   into an absolute height which can then be expressed using the YANG
   grouping.

6.  IANA Considerations

6.1.  Geodetic System Value Registry

   This registry allocates names for standard geodetic systems.  Often
   these values are referred to using multiple names (e.g., full names
   or multiple acronyms values).  The intent of this registry is to
   provide a single standard value for any given geodetic system.

   The values SHOULD use an acronym when available, they MUST be
   converted to lower case, and spaces MUST be changed to dashes "-".

   Each entry should be sufficient to define the 3 coordinate values (2
   if height is not required).  So for example the "wgs-84" is defined
   as WGS-84 with the geoid updated by at least [EGM96] for height
   values.  Specific entries for [EGM96] and [EGM08] are present if a
   more precise definition of the data is required.

   It should be noted that [RFC5870] also creates a registry for
   Geodetic Systems (it calls CRS); however, this registry has a very
   strict modification policy.  The authors of [RFC5870] have the stated
   goal of making CRS registration hard to avoid proliferation of CRS
   values.  As our module defines alternate systems and has a broader
   (beyond earth) scope, the registry defined below is meant to be more
   easily modified.

   TODO: Open question, should we create a new registry here or attempt
   to modify the one created by [RFC5870].  It's worth noting that we
   include the ability to specify any geodetic system including ones
   designed for astronomical bodies other than the earth, as well as
   ones based on alternate systems.  These requirements may be too broad
   for adapting the existing [RFC5870] registry.

   TODO: Open question, is FCFS too easy, perhaps expert review would
   strike a good balance.  If expert review is acceptable, would it also
   be acceptable to update the policy on [RFC5870] and use it instead?

   The allocation policy for this registry is First Come First Served,
   [RFC8126] as the intent is simply to avoid duplicate values.

   The initial values for this registry are as follows.

   +------------+------------------------------------------------------+
   | Name       | Description                                          |
   +============+======================================================+
   | me         | Mean Earth/Polar Axis (Moon)                         |
   +------------+------------------------------------------------------+
   | mola-vik-1 | MOLA Height, IAU Viking-1 PM (Mars)                  |
   +------------+------------------------------------------------------+
   | wgs-84-96  | World Geodetic System 1984 [WGS84] w/ EGM96          |
   +------------+------------------------------------------------------+
   | wgs-84-08  | World Geodetic System 1984 [WGS84] w/ [EGM08]        |
   +------------+------------------------------------------------------+
   | wgs-84     | World Geodetic System 1984 [WGS84] (EGM96 or         |
   |            | better)                                              |
   +------------+------------------------------------------------------+

                                  Table 3

7.  Security Considerations

   This document defines a common geo location grouping using the YANG
   data modeling language.  The grouping itself has no security or
   privacy impact on the Internet, but the usage of the grouping in
   concrete YANG modules might have.  The security considerations
   spelled out in the YANG 1.1 specification [RFC7950] apply for this
   document as well.

8.  Normative References

   [EGM08]    Pavlis, N.K., Holmes, S.A., Kenyon, S.C., and J.K. Factor,
              "An Earth Gravitational Model to Degree 2160: EGM08.",
              Presented at the 2008 General Assembly of the European
              Geosciences Union, Vienna, Arpil13-18, 2008, 2008,
              <http://earth-info.nga.mil/GandG/wgs84/gravitymod/egm2008/
              egm08_wgs84.html>.

   [EGM96]    Lemoine, F.G., Kenyon, S.C., Factor, J.K., Trimmer, R.G.,
              Pavlis, N.K., Chinn, D.S., Cox, C.M., Klosko, S.M.,
              Luthcke, S.B., Torrence, M.H., Wang, Y.M., Williamson,
              R.G., Pavlis, E.C., Rapp, R.H., and T.R. Olson, "The
              Development of the Joint NASA GSFC and the National
              Imagery and Mapping Agency (NIMA) Geopotential Model
              EGM96.", Technical Report NASA/TP-1998-206861, NASA,
              Greenbelt., 1998,
              <https://cddis.nasa.gov/926/egm96/egm96.html>.

   [ISO.6709.2008]
              International Organization for Standardization, "ISO
              6709:2008 Standard representation of geographic point
              location by coordinates.", 2008.

   [RFC2119]  Bradner, S., "Key words for use in RFCs to Indicate
              Requirement Levels", BCP 14, RFC 2119,
              DOI 10.17487/RFC2119, March 1997,
              <https://www.rfc-editor.org/info/rfc2119>.

   [RFC8126]  Cotton, M., Leiba, B., and T. Narten, "Guidelines for
              Writing an IANA Considerations Section in RFCs", BCP 26,
              RFC 8126, DOI 10.17487/RFC8126, June 2017,
              <https://www.rfc-editor.org/info/rfc8126>.

   [RFC8174]  Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC
              2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174,
              May 2017, <https://www.rfc-editor.org/info/rfc8174>.

   [RFC8342]  Bjorklund, M., Schoenwaelder, J., Shafer, P., Watsen, K.,
              and R. Wilton, "Network Management Datastore Architecture
              (NMDA)", RFC 8342, DOI 10.17487/RFC8342, March 2018,
              <https://www.rfc-editor.org/info/rfc8342>.

   [WGS84]    National Imagery and Mapping Agency., "National Imagery
              and Mapping Agency Technical Report 8350.2, Third
              Edition.", 3 January 2000,
              <http://earth-info.nga.mil/GandG/publications/tr8350.2/
              wgs84fin.pdf>.

9.  Informative References

   [ISO.19136.2007]
              International Organization for Standardization, "ISO
              19136:2007 Geographic information -- Geography Markup
              Language (GML)", February 2019.

   [KML22]    Wilson, T., Ed., "OGC KML (Version 2.2)", 14 April 2008,
              <http://portal.opengeospatial.org/
              files/?artifact_id=27810>.

   [KML23]    Burggraf, D., Ed., "OGC KML 2.3", 4 August 2015,
              <http://docs.opengeospatial.org/
              is/12-007r2/12-007r2.html>.

   [RFC5870]  Mayrhofer, A. and C. Spanring, "A Uniform Resource
              Identifier for Geographic Locations ('geo' URI)",
              RFC 5870, DOI 10.17487/RFC5870, June 2010,
              <https://www.rfc-editor.org/info/rfc5870>.

   [RFC7950]  Bjorklund, M., Ed., "The YANG 1.1 Data Modeling Language",
              RFC 7950, DOI 10.17487/RFC7950, August 2016,
              <https://www.rfc-editor.org/info/rfc7950>.

   [RFC8340]  Bjorklund, M. and L. Berger, Ed., "YANG Tree Diagrams",
              BCP 215, RFC 8340, DOI 10.17487/RFC8340, March 2018,
              <https://www.rfc-editor.org/info/rfc8340>.

   [W3CGEO]   Popescu, A., "Geolocation API Specification", 8 November
              2016, <https://www.w3.org/TR/2016/
              REC-geolocation-API-20161108/>.

Appendix A.  Examples

   Below is a fictitious module that uses the geo-location grouping.

      module uses-geo-location {
        namespace "urn:ietf:uses-geo-location";
        prefix ugeo;
        import geo-location { prefix geo; }
        organization "Empty Org";
        contact "Example Author <eauthor@example.com>";
        description "Example use of geo-location";
        revision 2019-02-02 { reference "None"; }
        container locatable-items {
          description "container of locatable items";
          list locatable-item {
            key name;
            description "A of locatable item";
            leaf name {
              type string;
              description "name of locatable item";
            }
            uses geo:geo-location;
          }
        }
      }

             Figure 3: Example YANG module using geo location.

   Below is a the YANG tree for the fictitious module that uses the geo-
   location grouping.

   module: uses-geo-location
     +--rw locatable-items
        +--rw locatable-item* [name]
           +--rw name            string
           +--rw geo-location
              +--rw reference-frame
              |  +--rw alternate-system?    string {alternate-systems}?
              |  +--rw astronomical-body?   string
              |  +--rw geodetic-system
              |     +--rw geodetic-datum?    string
              |     +--rw coord-accuracy?    decimal64
              |     +--rw height-accuracy?   decimal64
              +--rw (location)
              |  +--:(ellipsoid)
              |  |  +--rw latitude     degrees
              |  |  +--rw longitude    degrees
              |  |  +--rw height?      decimal64
              |  +--:(cartesian)
              |     +--rw x            decimal64
              |     +--rw y            decimal64
              |     +--rw z?           decimal64
              +--rw velocity
              |  +--rw heading?   degrees
              |  +--rw speed?     decimal64
              +--rw timestamp?         types:date-and-time

   Below is some example YANG XML data for the fictitious module that
   uses the geo-location grouping.

      <ns0:config xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0">
        <locatable-items xmlns="urn:ietf:uses-geo-location">
          <locatable-item>
            <name>Gaetana's</name>
            <geo-location>
              <latitude>40.73297</latitude>
              <longitude>-74.007696</longitude>
            </geo-location>
          </locatable-item>
          <locatable-item>
            <name>Pont des Arts</name>
            <geo-location>
              <timestamp>2012-03-31T16:00:00Z</timestamp>
              <latitude>48.8583424</latitude>
              <longitude>2.3375084</longitude>
              <height>35</height>
            </geo-location>
          </locatable-item>
          <locatable-item>
            <name>Saint Louis Cathedral</name>
            <geo-location>
              <timestamp>2013-10-12T15:00:00-06:00</timestamp>
              <latitude>29.9579735</latitude>
              <longitude>-90.0637281</longitude>
            </geo-location>
          </locatable-item>
          <locatable-item>
            <name>Apollo 11 Landing Site</name>
            <geo-location>
              <timestamp>1969-07-21T02:56:15Z</timestamp>
              <reference-frame>
                <astronomical-body>moon</astronomical-body>
                <geodetic-system>
                  <geodetic-datum>me</geodetic-datum>
                </geodetic-system>
              </reference-frame>
              <latitude>0.67409</latitude>
              <longitude>23.47298</longitude>
            </geo-location>
          </locatable-item>
        </locatable-items>
      </ns0:config>

              Figure 4: Example XML data of geo location use.

Appendix B.  Acknowledgements

   We would like to thank Peter Lothberg for the motivation as well as
   help in defining a more broadly useful geographic location object.

   We would also like to thank Acee Lindem and Qin Wu for their work on
   a geographic location object that led to this documents creation.

Author's Address

   Christian Hopps
   LabN Consulting, L.L.C.

   Email: chopps@chopps.org