public bool SetAreaOfInterest(double westLongitudeDeg, double southLatitudeDeg, double eastLongitudeDeg, double northLatitudeDeg) { bool ret = OsrPINVOKE.CoordinateTransformationOptions_SetAreaOfInterest(swigCPtr, westLongitudeDeg, southLatitudeDeg, eastLongitudeDeg, northLatitudeDeg); if (OsrPINVOKE.SWIGPendingException.Pending) { throw OsrPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public bool SetBallparkAllowed(bool allowBallpark) { bool ret = OsrPINVOKE.CoordinateTransformationOptions_SetBallparkAllowed(swigCPtr, allowBallpark); if (OsrPINVOKE.SWIGPendingException.Pending) { throw OsrPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static bool OSRCRSInfo_bbox_valid_get(CRSInfo crsInfo) { bool ret = OsrPINVOKE.OSRCRSInfo_bbox_valid_get(CRSInfo.getCPtr(crsInfo)); if (OsrPINVOKE.SWIGPendingException.Pending) { throw OsrPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public bool SetOperation(string operation) { bool ret = OsrPINVOKE.CoordinateTransformationOptions_SetOperation(swigCPtr, operation); if (OsrPINVOKE.SWIGPendingException.Pending) { throw OsrPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static string OSRCRSInfo_projection_method_get(CRSInfo crsInfo) { string ret = OsrPINVOKE.OSRCRSInfo_projection_method_get(CRSInfo.getCPtr(crsInfo)); if (OsrPINVOKE.SWIGPendingException.Pending) { throw OsrPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static int GetWellKnownGeogCSAsWKT(string name, out string argout) { int ret = OsrPINVOKE.GetWellKnownGeogCSAsWKT(name, out argout); if (OsrPINVOKE.SWIGPendingException.Pending) { throw OsrPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static int GetPROJVersionMicro() { int ret = OsrPINVOKE.GetPROJVersionMicro(); if (OsrPINVOKE.SWIGPendingException.Pending) { throw OsrPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public bool SetDesiredAccuracy(double accuracy) { bool ret = OsrPINVOKE.CoordinateTransformationOptions_SetDesiredAccuracy(swigCPtr, accuracy); if (OsrPINVOKE.SWIGPendingException.Pending) { throw OsrPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static CRSType OSRCRSInfo_type_get(CRSInfo crsInfo) { CRSType ret = (CRSType)OsrPINVOKE.OSRCRSInfo_type_get(CRSInfo.getCPtr(crsInfo)); if (OsrPINVOKE.SWIGPendingException.Pending) { throw OsrPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static double OSRCRSInfo_north_lat_degree_get(CRSInfo crsInfo) { double ret = OsrPINVOKE.OSRCRSInfo_north_lat_degree_get(CRSInfo.getCPtr(crsInfo)); if (OsrPINVOKE.SWIGPendingException.Pending) { throw OsrPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static string OSRAreaOfUse_name_get(AreaOfUse area) { string ret = OsrPINVOKE.OSRAreaOfUse_name_get(AreaOfUse.getCPtr(area)); if (OsrPINVOKE.SWIGPendingException.Pending) { throw OsrPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static double OSRAreaOfUse_north_lat_degree_get(AreaOfUse area) { double ret = OsrPINVOKE.OSRAreaOfUse_north_lat_degree_get(AreaOfUse.getCPtr(area)); if (OsrPINVOKE.SWIGPendingException.Pending) { throw OsrPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public SpatialReference CloneGeogCS() { IntPtr cPtr = OsrPINVOKE.SpatialReference_CloneGeogCS(swigCPtr); SpatialReference ret = (cPtr == IntPtr.Zero) ? null : new SpatialReference(cPtr, true, ThisOwn_true()); if (OsrPINVOKE.SWIGPendingException.Pending) { throw OsrPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static CRSInfoList GetCRSInfoListFromDatabase(string authName, out int pnListCount) { IntPtr cPtr = OsrPINVOKE.GetCRSInfoListFromDatabase(authName, out pnListCount); CRSInfoList ret = (cPtr == IntPtr.Zero) ? null : new CRSInfoList(cPtr, true, ThisOwn_true()); if (OsrPINVOKE.SWIGPendingException.Pending) { throw OsrPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public SpatialReference ConvertToOtherProjection(string other_projection, string[] options) { IntPtr cPtr = OsrPINVOKE.SpatialReference_ConvertToOtherProjection(swigCPtr, other_projection, (options != null)? new OsrPINVOKE.StringListMarshal(options)._ar : null); SpatialReference ret = (cPtr == IntPtr.Zero) ? null : new SpatialReference(cPtr, true, ThisOwn_true()); if (OsrPINVOKE.SWIGPendingException.Pending) { throw OsrPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public CRSInfo get(int index) { IntPtr cPtr = OsrPINVOKE.CRSInfoList_get(swigCPtr, index); CRSInfo ret = (cPtr == IntPtr.Zero) ? null : new CRSInfo(cPtr, false, ThisOwn_false()); if (OsrPINVOKE.SWIGPendingException.Pending) { throw OsrPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
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); }
public AreaOfUse GetAreaOfUse() { IntPtr cPtr = OsrPINVOKE.SpatialReference_GetAreaOfUse(swigCPtr); AreaOfUse ret = (cPtr == IntPtr.Zero) ? null : new AreaOfUse(cPtr, true, ThisOwn_true()); if (OsrPINVOKE.SWIGPendingException.Pending) { throw OsrPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public virtual void Dispose() { lock (this) { if (swigCPtr.Handle != global::System.IntPtr.Zero) { if (swigCMemOwn) { swigCMemOwn = false; OsrPINVOKE.delete_SpatialReference(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } global::System.GC.SuppressFinalize(this); } }
public int[] GetDataAxisToSRSAxisMapping(out int count) { /* %typemap(csout) int *intList */ IntPtr cPtr = OsrPINVOKE.SpatialReference_GetDataAxisToSRSAxisMapping(swigCPtr, out count); int[] ret = new int[count]; if (count > 0) { System.Runtime.InteropServices.Marshal.Copy(cPtr, ret, 0, count); } if (OsrPINVOKE.SWIGPendingException.Pending) { throw OsrPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static void UseExceptions() { OsrPINVOKE.UseExceptions(); }
public AreaOfUse(double west_lon_degree, double south_lat_degree, double east_lon_degree, double north_lat_degree, string name) : this(OsrPINVOKE.new_AreaOfUse(west_lon_degree, south_lat_degree, east_lon_degree, north_lat_degree, name), true, null) { if (OsrPINVOKE.SWIGPendingException.Pending) { throw OsrPINVOKE.SWIGPendingException.Retrieve(); } }
public static void DontUseExceptions() { OsrPINVOKE.DontUseExceptions(); }
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(); } }
public CRSInfo(string auth_name, string code, string name, CRSType type, bool deprecated, bool bbox_valid, double west_lon_degree, double south_lat_degree, double east_lon_degree, double north_lat_degree, string area_name, string projection_method) : this(OsrPINVOKE.new_CRSInfo(auth_name, code, name, (int)type, deprecated, bbox_valid, west_lon_degree, south_lat_degree, east_lon_degree, north_lat_degree, area_name, projection_method), true, null) { if (OsrPINVOKE.SWIGPendingException.Pending) { throw OsrPINVOKE.SWIGPendingException.Retrieve(); } }