示例#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();
 }