NAD27WesternUSDatum.java :  » UnTagged » mileagecalc » uk » me » jstott » jcoord » datum » nad27 » Android Open Source

Android Open Source » UnTagged » mileagecalc 
mileagecalc » uk » me » jstott » jcoord » datum » nad27 » NAD27WesternUSDatum.java
package uk.me.jstott.jcoord.datum.nad27;

import uk.me.jstott.jcoord.datum.Datum;
import uk.me.jstott.jcoord.ellipsoid.Clarke1866Ellipsoid;

/**
 * <p>
 * This class is part of the Jcoord package. Visit the <a
 * href="http://www.jstott.me.uk/jcoord/">Jcoord</a> website for more
 * information.
 * </p>
 * 
 * <p>
 * Class representing the NAD27 (Western US) datum.
 * </p>
 * 
 * <p>
 * (c) 2006 Jonathan Stott
 * </p>
 * 
 * <p>
 * Created on 02-Apr-2006
 * </p>
 * 
 * @author Jonathan Stott
 * @version 1.1
 * @since 1.1
 */
public class NAD27WesternUSDatum extends Datum {
  
  /**
   * Static reference of this datum.
   */
  private static NAD27WesternUSDatum ref = null;
  

  /**
   * Create a new NAD27 (Western US) datum object.
   * 
   * @since 1.1
   */
  private NAD27WesternUSDatum() {
    name = "North American Datum 1927 (NAD27) - Western US";
    ellipsoid = Clarke1866Ellipsoid.getInstance();
    dx = -8.0;
    dy = 159.0;
    dz = 175.0;
    ds = 0.0;
    rx = 0.0;
    ry = 0.0;
    rz = 0.0;
  }
  
  
  /**
   * Get the static instance of this datum
   * 
   * @return a reference to the static instance of this datum
   * @since 1.1
   */
  public static NAD27WesternUSDatum getInstance() {
    if (ref == null) { 
      ref = new NAD27WesternUSDatum();
    }
    return ref;
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.