Programming with JViews Maps > Ellipsoid and Geodetic Datums > Geodetic Datums > Predefined Datums

The IlvHorizontalDatumCollection class manages lists of predefined horizontal datums. The list of predefined datums in the JViews Maps package, or kernel collection, can be retrieved using the GetKernelCollection() method.

Like Ellipsoid collections, horizontal datum collections are read from XML files containing the definitions. The DTD for these definition files is:

<!DOCTYPE datum-list [
  <!ELEMENT datum EMPTY>
  <!ATTLIST datum
     name    CDATA   #REQUIRED
     region  CDATA   #IMPLIED
     ellipsoid  CDATA #REQUIRED
     dx      CDATA   #REQUIRED
     dy      CDATA   #REQUIRED
     dz      CDATA   #REQUIRED
     ex      CDATA   #IMPLIED
     ey      CDATA   #IMPLIED
     ez      CDATA   #IMPLIED
     ppm     CDATA   #IMPLIED
  >

  <!ELEMENT datum-ref EMPTY>
  <!ATTLIST datum-ref
     ref     CDATA   #REQUIRED
     id      CDATA   #REQUIRED
  >

  <!ELEMENT datum-list (datum|datum-ref)* >
]>

In a horizontal datum definition file, you can find:

The following XML file defines the Afgooye datum, while setting an alias for the NAD 27 datum

<datum-list>
  <datum name="Afgooye"
         region="Somalia"
         ellipsoid="krass"
         dx="-43"
         dy="-163"
         dz="-45"
  />

   <datum-ref id="NAD27"
              ref="NAD27 (CONUS)"
   />
</datum-list>

Note
JViews Maps comes with a default list of datums. Over time, many datums were tuned for given regions of use, while keeping the same name. This causes many datums to have the same name but different parameters. In applications where strict conformance to some datums is needed, you should use your own datum definition instead of relying on the list provided in JViews Maps.