ogrpinvoke.cs
来自「支持各种栅格图像和矢量图像读取的库」· CS 代码 · 共 877 行 · 第 1/3 页
CS
877 行
public static extern string OLCRandomRead_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_OLCSequentialWrite_get")] public static extern string OLCSequentialWrite_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_OLCRandomWrite_get")] public static extern string OLCRandomWrite_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_OLCFastSpatialFilter_get")] public static extern string OLCFastSpatialFilter_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_OLCFastFeatureCount_get")] public static extern string OLCFastFeatureCount_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_OLCFastGetExtent_get")] public static extern string OLCFastGetExtent_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_OLCCreateField_get")] public static extern string OLCCreateField_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_OLCTransactions_get")] public static extern string OLCTransactions_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_OLCDeleteFeature_get")] public static extern string OLCDeleteFeature_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_OLCFastSetNextByIndex_get")] public static extern string OLCFastSetNextByIndex_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_ODsCCreateLayer_get")] public static extern string ODsCCreateLayer_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_ODsCDeleteLayer_get")] public static extern string ODsCDeleteLayer_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_ODrCCreateDataSource_get")] public static extern string ODrCCreateDataSource_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_ODrCDeleteDataSource_get")] public static extern string ODrCDeleteDataSource_get(); [DllImport("ogr_wrap", EntryPoint="CSharp_UseExceptions")] public static extern void UseExceptions(); [DllImport("ogr_wrap", EntryPoint="CSharp_DontUseExceptions")] public static extern void DontUseExceptions(); public class StringListMarshal : IDisposable { public readonly IntPtr[] _ar; public StringListMarshal(string[] ar) { _ar = new IntPtr[ar.Length+1]; for (int cx = 0; cx < ar.Length; cx++) { _ar[cx] = System.Runtime.InteropServices.Marshal.StringToHGlobalAnsi(ar[cx]); } _ar[ar.Length] = IntPtr.Zero; } public virtual void Dispose() { for (int cx = 0; cx < _ar.Length-1; cx++) { System.Runtime.InteropServices.Marshal.FreeHGlobal(_ar[cx]); } GC.SuppressFinalize(this); } } [DllImport("ogr_wrap", EntryPoint="CSharp_Envelope_MinX_set")] public static extern void Envelope_MinX_set(HandleRef jarg1, double jarg2); [DllImport("ogr_wrap", EntryPoint="CSharp_Envelope_MinX_get")] public static extern double Envelope_MinX_get(HandleRef jarg1); [DllImport("ogr_wrap", EntryPoint="CSharp_Envelope_MaxX_set")] public static extern void Envelope_MaxX_set(HandleRef jarg1, double jarg2); [DllImport("ogr_wrap", EntryPoint="CSharp_Envelope_MaxX_get")] public static extern double Envelope_MaxX_get(HandleRef jarg1); [DllImport("ogr_wrap", EntryPoint="CSharp_Envelope_MinY_set")] public static extern void Envelope_MinY_set(HandleRef jarg1, double jarg2); [DllImport("ogr_wrap", EntryPoint="CSharp_Envelope_MinY_get")] public static extern double Envelope_MinY_get(HandleRef jarg1); [DllImport("ogr_wrap", EntryPoint="CSharp_Envelope_MaxY_set")] public static extern void Envelope_MaxY_set(HandleRef jarg1, double jarg2); [DllImport("ogr_wrap", EntryPoint="CSharp_Envelope_MaxY_get")] public static extern double Envelope_MaxY_get(HandleRef jarg1); [DllImport("ogr_wrap", EntryPoint="CSharp_new_Envelope")] public static extern IntPtr new_Envelope(); [DllImport("ogr_wrap", EntryPoint="CSharp_delete_Envelope")] public static extern void delete_Envelope(HandleRef jarg1); [DllImport("ogr_wrap", EntryPoint="CSharp_Driver_name_get")] public static extern string Driver_name_get(HandleRef jarg1); [DllImport("ogr_wrap", EntryPoint="CSharp_Driver_CreateDataSource")] public static extern IntPtr Driver_CreateDataSource(HandleRef jarg1, string jarg2, IntPtr[] jarg3); [DllImport("ogr_wrap", EntryPoint="CSharp_Driver_CopyDataSource")] public static extern IntPtr Driver_CopyDataSource(HandleRef jarg1, HandleRef jarg2, string jarg3, IntPtr[] jarg4); [DllImport("ogr_wrap", EntryPoint="CSharp_Driver_Open")] public static extern IntPtr Driver_Open(HandleRef jarg1, string jarg2, int jarg3); [DllImport("ogr_wrap", EntryPoint="CSharp_Driver_DeleteDataSource")] public static extern int Driver_DeleteDataSource(HandleRef jarg1, string jarg2); [DllImport("ogr_wrap", EntryPoint="CSharp_Driver_TestCapability")] public static extern bool Driver_TestCapability(HandleRef jarg1, string jarg2); [DllImport("ogr_wrap", EntryPoint="CSharp_Driver_GetName")] public static extern string Driver_GetName(HandleRef jarg1); [DllImport("ogr_wrap", EntryPoint="CSharp_DataSource_name_get")] public static extern string DataSource_name_get(HandleRef jarg1); [DllImport("ogr_wrap", EntryPoint="CSharp_delete_DataSource")] public static extern void delete_DataSource(HandleRef jarg1); [DllImport("ogr_wrap", EntryPoint="CSharp_DataSource_GetRefCount")] public static extern int DataSource_GetRefCount(HandleRef jarg1); [DllImport("ogr_wrap", EntryPoint="CSharp_DataSource_GetSummaryRefCount")] public static extern int DataSource_GetSummaryRefCount(HandleRef jarg1); [DllImport("ogr_wrap", EntryPoint="CSharp_DataSource_GetLayerCount")] public static extern int DataSource_GetLayerCount(HandleRef jarg1); [DllImport("ogr_wrap", EntryPoint="CSharp_DataSource_GetDriver")] public static extern IntPtr DataSource_GetDriver(HandleRef jarg1); [DllImport("ogr_wrap", EntryPoint="CSharp_DataSource_GetName")] public static extern string DataSource_GetName(HandleRef jarg1); [DllImport("ogr_wrap", EntryPoint="CSharp_DataSource_DeleteLayer")] public static extern int DataSource_DeleteLayer(HandleRef jarg1, int jarg2); [DllImport("ogr_wrap", EntryPoint="CSharp_DataSource_CreateLayer")] public static extern IntPtr DataSource_CreateLayer(HandleRef jarg1, string jarg2, HandleRef jarg3, int jarg4, IntPtr[] jarg5); [DllImport("ogr_wrap", EntryPoint="CSharp_DataSource_CopyLayer")] public static extern IntPtr DataSource_CopyLayer(HandleRef jarg1, HandleRef jarg2, string jarg3, IntPtr[] jarg4); [DllImport("ogr_wrap", EntryPoint="CSharp_DataSource_GetLayerByIndex")] public static extern IntPtr DataSource_GetLayerByIndex(HandleRef jarg1, int jarg2); [DllImport("ogr_wrap", EntryPoint="CSharp_DataSource_GetLayerByName")] public static extern IntPtr DataSource_GetLayerByName(HandleRef jarg1, string jarg2); [DllImport("ogr_wrap", EntryPoint="CSharp_DataSource_TestCapability")] public static extern bool DataSource_TestCapability(HandleRef jarg1, string jarg2); [DllImport("ogr_wrap", EntryPoint="CSharp_DataSource_ExecuteSQL")] public static extern IntPtr DataSource_ExecuteSQL(HandleRef jarg1, string jarg2, HandleRef jarg3, string jarg4); [DllImport("ogr_wrap", EntryPoint="CSharp_DataSource_ReleaseResultSet")] public static extern void DataSource_ReleaseResultSet(HandleRef jarg1, HandleRef jarg2); [DllImport("ogr_wrap", EntryPoint="CSharp_Layer_GetRefCount")] public static extern int Layer_GetRefCount(HandleRef jarg1); [DllImport("ogr_wrap", EntryPoint="CSharp_Layer_SetSpatialFilter")] public static extern void Layer_SetSpatialFilter(HandleRef jarg1, HandleRef jarg2); [DllImport("ogr_wrap", EntryPoint="CSharp_Layer_SetSpatialFilterRect")] public static extern void Layer_SetSpatialFilterRect(HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5); [DllImport("ogr_wrap", EntryPoint="CSharp_Layer_GetSpatialFilter")] public static extern IntPtr Layer_GetSpatialFilter(HandleRef jarg1); [DllImport("ogr_wrap", EntryPoint="CSharp_Layer_SetAttributeFilter")] public static extern int Layer_SetAttributeFilter(HandleRef jarg1, string jarg2); [DllImport("ogr_wrap", EntryPoint="CSharp_Layer_ResetReading")] public static extern void Layer_ResetReading(HandleRef jarg1); [DllImport("ogr_wrap", EntryPoint="CSharp_Layer_GetName")] public static extern string Layer_GetName(HandleRef jarg1); [DllImport("ogr_wrap", EntryPoint="CSharp_Layer_GetFeature")] public static extern IntPtr Layer_GetFeature(HandleRef jarg1, int jarg2); [DllImport("ogr_wrap", EntryPoint="CSharp_Layer_GetNextFeature")] public static extern IntPtr Layer_GetNextFeature(HandleRef jarg1); [DllImport("ogr_wrap", EntryPoint="CSharp_Layer_SetNextByIndex")] public static extern int Layer_SetNextByIndex(HandleRef jarg1, int jarg2); [DllImport("ogr_wrap", EntryPoint="CSharp_Layer_SetFeature")] public static extern int Layer_SetFeature(HandleRef jarg1, HandleRef jarg2); [DllImport("ogr_wrap", EntryPoint="CSharp_Layer_CreateFeature")] public static extern int Layer_CreateFeature(HandleRef jarg1, HandleRef jarg2); [DllImport("ogr_wrap", EntryPoint="CSharp_Layer_DeleteFeature")] public static extern int Layer_DeleteFeature(HandleRef jarg1, int jarg2); [DllImport("ogr_wrap", EntryPoint="CSharp_Layer_SyncToDisk")] public static extern int Layer_SyncToDisk(HandleRef jarg1); [DllImport("ogr_wrap", EntryPoint="CSharp_Layer_GetLayerDefn")] public static extern IntPtr Layer_GetLayerDefn(HandleRef jarg1); [DllImport("ogr_wrap", EntryPoint="CSharp_Layer_GetFeatureCount")] public static extern int Layer_GetFeatureCount(HandleRef jarg1, int jarg2); [DllImport("ogr_wrap", EntryPoint="CSharp_Layer_GetExtent")] public static extern int Layer_GetExtent(HandleRef jarg1, HandleRef jarg2, int jarg3); [DllImport("ogr_wrap", EntryPoint="CSharp_Layer_TestCapability")] public static extern bool Layer_TestCapability(HandleRef jarg1, string jarg2); [DllImport("ogr_wrap", EntryPoint="CSharp_Layer_CreateField")] public static extern int Layer_CreateField(HandleRef jarg1, HandleRef jarg2, int jarg3); [DllImport("ogr_wrap", EntryPoint="CSharp_Layer_StartTransaction")] public static extern int Layer_StartTransaction(HandleRef jarg1); [DllImport("ogr_wrap", EntryPoint="CSharp_Layer_CommitTransaction")] public static extern int Layer_CommitTransaction(HandleRef jarg1); [DllImport("ogr_wrap", EntryPoint="CSharp_Layer_RollbackTransaction")] public static extern int Layer_RollbackTransaction(HandleRef jarg1); [DllImport("ogr_wrap", EntryPoint="CSharp_Layer_GetSpatialRef")] public static extern IntPtr Layer_GetSpatialRef(HandleRef jarg1); [DllImport("ogr_wrap", EntryPoint="CSharp_Layer_GetFeatureRead")] public static extern long Layer_GetFeatureRead(HandleRef jarg1); [DllImport("ogr_wrap", EntryPoint="CSharp_delete_Feature")] public static extern void delete_Feature(HandleRef jarg1); [DllImport("ogr_wrap", EntryPoint="CSharp_new_Feature")] public static extern IntPtr new_Feature(HandleRef jarg1); [DllImport("ogr_wrap", EntryPoint="CSharp_Feature_GetDefnRef")] public static extern IntPtr Feature_GetDefnRef(HandleRef jarg1); [DllImport("ogr_wrap", EntryPoint="CSharp_Feature_SetGeometry")] public static extern int Feature_SetGeometry(HandleRef jarg1, HandleRef jarg2); [DllImport("ogr_wrap", EntryPoint="CSharp_Feature_SetGeometryDirectly")] public static extern int Feature_SetGeometryDirectly(HandleRef jarg1, HandleRef jarg2); [DllImport("ogr_wrap", EntryPoint="CSharp_Feature_GetGeometryRef")] public static extern IntPtr Feature_GetGeometryRef(HandleRef jarg1); [DllImport("ogr_wrap", EntryPoint="CSharp_Feature_Clone")] public static extern IntPtr Feature_Clone(HandleRef jarg1); [DllImport("ogr_wrap", EntryPoint="CSharp_Feature_Equal")] public static extern bool Feature_Equal(HandleRef jarg1, HandleRef jarg2); [DllImport("ogr_wrap", EntryPoint="CSharp_Feature_GetFieldCount")] public static extern int Feature_GetFieldCount(HandleRef jarg1); [DllImport("ogr_wrap", EntryPoint="CSharp_Feature_GetFieldDefnRef__SWIG_0")] public static extern IntPtr Feature_GetFieldDefnRef__SWIG_0(HandleRef jarg1, int jarg2); [DllImport("ogr_wrap", EntryPoint="CSharp_Feature_GetFieldDefnRef__SWIG_1")] public static extern IntPtr Feature_GetFieldDefnRef__SWIG_1(HandleRef jarg1, string jarg2); [DllImport("ogr_wrap", EntryPoint="CSharp_Feature_GetFieldAsString__SWIG_0")] public static extern string Feature_GetFieldAsString__SWIG_0(HandleRef jarg1, int jarg2); [DllImport("ogr_wrap", EntryPoint="CSharp_Feature_GetFieldAsString__SWIG_1")] public static extern string Feature_GetFieldAsString__SWIG_1(HandleRef jarg1, string jarg2); [DllImport("ogr_wrap", EntryPoint="CSharp_Feature_GetFieldAsInteger__SWIG_0")] public static extern int Feature_GetFieldAsInteger__SWIG_0(HandleRef jarg1, int jarg2); [DllImport("ogr_wrap", EntryPoint="CSharp_Feature_GetFieldAsInteger__SWIG_1")] public static extern int Feature_GetFieldAsInteger__SWIG_1(HandleRef jarg1, string jarg2); [DllImport("ogr_wrap", EntryPoint="CSharp_Feature_GetFieldAsDouble__SWIG_0")] public static extern double Feature_GetFieldAsDouble__SWIG_0(HandleRef jarg1, int jarg2); [DllImport("ogr_wrap", EntryPoint="CSharp_Feature_GetFieldAsDouble__SWIG_1")] public static extern double Feature_GetFieldAsDouble__SWIG_1(HandleRef jarg1, string jarg2); [DllImport("ogr_wrap", EntryPoint="CSharp_Feature_IsFieldSet__SWIG_0")] public static extern bool Feature_IsFieldSet__SWIG_0(HandleRef jarg1, int jarg2); [DllImport("ogr_wrap", EntryPoint="CSharp_Feature_IsFieldSet__SWIG_1")] public static extern bool Feature_IsFieldSet__SWIG_1(HandleRef jarg1, string jarg2); [DllImport("ogr_wrap", EntryPoint="CSharp_Feature_GetFieldIndex")] public static extern int Feature_GetFieldIndex(HandleRef jarg1, string jarg2);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?