gdal.cs

来自「支持各种栅格图像和矢量图像读取的库」· CS 代码 · 共 416 行 · 第 1/2 页

CS
416
字号
  }  public static void GDAL_GCP_set_GCPY(GCP h, double val) {    gdalPINVOKE.GDAL_GCP_set_GCPY(GCP.getCPtr(h), val);    if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve();  }  public static double GDAL_GCP_get_GCPZ(GCP h) {    double ret = gdalPINVOKE.GDAL_GCP_get_GCPZ(GCP.getCPtr(h));    if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve();    return ret;  }  public static void GDAL_GCP_set_GCPZ(GCP h, double val) {    gdalPINVOKE.GDAL_GCP_set_GCPZ(GCP.getCPtr(h), val);    if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve();  }  public static double GDAL_GCP_get_GCPPixel(GCP h) {    double ret = gdalPINVOKE.GDAL_GCP_get_GCPPixel(GCP.getCPtr(h));    if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve();    return ret;  }  public static void GDAL_GCP_set_GCPPixel(GCP h, double val) {    gdalPINVOKE.GDAL_GCP_set_GCPPixel(GCP.getCPtr(h), val);    if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve();  }  public static double GDAL_GCP_get_GCPLine(GCP h) {    double ret = gdalPINVOKE.GDAL_GCP_get_GCPLine(GCP.getCPtr(h));    if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve();    return ret;  }  public static void GDAL_GCP_set_GCPLine(GCP h, double val) {    gdalPINVOKE.GDAL_GCP_set_GCPLine(GCP.getCPtr(h), val);    if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve();  }  public static string GDAL_GCP_get_Info(GCP h) {    string ret = gdalPINVOKE.GDAL_GCP_get_Info(GCP.getCPtr(h));    if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve();    return ret;  }  public static void GDAL_GCP_set_Info(GCP h, string val) {    gdalPINVOKE.GDAL_GCP_set_Info(GCP.getCPtr(h), val);    if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve();  }  public static string GDAL_GCP_get_Id(GCP h) {    string ret = gdalPINVOKE.GDAL_GCP_get_Id(GCP.getCPtr(h));    if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve();    return ret;  }  public static void GDAL_GCP_set_Id(GCP h, string val) {    gdalPINVOKE.GDAL_GCP_set_Id(GCP.getCPtr(h), val);    if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve();  }  public static SWIGTYPE_p_FALSE_IS_ERR GCPsToGeoTransform(int nGCPs, GCP pGCPs, double[] argout, int bApproxOK) {    SWIGTYPE_p_FALSE_IS_ERR ret = new SWIGTYPE_p_FALSE_IS_ERR(gdalPINVOKE.GCPsToGeoTransform(nGCPs, GCP.getCPtr(pGCPs), argout, bApproxOK), null);    if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve();    return ret;  }  public static void AllRegister() {    gdalPINVOKE.AllRegister();    if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve();  }  public static int GetCacheMax() {    int ret = gdalPINVOKE.GetCacheMax();    if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve();    return ret;  }  public static void SetCacheMax(int nBytes) {    gdalPINVOKE.SetCacheMax(nBytes);    if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve();  }  public static int GetCacheUsed() {    int ret = gdalPINVOKE.GetCacheUsed();    if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve();    return ret;  }  public static int GetDataTypeSize(int arg0) {    int ret = gdalPINVOKE.GetDataTypeSize(arg0);    if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve();    return ret;  }  public static int DataTypeIsComplex(int arg0) {    int ret = gdalPINVOKE.DataTypeIsComplex(arg0);    if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve();    return ret;  }  public static string GetDataTypeName(int arg0) {    string ret = gdalPINVOKE.GetDataTypeName(arg0);    if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve();    return ret;  }  public static int GetDataTypeByName(string arg0) {    int ret = gdalPINVOKE.GetDataTypeByName(arg0);    if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve();    return ret;  }  public static string GetColorInterpretationName(int arg0) {    string ret = gdalPINVOKE.GetColorInterpretationName(arg0);    if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve();    return ret;  }  public static string GetPaletteInterpretationName(int arg0) {    string ret = gdalPINVOKE.GetPaletteInterpretationName(arg0);    if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve();    return ret;  }  public static string DecToDMS(double arg0, string arg1, int arg2) {    string ret = gdalPINVOKE.DecToDMS(arg0, arg1, arg2);    if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve();    return ret;  }  public static double PackedDMSToDec(double arg0) {    double ret = gdalPINVOKE.PackedDMSToDec(arg0);    if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve();    return ret;  }  public static double DecToPackedDMS(double arg0) {    double ret = gdalPINVOKE.DecToPackedDMS(arg0);    if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve();    return ret;  }  public static XMLNode ParseXMLString(string arg0) {    IntPtr cPtr = gdalPINVOKE.ParseXMLString(arg0);    XMLNode ret = (cPtr == IntPtr.Zero) ? null : new XMLNode(cPtr, true? null : new object());    if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve();    return ret;  }  public static string SerializeXMLTree(XMLNode xmlnode) {    string ret = gdalPINVOKE.SerializeXMLTree(XMLNode.getCPtr(xmlnode));    if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve();    return ret;  }  public static int GetDriverCount() {    int ret = gdalPINVOKE.GetDriverCount();    if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve();    return ret;  }  public static Driver GetDriverByName(string name) {    IntPtr cPtr = gdalPINVOKE.GetDriverByName(name);    Driver ret = (cPtr == IntPtr.Zero) ? null : new Driver(cPtr, false? null : new object());    if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve();    return ret;  }  public static Driver GetDriver(int i) {    IntPtr cPtr = gdalPINVOKE.GetDriver(i);    Driver ret = (cPtr == IntPtr.Zero) ? null : new Driver(cPtr, false? null : new object());    if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve();    return ret;  }  public static Dataset Open(string name, int eAccess) {    IntPtr cPtr = gdalPINVOKE.Open(name, eAccess);    Dataset ret = (cPtr == IntPtr.Zero) ? null : new Dataset(cPtr, true? null : new object());    if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve();    return ret;  }  public static Dataset OpenShared(string name, int eAccess) {    IntPtr cPtr = gdalPINVOKE.OpenShared(name, eAccess);    Dataset ret = (cPtr == IntPtr.Zero) ? null : new Dataset(cPtr, true? null : new object());    if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve();    return ret;  }  public static Dataset AutoCreateWarpedVRT(Dataset src_ds, string src_wkt, string dst_wkt, int eResampleAlg, double maxerror) {    IntPtr cPtr = gdalPINVOKE.AutoCreateWarpedVRT(Dataset.getCPtr(src_ds), src_wkt, dst_wkt, eResampleAlg, maxerror);    Dataset ret = (cPtr == IntPtr.Zero) ? null : new Dataset(cPtr, true? null : new object());    if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve();    return ret;  }  public static string[] GeneralCmdLineProcessor(string[] papszArgv, int nOptions) {        if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve();    throw new System.NotSupportedException("Returning string arrays is not implemented yet.");}}}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?