コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="GeodeticDatum" /> class.
        /// </summary>
        /// <param name="identifier">The identifier.</param>
        /// <param name="name">The name.</param>
        /// <param name="remarks">The remarks.</param>
        /// <param name="aliases">The aliases.</param>
        /// <param name="anchorPoint">The anchor point.</param>
        /// <param name="realizationEpoch">The realization epoch.</param>
        /// <param name="scope">The scope.</param>
        /// <param name="areaOfUse">The area of use.</param>
        /// <param name="ellipsoid">The ellipsoid.</param>
        /// <param name="primeMeridian">The prime meridian.</param>
        /// <exception cref="System.ArgumentNullException">
        /// The identifier is null.
        /// or
        /// The ellipsoid is null.
        /// </exception>
        public GeodeticDatum(String identifier, String name, String remarks, String[] aliases, String anchorPoint, String realizationEpoch, String scope, AreaOfUse areaOfUse, Ellipsoid ellipsoid, Meridian primeMeridian)
            : base(identifier, name, remarks, aliases, anchorPoint, realizationEpoch, scope)
        {
            if (ellipsoid == null)
            {
                throw new ArgumentNullException("ellipsoid", "The ellipsoid is null.");
            }

            _areaOfUse     = areaOfUse;
            _ellipsoid     = ellipsoid;
            _primeMeridian = primeMeridian ?? Meridians.Greenwich;
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GeodeticDatum" /> class.
 /// </summary>
 /// <param name="identifier">The identifier.</param>
 /// <param name="name">The name.</param>
 /// <param name="anchorPoint">The anchor point.</param>
 /// <param name="realizationEpoch">The realization epoch.</param>
 /// <param name="areaOfUse">The area of use.</param>
 /// <param name="ellipsoid">The ellipsoid.</param>
 /// <param name="primeMeridian">The prime meridian.</param>
 /// <exception cref="System.ArgumentNullException">
 /// The identifier is null.
 /// or
 /// The ellipsoid is null.
 /// </exception>
 public GeodeticDatum(String identifier, String name, String anchorPoint, String realizationEpoch, AreaOfUse areaOfUse, Ellipsoid ellipsoid, Meridian primeMeridian)
     : this(identifier, name, null, null, anchorPoint, realizationEpoch, null, areaOfUse, ellipsoid, primeMeridian)
 {
 }