Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ProjectedCoordinateReferenceSystem" /> 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="scope">The scope.</param>
        /// <param name="baseReferenceSystem">The base reference system.</param>
        /// <param name="coordinateSystem">The coordinate system.</param>
        /// <param name="areaOfUse">The area of use.</param>
        /// <param name="projection">The projection.</param>
        /// <exception cref="System.ArgumentNullException">
        /// The identifier is null.
        /// or
        /// The base reference system is null.
        /// or
        /// The coordinate system is null.
        /// or
        /// The projection is null.
        /// </exception>
        public ProjectedCoordinateReferenceSystem(String identifier, String name, String remarks, String[] aliases, String scope, GeographicCoordinateReferenceSystem baseReferenceSystem, CoordinateSystem coordinateSystem, AreaOfUse areaOfUse, CoordinateProjection projection)
            : base(identifier, name, remarks, aliases, scope, coordinateSystem, baseReferenceSystem != null ? baseReferenceSystem.Datum : null, areaOfUse)
        {
            if (baseReferenceSystem == null)
            {
                throw new ArgumentNullException("baseReferenceSystem", "The base reference system is null.");
            }

            _baseReferenceSystem = baseReferenceSystem;
            _projection          = projection;
        }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProjectedCoordinateReferenceSystem" /> class.
 /// </summary>
 /// <param name="identifier">The identifier.</param>
 /// <param name="name">The name.</param>
 /// <param name="baseReferenceSystem">The base reference system.</param>
 /// <param name="coordinateSystem">The coordinate system.</param>
 /// <param name="areaOfUse">The area of use.</param>
 /// <param name="projection">The projection.</param>
 /// <exception cref="System.ArgumentNullException">
 /// The identifier is null.
 /// or
 /// The base reference system is null.
 /// or
 /// The coordinate system is null.
 /// </exception>
 public ProjectedCoordinateReferenceSystem(String identifier, String name, GeographicCoordinateReferenceSystem baseReferenceSystem, CoordinateSystem coordinateSystem, AreaOfUse areaOfUse, CoordinateProjection projection)
     : this(identifier, name, null, null, null, baseReferenceSystem, coordinateSystem, areaOfUse, projection)
 {
 }