ogrpinvoke.cs
来自「支持各种栅格图像和矢量图像读取的库」· CS 代码 · 共 877 行 · 第 1/3 页
CS
877 行
/* ---------------------------------------------------------------------------- * 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.OGR {using System;using System.Runtime.InteropServices;class ogrPINVOKE { protected class SWIGExceptionHelper { public delegate void ExceptionDelegate(string message); public delegate void ExceptionArgumentDelegate(string message, string paramName); static ExceptionDelegate applicationDelegate = new ExceptionDelegate(SetPendingApplicationException); static ExceptionDelegate arithmeticDelegate = new ExceptionDelegate(SetPendingArithmeticException); static ExceptionDelegate divideByZeroDelegate = new ExceptionDelegate(SetPendingDivideByZeroException); static ExceptionDelegate indexOutOfRangeDelegate = new ExceptionDelegate(SetPendingIndexOutOfRangeException); static ExceptionDelegate invalidCastDelegate = new ExceptionDelegate(SetPendingInvalidCastException); static ExceptionDelegate invalidOperationDelegate = new ExceptionDelegate(SetPendingInvalidOperationException); static ExceptionDelegate ioDelegate = new ExceptionDelegate(SetPendingIOException); static ExceptionDelegate nullReferenceDelegate = new ExceptionDelegate(SetPendingNullReferenceException); static ExceptionDelegate outOfMemoryDelegate = new ExceptionDelegate(SetPendingOutOfMemoryException); static ExceptionDelegate overflowDelegate = new ExceptionDelegate(SetPendingOverflowException); static ExceptionDelegate systemDelegate = new ExceptionDelegate(SetPendingSystemException); static ExceptionArgumentDelegate argumentDelegate = new ExceptionArgumentDelegate(SetPendingArgumentException); static ExceptionArgumentDelegate argumentNullDelegate = new ExceptionArgumentDelegate(SetPendingArgumentNullException); static ExceptionArgumentDelegate argumentOutOfRangeDelegate = new ExceptionArgumentDelegate(SetPendingArgumentOutOfRangeException); [DllImport("ogr_wrap", EntryPoint="SWIGRegisterExceptionCallbacks_ogr")] public static extern void SWIGRegisterExceptionCallbacks_ogr( ExceptionDelegate applicationDelegate, ExceptionDelegate arithmeticDelegate, ExceptionDelegate divideByZeroDelegate, ExceptionDelegate indexOutOfRangeDelegate, ExceptionDelegate invalidCastDelegate, ExceptionDelegate invalidOperationDelegate, ExceptionDelegate ioDelegate, ExceptionDelegate nullReferenceDelegate, ExceptionDelegate outOfMemoryDelegate, ExceptionDelegate overflowDelegate, ExceptionDelegate systemExceptionDelegate); [DllImport("ogr_wrap", EntryPoint="SWIGRegisterExceptionArgumentCallbacks_ogr")] public static extern void SWIGRegisterExceptionCallbacksArgument_ogr( ExceptionArgumentDelegate argumentDelegate, ExceptionArgumentDelegate argumentNullDelegate, ExceptionArgumentDelegate argumentOutOfRangeDelegate); static void SetPendingApplicationException(string message) { SWIGPendingException.Set(new System.ApplicationException(message, SWIGPendingException.Retrieve())); } static void SetPendingArithmeticException(string message) { SWIGPendingException.Set(new System.ArithmeticException(message, SWIGPendingException.Retrieve())); } static void SetPendingDivideByZeroException(string message) { SWIGPendingException.Set(new System.DivideByZeroException(message, SWIGPendingException.Retrieve())); } static void SetPendingIndexOutOfRangeException(string message) { SWIGPendingException.Set(new System.IndexOutOfRangeException(message, SWIGPendingException.Retrieve())); } static void SetPendingInvalidCastException(string message) { SWIGPendingException.Set(new System.InvalidCastException(message, SWIGPendingException.Retrieve())); } static void SetPendingInvalidOperationException(string message) { SWIGPendingException.Set(new System.InvalidOperationException(message, SWIGPendingException.Retrieve())); } static void SetPendingIOException(string message) { SWIGPendingException.Set(new System.IO.IOException(message, SWIGPendingException.Retrieve())); } static void SetPendingNullReferenceException(string message) { SWIGPendingException.Set(new System.NullReferenceException(message, SWIGPendingException.Retrieve())); } static void SetPendingOutOfMemoryException(string message) { SWIGPendingException.Set(new System.OutOfMemoryException(message, SWIGPendingException.Retrieve())); } static void SetPendingOverflowException(string message) { SWIGPendingException.Set(new System.OverflowException(message, SWIGPendingException.Retrieve())); } static void SetPendingSystemException(string message) { SWIGPendingException.Set(new System.SystemException(message, SWIGPendingException.Retrieve())); } static void SetPendingArgumentException(string message, string paramName) { SWIGPendingException.Set(new System.ArgumentException(message, paramName, SWIGPendingException.Retrieve())); } static void SetPendingArgumentNullException(string message, string paramName) { Exception e = SWIGPendingException.Retrieve(); if (e != null) message = message + " Inner Exception: " + e.Message; SWIGPendingException.Set(new System.ArgumentNullException(paramName, message)); } static void SetPendingArgumentOutOfRangeException(string message, string paramName) { Exception e = SWIGPendingException.Retrieve(); if (e != null) message = message + " Inner Exception: " + e.Message; SWIGPendingException.Set(new System.ArgumentOutOfRangeException(paramName, message)); } static SWIGExceptionHelper() { SWIGRegisterExceptionCallbacks_ogr( applicationDelegate, arithmeticDelegate, divideByZeroDelegate, indexOutOfRangeDelegate, invalidCastDelegate, invalidOperationDelegate, ioDelegate, nullReferenceDelegate, outOfMemoryDelegate, overflowDelegate, systemDelegate); SWIGRegisterExceptionCallbacksArgument_ogr( argumentDelegate, argumentNullDelegate, argumentOutOfRangeDelegate); } } protected static SWIGExceptionHelper swigExceptionHelper = new SWIGExceptionHelper(); public class SWIGPendingException { [ThreadStatic] private static Exception pendingException = null; private static int numExceptionsPending = 0; public static bool Pending { get { bool pending = false; if (numExceptionsPending > 0) if (pendingException != null) pending = true; return pending; } } public static void Set(Exception e) { if (pendingException != null) throw new ApplicationException("FATAL: An earlier pending exception from unmanaged code was missed and thus not thrown (" + pendingException.ToString() + ")", e); pendingException = e; lock(typeof(ogrPINVOKE)) { numExceptionsPending++; } } public static Exception Retrieve() { Exception e = null; if (numExceptionsPending > 0) { if (pendingException != null) { e = pendingException; pendingException = null; lock(typeof(ogrPINVOKE)) { numExceptionsPending--; } } } return e; } } protected class SWIGStringHelper { public delegate string SWIGStringDelegate(string message); static SWIGStringDelegate stringDelegate = new SWIGStringDelegate(CreateString); [DllImport("ogr_wrap", EntryPoint="SWIGRegisterStringCallback_ogr")] public static extern void SWIGRegisterStringCallback_ogr(SWIGStringDelegate stringDelegate); static string CreateString(string cString) { return cString; } static SWIGStringHelper() { SWIGRegisterStringCallback_ogr(stringDelegate); } } static protected SWIGStringHelper swigStringHelper = new SWIGStringHelper(); [DllImport("ogr_wrap", EntryPoint="CSharp_wkb25Bit_get")] public static extern int wkb25Bit_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_wkbUnknown_get")] public static extern int wkbUnknown_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_wkbPoint_get")] public static extern int wkbPoint_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_wkbLineString_get")] public static extern int wkbLineString_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_wkbPolygon_get")] public static extern int wkbPolygon_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_wkbMultiPoint_get")] public static extern int wkbMultiPoint_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_wkbMultiLineString_get")] public static extern int wkbMultiLineString_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_wkbMultiPolygon_get")] public static extern int wkbMultiPolygon_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_wkbGeometryCollection_get")] public static extern int wkbGeometryCollection_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_wkbNone_get")] public static extern int wkbNone_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_wkbLinearRing_get")] public static extern int wkbLinearRing_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_wkbPoint25D_get")] public static extern int wkbPoint25D_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_wkbLineString25D_get")] public static extern int wkbLineString25D_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_wkbPolygon25D_get")] public static extern int wkbPolygon25D_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_wkbMultiPoint25D_get")] public static extern int wkbMultiPoint25D_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_wkbMultiLineString25D_get")] public static extern int wkbMultiLineString25D_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_wkbMultiPolygon25D_get")] public static extern int wkbMultiPolygon25D_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_wkbGeometryCollection25D_get")] public static extern int wkbGeometryCollection25D_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_OFTInteger_get")] public static extern int OFTInteger_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_OFTIntegerList_get")] public static extern int OFTIntegerList_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_OFTReal_get")] public static extern int OFTReal_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_OFTRealList_get")] public static extern int OFTRealList_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_OFTString_get")] public static extern int OFTString_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_OFTStringList_get")] public static extern int OFTStringList_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_OFTWideString_get")] public static extern int OFTWideString_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_OFTWideStringList_get")] public static extern int OFTWideStringList_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_OFTBinary_get")] public static extern int OFTBinary_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_OFTDate_get")] public static extern int OFTDate_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_OFTTime_get")] public static extern int OFTTime_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_OFTDateTime_get")] public static extern int OFTDateTime_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_OJUndefined_get")] public static extern int OJUndefined_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_OJLeft_get")] public static extern int OJLeft_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_OJRight_get")] public static extern int OJRight_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_wkbXDR_get")] public static extern int wkbXDR_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_wkbNDR_get")] public static extern int wkbNDR_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_OLCRandomRead_get")]
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?