Пример #1
0
        public static int GetUserInputAsWKT(string name, out string argout)
        {
            int ret = OsrPINVOKE.GetUserInputAsWKT(name, out argout);

            if (OsrPINVOKE.SWIGPendingException.Pending)
            {
                throw OsrPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #2
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);
        }
Пример #3
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);
     }
 }
Пример #4
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();
     }
 }
Пример #5
0
 public static void DontUseExceptions()
 {
     OsrPINVOKE.DontUseExceptions();
 }
Пример #6
0
 public static void UseExceptions()
 {
     OsrPINVOKE.UseExceptions();
 }