Exemplo 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);
        }
Exemplo 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);
     }
 }
Exemplo n.º 3
0
 public static void UseExceptions()
 {
     OsrPINVOKE.UseExceptions();
 }
Exemplo n.º 4
0
 public static void DontUseExceptions()
 {
     OsrPINVOKE.DontUseExceptions();
 }
Exemplo n.º 5
0
 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();
     }
 }