コード例 #1
0
        /// <summary>
        /// Convert a ICoordinateSystem instance
        /// to a WebCoordinateSystem instance.
        /// </summary>
        /// <param name="coordinateSystem">An ICoordinateSystem instance.</param>
        /// <returns>A WebCoordinateSystem instance.</returns>
        protected WebCoordinateSystem GetCoordinateSystem(ICoordinateSystem coordinateSystem)
        {
            WebCoordinateSystem webCoordinateSystem;

            webCoordinateSystem = null;
            if (coordinateSystem.IsNotNull())
            {
                webCoordinateSystem     = new WebCoordinateSystem();
                webCoordinateSystem.Id  = coordinateSystem.Id;
                webCoordinateSystem.WKT = coordinateSystem.WKT;
            }

            return(webCoordinateSystem);
        }