gdal.cs
来自「支持各种栅格图像和矢量图像读取的库」· CS 代码 · 共 416 行 · 第 1/2 页
CS
416 行
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 1.3.31 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */namespace OSGeo.GDAL {using System;using System.Runtime.InteropServices;public class gdal { public static void UseExceptions() { gdalPINVOKE.UseExceptions(); } public static void DontUseExceptions() { gdalPINVOKE.DontUseExceptions(); } public static void Debug(string msg_class, string message) { gdalPINVOKE.Debug(msg_class, message); if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve(); } public static void Error(int msg_class, int err_code, string msg) { gdalPINVOKE.Error(msg_class, err_code, msg); if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve(); } public static int PushErrorHandler(string pszCallbackName) { int ret = gdalPINVOKE.PushErrorHandler__SWIG_0(pszCallbackName); if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static void PushErrorHandler(SWIGTYPE_p_CPLErrorHandler arg0) { gdalPINVOKE.PushErrorHandler__SWIG_1(SWIGTYPE_p_CPLErrorHandler.getCPtr(arg0)); if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve(); } public static void PopErrorHandler() { gdalPINVOKE.PopErrorHandler(); if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve(); } public static void ErrorReset() { gdalPINVOKE.ErrorReset(); if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve(); } public static int GetLastErrorNo() { int ret = gdalPINVOKE.GetLastErrorNo(); if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static int GetLastErrorType() { int ret = gdalPINVOKE.GetLastErrorType(); if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static string GetLastErrorMsg() { string ret = gdalPINVOKE.GetLastErrorMsg(); if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static void PushFinderLocation(string arg0) { gdalPINVOKE.PushFinderLocation(arg0); if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve(); } public static void PopFinderLocation() { gdalPINVOKE.PopFinderLocation(); if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve(); } public static void FinderClean() { gdalPINVOKE.FinderClean(); if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve(); } public static string FindFile(string arg0, string arg1) { string ret = gdalPINVOKE.FindFile(arg0, arg1); if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static void SetConfigOption(string arg0, string arg1) { gdalPINVOKE.SetConfigOption(arg0, arg1); if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve(); } public static string GetConfigOption(string arg0, string arg1) { string ret = gdalPINVOKE.GetConfigOption(arg0, arg1); if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static string CPLBinaryToHex(int nBytes, SWIGTYPE_p_GByte pabyData) { string ret = gdalPINVOKE.CPLBinaryToHex(nBytes, SWIGTYPE_p_GByte.getCPtr(pabyData)); if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static SWIGTYPE_p_GByte CPLHexToBinary(string pszHex, SWIGTYPE_p_int pnBytes) { IntPtr cPtr = gdalPINVOKE.CPLHexToBinary(pszHex, SWIGTYPE_p_int.getCPtr(pnBytes)); SWIGTYPE_p_GByte ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_GByte(cPtr, false? null : new object()); if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static double GDAL_GCP_GCPX_get(GCP h) { double ret = gdalPINVOKE.GDAL_GCP_GCPX_get(GCP.getCPtr(h)); if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static void GDAL_GCP_GCPX_set(GCP h, double val) { gdalPINVOKE.GDAL_GCP_GCPX_set(GCP.getCPtr(h), val); if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve(); } public static double GDAL_GCP_GCPY_get(GCP h) { double ret = gdalPINVOKE.GDAL_GCP_GCPY_get(GCP.getCPtr(h)); if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static void GDAL_GCP_GCPY_set(GCP h, double val) { gdalPINVOKE.GDAL_GCP_GCPY_set(GCP.getCPtr(h), val); if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve(); } public static double GDAL_GCP_GCPZ_get(GCP h) { double ret = gdalPINVOKE.GDAL_GCP_GCPZ_get(GCP.getCPtr(h)); if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static void GDAL_GCP_GCPZ_set(GCP h, double val) { gdalPINVOKE.GDAL_GCP_GCPZ_set(GCP.getCPtr(h), val); if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve(); } public static double GDAL_GCP_GCPPixel_get(GCP h) { double ret = gdalPINVOKE.GDAL_GCP_GCPPixel_get(GCP.getCPtr(h)); if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static void GDAL_GCP_GCPPixel_set(GCP h, double val) { gdalPINVOKE.GDAL_GCP_GCPPixel_set(GCP.getCPtr(h), val); if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve(); } public static double GDAL_GCP_GCPLine_get(GCP h) { double ret = gdalPINVOKE.GDAL_GCP_GCPLine_get(GCP.getCPtr(h)); if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static void GDAL_GCP_GCPLine_set(GCP h, double val) { gdalPINVOKE.GDAL_GCP_GCPLine_set(GCP.getCPtr(h), val); if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve(); } public static string GDAL_GCP_Info_get(GCP h) { string ret = gdalPINVOKE.GDAL_GCP_Info_get(GCP.getCPtr(h)); if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static void GDAL_GCP_Info_set(GCP h, string val) { gdalPINVOKE.GDAL_GCP_Info_set(GCP.getCPtr(h), val); if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve(); } public static string GDAL_GCP_Id_get(GCP h) { string ret = gdalPINVOKE.GDAL_GCP_Id_get(GCP.getCPtr(h)); if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static void GDAL_GCP_Id_set(GCP h, string val) { gdalPINVOKE.GDAL_GCP_Id_set(GCP.getCPtr(h), val); if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve(); } public static double GDAL_GCP_get_GCPX(GCP h) { double ret = gdalPINVOKE.GDAL_GCP_get_GCPX(GCP.getCPtr(h)); if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static void GDAL_GCP_set_GCPX(GCP h, double val) { gdalPINVOKE.GDAL_GCP_set_GCPX(GCP.getCPtr(h), val); if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve(); } public static double GDAL_GCP_get_GCPY(GCP h) { double ret = gdalPINVOKE.GDAL_GCP_get_GCPY(GCP.getCPtr(h)); if (gdalPINVOKE.SWIGPendingException.Pending) throw gdalPINVOKE.SWIGPendingException.Retrieve(); return ret;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?