Esempio n. 1
0
        public SpatialReference Clone()
        {
            IntPtr           cPtr = OsrPINVOKE.SpatialReference_Clone(swigCPtr);
            SpatialReference ret  = (cPtr == IntPtr.Zero) ? null : new SpatialReference(cPtr, true, ThisOwn_true());

            if (OsrPINVOKE.SWIGPendingException.Pending)
            {
                throw OsrPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 2
0
 public virtual void Dispose()
 {
     lock (this) {
         if (swigCPtr.Handle != IntPtr.Zero && swigCMemOwn)
         {
             swigCMemOwn = false;
             OsrPINVOKE.delete_SpatialReference(swigCPtr);
         }
         swigCPtr      = new HandleRef(null, IntPtr.Zero);
         swigParentRef = null;
         GC.SuppressFinalize(this);
     }
 }
Esempio n. 3
0
 public static void UseExceptions()
 {
     OsrPINVOKE.UseExceptions();
 }
Esempio n. 4
0
 public static void DontUseExceptions()
 {
     OsrPINVOKE.DontUseExceptions();
 }
 public CoordinateTransformation(SpatialReference src, SpatialReference dst) : this(OsrPINVOKE.new_CoordinateTransformation(SpatialReference.getCPtr(src), SpatialReference.getCPtr(dst)), true, null)
 {
     if (OsrPINVOKE.SWIGPendingException.Pending)
     {
         throw OsrPINVOKE.SWIGPendingException.Retrieve();
     }
 }