public bool SetAreaOfInterest(double westLongitudeDeg, double southLatitudeDeg, double eastLongitudeDeg, double northLatitudeDeg)
        {
            bool ret = OsrPINVOKE.CoordinateTransformationOptions_SetAreaOfInterest(swigCPtr, westLongitudeDeg, southLatitudeDeg, eastLongitudeDeg, northLatitudeDeg);

            if (OsrPINVOKE.SWIGPendingException.Pending)
            {
                throw OsrPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public bool SetBallparkAllowed(bool allowBallpark)
        {
            bool ret = OsrPINVOKE.CoordinateTransformationOptions_SetBallparkAllowed(swigCPtr, allowBallpark);

            if (OsrPINVOKE.SWIGPendingException.Pending)
            {
                throw OsrPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 3
0
        public static bool OSRCRSInfo_bbox_valid_get(CRSInfo crsInfo)
        {
            bool ret = OsrPINVOKE.OSRCRSInfo_bbox_valid_get(CRSInfo.getCPtr(crsInfo));

            if (OsrPINVOKE.SWIGPendingException.Pending)
            {
                throw OsrPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public bool SetOperation(string operation)
        {
            bool ret = OsrPINVOKE.CoordinateTransformationOptions_SetOperation(swigCPtr, operation);

            if (OsrPINVOKE.SWIGPendingException.Pending)
            {
                throw OsrPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 5
0
        public static string OSRCRSInfo_projection_method_get(CRSInfo crsInfo)
        {
            string ret = OsrPINVOKE.OSRCRSInfo_projection_method_get(CRSInfo.getCPtr(crsInfo));

            if (OsrPINVOKE.SWIGPendingException.Pending)
            {
                throw OsrPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 6
0
        public static int GetWellKnownGeogCSAsWKT(string name, out string argout)
        {
            int ret = OsrPINVOKE.GetWellKnownGeogCSAsWKT(name, out argout);

            if (OsrPINVOKE.SWIGPendingException.Pending)
            {
                throw OsrPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 7
0
        public static int GetPROJVersionMicro()
        {
            int ret = OsrPINVOKE.GetPROJVersionMicro();

            if (OsrPINVOKE.SWIGPendingException.Pending)
            {
                throw OsrPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public bool SetDesiredAccuracy(double accuracy)
        {
            bool ret = OsrPINVOKE.CoordinateTransformationOptions_SetDesiredAccuracy(swigCPtr, accuracy);

            if (OsrPINVOKE.SWIGPendingException.Pending)
            {
                throw OsrPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 9
0
        public static CRSType OSRCRSInfo_type_get(CRSInfo crsInfo)
        {
            CRSType ret = (CRSType)OsrPINVOKE.OSRCRSInfo_type_get(CRSInfo.getCPtr(crsInfo));

            if (OsrPINVOKE.SWIGPendingException.Pending)
            {
                throw OsrPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 10
0
        public static double OSRCRSInfo_north_lat_degree_get(CRSInfo crsInfo)
        {
            double ret = OsrPINVOKE.OSRCRSInfo_north_lat_degree_get(CRSInfo.getCPtr(crsInfo));

            if (OsrPINVOKE.SWIGPendingException.Pending)
            {
                throw OsrPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 11
0
        public static string OSRAreaOfUse_name_get(AreaOfUse area)
        {
            string ret = OsrPINVOKE.OSRAreaOfUse_name_get(AreaOfUse.getCPtr(area));

            if (OsrPINVOKE.SWIGPendingException.Pending)
            {
                throw OsrPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 12
0
        public static double OSRAreaOfUse_north_lat_degree_get(AreaOfUse area)
        {
            double ret = OsrPINVOKE.OSRAreaOfUse_north_lat_degree_get(AreaOfUse.getCPtr(area));

            if (OsrPINVOKE.SWIGPendingException.Pending)
            {
                throw OsrPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 13
0
        public SpatialReference CloneGeogCS()
        {
            IntPtr           cPtr = OsrPINVOKE.SpatialReference_CloneGeogCS(swigCPtr);
            SpatialReference ret  = (cPtr == IntPtr.Zero) ? null : new SpatialReference(cPtr, true, ThisOwn_true());

            if (OsrPINVOKE.SWIGPendingException.Pending)
            {
                throw OsrPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 14
0
        public static CRSInfoList GetCRSInfoListFromDatabase(string authName, out int pnListCount)
        {
            IntPtr      cPtr = OsrPINVOKE.GetCRSInfoListFromDatabase(authName, out pnListCount);
            CRSInfoList ret  = (cPtr == IntPtr.Zero) ? null : new CRSInfoList(cPtr, true, ThisOwn_true());

            if (OsrPINVOKE.SWIGPendingException.Pending)
            {
                throw OsrPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 15
0
        public SpatialReference ConvertToOtherProjection(string other_projection, string[] options)
        {
            IntPtr           cPtr = OsrPINVOKE.SpatialReference_ConvertToOtherProjection(swigCPtr, other_projection, (options != null)? new OsrPINVOKE.StringListMarshal(options)._ar : null);
            SpatialReference ret  = (cPtr == IntPtr.Zero) ? null : new SpatialReference(cPtr, true, ThisOwn_true());

            if (OsrPINVOKE.SWIGPendingException.Pending)
            {
                throw OsrPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 16
0
        public CRSInfo get(int index)
        {
            IntPtr  cPtr = OsrPINVOKE.CRSInfoList_get(swigCPtr, index);
            CRSInfo ret  = (cPtr == IntPtr.Zero) ? null : new CRSInfo(cPtr, false, ThisOwn_false());

            if (OsrPINVOKE.SWIGPendingException.Pending)
            {
                throw OsrPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 17
0
        public static CoordinateTransformation CreateCoordinateTransformation(SpatialReference src, SpatialReference dst, CoordinateTransformationOptions options)
        {
            IntPtr cPtr = OsrPINVOKE.CreateCoordinateTransformation(SpatialReference.getCPtr(src), SpatialReference.getCPtr(dst), CoordinateTransformationOptions.getCPtr(options));
            CoordinateTransformation ret = (cPtr == IntPtr.Zero) ? null : new CoordinateTransformation(cPtr, true, ThisOwn_true());

            if (OsrPINVOKE.SWIGPendingException.Pending)
            {
                throw OsrPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 18
0
        public AreaOfUse GetAreaOfUse()
        {
            IntPtr    cPtr = OsrPINVOKE.SpatialReference_GetAreaOfUse(swigCPtr);
            AreaOfUse ret  = (cPtr == IntPtr.Zero) ? null : new AreaOfUse(cPtr, true, ThisOwn_true());

            if (OsrPINVOKE.SWIGPendingException.Pending)
            {
                throw OsrPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 19
0
 public virtual void Dispose()
 {
     lock (this) {
         if (swigCPtr.Handle != global::System.IntPtr.Zero)
         {
             if (swigCMemOwn)
             {
                 swigCMemOwn = false;
                 OsrPINVOKE.delete_SpatialReference(swigCPtr);
             }
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
         }
         global::System.GC.SuppressFinalize(this);
     }
 }
Ejemplo n.º 20
0
        public int[] GetDataAxisToSRSAxisMapping(out int count)
        {
            /* %typemap(csout) int *intList */
            IntPtr cPtr = OsrPINVOKE.SpatialReference_GetDataAxisToSRSAxisMapping(swigCPtr, out count);

            int[] ret = new int[count];
            if (count > 0)
            {
                System.Runtime.InteropServices.Marshal.Copy(cPtr, ret, 0, count);
            }

            if (OsrPINVOKE.SWIGPendingException.Pending)
            {
                throw OsrPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 21
0
 public static void UseExceptions()
 {
     OsrPINVOKE.UseExceptions();
 }
Ejemplo n.º 22
0
 public AreaOfUse(double west_lon_degree, double south_lat_degree, double east_lon_degree, double north_lat_degree, string name) : this(OsrPINVOKE.new_AreaOfUse(west_lon_degree, south_lat_degree, east_lon_degree, north_lat_degree, name), true, null)
 {
     if (OsrPINVOKE.SWIGPendingException.Pending)
     {
         throw OsrPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 23
0
 public static void DontUseExceptions()
 {
     OsrPINVOKE.DontUseExceptions();
 }
Ejemplo n.º 24
0
 public CoordinateTransformation(SpatialReference src, SpatialReference dst, CoordinateTransformationOptions options) : this(OsrPINVOKE.new_CoordinateTransformation__SWIG_1(SpatialReference.getCPtr(src), SpatialReference.getCPtr(dst), CoordinateTransformationOptions.getCPtr(options)), true, null)
 {
     if (OsrPINVOKE.SWIGPendingException.Pending)
     {
         throw OsrPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 25
0
 public CRSInfo(string auth_name, string code, string name, CRSType type, bool deprecated, bool bbox_valid, double west_lon_degree, double south_lat_degree, double east_lon_degree, double north_lat_degree, string area_name, string projection_method) : this(OsrPINVOKE.new_CRSInfo(auth_name, code, name, (int)type, deprecated, bbox_valid, west_lon_degree, south_lat_degree, east_lon_degree, north_lat_degree, area_name, projection_method), true, null)
 {
     if (OsrPINVOKE.SWIGPendingException.Pending)
     {
         throw OsrPINVOKE.SWIGPendingException.Retrieve();
     }
 }