/// <summary>
        /// Converts to GeoAPI geometry type from database geometry type.
        /// </summary>
        /// <param name="value">The databse geometry value.</param>
        /// <returns></returns>
        protected override IGeometry ToGeometry(object value)
        {
            SdoGeometry sdoGeometry = value as SdoGeometry;

            if (sdoGeometry == null || sdoGeometry.IsNull)
            {
                return(null);
            }

            var reader   = new OracleGeometryReader();
            var geometry = reader.Read(sdoGeometry);

            this.SetDefaultSRID(geometry);
            return(geometry);
        }