예제 #1
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();
     }
 }
예제 #2
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);
        }