diff --git a/AOTTest/AOTTest.csproj b/AOTTest/AOTTest.csproj
new file mode 100644
index 0000000..868c309
--- /dev/null
+++ b/AOTTest/AOTTest.csproj
@@ -0,0 +1,24 @@
+
+
+
+ Exe
+ net9.0
+ enable
+
+
+
+
+ PreserveNewest
+
+
+
+ %(RecursiveDir)%(FileName)%(Extension)
+ PreserveNewest
+
+
+ %(RecursiveDir)%(FileName)%(Extension)
+ PreserveNewest
+
+
+
+
diff --git a/AOTTest/Program.cs b/AOTTest/Program.cs
new file mode 100644
index 0000000..b7facb4
--- /dev/null
+++ b/AOTTest/Program.cs
@@ -0,0 +1,35 @@
+using System.Net.NetworkInformation;
+using System.Runtime.InteropServices;
+
+internal class Program
+{
+ private static void Main(string[] args)
+ {
+ Console.WriteLine("===========================TESTING GEOCONSEQUENCES NATIVE LIBRARY===========================");
+ TestImport.InitializeGDAL();
+
+ Console.WriteLine("===========================READING FROM THE NSI=============================================");
+ TestImport.ReadNSI(-122.48, 37.76, -122.479, 37.759, 0);
+
+ Console.WriteLine("===========================READING FROM THE NSI AND WRITING TO SHAPEFILE====================");
+ IntPtr path = Marshal.StringToHGlobalAnsi(@"C:\repos\consequences\AOTTest\generated");
+ IntPtr driver = Marshal.StringToHGlobalAnsi("ESRI Shapefile");
+ int projection = 3310;
+ IntPtr x = Marshal.StringToHGlobalAnsi("x");
+ IntPtr y = Marshal.StringToHGlobalAnsi("y");
+ TestImport.WriteNSIToShapefile(path, driver, projection, x, y, -122.48, 37.76, -122.479, 37.759);
+ }
+}
+
+public class TestImport
+{
+ [DllImport("GeoConsequences.dll")]
+ public static extern int ReadNSI(double ulX, double ulY, double lrX, double lrY, int actionIndex);
+
+ [DllImport("GeoConsequences.dll")]
+ public static extern int InitializeGDAL();
+
+ [DllImport("GeoConsequences.dll")]
+ public static extern int WriteNSIToShapefile(IntPtr outputPath, IntPtr driverName, int projection, IntPtr xField, IntPtr yField, double ulX, double ulY, double lrX, double lrY);
+
+}
diff --git a/AOTTest/Properties/launchSettings.json b/AOTTest/Properties/launchSettings.json
new file mode 100644
index 0000000..44178fd
--- /dev/null
+++ b/AOTTest/Properties/launchSettings.json
@@ -0,0 +1,8 @@
+{
+ "profiles": {
+ "AOTTest": {
+ "commandName": "Project",
+ "nativeDebugging": true
+ }
+ }
+}
\ No newline at end of file
diff --git a/Consequences.sln b/Consequences.sln
index 50cdf2f..d7ba204 100644
--- a/Consequences.sln
+++ b/Consequences.sln
@@ -8,15 +8,21 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{D661B25B-F61F-48AA-B626-09DDFC8FB7E6}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
- .github\workflows\Release.yml = .github\workflows\Release.yml
.github\workflows\Integration.yml = .github\workflows\Integration.yml
+ .github\workflows\Release.yml = .github\workflows\Release.yml
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ConsequencesTest", "ConsequencesTest\ConsequencesTest.csproj", "{95BCC49B-7780-41E9-8365-C51B5E1B3D5E}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ScratchPaper", "ScratchPaper\ScratchPaper.csproj", "{31071E1B-DA08-40CF-8F16-95982E85B45D}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Geospatial", "Geospatial\Geospatial.csproj", "{CB7204A4-C01A-4C1C-9BEB-C82F95EEA214}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Geospatial", "Geospatial\Geospatial.csproj", "{CB7204A4-C01A-4C1C-9BEB-C82F95EEA214}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AOTTest", "AOTTest\AOTTest.csproj", "{D0C41ACF-5F5B-4E3C-B86D-606C1019B91F}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GeoConsequences", "GeoConsequences\GeoConsequences.csproj", "{AAF76EBA-C136-4BEA-B292-308DEBA45753}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EventTest", "EventTest\EventTest.csproj", "{B90625C2-2628-4451-8EE9-A1F537129CAE}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -40,6 +46,18 @@ Global
{CB7204A4-C01A-4C1C-9BEB-C82F95EEA214}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CB7204A4-C01A-4C1C-9BEB-C82F95EEA214}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CB7204A4-C01A-4C1C-9BEB-C82F95EEA214}.Release|Any CPU.Build.0 = Release|Any CPU
+ {D0C41ACF-5F5B-4E3C-B86D-606C1019B91F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {D0C41ACF-5F5B-4E3C-B86D-606C1019B91F}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {D0C41ACF-5F5B-4E3C-B86D-606C1019B91F}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {D0C41ACF-5F5B-4E3C-B86D-606C1019B91F}.Release|Any CPU.Build.0 = Release|Any CPU
+ {AAF76EBA-C136-4BEA-B292-308DEBA45753}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {AAF76EBA-C136-4BEA-B292-308DEBA45753}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {AAF76EBA-C136-4BEA-B292-308DEBA45753}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {AAF76EBA-C136-4BEA-B292-308DEBA45753}.Release|Any CPU.Build.0 = Release|Any CPU
+ {B90625C2-2628-4451-8EE9-A1F537129CAE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {B90625C2-2628-4451-8EE9-A1F537129CAE}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {B90625C2-2628-4451-8EE9-A1F537129CAE}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {B90625C2-2628-4451-8EE9-A1F537129CAE}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/Consequences/Consequences.csproj b/Consequences/Consequences.csproj
index ae3fea7..1b9d355 100644
--- a/Consequences/Consequences.csproj
+++ b/Consequences/Consequences.csproj
@@ -1,7 +1,7 @@
- net8.0
+ net9.0
enable
true
true
diff --git a/Consequences/Consequences/IStreamingProcessor.cs b/Consequences/Consequences/IStreamingProcessor.cs
index e67857c..239487e 100644
--- a/Consequences/Consequences/IStreamingProcessor.cs
+++ b/Consequences/Consequences/IStreamingProcessor.cs
@@ -1,7 +1,8 @@
-using USACE.HEC.Geography;
+using System.Diagnostics.CodeAnalysis;
+using USACE.HEC.Geography;
namespace USACE.HEC.Consequences;
public interface IStreamingProcessor
{
- public void Process(Action consequenceReceptorProcess) where T : IConsequencesReceptor, new();
+ public void Process<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties)] T>(Action consequenceReceptorProcess) where T : IConsequencesReceptor, new();
}
diff --git a/Consequences/Consequences/NSIStreamingProcessor.cs b/Consequences/Consequences/NSIStreamingProcessor.cs
index c287d6a..a970e28 100644
--- a/Consequences/Consequences/NSIStreamingProcessor.cs
+++ b/Consequences/Consequences/NSIStreamingProcessor.cs
@@ -44,13 +44,7 @@ private static async Task ProcessCollection(BoundingBox boundingBox, Action(propertiesElement.GetRawText());
- #pragma warning restore IL2026
- #pragma warning restore IL3050
-
+ Structure s = JsonSerializer.Deserialize(propertiesElement.GetRawText(), SourceGenerationContext.Default.Structure);
// apply the action to the deserialized structure
ConsequenceReceptorProcess(s);
}
@@ -81,14 +75,7 @@ private static async Task ProcessStream(BoundingBox boundingBox, Action(propertiesElement.GetRawText());
- #pragma warning restore IL2026
- #pragma warning restore IL3050
-
+ Structure s = JsonSerializer.Deserialize(propertiesElement.GetRawText(), SourceGenerationContext.Default.Structure);
// apply the action to the deserialized structure
ConsequenceReceptorProcess(s);
}
diff --git a/Consequences/Consequences/Structure.cs b/Consequences/Consequences/Structure.cs
index 559cd1b..b1aad0a 100644
--- a/Consequences/Consequences/Structure.cs
+++ b/Consequences/Consequences/Structure.cs
@@ -73,7 +73,7 @@ public Result Compute(IHazard hazard)
{
resultItems.Add(new ResultItem {
ResultName = "Depth",
- Result = hazard.Get(HazardParameter.Depth)
+ ResultValue = hazard.Get(HazardParameter.Depth)
});
}
@@ -81,7 +81,7 @@ public Result Compute(IHazard hazard)
{
resultItems.Add(new ResultItem {
ResultName = "Velocity",
- Result = hazard.Get(HazardParameter.Velocity)
+ ResultValue = hazard.Get(HazardParameter.Velocity)
});
}
@@ -89,7 +89,7 @@ public Result Compute(IHazard hazard)
{
resultItems.Add(new ResultItem {
ResultName = "ArrivalTime",
- Result = hazard.Get(HazardParameter.ArrivalTime)
+ ResultValue = hazard.Get(HazardParameter.ArrivalTime)
});
}
@@ -97,10 +97,16 @@ public Result Compute(IHazard hazard)
{
resultItems.Add(new ResultItem {
ResultName = "ArrivalTime2ft",
- Result = hazard.Get(HazardParameter.ArrivalTime2ft)
+ ResultValue = hazard.Get(HazardParameter.ArrivalTime2ft)
});
}
return new Result([.. resultItems]);
}
}
+
+[JsonSourceGenerationOptions(WriteIndented = true)]
+[JsonSerializable(typeof(Structure))]
+internal partial class SourceGenerationContext : JsonSerializerContext
+{
+}
diff --git a/Consequences/ExternalMethods/NSI.cs b/Consequences/ExternalMethods/NSI.cs
new file mode 100644
index 0000000..3b42903
--- /dev/null
+++ b/Consequences/ExternalMethods/NSI.cs
@@ -0,0 +1,35 @@
+using System.Runtime.InteropServices;
+using USACE.HEC.Consequences;
+using USACE.HEC.Geography;
+
+namespace USACE.HEC.ExternalMethods;
+
+public class NSI
+{
+ ///
+ /// Specify (x,y) coordinates for upper left and lower right corners of the bounding box, as well
+ /// as an index corresponding to a specific action from a preset list of actions that we define,
+ /// to be performed on each structure that gets read (TODO)
+ ///
+ [UnmanagedCallersOnly(EntryPoint = "ReadNSI")]
+ public static int Read(double ulX, double ulY, double lrX, double lrY, int actionIndex)
+ {
+ Location upperLeft = new Location { X = ulX, Y = ulY };
+ Location lowerRight = new Location { X = lrX, Y = lrY };
+ BoundingBox boundingBox = new BoundingBox(upperLeft, lowerRight);
+
+ NSIStreamingProcessor sp = new NSIStreamingProcessor();
+
+ // going forward a user will be able to specify an action on the structures
+ int count = 0;
+ Task task = sp.Process(boundingBox, (IConsequencesReceptor s) => {
+ Console.WriteLine(((Structure)s).Name);
+ Console.WriteLine("hi");
+ count++;
+ });
+
+ task.Wait();
+
+ return count;
+ }
+}
diff --git a/Consequences/Results/ConsoleWriter.cs b/Consequences/Results/ConsoleWriter.cs
index 831bdb5..dc28bb7 100644
--- a/Consequences/Results/ConsoleWriter.cs
+++ b/Consequences/Results/ConsoleWriter.cs
@@ -47,7 +47,7 @@ public string WriteString(Result res)
CheckIfSameHeaders(res);
foreach (string header in headers)
{
- object val = res.Fetch(header).Result;
+ object val = res.Fetch(header).ResultValue;
output.Append(val.ToString());
if (header != headers.Last())
{
diff --git a/Consequences/Results/Result.cs b/Consequences/Results/Result.cs
index f49f980..1f7a303 100644
--- a/Consequences/Results/Result.cs
+++ b/Consequences/Results/Result.cs
@@ -14,7 +14,6 @@ public ResultItem Fetch(string name)
for (int i = 0; i < ResultItems.Length; i++)
if (ResultItems[i].ResultName == name)
return ResultItems[i];
- // return empty ResultItem if not found
- return new ResultItem { ResultName = name };
+ throw new ArgumentException($"{name} not found in result");
}
}
diff --git a/Consequences/Results/ResultItem.cs b/Consequences/Results/ResultItem.cs
index fae3e72..f514404 100644
--- a/Consequences/Results/ResultItem.cs
+++ b/Consequences/Results/ResultItem.cs
@@ -2,5 +2,5 @@
public struct ResultItem
{
public string ResultName;
- public object Result;
+ public object ResultValue;
}
diff --git a/Consequences/Results/Utilities.cs b/Consequences/Results/Utilities.cs
index 128d229..711ed1b 100644
--- a/Consequences/Results/Utilities.cs
+++ b/Consequences/Results/Utilities.cs
@@ -1,11 +1,12 @@
-using System.Reflection;
+using System.Diagnostics.CodeAnalysis;
+using System.Reflection;
using System.Text.Json.Serialization;
using USACE.HEC.Consequences;
namespace USACE.HEC.Results;
public class Utilities
{
- public static Result ConsequenceReceptorToResult(IConsequencesReceptor cr) where T: IConsequencesReceptor
+ public static Result ConsequenceReceptorToResult<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties)] T>(IConsequencesReceptor cr) where T: IConsequencesReceptor
{
List resultItems = [];
@@ -15,10 +16,9 @@ public static Result ConsequenceReceptorToResult(IConsequencesReceptor cr) wh
ResultItem item;
JsonPropertyNameAttribute jsonPropertyAttribute = property.GetCustomAttribute();
item.ResultName = jsonPropertyAttribute != null ? jsonPropertyAttribute.Name : property.Name;
- item.Result = property.GetValue(cr);
+ item.ResultValue = property.GetValue(cr);
resultItems.Add(item);
}
-
return new Result([.. resultItems]);
}
}
diff --git a/ConsequencesTest/ConsequencesTest.csproj b/ConsequencesTest/ConsequencesTest.csproj
index 568518b..9ca1314 100644
--- a/ConsequencesTest/ConsequencesTest.csproj
+++ b/ConsequencesTest/ConsequencesTest.csproj
@@ -1,7 +1,7 @@
- net8.0
+ net9.0
enable
enable
diff --git a/ConsequencesTest/ConsoleWriterTest.cs b/ConsequencesTest/ConsoleWriterTest.cs
index 5a292ba..f7f990d 100644
--- a/ConsequencesTest/ConsoleWriterTest.cs
+++ b/ConsequencesTest/ConsoleWriterTest.cs
@@ -4,9 +4,9 @@
namespace ConsequencesTest;
public class ConsoleWrite
{
- static ResultItem r1 = new ResultItem { ResultName = "Depth", Result = 1.03f };
- static ResultItem r2 = new ResultItem { ResultName = "Velocity", Result = 2.02f };
- static ResultItem r3 = new ResultItem { ResultName = "ArrivalTime2ft", Result = new DateTime() };
+ static ResultItem r1 = new ResultItem { ResultName = "Depth", ResultValue = 1.03f };
+ static ResultItem r2 = new ResultItem { ResultName = "Velocity", ResultValue = 2.02f };
+ static ResultItem r3 = new ResultItem { ResultName = "ArrivalTime2ft", ResultValue = new DateTime() };
static ResultItem[] resultItems = { r1, r2, r3 };
Result res = new Result(resultItems);
[Fact]
diff --git a/ConsequencesTest/StructureTest.cs b/ConsequencesTest/StructureTest.cs
index 9e4b71b..c589563 100644
--- a/ConsequencesTest/StructureTest.cs
+++ b/ConsequencesTest/StructureTest.cs
@@ -16,8 +16,8 @@ public void Compute_SimpleDepth()
ResultItem item1 = res.Fetch("Depth");
Assert.Equal("Depth", item1.ResultName);
- Assert.Equal(typeof(float), item1.Result.GetType());
- Assert.Equal(4.56f, item1.Result);
+ Assert.Equal(typeof(float), item1.ResultValue.GetType());
+ Assert.Equal(4.56f, item1.ResultValue);
}
[Fact]
@@ -47,10 +47,10 @@ public void Compute_ArrayDepth_CorrectConsoleOutput()
ResultItem depthItem = res.Fetch("Depth");
Assert.Equal("Depth", depthItem.ResultName);
- Assert.Equal(typeof(float), depthItem.Result.GetType());
- Assert.Equal(depthHazard.Get(HazardParameter.Depth), depthItem.Result);
+ Assert.Equal(typeof(float), depthItem.ResultValue.GetType());
+ Assert.Equal(depthHazard.Get(HazardParameter.Depth), depthItem.ResultValue);
- expectedConsoleOutput += depthItem.Result.ToString() + "\r\n";
+ expectedConsoleOutput += depthItem.ResultValue.ToString() + "\r\n";
actualOutput += cw.WriteString(res);
}
}
@@ -89,22 +89,22 @@ public void Compute_ArrayLifeLoss_CorrectConsoleOutput()
ResultItem depthItem = res.Fetch("Depth");
Assert.Equal("Depth", depthItem.ResultName);
- Assert.Equal(typeof(float), depthItem.Result.GetType());
- Assert.Equal(lifeLossHazard.Get(HazardParameter.Depth), depthItem.Result);
+ Assert.Equal(typeof(float), depthItem.ResultValue.GetType());
+ Assert.Equal(lifeLossHazard.Get(HazardParameter.Depth), depthItem.ResultValue);
ResultItem velocityItem = res.Fetch("Velocity");
Assert.Equal("Velocity", velocityItem.ResultName);
- Assert.Equal(typeof(float), velocityItem.Result.GetType());
- Assert.Equal(lifeLossHazard.Get(HazardParameter.Velocity), velocityItem.Result);
+ Assert.Equal(typeof(float), velocityItem.ResultValue.GetType());
+ Assert.Equal(lifeLossHazard.Get(HazardParameter.Velocity), velocityItem.ResultValue);
ResultItem arrivalTime2ftItem = res.Fetch("ArrivalTime2ft");
Assert.Equal("ArrivalTime2ft", arrivalTime2ftItem.ResultName);
- Assert.Equal(typeof(DateTime), arrivalTime2ftItem.Result.GetType());
- Assert.Equal(lifeLossHazard.Get(HazardParameter.ArrivalTime2ft), arrivalTime2ftItem.Result);
+ Assert.Equal(typeof(DateTime), arrivalTime2ftItem.ResultValue.GetType());
+ Assert.Equal(lifeLossHazard.Get(HazardParameter.ArrivalTime2ft), arrivalTime2ftItem.ResultValue);
- expectedConsoleOutput += depthItem.Result.ToString() + ',';
- expectedConsoleOutput += velocityItem.Result.ToString() + ',';
- expectedConsoleOutput += arrivalTime2ftItem.Result.ToString() + "\r\n";
+ expectedConsoleOutput += depthItem.ResultValue.ToString() + ',';
+ expectedConsoleOutput += velocityItem.ResultValue.ToString() + ',';
+ expectedConsoleOutput += arrivalTime2ftItem.ResultValue.ToString() + "\r\n";
actualOutput += cw.WriteString(res);
}
}
diff --git a/GeoConsequences/GeoConsequences.csproj b/GeoConsequences/GeoConsequences.csproj
new file mode 100644
index 0000000..752f246
--- /dev/null
+++ b/GeoConsequences/GeoConsequences.csproj
@@ -0,0 +1,54 @@
+
+
+
+
+
+ net9.0
+ enable
+ true
+ true
+ true
+
+
+
+ ConsequencesFiles\%(RecursiveDir)%(FileName)%(Extension)
+ PreserveNewest
+
+
+ ConsequencesFiles\%(RecursiveDir)%(FileName)%(Extension)
+ PreserveNewest
+
+
+ ConsequencesFiles\%(RecursiveDir)%(FileName)%(Extension)
+ PreserveNewest
+
+
+ ConsequencesFiles\%(RecursiveDir)%(FileName)%(Extension)
+ PreserveNewest
+
+
+ ConsequencesFiles\%(RecursiveDir)%(FileName)%(Extension)
+ PreserveNewest
+
+
+ GeospatialFiles\%(RecursiveDir)%(FileName)%(Extension)
+ PreserveNewest
+
+
+ GeospatialFiles\%(RecursiveDir)%(FileName)%(Extension)
+ PreserveNewest
+
+
+ GeospatialFiles\%(RecursiveDir)%(FileName)%(Extension)
+ PreserveNewest
+
+
+
+
+
+
+
+
diff --git a/Geospatial/Externalmethods/GeospatialMethods.cs b/Geospatial/Externalmethods/GeospatialMethods.cs
new file mode 100644
index 0000000..4a8b548
--- /dev/null
+++ b/Geospatial/Externalmethods/GeospatialMethods.cs
@@ -0,0 +1,41 @@
+using System.Runtime.InteropServices;
+using Geospatial.OGR;
+using USACE.HEC.Consequences;
+using USACE.HEC.Geography;
+using USACE.HEC.Results;
+
+
+namespace Geospatial.Externalmethods;
+public class GeospatialMethods
+{
+ [UnmanagedCallersOnly(EntryPoint = "InitializeGDAL")]
+ public static int Init()
+ {
+ Console.WriteLine("Setting up GDAL...");
+ OGR.Utilities.InitializeGDAL();
+ return 0;
+ }
+
+ [UnmanagedCallersOnly(EntryPoint = "WriteNSIToShapefile")]
+ public static int Write(IntPtr outputPath, IntPtr driverName, int projection, IntPtr xField, IntPtr yField, double ulX, double ulY, double lrX, double lrY)
+ {
+ string path = Marshal.PtrToStringAnsi(outputPath);
+ string driver = Marshal.PtrToStringAnsi(driverName);
+ string x = Marshal.PtrToStringAnsi(xField);
+ string y = Marshal.PtrToStringAnsi(yField);
+ SpatialWriter sw = new SpatialWriter(path, driver, 4326, projection, x, y);
+
+ Location upperLeft = new Location { X = ulX, Y = ulY };
+ Location lowerRight = new Location { X = lrX, Y = lrY };
+ BoundingBox boundingBox = new BoundingBox(upperLeft, lowerRight);
+ NSIStreamingProcessor sp = new NSIStreamingProcessor();
+
+ Task task = sp.Process(boundingBox, (IConsequencesReceptor s) => {
+ Result res = USACE.HEC.Results.Utilities.ConsequenceReceptorToResult(s);
+ sw.Write(res);
+ });
+ task.Wait();
+
+ return 0;
+ }
+}
diff --git a/Geospatial/GDAL-Bindings/Const/GdalConst.cs b/Geospatial/GDAL-Bindings/Const/GdalConst.cs
new file mode 100644
index 0000000..7a3b482
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/Const/GdalConst.cs
@@ -0,0 +1,314 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class GdalConst {
+ public static readonly int GDT_Unknown = GdalConstPINVOKE.GDT_Unknown_get();
+ public static readonly int GDT_Byte = GdalConstPINVOKE.GDT_Byte_get();
+ public static readonly int GDT_Int8 = GdalConstPINVOKE.GDT_Int8_get();
+ public static readonly int GDT_UInt16 = GdalConstPINVOKE.GDT_UInt16_get();
+ public static readonly int GDT_Int16 = GdalConstPINVOKE.GDT_Int16_get();
+ public static readonly int GDT_UInt32 = GdalConstPINVOKE.GDT_UInt32_get();
+ public static readonly int GDT_Int32 = GdalConstPINVOKE.GDT_Int32_get();
+ public static readonly int GDT_UInt64 = GdalConstPINVOKE.GDT_UInt64_get();
+ public static readonly int GDT_Int64 = GdalConstPINVOKE.GDT_Int64_get();
+ public static readonly int GDT_Float32 = GdalConstPINVOKE.GDT_Float32_get();
+ public static readonly int GDT_Float64 = GdalConstPINVOKE.GDT_Float64_get();
+ public static readonly int GDT_CInt16 = GdalConstPINVOKE.GDT_CInt16_get();
+ public static readonly int GDT_CInt32 = GdalConstPINVOKE.GDT_CInt32_get();
+ public static readonly int GDT_CFloat32 = GdalConstPINVOKE.GDT_CFloat32_get();
+ public static readonly int GDT_CFloat64 = GdalConstPINVOKE.GDT_CFloat64_get();
+ public static readonly int GDT_TypeCount = GdalConstPINVOKE.GDT_TypeCount_get();
+ public static readonly int GA_ReadOnly = GdalConstPINVOKE.GA_ReadOnly_get();
+ public static readonly int GA_Update = GdalConstPINVOKE.GA_Update_get();
+ public static readonly int GF_Read = GdalConstPINVOKE.GF_Read_get();
+ public static readonly int GF_Write = GdalConstPINVOKE.GF_Write_get();
+ public static readonly int GRIORA_NearestNeighbour = GdalConstPINVOKE.GRIORA_NearestNeighbour_get();
+ public static readonly int GRIORA_Bilinear = GdalConstPINVOKE.GRIORA_Bilinear_get();
+ public static readonly int GRIORA_Cubic = GdalConstPINVOKE.GRIORA_Cubic_get();
+ public static readonly int GRIORA_CubicSpline = GdalConstPINVOKE.GRIORA_CubicSpline_get();
+ public static readonly int GRIORA_Lanczos = GdalConstPINVOKE.GRIORA_Lanczos_get();
+ public static readonly int GRIORA_Average = GdalConstPINVOKE.GRIORA_Average_get();
+ public static readonly int GRIORA_RMS = GdalConstPINVOKE.GRIORA_RMS_get();
+ public static readonly int GRIORA_Mode = GdalConstPINVOKE.GRIORA_Mode_get();
+ public static readonly int GRIORA_Gauss = GdalConstPINVOKE.GRIORA_Gauss_get();
+ public static readonly int GCI_Undefined = GdalConstPINVOKE.GCI_Undefined_get();
+ public static readonly int GCI_GrayIndex = GdalConstPINVOKE.GCI_GrayIndex_get();
+ public static readonly int GCI_PaletteIndex = GdalConstPINVOKE.GCI_PaletteIndex_get();
+ public static readonly int GCI_RedBand = GdalConstPINVOKE.GCI_RedBand_get();
+ public static readonly int GCI_GreenBand = GdalConstPINVOKE.GCI_GreenBand_get();
+ public static readonly int GCI_BlueBand = GdalConstPINVOKE.GCI_BlueBand_get();
+ public static readonly int GCI_AlphaBand = GdalConstPINVOKE.GCI_AlphaBand_get();
+ public static readonly int GCI_HueBand = GdalConstPINVOKE.GCI_HueBand_get();
+ public static readonly int GCI_SaturationBand = GdalConstPINVOKE.GCI_SaturationBand_get();
+ public static readonly int GCI_LightnessBand = GdalConstPINVOKE.GCI_LightnessBand_get();
+ public static readonly int GCI_CyanBand = GdalConstPINVOKE.GCI_CyanBand_get();
+ public static readonly int GCI_MagentaBand = GdalConstPINVOKE.GCI_MagentaBand_get();
+ public static readonly int GCI_YellowBand = GdalConstPINVOKE.GCI_YellowBand_get();
+ public static readonly int GCI_BlackBand = GdalConstPINVOKE.GCI_BlackBand_get();
+ public static readonly int GCI_YCbCr_YBand = GdalConstPINVOKE.GCI_YCbCr_YBand_get();
+ public static readonly int GCI_YCbCr_CrBand = GdalConstPINVOKE.GCI_YCbCr_CrBand_get();
+ public static readonly int GCI_YCbCr_CbBand = GdalConstPINVOKE.GCI_YCbCr_CbBand_get();
+ public static readonly int GRA_NearestNeighbour = GdalConstPINVOKE.GRA_NearestNeighbour_get();
+ public static readonly int GRA_Bilinear = GdalConstPINVOKE.GRA_Bilinear_get();
+ public static readonly int GRA_Cubic = GdalConstPINVOKE.GRA_Cubic_get();
+ public static readonly int GRA_CubicSpline = GdalConstPINVOKE.GRA_CubicSpline_get();
+ public static readonly int GRA_Lanczos = GdalConstPINVOKE.GRA_Lanczos_get();
+ public static readonly int GRA_Average = GdalConstPINVOKE.GRA_Average_get();
+ public static readonly int GRA_RMS = GdalConstPINVOKE.GRA_RMS_get();
+ public static readonly int GRA_Mode = GdalConstPINVOKE.GRA_Mode_get();
+ public static readonly int GRA_Max = GdalConstPINVOKE.GRA_Max_get();
+ public static readonly int GRA_Min = GdalConstPINVOKE.GRA_Min_get();
+ public static readonly int GRA_Med = GdalConstPINVOKE.GRA_Med_get();
+ public static readonly int GRA_Q1 = GdalConstPINVOKE.GRA_Q1_get();
+ public static readonly int GRA_Q3 = GdalConstPINVOKE.GRA_Q3_get();
+ public static readonly int GRA_Sum = GdalConstPINVOKE.GRA_Sum_get();
+ public static readonly int GPI_Gray = GdalConstPINVOKE.GPI_Gray_get();
+ public static readonly int GPI_RGB = GdalConstPINVOKE.GPI_RGB_get();
+ public static readonly int GPI_CMYK = GdalConstPINVOKE.GPI_CMYK_get();
+ public static readonly int GPI_HLS = GdalConstPINVOKE.GPI_HLS_get();
+ public static readonly int CXT_Element = GdalConstPINVOKE.CXT_Element_get();
+ public static readonly int CXT_Text = GdalConstPINVOKE.CXT_Text_get();
+ public static readonly int CXT_Attribute = GdalConstPINVOKE.CXT_Attribute_get();
+ public static readonly int CXT_Comment = GdalConstPINVOKE.CXT_Comment_get();
+ public static readonly int CXT_Literal = GdalConstPINVOKE.CXT_Literal_get();
+ public static readonly int CE_None = GdalConstPINVOKE.CE_None_get();
+ public static readonly int CE_Debug = GdalConstPINVOKE.CE_Debug_get();
+ public static readonly int CE_Warning = GdalConstPINVOKE.CE_Warning_get();
+ public static readonly int CE_Failure = GdalConstPINVOKE.CE_Failure_get();
+ public static readonly int CE_Fatal = GdalConstPINVOKE.CE_Fatal_get();
+ public static readonly int CPLE_None = GdalConstPINVOKE.CPLE_None_get();
+ public static readonly int CPLE_AppDefined = GdalConstPINVOKE.CPLE_AppDefined_get();
+ public static readonly int CPLE_OutOfMemory = GdalConstPINVOKE.CPLE_OutOfMemory_get();
+ public static readonly int CPLE_FileIO = GdalConstPINVOKE.CPLE_FileIO_get();
+ public static readonly int CPLE_OpenFailed = GdalConstPINVOKE.CPLE_OpenFailed_get();
+ public static readonly int CPLE_IllegalArg = GdalConstPINVOKE.CPLE_IllegalArg_get();
+ public static readonly int CPLE_NotSupported = GdalConstPINVOKE.CPLE_NotSupported_get();
+ public static readonly int CPLE_AssertionFailed = GdalConstPINVOKE.CPLE_AssertionFailed_get();
+ public static readonly int CPLE_NoWriteAccess = GdalConstPINVOKE.CPLE_NoWriteAccess_get();
+ public static readonly int CPLE_UserInterrupt = GdalConstPINVOKE.CPLE_UserInterrupt_get();
+ public static readonly int CPLE_ObjectNull = GdalConstPINVOKE.CPLE_ObjectNull_get();
+ public static readonly int CPLE_HttpResponse = GdalConstPINVOKE.CPLE_HttpResponse_get();
+ public static readonly int CPLE_AWSBucketNotFound = GdalConstPINVOKE.CPLE_AWSBucketNotFound_get();
+ public static readonly int CPLE_AWSObjectNotFound = GdalConstPINVOKE.CPLE_AWSObjectNotFound_get();
+ public static readonly int CPLE_AWSAccessDenied = GdalConstPINVOKE.CPLE_AWSAccessDenied_get();
+ public static readonly int CPLE_AWSInvalidCredentials = GdalConstPINVOKE.CPLE_AWSInvalidCredentials_get();
+ public static readonly int CPLE_AWSSignatureDoesNotMatch = GdalConstPINVOKE.CPLE_AWSSignatureDoesNotMatch_get();
+ public static readonly int OF_ALL = GdalConstPINVOKE.OF_ALL_get();
+ public static readonly int OF_RASTER = GdalConstPINVOKE.OF_RASTER_get();
+ public static readonly int OF_VECTOR = GdalConstPINVOKE.OF_VECTOR_get();
+ public static readonly int OF_GNM = GdalConstPINVOKE.OF_GNM_get();
+ public static readonly int OF_MULTIDIM_RASTER = GdalConstPINVOKE.OF_MULTIDIM_RASTER_get();
+ public static readonly int OF_READONLY = GdalConstPINVOKE.OF_READONLY_get();
+ public static readonly int OF_UPDATE = GdalConstPINVOKE.OF_UPDATE_get();
+ public static readonly int OF_SHARED = GdalConstPINVOKE.OF_SHARED_get();
+ public static readonly int OF_VERBOSE_ERROR = GdalConstPINVOKE.OF_VERBOSE_ERROR_get();
+ public static readonly string DMD_LONGNAME = GdalConstPINVOKE.DMD_LONGNAME_get();
+ public static readonly string GDAL_DMD_LONGNAME = GdalConstPINVOKE.GDAL_DMD_LONGNAME_get();
+ public static readonly string DMD_HELPTOPIC = GdalConstPINVOKE.DMD_HELPTOPIC_get();
+ public static readonly string GDAL_DMD_HELPTOPIC = GdalConstPINVOKE.GDAL_DMD_HELPTOPIC_get();
+ public static readonly string DMD_MIMETYPE = GdalConstPINVOKE.DMD_MIMETYPE_get();
+ public static readonly string GDAL_DMD_MIMETYPE = GdalConstPINVOKE.GDAL_DMD_MIMETYPE_get();
+ public static readonly string DMD_EXTENSION = GdalConstPINVOKE.DMD_EXTENSION_get();
+ public static readonly string GDAL_DMD_EXTENSION = GdalConstPINVOKE.GDAL_DMD_EXTENSION_get();
+ public static readonly string DMD_CONNECTION_PREFIX = GdalConstPINVOKE.DMD_CONNECTION_PREFIX_get();
+ public static readonly string GDAL_DMD_CONNECTION_PREFIX = GdalConstPINVOKE.GDAL_DMD_CONNECTION_PREFIX_get();
+ public static readonly string DMD_EXTENSIONS = GdalConstPINVOKE.DMD_EXTENSIONS_get();
+ public static readonly string GDAL_DMD_EXTENSIONS = GdalConstPINVOKE.GDAL_DMD_EXTENSIONS_get();
+ public static readonly string DMD_CREATIONOPTIONLIST = GdalConstPINVOKE.DMD_CREATIONOPTIONLIST_get();
+ public static readonly string GDAL_DMD_CREATIONOPTIONLIST = GdalConstPINVOKE.GDAL_DMD_CREATIONOPTIONLIST_get();
+ public static readonly string DMD_MULTIDIM_DATASET_CREATIONOPTIONLIST = GdalConstPINVOKE.DMD_MULTIDIM_DATASET_CREATIONOPTIONLIST_get();
+ public static readonly string GDAL_DMD_MULTIDIM_DATASET_CREATIONOPTIONLIST = GdalConstPINVOKE.GDAL_DMD_MULTIDIM_DATASET_CREATIONOPTIONLIST_get();
+ public static readonly string DMD_MULTIDIM_GROUP_CREATIONOPTIONLIST = GdalConstPINVOKE.DMD_MULTIDIM_GROUP_CREATIONOPTIONLIST_get();
+ public static readonly string GDAL_DMD_MULTIDIM_GROUP_CREATIONOPTIONLIST = GdalConstPINVOKE.GDAL_DMD_MULTIDIM_GROUP_CREATIONOPTIONLIST_get();
+ public static readonly string DMD_MULTIDIM_DIMENSION_CREATIONOPTIONLIST = GdalConstPINVOKE.DMD_MULTIDIM_DIMENSION_CREATIONOPTIONLIST_get();
+ public static readonly string GDAL_DMD_MULTIDIM_DIMENSION_CREATIONOPTIONLIST = GdalConstPINVOKE.GDAL_DMD_MULTIDIM_DIMENSION_CREATIONOPTIONLIST_get();
+ public static readonly string DMD_MULTIDIM_ARRAY_CREATIONOPTIONLIST = GdalConstPINVOKE.DMD_MULTIDIM_ARRAY_CREATIONOPTIONLIST_get();
+ public static readonly string GDAL_DMD_MULTIDIM_ARRAY_CREATIONOPTIONLIST = GdalConstPINVOKE.GDAL_DMD_MULTIDIM_ARRAY_CREATIONOPTIONLIST_get();
+ public static readonly string DMD_MULTIDIM_ARRAY_OPENOPTIONLIST = GdalConstPINVOKE.DMD_MULTIDIM_ARRAY_OPENOPTIONLIST_get();
+ public static readonly string GDAL_DMD_MULTIDIM_ARRAY_OPENOPTIONLIST = GdalConstPINVOKE.GDAL_DMD_MULTIDIM_ARRAY_OPENOPTIONLIST_get();
+ public static readonly string DMD_MULTIDIM_ATTRIBUTE_CREATIONOPTIONLIST = GdalConstPINVOKE.DMD_MULTIDIM_ATTRIBUTE_CREATIONOPTIONLIST_get();
+ public static readonly string GDAL_DMD_MULTIDIM_ATTRIBUTE_CREATIONOPTIONLIST = GdalConstPINVOKE.GDAL_DMD_MULTIDIM_ATTRIBUTE_CREATIONOPTIONLIST_get();
+ public static readonly string DMD_OPENOPTIONLIST = GdalConstPINVOKE.DMD_OPENOPTIONLIST_get();
+ public static readonly string GDAL_DMD_OPENOPTIONLIST = GdalConstPINVOKE.GDAL_DMD_OPENOPTIONLIST_get();
+ public static readonly string DMD_CREATIONDATATYPES = GdalConstPINVOKE.DMD_CREATIONDATATYPES_get();
+ public static readonly string GDAL_DMD_CREATIONDATATYPES = GdalConstPINVOKE.GDAL_DMD_CREATIONDATATYPES_get();
+ public static readonly string DMD_CREATIONFIELDDATATYPES = GdalConstPINVOKE.DMD_CREATIONFIELDDATATYPES_get();
+ public static readonly string GDAL_DMD_CREATIONFIELDDATATYPES = GdalConstPINVOKE.GDAL_DMD_CREATIONFIELDDATATYPES_get();
+ public static readonly string DMD_CREATIONFIELDDATASUBTYPES = GdalConstPINVOKE.DMD_CREATIONFIELDDATASUBTYPES_get();
+ public static readonly string GDAL_DMD_CREATIONFIELDDATASUBTYPES = GdalConstPINVOKE.GDAL_DMD_CREATIONFIELDDATASUBTYPES_get();
+ public static readonly string GDAL_DMD_CREATION_FIELD_DEFN_FLAGS = GdalConstPINVOKE.GDAL_DMD_CREATION_FIELD_DEFN_FLAGS_get();
+ public static readonly string DMD_CREATION_FIELD_DEFN_FLAGS = GdalConstPINVOKE.DMD_CREATION_FIELD_DEFN_FLAGS_get();
+ public static readonly string DMD_SUBDATASETS = GdalConstPINVOKE.DMD_SUBDATASETS_get();
+ public static readonly string GDAL_DMD_SUBDATASETS = GdalConstPINVOKE.GDAL_DMD_SUBDATASETS_get();
+ public static readonly string DMD_CREATION_FIELD_DOMAIN_TYPES = GdalConstPINVOKE.DMD_CREATION_FIELD_DOMAIN_TYPES_get();
+ public static readonly string GDAL_DMD_CREATION_FIELD_DOMAIN_TYPES = GdalConstPINVOKE.GDAL_DMD_CREATION_FIELD_DOMAIN_TYPES_get();
+ public static readonly string DMD_ALTER_GEOM_FIELD_DEFN_FLAGS = GdalConstPINVOKE.DMD_ALTER_GEOM_FIELD_DEFN_FLAGS_get();
+ public static readonly string GDAL_DMD_ALTER_GEOM_FIELD_DEFN_FLAGS = GdalConstPINVOKE.GDAL_DMD_ALTER_GEOM_FIELD_DEFN_FLAGS_get();
+ public static readonly string DMD_SUPPORTED_SQL_DIALECTS = GdalConstPINVOKE.DMD_SUPPORTED_SQL_DIALECTS_get();
+ public static readonly string GDAL_DMD_SUPPORTED_SQL_DIALECTS = GdalConstPINVOKE.GDAL_DMD_SUPPORTED_SQL_DIALECTS_get();
+ public static readonly string DMD_NUMERIC_FIELD_WIDTH_INCLUDES_DECIMAL_SEPARATOR = GdalConstPINVOKE.DMD_NUMERIC_FIELD_WIDTH_INCLUDES_DECIMAL_SEPARATOR_get();
+ public static readonly string GDAL_DMD_NUMERIC_FIELD_WIDTH_INCLUDES_DECIMAL_SEPARATOR = GdalConstPINVOKE.GDAL_DMD_NUMERIC_FIELD_WIDTH_INCLUDES_DECIMAL_SEPARATOR_get();
+ public static readonly string DMD_NUMERIC_FIELD_WIDTH_INCLUDES_SIGN = GdalConstPINVOKE.DMD_NUMERIC_FIELD_WIDTH_INCLUDES_SIGN_get();
+ public static readonly string GDAL_DMD_NUMERIC_FIELD_WIDTH_INCLUDES_SIGN = GdalConstPINVOKE.GDAL_DMD_NUMERIC_FIELD_WIDTH_INCLUDES_SIGN_get();
+ public static readonly string DCAP_OPEN = GdalConstPINVOKE.DCAP_OPEN_get();
+ public static readonly string GDAL_DCAP_OPEN = GdalConstPINVOKE.GDAL_DCAP_OPEN_get();
+ public static readonly string DCAP_CREATE = GdalConstPINVOKE.DCAP_CREATE_get();
+ public static readonly string GDAL_DCAP_CREATE = GdalConstPINVOKE.GDAL_DCAP_CREATE_get();
+ public static readonly string DCAP_CREATE_MULTIDIMENSIONAL = GdalConstPINVOKE.DCAP_CREATE_MULTIDIMENSIONAL_get();
+ public static readonly string GDAL_DCAP_CREATE_MULTIDIMENSIONAL = GdalConstPINVOKE.GDAL_DCAP_CREATE_MULTIDIMENSIONAL_get();
+ public static readonly string DCAP_CREATECOPY = GdalConstPINVOKE.DCAP_CREATECOPY_get();
+ public static readonly string GDAL_DCAP_CREATECOPY = GdalConstPINVOKE.GDAL_DCAP_CREATECOPY_get();
+ public static readonly string DCAP_CREATECOPY_MULTIDIMENSIONAL = GdalConstPINVOKE.DCAP_CREATECOPY_MULTIDIMENSIONAL_get();
+ public static readonly string GDAL_DCAP_CREATECOPY_MULTIDIMENSIONAL = GdalConstPINVOKE.GDAL_DCAP_CREATECOPY_MULTIDIMENSIONAL_get();
+ public static readonly string DCAP_MULTIDIM_RASTER = GdalConstPINVOKE.DCAP_MULTIDIM_RASTER_get();
+ public static readonly string GDAL_DCAP_MULTIDIM_RASTER = GdalConstPINVOKE.GDAL_DCAP_MULTIDIM_RASTER_get();
+ public static readonly string DCAP_SUBCREATECOPY = GdalConstPINVOKE.DCAP_SUBCREATECOPY_get();
+ public static readonly string GDAL_DCAP_SUBCREATECOPY = GdalConstPINVOKE.GDAL_DCAP_SUBCREATECOPY_get();
+ public static readonly string DCAP_VIRTUALIO = GdalConstPINVOKE.DCAP_VIRTUALIO_get();
+ public static readonly string GDAL_DCAP_VIRTUALIO = GdalConstPINVOKE.GDAL_DCAP_VIRTUALIO_get();
+ public static readonly string DCAP_RASTER = GdalConstPINVOKE.DCAP_RASTER_get();
+ public static readonly string GDAL_DCAP_RASTER = GdalConstPINVOKE.GDAL_DCAP_RASTER_get();
+ public static readonly string DCAP_VECTOR = GdalConstPINVOKE.DCAP_VECTOR_get();
+ public static readonly string GDAL_DCAP_VECTOR = GdalConstPINVOKE.GDAL_DCAP_VECTOR_get();
+ public static readonly string DCAP_GNM = GdalConstPINVOKE.DCAP_GNM_get();
+ public static readonly string GDAL_DCAP_GNM = GdalConstPINVOKE.GDAL_DCAP_GNM_get();
+ public static readonly string DCAP_CREATE_LAYER = GdalConstPINVOKE.DCAP_CREATE_LAYER_get();
+ public static readonly string GDAL_DCAP_CREATE_LAYER = GdalConstPINVOKE.GDAL_DCAP_CREATE_LAYER_get();
+ public static readonly string DCAP_DELETE_LAYER = GdalConstPINVOKE.DCAP_DELETE_LAYER_get();
+ public static readonly string GDAL_DCAP_DELETE_LAYER = GdalConstPINVOKE.GDAL_DCAP_DELETE_LAYER_get();
+ public static readonly string DCAP_CREATE_FIELD = GdalConstPINVOKE.DCAP_CREATE_FIELD_get();
+ public static readonly string GDAL_DCAP_CREATE_FIELD = GdalConstPINVOKE.GDAL_DCAP_CREATE_FIELD_get();
+ public static readonly string DCAP_DELETE_FIELD = GdalConstPINVOKE.DCAP_DELETE_FIELD_get();
+ public static readonly string GDAL_DCAP_DELETE_FIELD = GdalConstPINVOKE.GDAL_DCAP_DELETE_FIELD_get();
+ public static readonly string DCAP_REORDER_FIELDS = GdalConstPINVOKE.DCAP_REORDER_FIELDS_get();
+ public static readonly string GDAL_DCAP_REORDER_FIELDS = GdalConstPINVOKE.GDAL_DCAP_REORDER_FIELDS_get();
+ public static readonly string DMD_ALTER_FIELD_DEFN_FLAGS = GdalConstPINVOKE.DMD_ALTER_FIELD_DEFN_FLAGS_get();
+ public static readonly string GDAL_DMD_ALTER_FIELD_DEFN_FLAGS = GdalConstPINVOKE.GDAL_DMD_ALTER_FIELD_DEFN_FLAGS_get();
+ public static readonly string DMD_ILLEGAL_FIELD_NAMES = GdalConstPINVOKE.DMD_ILLEGAL_FIELD_NAMES_get();
+ public static readonly string GDAL_DMD_ILLEGAL_FIELD_NAMES = GdalConstPINVOKE.GDAL_DMD_ILLEGAL_FIELD_NAMES_get();
+ public static readonly string DCAP_NOTNULL_FIELDS = GdalConstPINVOKE.DCAP_NOTNULL_FIELDS_get();
+ public static readonly string GDAL_DCAP_NOTNULL_FIELDS = GdalConstPINVOKE.GDAL_DCAP_NOTNULL_FIELDS_get();
+ public static readonly string DCAP_UNIQUE_FIELDS = GdalConstPINVOKE.DCAP_UNIQUE_FIELDS_get();
+ public static readonly string GDAL_DCAP_UNIQUE_FIELDS = GdalConstPINVOKE.GDAL_DCAP_UNIQUE_FIELDS_get();
+ public static readonly string DCAP_DEFAULT_FIELDS = GdalConstPINVOKE.DCAP_DEFAULT_FIELDS_get();
+ public static readonly string GDAL_DCAP_DEFAULT_FIELDS = GdalConstPINVOKE.GDAL_DCAP_DEFAULT_FIELDS_get();
+ public static readonly string DCAP_NOTNULL_GEOMFIELDS = GdalConstPINVOKE.DCAP_NOTNULL_GEOMFIELDS_get();
+ public static readonly string GDAL_DCAP_NOTNULL_GEOMFIELDS = GdalConstPINVOKE.GDAL_DCAP_NOTNULL_GEOMFIELDS_get();
+ public static readonly string DCAP_NONSPATIAL = GdalConstPINVOKE.DCAP_NONSPATIAL_get();
+ public static readonly string GDAL_DCAP_NONSPATIAL = GdalConstPINVOKE.GDAL_DCAP_NONSPATIAL_get();
+ public static readonly string DCAP_CURVE_GEOMETRIES = GdalConstPINVOKE.DCAP_CURVE_GEOMETRIES_get();
+ public static readonly string GDAL_DCAP_CURVE_GEOMETRIES = GdalConstPINVOKE.GDAL_DCAP_CURVE_GEOMETRIES_get();
+ public static readonly string DCAP_MEASURED_GEOMETRIES = GdalConstPINVOKE.DCAP_MEASURED_GEOMETRIES_get();
+ public static readonly string GDAL_DCAP_MEASURED_GEOMETRIES = GdalConstPINVOKE.GDAL_DCAP_MEASURED_GEOMETRIES_get();
+ public static readonly string DCAP_Z_GEOMETRIES = GdalConstPINVOKE.DCAP_Z_GEOMETRIES_get();
+ public static readonly string GDAL_DCAP_Z_GEOMETRIES = GdalConstPINVOKE.GDAL_DCAP_Z_GEOMETRIES_get();
+ public static readonly string DMD_GEOMETRY_FLAGS = GdalConstPINVOKE.DMD_GEOMETRY_FLAGS_get();
+ public static readonly string GDAL_DMD_GEOMETRY_FLAGS = GdalConstPINVOKE.GDAL_DMD_GEOMETRY_FLAGS_get();
+ public static readonly string DCAP_FEATURE_STYLES = GdalConstPINVOKE.DCAP_FEATURE_STYLES_get();
+ public static readonly string GDAL_DCAP_FEATURE_STYLES = GdalConstPINVOKE.GDAL_DCAP_FEATURE_STYLES_get();
+ public static readonly string DCAP_FEATURE_STYLES_READ = GdalConstPINVOKE.DCAP_FEATURE_STYLES_READ_get();
+ public static readonly string GDAL_DCAP_FEATURE_STYLES_READ = GdalConstPINVOKE.GDAL_DCAP_FEATURE_STYLES_READ_get();
+ public static readonly string DCAP_FEATURE_STYLES_WRITE = GdalConstPINVOKE.DCAP_FEATURE_STYLES_WRITE_get();
+ public static readonly string GDAL_DCAP_FEATURE_STYLES_WRITE = GdalConstPINVOKE.GDAL_DCAP_FEATURE_STYLES_WRITE_get();
+ public static readonly string DCAP_COORDINATE_EPOCH = GdalConstPINVOKE.DCAP_COORDINATE_EPOCH_get();
+ public static readonly string GDAL_DCAP_COORDINATE_EPOCH = GdalConstPINVOKE.GDAL_DCAP_COORDINATE_EPOCH_get();
+ public static readonly string DCAP_MULTIPLE_VECTOR_LAYERS = GdalConstPINVOKE.DCAP_MULTIPLE_VECTOR_LAYERS_get();
+ public static readonly string GDAL_DCAP_MULTIPLE_VECTOR_LAYERS = GdalConstPINVOKE.GDAL_DCAP_MULTIPLE_VECTOR_LAYERS_get();
+ public static readonly string DCAP_FIELD_DOMAINS = GdalConstPINVOKE.DCAP_FIELD_DOMAINS_get();
+ public static readonly string GDAL_DCAP_FIELD_DOMAINS = GdalConstPINVOKE.GDAL_DCAP_FIELD_DOMAINS_get();
+ public static readonly string DCAP_RELATIONSHIPS = GdalConstPINVOKE.DCAP_RELATIONSHIPS_get();
+ public static readonly string GDAL_DCAP_RELATIONSHIPS = GdalConstPINVOKE.GDAL_DCAP_RELATIONSHIPS_get();
+ public static readonly string DCAP_CREATE_RELATIONSHIP = GdalConstPINVOKE.DCAP_CREATE_RELATIONSHIP_get();
+ public static readonly string GDAL_DCAP_CREATE_RELATIONSHIP = GdalConstPINVOKE.GDAL_DCAP_CREATE_RELATIONSHIP_get();
+ public static readonly string DCAP_DELETE_RELATIONSHIP = GdalConstPINVOKE.DCAP_DELETE_RELATIONSHIP_get();
+ public static readonly string GDAL_DCAP_DELETE_RELATIONSHIP = GdalConstPINVOKE.GDAL_DCAP_DELETE_RELATIONSHIP_get();
+ public static readonly string DCAP_UPDATE_RELATIONSHIP = GdalConstPINVOKE.DCAP_UPDATE_RELATIONSHIP_get();
+ public static readonly string GDAL_DCAP_UPDATE_RELATIONSHIP = GdalConstPINVOKE.GDAL_DCAP_UPDATE_RELATIONSHIP_get();
+ public static readonly string DMD_RELATIONSHIP_FLAGS = GdalConstPINVOKE.DMD_RELATIONSHIP_FLAGS_get();
+ public static readonly string GDAL_DMD_RELATIONSHIP_FLAGS = GdalConstPINVOKE.GDAL_DMD_RELATIONSHIP_FLAGS_get();
+ public static readonly string DMD_RELATIONSHIP_RELATED_TABLE_TYPES = GdalConstPINVOKE.DMD_RELATIONSHIP_RELATED_TABLE_TYPES_get();
+ public static readonly string GDAL_DMD_RELATIONSHIP_RELATED_TABLE_TYPES = GdalConstPINVOKE.GDAL_DMD_RELATIONSHIP_RELATED_TABLE_TYPES_get();
+ public static readonly string DCAP_RENAME_LAYERS = GdalConstPINVOKE.DCAP_RENAME_LAYERS_get();
+ public static readonly string GDAL_DCAP_RENAME_LAYERS = GdalConstPINVOKE.GDAL_DCAP_RENAME_LAYERS_get();
+ public static readonly string DCAP_FLUSHCACHE_CONSISTENT_STATE = GdalConstPINVOKE.DCAP_FLUSHCACHE_CONSISTENT_STATE_get();
+ public static readonly string GDAL_DCAP_FLUSHCACHE_CONSISTENT_STATE = GdalConstPINVOKE.GDAL_DCAP_FLUSHCACHE_CONSISTENT_STATE_get();
+ public static readonly string DIM_TYPE_HORIZONTAL_X = GdalConstPINVOKE.DIM_TYPE_HORIZONTAL_X_get();
+ public static readonly string GDAL_DIM_TYPE_HORIZONTAL_X = GdalConstPINVOKE.GDAL_DIM_TYPE_HORIZONTAL_X_get();
+ public static readonly string DIM_TYPE_HORIZONTAL_Y = GdalConstPINVOKE.DIM_TYPE_HORIZONTAL_Y_get();
+ public static readonly string GDAL_DIM_TYPE_HORIZONTAL_Y = GdalConstPINVOKE.GDAL_DIM_TYPE_HORIZONTAL_Y_get();
+ public static readonly string DIM_TYPE_VERTICAL = GdalConstPINVOKE.DIM_TYPE_VERTICAL_get();
+ public static readonly string GDAL_DIM_TYPE_VERTICAL = GdalConstPINVOKE.GDAL_DIM_TYPE_VERTICAL_get();
+ public static readonly string DIM_TYPE_TEMPORAL = GdalConstPINVOKE.DIM_TYPE_TEMPORAL_get();
+ public static readonly string GDAL_DIM_TYPE_TEMPORAL = GdalConstPINVOKE.GDAL_DIM_TYPE_TEMPORAL_get();
+ public static readonly string DIM_TYPE_PARAMETRIC = GdalConstPINVOKE.DIM_TYPE_PARAMETRIC_get();
+ public static readonly string GDAL_DIM_TYPE_PARAMETRIC = GdalConstPINVOKE.GDAL_DIM_TYPE_PARAMETRIC_get();
+ public static readonly string GDsCAddRelationship = GdalConstPINVOKE.GDsCAddRelationship_get();
+ public static readonly string GDsCDeleteRelationship = GdalConstPINVOKE.GDsCDeleteRelationship_get();
+ public static readonly string GDsCUpdateRelationship = GdalConstPINVOKE.GDsCUpdateRelationship_get();
+ public static readonly int CPLES_BackslashQuotable = GdalConstPINVOKE.CPLES_BackslashQuotable_get();
+ public static readonly int CPLES_XML = GdalConstPINVOKE.CPLES_XML_get();
+ public static readonly int CPLES_XML_BUT_QUOTES = GdalConstPINVOKE.CPLES_XML_BUT_QUOTES_get();
+ public static readonly int CPLES_URL = GdalConstPINVOKE.CPLES_URL_get();
+ public static readonly int CPLES_SQL = GdalConstPINVOKE.CPLES_SQL_get();
+ public static readonly int CPLES_SQLI = GdalConstPINVOKE.CPLES_SQLI_get();
+ public static readonly int CPLES_CSV = GdalConstPINVOKE.CPLES_CSV_get();
+ public static readonly int GFT_Integer = GdalConstPINVOKE.GFT_Integer_get();
+ public static readonly int GFT_Real = GdalConstPINVOKE.GFT_Real_get();
+ public static readonly int GFT_String = GdalConstPINVOKE.GFT_String_get();
+ public static readonly int GFU_Generic = GdalConstPINVOKE.GFU_Generic_get();
+ public static readonly int GFU_PixelCount = GdalConstPINVOKE.GFU_PixelCount_get();
+ public static readonly int GFU_Name = GdalConstPINVOKE.GFU_Name_get();
+ public static readonly int GFU_Min = GdalConstPINVOKE.GFU_Min_get();
+ public static readonly int GFU_Max = GdalConstPINVOKE.GFU_Max_get();
+ public static readonly int GFU_MinMax = GdalConstPINVOKE.GFU_MinMax_get();
+ public static readonly int GFU_Red = GdalConstPINVOKE.GFU_Red_get();
+ public static readonly int GFU_Green = GdalConstPINVOKE.GFU_Green_get();
+ public static readonly int GFU_Blue = GdalConstPINVOKE.GFU_Blue_get();
+ public static readonly int GFU_Alpha = GdalConstPINVOKE.GFU_Alpha_get();
+ public static readonly int GFU_RedMin = GdalConstPINVOKE.GFU_RedMin_get();
+ public static readonly int GFU_GreenMin = GdalConstPINVOKE.GFU_GreenMin_get();
+ public static readonly int GFU_BlueMin = GdalConstPINVOKE.GFU_BlueMin_get();
+ public static readonly int GFU_AlphaMin = GdalConstPINVOKE.GFU_AlphaMin_get();
+ public static readonly int GFU_RedMax = GdalConstPINVOKE.GFU_RedMax_get();
+ public static readonly int GFU_GreenMax = GdalConstPINVOKE.GFU_GreenMax_get();
+ public static readonly int GFU_BlueMax = GdalConstPINVOKE.GFU_BlueMax_get();
+ public static readonly int GFU_AlphaMax = GdalConstPINVOKE.GFU_AlphaMax_get();
+ public static readonly int GFU_MaxCount = GdalConstPINVOKE.GFU_MaxCount_get();
+ public static readonly int GRTT_THEMATIC = GdalConstPINVOKE.GRTT_THEMATIC_get();
+ public static readonly int GRTT_ATHEMATIC = GdalConstPINVOKE.GRTT_ATHEMATIC_get();
+ public static readonly int GMF_ALL_VALID = GdalConstPINVOKE.GMF_ALL_VALID_get();
+ public static readonly int GMF_PER_DATASET = GdalConstPINVOKE.GMF_PER_DATASET_get();
+ public static readonly int GMF_ALPHA = GdalConstPINVOKE.GMF_ALPHA_get();
+ public static readonly int GMF_NODATA = GdalConstPINVOKE.GMF_NODATA_get();
+ public static readonly int GDAL_DATA_COVERAGE_STATUS_UNIMPLEMENTED = GdalConstPINVOKE.GDAL_DATA_COVERAGE_STATUS_UNIMPLEMENTED_get();
+ public static readonly int GDAL_DATA_COVERAGE_STATUS_DATA = GdalConstPINVOKE.GDAL_DATA_COVERAGE_STATUS_DATA_get();
+ public static readonly int GDAL_DATA_COVERAGE_STATUS_EMPTY = GdalConstPINVOKE.GDAL_DATA_COVERAGE_STATUS_EMPTY_get();
+ public static readonly int GARIO_PENDING = GdalConstPINVOKE.GARIO_PENDING_get();
+ public static readonly int GARIO_UPDATE = GdalConstPINVOKE.GARIO_UPDATE_get();
+ public static readonly int GARIO_ERROR = GdalConstPINVOKE.GARIO_ERROR_get();
+ public static readonly int GARIO_COMPLETE = GdalConstPINVOKE.GARIO_COMPLETE_get();
+ public static readonly int GTO_TIP = GdalConstPINVOKE.GTO_TIP_get();
+ public static readonly int GTO_BIT = GdalConstPINVOKE.GTO_BIT_get();
+ public static readonly int GTO_BSQ = GdalConstPINVOKE.GTO_BSQ_get();
+ public static readonly int GRC_ONE_TO_ONE = GdalConstPINVOKE.GRC_ONE_TO_ONE_get();
+ public static readonly int GRC_ONE_TO_MANY = GdalConstPINVOKE.GRC_ONE_TO_MANY_get();
+ public static readonly int GRC_MANY_TO_ONE = GdalConstPINVOKE.GRC_MANY_TO_ONE_get();
+ public static readonly int GRC_MANY_TO_MANY = GdalConstPINVOKE.GRC_MANY_TO_MANY_get();
+ public static readonly int GRT_COMPOSITE = GdalConstPINVOKE.GRT_COMPOSITE_get();
+ public static readonly int GRT_ASSOCIATION = GdalConstPINVOKE.GRT_ASSOCIATION_get();
+ public static readonly int GRT_AGGREGATION = GdalConstPINVOKE.GRT_AGGREGATION_get();
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/Const/GdalConstPINVOKE.cs b/Geospatial/GDAL-Bindings/Const/GdalConstPINVOKE.cs
new file mode 100644
index 0000000..ae38ab3
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/Const/GdalConstPINVOKE.cs
@@ -0,0 +1,1085 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+class GdalConstPINVOKE {
+
+ 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);
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="SWIGRegisterExceptionCallbacks_GdalConst")]
+ public static extern void SWIGRegisterExceptionCallbacks_GdalConst(
+ ExceptionDelegate applicationDelegate,
+ ExceptionDelegate arithmeticDelegate,
+ ExceptionDelegate divideByZeroDelegate,
+ ExceptionDelegate indexOutOfRangeDelegate,
+ ExceptionDelegate invalidCastDelegate,
+ ExceptionDelegate invalidOperationDelegate,
+ ExceptionDelegate ioDelegate,
+ ExceptionDelegate nullReferenceDelegate,
+ ExceptionDelegate outOfMemoryDelegate,
+ ExceptionDelegate overflowDelegate,
+ ExceptionDelegate systemExceptionDelegate);
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="SWIGRegisterExceptionArgumentCallbacks_GdalConst")]
+ public static extern void SWIGRegisterExceptionCallbacksArgument_GdalConst(
+ ExceptionArgumentDelegate argumentDelegate,
+ ExceptionArgumentDelegate argumentNullDelegate,
+ ExceptionArgumentDelegate argumentOutOfRangeDelegate);
+
+ static void SetPendingApplicationException(string message) {
+ SWIGPendingException.Set(new global::System.ApplicationException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingArithmeticException(string message) {
+ SWIGPendingException.Set(new global::System.ArithmeticException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingDivideByZeroException(string message) {
+ SWIGPendingException.Set(new global::System.DivideByZeroException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingIndexOutOfRangeException(string message) {
+ SWIGPendingException.Set(new global::System.IndexOutOfRangeException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingInvalidCastException(string message) {
+ SWIGPendingException.Set(new global::System.InvalidCastException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingInvalidOperationException(string message) {
+ SWIGPendingException.Set(new global::System.InvalidOperationException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingIOException(string message) {
+ SWIGPendingException.Set(new global::System.IO.IOException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingNullReferenceException(string message) {
+ SWIGPendingException.Set(new global::System.NullReferenceException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingOutOfMemoryException(string message) {
+ SWIGPendingException.Set(new global::System.OutOfMemoryException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingOverflowException(string message) {
+ SWIGPendingException.Set(new global::System.OverflowException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingSystemException(string message) {
+ SWIGPendingException.Set(new global::System.SystemException(message, SWIGPendingException.Retrieve()));
+ }
+
+ static void SetPendingArgumentException(string message, string paramName) {
+ SWIGPendingException.Set(new global::System.ArgumentException(message, paramName, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingArgumentNullException(string message, string paramName) {
+ global::System.Exception e = SWIGPendingException.Retrieve();
+ if (e != null) message = message + " Inner Exception: " + e.Message;
+ SWIGPendingException.Set(new global::System.ArgumentNullException(paramName, message));
+ }
+ static void SetPendingArgumentOutOfRangeException(string message, string paramName) {
+ global::System.Exception e = SWIGPendingException.Retrieve();
+ if (e != null) message = message + " Inner Exception: " + e.Message;
+ SWIGPendingException.Set(new global::System.ArgumentOutOfRangeException(paramName, message));
+ }
+
+ static SWIGExceptionHelper() {
+ SWIGRegisterExceptionCallbacks_GdalConst(
+ applicationDelegate,
+ arithmeticDelegate,
+ divideByZeroDelegate,
+ indexOutOfRangeDelegate,
+ invalidCastDelegate,
+ invalidOperationDelegate,
+ ioDelegate,
+ nullReferenceDelegate,
+ outOfMemoryDelegate,
+ overflowDelegate,
+ systemDelegate);
+
+ SWIGRegisterExceptionCallbacksArgument_GdalConst(
+ argumentDelegate,
+ argumentNullDelegate,
+ argumentOutOfRangeDelegate);
+ }
+ }
+
+ protected static SWIGExceptionHelper swigExceptionHelper = new SWIGExceptionHelper();
+
+ public class SWIGPendingException {
+ [global::System.ThreadStatic]
+ private static global::System.Exception pendingException = null;
+ private static int numExceptionsPending = 0;
+ private static global::System.Object exceptionsLock = null;
+
+ public static bool Pending {
+ get {
+ bool pending = false;
+ if (numExceptionsPending > 0)
+ if (pendingException != null)
+ pending = true;
+ return pending;
+ }
+ }
+
+ public static void Set(global::System.Exception e) {
+ if (pendingException != null)
+ throw new global::System.ApplicationException("FATAL: An earlier pending exception from unmanaged code was missed and thus not thrown (" + pendingException.ToString() + ")", e);
+ pendingException = e;
+ lock(exceptionsLock) {
+ numExceptionsPending++;
+ }
+ }
+
+ public static global::System.Exception Retrieve() {
+ global::System.Exception e = null;
+ if (numExceptionsPending > 0) {
+ if (pendingException != null) {
+ e = pendingException;
+ pendingException = null;
+ lock(exceptionsLock) {
+ numExceptionsPending--;
+ }
+ }
+ }
+ return e;
+ }
+
+ static SWIGPendingException() {
+ exceptionsLock = new global::System.Object();
+ }
+ }
+
+
+ protected class SWIGStringHelper {
+
+ public delegate string SWIGStringDelegate(string message);
+ static SWIGStringDelegate stringDelegate = new SWIGStringDelegate(CreateString);
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="SWIGRegisterStringCallback_GdalConst")]
+ public static extern void SWIGRegisterStringCallback_GdalConst(SWIGStringDelegate stringDelegate);
+
+ static string CreateString(string cString) {
+ return cString;
+ }
+
+ static SWIGStringHelper() {
+ SWIGRegisterStringCallback_GdalConst(stringDelegate);
+ }
+ }
+
+ static protected SWIGStringHelper swigStringHelper = new SWIGStringHelper();
+
+
+ static GdalConstPINVOKE() {
+ }
+
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDT_Unknown_get___")]
+ public static extern int GDT_Unknown_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDT_Byte_get___")]
+ public static extern int GDT_Byte_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDT_Int8_get___")]
+ public static extern int GDT_Int8_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDT_UInt16_get___")]
+ public static extern int GDT_UInt16_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDT_Int16_get___")]
+ public static extern int GDT_Int16_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDT_UInt32_get___")]
+ public static extern int GDT_UInt32_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDT_Int32_get___")]
+ public static extern int GDT_Int32_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDT_UInt64_get___")]
+ public static extern int GDT_UInt64_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDT_Int64_get___")]
+ public static extern int GDT_Int64_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDT_Float32_get___")]
+ public static extern int GDT_Float32_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDT_Float64_get___")]
+ public static extern int GDT_Float64_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDT_CInt16_get___")]
+ public static extern int GDT_CInt16_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDT_CInt32_get___")]
+ public static extern int GDT_CInt32_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDT_CFloat32_get___")]
+ public static extern int GDT_CFloat32_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDT_CFloat64_get___")]
+ public static extern int GDT_CFloat64_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDT_TypeCount_get___")]
+ public static extern int GDT_TypeCount_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GA_ReadOnly_get___")]
+ public static extern int GA_ReadOnly_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GA_Update_get___")]
+ public static extern int GA_Update_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GF_Read_get___")]
+ public static extern int GF_Read_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GF_Write_get___")]
+ public static extern int GF_Write_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GRIORA_NearestNeighbour_get___")]
+ public static extern int GRIORA_NearestNeighbour_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GRIORA_Bilinear_get___")]
+ public static extern int GRIORA_Bilinear_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GRIORA_Cubic_get___")]
+ public static extern int GRIORA_Cubic_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GRIORA_CubicSpline_get___")]
+ public static extern int GRIORA_CubicSpline_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GRIORA_Lanczos_get___")]
+ public static extern int GRIORA_Lanczos_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GRIORA_Average_get___")]
+ public static extern int GRIORA_Average_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GRIORA_RMS_get___")]
+ public static extern int GRIORA_RMS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GRIORA_Mode_get___")]
+ public static extern int GRIORA_Mode_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GRIORA_Gauss_get___")]
+ public static extern int GRIORA_Gauss_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GCI_Undefined_get___")]
+ public static extern int GCI_Undefined_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GCI_GrayIndex_get___")]
+ public static extern int GCI_GrayIndex_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GCI_PaletteIndex_get___")]
+ public static extern int GCI_PaletteIndex_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GCI_RedBand_get___")]
+ public static extern int GCI_RedBand_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GCI_GreenBand_get___")]
+ public static extern int GCI_GreenBand_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GCI_BlueBand_get___")]
+ public static extern int GCI_BlueBand_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GCI_AlphaBand_get___")]
+ public static extern int GCI_AlphaBand_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GCI_HueBand_get___")]
+ public static extern int GCI_HueBand_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GCI_SaturationBand_get___")]
+ public static extern int GCI_SaturationBand_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GCI_LightnessBand_get___")]
+ public static extern int GCI_LightnessBand_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GCI_CyanBand_get___")]
+ public static extern int GCI_CyanBand_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GCI_MagentaBand_get___")]
+ public static extern int GCI_MagentaBand_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GCI_YellowBand_get___")]
+ public static extern int GCI_YellowBand_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GCI_BlackBand_get___")]
+ public static extern int GCI_BlackBand_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GCI_YCbCr_YBand_get___")]
+ public static extern int GCI_YCbCr_YBand_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GCI_YCbCr_CrBand_get___")]
+ public static extern int GCI_YCbCr_CrBand_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GCI_YCbCr_CbBand_get___")]
+ public static extern int GCI_YCbCr_CbBand_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GRA_NearestNeighbour_get___")]
+ public static extern int GRA_NearestNeighbour_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GRA_Bilinear_get___")]
+ public static extern int GRA_Bilinear_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GRA_Cubic_get___")]
+ public static extern int GRA_Cubic_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GRA_CubicSpline_get___")]
+ public static extern int GRA_CubicSpline_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GRA_Lanczos_get___")]
+ public static extern int GRA_Lanczos_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GRA_Average_get___")]
+ public static extern int GRA_Average_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GRA_RMS_get___")]
+ public static extern int GRA_RMS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GRA_Mode_get___")]
+ public static extern int GRA_Mode_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GRA_Max_get___")]
+ public static extern int GRA_Max_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GRA_Min_get___")]
+ public static extern int GRA_Min_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GRA_Med_get___")]
+ public static extern int GRA_Med_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GRA_Q1_get___")]
+ public static extern int GRA_Q1_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GRA_Q3_get___")]
+ public static extern int GRA_Q3_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GRA_Sum_get___")]
+ public static extern int GRA_Sum_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GPI_Gray_get___")]
+ public static extern int GPI_Gray_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GPI_RGB_get___")]
+ public static extern int GPI_RGB_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GPI_CMYK_get___")]
+ public static extern int GPI_CMYK_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GPI_HLS_get___")]
+ public static extern int GPI_HLS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_CXT_Element_get___")]
+ public static extern int CXT_Element_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_CXT_Text_get___")]
+ public static extern int CXT_Text_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_CXT_Attribute_get___")]
+ public static extern int CXT_Attribute_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_CXT_Comment_get___")]
+ public static extern int CXT_Comment_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_CXT_Literal_get___")]
+ public static extern int CXT_Literal_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_CE_None_get___")]
+ public static extern int CE_None_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_CE_Debug_get___")]
+ public static extern int CE_Debug_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_CE_Warning_get___")]
+ public static extern int CE_Warning_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_CE_Failure_get___")]
+ public static extern int CE_Failure_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_CE_Fatal_get___")]
+ public static extern int CE_Fatal_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_CPLE_None_get___")]
+ public static extern int CPLE_None_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_CPLE_AppDefined_get___")]
+ public static extern int CPLE_AppDefined_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_CPLE_OutOfMemory_get___")]
+ public static extern int CPLE_OutOfMemory_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_CPLE_FileIO_get___")]
+ public static extern int CPLE_FileIO_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_CPLE_OpenFailed_get___")]
+ public static extern int CPLE_OpenFailed_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_CPLE_IllegalArg_get___")]
+ public static extern int CPLE_IllegalArg_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_CPLE_NotSupported_get___")]
+ public static extern int CPLE_NotSupported_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_CPLE_AssertionFailed_get___")]
+ public static extern int CPLE_AssertionFailed_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_CPLE_NoWriteAccess_get___")]
+ public static extern int CPLE_NoWriteAccess_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_CPLE_UserInterrupt_get___")]
+ public static extern int CPLE_UserInterrupt_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_CPLE_ObjectNull_get___")]
+ public static extern int CPLE_ObjectNull_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_CPLE_HttpResponse_get___")]
+ public static extern int CPLE_HttpResponse_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_CPLE_AWSBucketNotFound_get___")]
+ public static extern int CPLE_AWSBucketNotFound_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_CPLE_AWSObjectNotFound_get___")]
+ public static extern int CPLE_AWSObjectNotFound_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_CPLE_AWSAccessDenied_get___")]
+ public static extern int CPLE_AWSAccessDenied_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_CPLE_AWSInvalidCredentials_get___")]
+ public static extern int CPLE_AWSInvalidCredentials_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_CPLE_AWSSignatureDoesNotMatch_get___")]
+ public static extern int CPLE_AWSSignatureDoesNotMatch_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_OF_ALL_get___")]
+ public static extern int OF_ALL_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_OF_RASTER_get___")]
+ public static extern int OF_RASTER_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_OF_VECTOR_get___")]
+ public static extern int OF_VECTOR_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_OF_GNM_get___")]
+ public static extern int OF_GNM_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_OF_MULTIDIM_RASTER_get___")]
+ public static extern int OF_MULTIDIM_RASTER_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_OF_READONLY_get___")]
+ public static extern int OF_READONLY_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_OF_UPDATE_get___")]
+ public static extern int OF_UPDATE_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_OF_SHARED_get___")]
+ public static extern int OF_SHARED_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_OF_VERBOSE_ERROR_get___")]
+ public static extern int OF_VERBOSE_ERROR_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DMD_LONGNAME_get___")]
+ public static extern string DMD_LONGNAME_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DMD_LONGNAME_get___")]
+ public static extern string GDAL_DMD_LONGNAME_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DMD_HELPTOPIC_get___")]
+ public static extern string DMD_HELPTOPIC_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DMD_HELPTOPIC_get___")]
+ public static extern string GDAL_DMD_HELPTOPIC_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DMD_MIMETYPE_get___")]
+ public static extern string DMD_MIMETYPE_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DMD_MIMETYPE_get___")]
+ public static extern string GDAL_DMD_MIMETYPE_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DMD_EXTENSION_get___")]
+ public static extern string DMD_EXTENSION_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DMD_EXTENSION_get___")]
+ public static extern string GDAL_DMD_EXTENSION_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DMD_CONNECTION_PREFIX_get___")]
+ public static extern string DMD_CONNECTION_PREFIX_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DMD_CONNECTION_PREFIX_get___")]
+ public static extern string GDAL_DMD_CONNECTION_PREFIX_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DMD_EXTENSIONS_get___")]
+ public static extern string DMD_EXTENSIONS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DMD_EXTENSIONS_get___")]
+ public static extern string GDAL_DMD_EXTENSIONS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DMD_CREATIONOPTIONLIST_get___")]
+ public static extern string DMD_CREATIONOPTIONLIST_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DMD_CREATIONOPTIONLIST_get___")]
+ public static extern string GDAL_DMD_CREATIONOPTIONLIST_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DMD_MULTIDIM_DATASET_CREATIONOPTIONLIST_get___")]
+ public static extern string DMD_MULTIDIM_DATASET_CREATIONOPTIONLIST_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DMD_MULTIDIM_DATASET_CREATIONOPTIONLIST_get___")]
+ public static extern string GDAL_DMD_MULTIDIM_DATASET_CREATIONOPTIONLIST_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DMD_MULTIDIM_GROUP_CREATIONOPTIONLIST_get___")]
+ public static extern string DMD_MULTIDIM_GROUP_CREATIONOPTIONLIST_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DMD_MULTIDIM_GROUP_CREATIONOPTIONLIST_get___")]
+ public static extern string GDAL_DMD_MULTIDIM_GROUP_CREATIONOPTIONLIST_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DMD_MULTIDIM_DIMENSION_CREATIONOPTIONLIST_get___")]
+ public static extern string DMD_MULTIDIM_DIMENSION_CREATIONOPTIONLIST_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DMD_MULTIDIM_DIMENSION_CREATIONOPTIONLIST_get___")]
+ public static extern string GDAL_DMD_MULTIDIM_DIMENSION_CREATIONOPTIONLIST_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DMD_MULTIDIM_ARRAY_CREATIONOPTIONLIST_get___")]
+ public static extern string DMD_MULTIDIM_ARRAY_CREATIONOPTIONLIST_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DMD_MULTIDIM_ARRAY_CREATIONOPTIONLIST_get___")]
+ public static extern string GDAL_DMD_MULTIDIM_ARRAY_CREATIONOPTIONLIST_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DMD_MULTIDIM_ARRAY_OPENOPTIONLIST_get___")]
+ public static extern string DMD_MULTIDIM_ARRAY_OPENOPTIONLIST_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DMD_MULTIDIM_ARRAY_OPENOPTIONLIST_get___")]
+ public static extern string GDAL_DMD_MULTIDIM_ARRAY_OPENOPTIONLIST_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DMD_MULTIDIM_ATTRIBUTE_CREATIONOPTIONLIST_get___")]
+ public static extern string DMD_MULTIDIM_ATTRIBUTE_CREATIONOPTIONLIST_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DMD_MULTIDIM_ATTRIBUTE_CREATIONOPTIONLIST_get___")]
+ public static extern string GDAL_DMD_MULTIDIM_ATTRIBUTE_CREATIONOPTIONLIST_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DMD_OPENOPTIONLIST_get___")]
+ public static extern string DMD_OPENOPTIONLIST_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DMD_OPENOPTIONLIST_get___")]
+ public static extern string GDAL_DMD_OPENOPTIONLIST_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DMD_CREATIONDATATYPES_get___")]
+ public static extern string DMD_CREATIONDATATYPES_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DMD_CREATIONDATATYPES_get___")]
+ public static extern string GDAL_DMD_CREATIONDATATYPES_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DMD_CREATIONFIELDDATATYPES_get___")]
+ public static extern string DMD_CREATIONFIELDDATATYPES_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DMD_CREATIONFIELDDATATYPES_get___")]
+ public static extern string GDAL_DMD_CREATIONFIELDDATATYPES_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DMD_CREATIONFIELDDATASUBTYPES_get___")]
+ public static extern string DMD_CREATIONFIELDDATASUBTYPES_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DMD_CREATIONFIELDDATASUBTYPES_get___")]
+ public static extern string GDAL_DMD_CREATIONFIELDDATASUBTYPES_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DMD_CREATION_FIELD_DEFN_FLAGS_get___")]
+ public static extern string GDAL_DMD_CREATION_FIELD_DEFN_FLAGS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DMD_CREATION_FIELD_DEFN_FLAGS_get___")]
+ public static extern string DMD_CREATION_FIELD_DEFN_FLAGS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DMD_SUBDATASETS_get___")]
+ public static extern string DMD_SUBDATASETS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DMD_SUBDATASETS_get___")]
+ public static extern string GDAL_DMD_SUBDATASETS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DMD_CREATION_FIELD_DOMAIN_TYPES_get___")]
+ public static extern string DMD_CREATION_FIELD_DOMAIN_TYPES_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DMD_CREATION_FIELD_DOMAIN_TYPES_get___")]
+ public static extern string GDAL_DMD_CREATION_FIELD_DOMAIN_TYPES_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DMD_ALTER_GEOM_FIELD_DEFN_FLAGS_get___")]
+ public static extern string DMD_ALTER_GEOM_FIELD_DEFN_FLAGS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DMD_ALTER_GEOM_FIELD_DEFN_FLAGS_get___")]
+ public static extern string GDAL_DMD_ALTER_GEOM_FIELD_DEFN_FLAGS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DMD_SUPPORTED_SQL_DIALECTS_get___")]
+ public static extern string DMD_SUPPORTED_SQL_DIALECTS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DMD_SUPPORTED_SQL_DIALECTS_get___")]
+ public static extern string GDAL_DMD_SUPPORTED_SQL_DIALECTS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DMD_NUMERIC_FIELD_WIDTH_INCLUDES_DECIMAL_SEPARATOR_get___")]
+ public static extern string DMD_NUMERIC_FIELD_WIDTH_INCLUDES_DECIMAL_SEPARATOR_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DMD_NUMERIC_FIELD_WIDTH_INCLUDES_DECIMAL_SEPARATOR_get___")]
+ public static extern string GDAL_DMD_NUMERIC_FIELD_WIDTH_INCLUDES_DECIMAL_SEPARATOR_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DMD_NUMERIC_FIELD_WIDTH_INCLUDES_SIGN_get___")]
+ public static extern string DMD_NUMERIC_FIELD_WIDTH_INCLUDES_SIGN_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DMD_NUMERIC_FIELD_WIDTH_INCLUDES_SIGN_get___")]
+ public static extern string GDAL_DMD_NUMERIC_FIELD_WIDTH_INCLUDES_SIGN_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DCAP_OPEN_get___")]
+ public static extern string DCAP_OPEN_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DCAP_OPEN_get___")]
+ public static extern string GDAL_DCAP_OPEN_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DCAP_CREATE_get___")]
+ public static extern string DCAP_CREATE_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DCAP_CREATE_get___")]
+ public static extern string GDAL_DCAP_CREATE_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DCAP_CREATE_MULTIDIMENSIONAL_get___")]
+ public static extern string DCAP_CREATE_MULTIDIMENSIONAL_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DCAP_CREATE_MULTIDIMENSIONAL_get___")]
+ public static extern string GDAL_DCAP_CREATE_MULTIDIMENSIONAL_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DCAP_CREATECOPY_get___")]
+ public static extern string DCAP_CREATECOPY_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DCAP_CREATECOPY_get___")]
+ public static extern string GDAL_DCAP_CREATECOPY_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DCAP_CREATECOPY_MULTIDIMENSIONAL_get___")]
+ public static extern string DCAP_CREATECOPY_MULTIDIMENSIONAL_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DCAP_CREATECOPY_MULTIDIMENSIONAL_get___")]
+ public static extern string GDAL_DCAP_CREATECOPY_MULTIDIMENSIONAL_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DCAP_MULTIDIM_RASTER_get___")]
+ public static extern string DCAP_MULTIDIM_RASTER_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DCAP_MULTIDIM_RASTER_get___")]
+ public static extern string GDAL_DCAP_MULTIDIM_RASTER_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DCAP_SUBCREATECOPY_get___")]
+ public static extern string DCAP_SUBCREATECOPY_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DCAP_SUBCREATECOPY_get___")]
+ public static extern string GDAL_DCAP_SUBCREATECOPY_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DCAP_VIRTUALIO_get___")]
+ public static extern string DCAP_VIRTUALIO_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DCAP_VIRTUALIO_get___")]
+ public static extern string GDAL_DCAP_VIRTUALIO_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DCAP_RASTER_get___")]
+ public static extern string DCAP_RASTER_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DCAP_RASTER_get___")]
+ public static extern string GDAL_DCAP_RASTER_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DCAP_VECTOR_get___")]
+ public static extern string DCAP_VECTOR_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DCAP_VECTOR_get___")]
+ public static extern string GDAL_DCAP_VECTOR_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DCAP_GNM_get___")]
+ public static extern string DCAP_GNM_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DCAP_GNM_get___")]
+ public static extern string GDAL_DCAP_GNM_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DCAP_CREATE_LAYER_get___")]
+ public static extern string DCAP_CREATE_LAYER_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DCAP_CREATE_LAYER_get___")]
+ public static extern string GDAL_DCAP_CREATE_LAYER_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DCAP_DELETE_LAYER_get___")]
+ public static extern string DCAP_DELETE_LAYER_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DCAP_DELETE_LAYER_get___")]
+ public static extern string GDAL_DCAP_DELETE_LAYER_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DCAP_CREATE_FIELD_get___")]
+ public static extern string DCAP_CREATE_FIELD_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DCAP_CREATE_FIELD_get___")]
+ public static extern string GDAL_DCAP_CREATE_FIELD_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DCAP_DELETE_FIELD_get___")]
+ public static extern string DCAP_DELETE_FIELD_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DCAP_DELETE_FIELD_get___")]
+ public static extern string GDAL_DCAP_DELETE_FIELD_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DCAP_REORDER_FIELDS_get___")]
+ public static extern string DCAP_REORDER_FIELDS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DCAP_REORDER_FIELDS_get___")]
+ public static extern string GDAL_DCAP_REORDER_FIELDS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DMD_ALTER_FIELD_DEFN_FLAGS_get___")]
+ public static extern string DMD_ALTER_FIELD_DEFN_FLAGS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DMD_ALTER_FIELD_DEFN_FLAGS_get___")]
+ public static extern string GDAL_DMD_ALTER_FIELD_DEFN_FLAGS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DMD_ILLEGAL_FIELD_NAMES_get___")]
+ public static extern string DMD_ILLEGAL_FIELD_NAMES_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DMD_ILLEGAL_FIELD_NAMES_get___")]
+ public static extern string GDAL_DMD_ILLEGAL_FIELD_NAMES_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DCAP_NOTNULL_FIELDS_get___")]
+ public static extern string DCAP_NOTNULL_FIELDS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DCAP_NOTNULL_FIELDS_get___")]
+ public static extern string GDAL_DCAP_NOTNULL_FIELDS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DCAP_UNIQUE_FIELDS_get___")]
+ public static extern string DCAP_UNIQUE_FIELDS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DCAP_UNIQUE_FIELDS_get___")]
+ public static extern string GDAL_DCAP_UNIQUE_FIELDS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DCAP_DEFAULT_FIELDS_get___")]
+ public static extern string DCAP_DEFAULT_FIELDS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DCAP_DEFAULT_FIELDS_get___")]
+ public static extern string GDAL_DCAP_DEFAULT_FIELDS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DCAP_NOTNULL_GEOMFIELDS_get___")]
+ public static extern string DCAP_NOTNULL_GEOMFIELDS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DCAP_NOTNULL_GEOMFIELDS_get___")]
+ public static extern string GDAL_DCAP_NOTNULL_GEOMFIELDS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DCAP_NONSPATIAL_get___")]
+ public static extern string DCAP_NONSPATIAL_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DCAP_NONSPATIAL_get___")]
+ public static extern string GDAL_DCAP_NONSPATIAL_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DCAP_CURVE_GEOMETRIES_get___")]
+ public static extern string DCAP_CURVE_GEOMETRIES_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DCAP_CURVE_GEOMETRIES_get___")]
+ public static extern string GDAL_DCAP_CURVE_GEOMETRIES_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DCAP_MEASURED_GEOMETRIES_get___")]
+ public static extern string DCAP_MEASURED_GEOMETRIES_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DCAP_MEASURED_GEOMETRIES_get___")]
+ public static extern string GDAL_DCAP_MEASURED_GEOMETRIES_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DCAP_Z_GEOMETRIES_get___")]
+ public static extern string DCAP_Z_GEOMETRIES_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DCAP_Z_GEOMETRIES_get___")]
+ public static extern string GDAL_DCAP_Z_GEOMETRIES_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DMD_GEOMETRY_FLAGS_get___")]
+ public static extern string DMD_GEOMETRY_FLAGS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DMD_GEOMETRY_FLAGS_get___")]
+ public static extern string GDAL_DMD_GEOMETRY_FLAGS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DCAP_FEATURE_STYLES_get___")]
+ public static extern string DCAP_FEATURE_STYLES_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DCAP_FEATURE_STYLES_get___")]
+ public static extern string GDAL_DCAP_FEATURE_STYLES_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DCAP_FEATURE_STYLES_READ_get___")]
+ public static extern string DCAP_FEATURE_STYLES_READ_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DCAP_FEATURE_STYLES_READ_get___")]
+ public static extern string GDAL_DCAP_FEATURE_STYLES_READ_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DCAP_FEATURE_STYLES_WRITE_get___")]
+ public static extern string DCAP_FEATURE_STYLES_WRITE_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DCAP_FEATURE_STYLES_WRITE_get___")]
+ public static extern string GDAL_DCAP_FEATURE_STYLES_WRITE_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DCAP_COORDINATE_EPOCH_get___")]
+ public static extern string DCAP_COORDINATE_EPOCH_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DCAP_COORDINATE_EPOCH_get___")]
+ public static extern string GDAL_DCAP_COORDINATE_EPOCH_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DCAP_MULTIPLE_VECTOR_LAYERS_get___")]
+ public static extern string DCAP_MULTIPLE_VECTOR_LAYERS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DCAP_MULTIPLE_VECTOR_LAYERS_get___")]
+ public static extern string GDAL_DCAP_MULTIPLE_VECTOR_LAYERS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DCAP_FIELD_DOMAINS_get___")]
+ public static extern string DCAP_FIELD_DOMAINS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DCAP_FIELD_DOMAINS_get___")]
+ public static extern string GDAL_DCAP_FIELD_DOMAINS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DCAP_RELATIONSHIPS_get___")]
+ public static extern string DCAP_RELATIONSHIPS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DCAP_RELATIONSHIPS_get___")]
+ public static extern string GDAL_DCAP_RELATIONSHIPS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DCAP_CREATE_RELATIONSHIP_get___")]
+ public static extern string DCAP_CREATE_RELATIONSHIP_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DCAP_CREATE_RELATIONSHIP_get___")]
+ public static extern string GDAL_DCAP_CREATE_RELATIONSHIP_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DCAP_DELETE_RELATIONSHIP_get___")]
+ public static extern string DCAP_DELETE_RELATIONSHIP_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DCAP_DELETE_RELATIONSHIP_get___")]
+ public static extern string GDAL_DCAP_DELETE_RELATIONSHIP_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DCAP_UPDATE_RELATIONSHIP_get___")]
+ public static extern string DCAP_UPDATE_RELATIONSHIP_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DCAP_UPDATE_RELATIONSHIP_get___")]
+ public static extern string GDAL_DCAP_UPDATE_RELATIONSHIP_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DMD_RELATIONSHIP_FLAGS_get___")]
+ public static extern string DMD_RELATIONSHIP_FLAGS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DMD_RELATIONSHIP_FLAGS_get___")]
+ public static extern string GDAL_DMD_RELATIONSHIP_FLAGS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DMD_RELATIONSHIP_RELATED_TABLE_TYPES_get___")]
+ public static extern string DMD_RELATIONSHIP_RELATED_TABLE_TYPES_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DMD_RELATIONSHIP_RELATED_TABLE_TYPES_get___")]
+ public static extern string GDAL_DMD_RELATIONSHIP_RELATED_TABLE_TYPES_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DCAP_RENAME_LAYERS_get___")]
+ public static extern string DCAP_RENAME_LAYERS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DCAP_RENAME_LAYERS_get___")]
+ public static extern string GDAL_DCAP_RENAME_LAYERS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DCAP_FLUSHCACHE_CONSISTENT_STATE_get___")]
+ public static extern string DCAP_FLUSHCACHE_CONSISTENT_STATE_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DCAP_FLUSHCACHE_CONSISTENT_STATE_get___")]
+ public static extern string GDAL_DCAP_FLUSHCACHE_CONSISTENT_STATE_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DIM_TYPE_HORIZONTAL_X_get___")]
+ public static extern string DIM_TYPE_HORIZONTAL_X_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DIM_TYPE_HORIZONTAL_X_get___")]
+ public static extern string GDAL_DIM_TYPE_HORIZONTAL_X_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DIM_TYPE_HORIZONTAL_Y_get___")]
+ public static extern string DIM_TYPE_HORIZONTAL_Y_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DIM_TYPE_HORIZONTAL_Y_get___")]
+ public static extern string GDAL_DIM_TYPE_HORIZONTAL_Y_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DIM_TYPE_VERTICAL_get___")]
+ public static extern string DIM_TYPE_VERTICAL_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DIM_TYPE_VERTICAL_get___")]
+ public static extern string GDAL_DIM_TYPE_VERTICAL_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DIM_TYPE_TEMPORAL_get___")]
+ public static extern string DIM_TYPE_TEMPORAL_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DIM_TYPE_TEMPORAL_get___")]
+ public static extern string GDAL_DIM_TYPE_TEMPORAL_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_DIM_TYPE_PARAMETRIC_get___")]
+ public static extern string DIM_TYPE_PARAMETRIC_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DIM_TYPE_PARAMETRIC_get___")]
+ public static extern string GDAL_DIM_TYPE_PARAMETRIC_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDsCAddRelationship_get___")]
+ public static extern string GDsCAddRelationship_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDsCDeleteRelationship_get___")]
+ public static extern string GDsCDeleteRelationship_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDsCUpdateRelationship_get___")]
+ public static extern string GDsCUpdateRelationship_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_CPLES_BackslashQuotable_get___")]
+ public static extern int CPLES_BackslashQuotable_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_CPLES_XML_get___")]
+ public static extern int CPLES_XML_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_CPLES_XML_BUT_QUOTES_get___")]
+ public static extern int CPLES_XML_BUT_QUOTES_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_CPLES_URL_get___")]
+ public static extern int CPLES_URL_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_CPLES_SQL_get___")]
+ public static extern int CPLES_SQL_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_CPLES_SQLI_get___")]
+ public static extern int CPLES_SQLI_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_CPLES_CSV_get___")]
+ public static extern int CPLES_CSV_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GFT_Integer_get___")]
+ public static extern int GFT_Integer_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GFT_Real_get___")]
+ public static extern int GFT_Real_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GFT_String_get___")]
+ public static extern int GFT_String_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GFU_Generic_get___")]
+ public static extern int GFU_Generic_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GFU_PixelCount_get___")]
+ public static extern int GFU_PixelCount_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GFU_Name_get___")]
+ public static extern int GFU_Name_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GFU_Min_get___")]
+ public static extern int GFU_Min_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GFU_Max_get___")]
+ public static extern int GFU_Max_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GFU_MinMax_get___")]
+ public static extern int GFU_MinMax_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GFU_Red_get___")]
+ public static extern int GFU_Red_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GFU_Green_get___")]
+ public static extern int GFU_Green_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GFU_Blue_get___")]
+ public static extern int GFU_Blue_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GFU_Alpha_get___")]
+ public static extern int GFU_Alpha_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GFU_RedMin_get___")]
+ public static extern int GFU_RedMin_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GFU_GreenMin_get___")]
+ public static extern int GFU_GreenMin_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GFU_BlueMin_get___")]
+ public static extern int GFU_BlueMin_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GFU_AlphaMin_get___")]
+ public static extern int GFU_AlphaMin_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GFU_RedMax_get___")]
+ public static extern int GFU_RedMax_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GFU_GreenMax_get___")]
+ public static extern int GFU_GreenMax_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GFU_BlueMax_get___")]
+ public static extern int GFU_BlueMax_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GFU_AlphaMax_get___")]
+ public static extern int GFU_AlphaMax_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GFU_MaxCount_get___")]
+ public static extern int GFU_MaxCount_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GRTT_THEMATIC_get___")]
+ public static extern int GRTT_THEMATIC_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GRTT_ATHEMATIC_get___")]
+ public static extern int GRTT_ATHEMATIC_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GMF_ALL_VALID_get___")]
+ public static extern int GMF_ALL_VALID_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GMF_PER_DATASET_get___")]
+ public static extern int GMF_PER_DATASET_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GMF_ALPHA_get___")]
+ public static extern int GMF_ALPHA_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GMF_NODATA_get___")]
+ public static extern int GMF_NODATA_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DATA_COVERAGE_STATUS_UNIMPLEMENTED_get___")]
+ public static extern int GDAL_DATA_COVERAGE_STATUS_UNIMPLEMENTED_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DATA_COVERAGE_STATUS_DATA_get___")]
+ public static extern int GDAL_DATA_COVERAGE_STATUS_DATA_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_DATA_COVERAGE_STATUS_EMPTY_get___")]
+ public static extern int GDAL_DATA_COVERAGE_STATUS_EMPTY_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GARIO_PENDING_get___")]
+ public static extern int GARIO_PENDING_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GARIO_UPDATE_get___")]
+ public static extern int GARIO_UPDATE_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GARIO_ERROR_get___")]
+ public static extern int GARIO_ERROR_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GARIO_COMPLETE_get___")]
+ public static extern int GARIO_COMPLETE_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GTO_TIP_get___")]
+ public static extern int GTO_TIP_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GTO_BIT_get___")]
+ public static extern int GTO_BIT_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GTO_BSQ_get___")]
+ public static extern int GTO_BSQ_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GRC_ONE_TO_ONE_get___")]
+ public static extern int GRC_ONE_TO_ONE_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GRC_ONE_TO_MANY_get___")]
+ public static extern int GRC_ONE_TO_MANY_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GRC_MANY_TO_ONE_get___")]
+ public static extern int GRC_MANY_TO_ONE_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GRC_MANY_TO_MANY_get___")]
+ public static extern int GRC_MANY_TO_MANY_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GRT_COMPOSITE_get___")]
+ public static extern int GRT_COMPOSITE_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GRT_ASSOCIATION_get___")]
+ public static extern int GRT_ASSOCIATION_get();
+
+ [global::System.Runtime.InteropServices.DllImport("gdalconst_wrap", EntryPoint="CSharp_OSGeofGDAL_GRT_AGGREGATION_get___")]
+ public static extern int GRT_AGGREGATION_get();
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/Access.cs b/Geospatial/GDAL-Bindings/GDAL/Access.cs
new file mode 100644
index 0000000..74064ea
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/Access.cs
@@ -0,0 +1,18 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+public enum Access {
+ GA_ReadOnly = 0,
+ GA_Update = 1
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/AsyncReader.cs b/Geospatial/GDAL-Bindings/GDAL/AsyncReader.cs
new file mode 100644
index 0000000..c4cfce2
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/AsyncReader.cs
@@ -0,0 +1,93 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class AsyncReader : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public AsyncReader(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(AsyncReader obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(AsyncReader obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(AsyncReader obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~AsyncReader() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ GdalPINVOKE.delete_AsyncReader(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public AsyncStatusType GetNextUpdatedRegion(double timeout, out int xoff, out int yoff, out int buf_xsize, out int buf_ysize) {
+ AsyncStatusType ret = (AsyncStatusType)GdalPINVOKE.AsyncReader_GetNextUpdatedRegion(swigCPtr, timeout, out xoff, out yoff, out buf_xsize, out buf_ysize);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int LockBuffer(double timeout) {
+ int ret = GdalPINVOKE.AsyncReader_LockBuffer(swigCPtr, timeout);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void UnlockBuffer() {
+ GdalPINVOKE.AsyncReader_UnlockBuffer(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/AsyncStatusType.cs b/Geospatial/GDAL-Bindings/GDAL/AsyncStatusType.cs
new file mode 100644
index 0000000..62df9a0
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/AsyncStatusType.cs
@@ -0,0 +1,20 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+public enum AsyncStatusType {
+ GARIO_PENDING = 0,
+ GARIO_UPDATE = 1,
+ GARIO_ERROR = 2,
+ GARIO_COMPLETE = 3
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/Attribute.cs b/Geospatial/GDAL-Bindings/GDAL/Attribute.cs
new file mode 100644
index 0000000..95c9a30
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/Attribute.cs
@@ -0,0 +1,178 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class Attribute : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public Attribute(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(Attribute obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(Attribute obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(Attribute obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~Attribute() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ GdalPINVOKE.delete_Attribute(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public string GetName() {
+ string ret = GdalPINVOKE.Attribute_GetName(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetFullName() {
+ string ret = GdalPINVOKE.Attribute_GetFullName(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public SWIGTYPE_p_GUIntBig GetTotalElementsCount() {
+ SWIGTYPE_p_GUIntBig ret = new SWIGTYPE_p_GUIntBig(GdalPINVOKE.Attribute_GetTotalElementsCount(swigCPtr), true, null);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public uint GetDimensionCount() {
+ uint ret = GdalPINVOKE.Attribute_GetDimensionCount(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public ExtendedDataType GetDataType() {
+ IntPtr cPtr = GdalPINVOKE.Attribute_GetDataType(swigCPtr);
+ ExtendedDataType ret = (cPtr == IntPtr.Zero) ? null : new ExtendedDataType(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string ReadAsString() {
+ string ret = GdalPINVOKE.Attribute_ReadAsString(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int ReadAsInt() {
+ int ret = GdalPINVOKE.Attribute_ReadAsInt(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public double ReadAsDouble() {
+ double ret = GdalPINVOKE.Attribute_ReadAsDouble(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string[] ReadAsStringArray() {
+ /* %typemap(csout) char** CSL */
+ IntPtr cPtr = GdalPINVOKE.Attribute_ReadAsStringArray(swigCPtr);
+ IntPtr objPtr;
+ int count = 0;
+ if (cPtr != IntPtr.Zero) {
+ while (Marshal.ReadIntPtr(cPtr, count*IntPtr.Size) != IntPtr.Zero)
+ ++count;
+ }
+ string[] ret = new string[count];
+ if (count > 0) {
+ for(int cx = 0; cx < count; cx++) {
+ objPtr = System.Runtime.InteropServices.Marshal.ReadIntPtr(cPtr, cx * System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntPtr)));
+ ret[cx]= (objPtr == IntPtr.Zero) ? null : System.Runtime.InteropServices.Marshal.PtrToStringAnsi(objPtr);
+ }
+ }
+ if (cPtr != IntPtr.Zero)
+ GdalPINVOKE.StringListDestroy(cPtr);
+
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+}
+
+ public CPLErr WriteString(string val) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Attribute_WriteString(swigCPtr, val);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr WriteStringArray(string[] vals) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Attribute_WriteStringArray(swigCPtr, (vals != null)? new GdalPINVOKE.StringListMarshal(vals)._ar : null);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr WriteInt(int val) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Attribute_WriteInt(swigCPtr, val);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr WriteDouble(double val) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Attribute_WriteDouble(swigCPtr, val);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr Rename(string newName) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Attribute_Rename(swigCPtr, newName);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/Band.cs b/Geospatial/GDAL-Bindings/GDAL/Band.cs
new file mode 100644
index 0000000..b230055
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/Band.cs
@@ -0,0 +1,673 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class Band : MajorObject {
+ private HandleRef swigCPtr;
+
+ public Band(IntPtr cPtr, bool cMemoryOwn, object parent) : base(GdalPINVOKE.Band_SWIGUpcast(cPtr), cMemoryOwn, parent) {
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(Band obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(Band obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(Band obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~Band() {
+ Dispose();
+ }
+
+ public override void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ throw new global::System.MethodAccessException("C++ destructor does not have public access");
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ base.Dispose();
+ }
+ }
+/*! Eight bit unsigned integer */ /*@SWIG:C:/GDAL/Windows/gdal/swig/include/csharp\gdal_csharp.i,92,%rasterio_functions@*/
+ public CPLErr ReadRaster(int xOff, int yOff, int xSize, int ySize, byte[] buffer, int buf_xSize, int buf_ySize, int pixelSpace, int lineSpace) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = ReadRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Byte, pixelSpace, lineSpace);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+ public CPLErr WriteRaster(int xOff, int yOff, int xSize, int ySize, byte[] buffer, int buf_xSize, int buf_ySize, int pixelSpace, int lineSpace) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = WriteRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Byte, pixelSpace, lineSpace);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+ public CPLErr ReadRaster(int xOff, int yOff, int xSize, int ySize, byte[] buffer, int buf_xSize, int buf_ySize, int pixelSpace, int lineSpace, RasterIOExtraArg extraArg) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = ReadRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Byte, pixelSpace, lineSpace, extraArg);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+ public CPLErr WriteRaster(int xOff, int yOff, int xSize, int ySize, byte[] buffer, int buf_xSize, int buf_ySize, int pixelSpace, int lineSpace, RasterIOExtraArg extraArg) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = WriteRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Byte, pixelSpace, lineSpace, extraArg);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+
+/*@SWIG@*/
+/*! Sixteen bit signed integer */ /*@SWIG:C:/GDAL/Windows/gdal/swig/include/csharp\gdal_csharp.i,92,%rasterio_functions@*/
+ public CPLErr ReadRaster(int xOff, int yOff, int xSize, int ySize, short[] buffer, int buf_xSize, int buf_ySize, int pixelSpace, int lineSpace) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = ReadRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Int16, pixelSpace, lineSpace);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+ public CPLErr WriteRaster(int xOff, int yOff, int xSize, int ySize, short[] buffer, int buf_xSize, int buf_ySize, int pixelSpace, int lineSpace) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = WriteRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Int16, pixelSpace, lineSpace);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+ public CPLErr ReadRaster(int xOff, int yOff, int xSize, int ySize, short[] buffer, int buf_xSize, int buf_ySize, int pixelSpace, int lineSpace, RasterIOExtraArg extraArg) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = ReadRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Int16, pixelSpace, lineSpace, extraArg);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+ public CPLErr WriteRaster(int xOff, int yOff, int xSize, int ySize, short[] buffer, int buf_xSize, int buf_ySize, int pixelSpace, int lineSpace, RasterIOExtraArg extraArg) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = WriteRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Int16, pixelSpace, lineSpace, extraArg);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+
+/*@SWIG@*/
+/*! Thirty two bit signed integer */ /*@SWIG:C:/GDAL/Windows/gdal/swig/include/csharp\gdal_csharp.i,92,%rasterio_functions@*/
+ public CPLErr ReadRaster(int xOff, int yOff, int xSize, int ySize, int[] buffer, int buf_xSize, int buf_ySize, int pixelSpace, int lineSpace) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = ReadRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Int32, pixelSpace, lineSpace);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+ public CPLErr WriteRaster(int xOff, int yOff, int xSize, int ySize, int[] buffer, int buf_xSize, int buf_ySize, int pixelSpace, int lineSpace) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = WriteRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Int32, pixelSpace, lineSpace);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+ public CPLErr ReadRaster(int xOff, int yOff, int xSize, int ySize, int[] buffer, int buf_xSize, int buf_ySize, int pixelSpace, int lineSpace, RasterIOExtraArg extraArg) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = ReadRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Int32, pixelSpace, lineSpace, extraArg);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+ public CPLErr WriteRaster(int xOff, int yOff, int xSize, int ySize, int[] buffer, int buf_xSize, int buf_ySize, int pixelSpace, int lineSpace, RasterIOExtraArg extraArg) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = WriteRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Int32, pixelSpace, lineSpace, extraArg);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+
+/*@SWIG@*/
+/*! Thirty two bit floating point */ /*@SWIG:C:/GDAL/Windows/gdal/swig/include/csharp\gdal_csharp.i,92,%rasterio_functions@*/
+ public CPLErr ReadRaster(int xOff, int yOff, int xSize, int ySize, float[] buffer, int buf_xSize, int buf_ySize, int pixelSpace, int lineSpace) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = ReadRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Float32, pixelSpace, lineSpace);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+ public CPLErr WriteRaster(int xOff, int yOff, int xSize, int ySize, float[] buffer, int buf_xSize, int buf_ySize, int pixelSpace, int lineSpace) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = WriteRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Float32, pixelSpace, lineSpace);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+ public CPLErr ReadRaster(int xOff, int yOff, int xSize, int ySize, float[] buffer, int buf_xSize, int buf_ySize, int pixelSpace, int lineSpace, RasterIOExtraArg extraArg) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = ReadRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Float32, pixelSpace, lineSpace, extraArg);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+ public CPLErr WriteRaster(int xOff, int yOff, int xSize, int ySize, float[] buffer, int buf_xSize, int buf_ySize, int pixelSpace, int lineSpace, RasterIOExtraArg extraArg) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = WriteRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Float32, pixelSpace, lineSpace, extraArg);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+
+/*@SWIG@*/
+/*! Sixty four bit floating point */ /*@SWIG:C:/GDAL/Windows/gdal/swig/include/csharp\gdal_csharp.i,92,%rasterio_functions@*/
+ public CPLErr ReadRaster(int xOff, int yOff, int xSize, int ySize, double[] buffer, int buf_xSize, int buf_ySize, int pixelSpace, int lineSpace) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = ReadRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Float64, pixelSpace, lineSpace);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+ public CPLErr WriteRaster(int xOff, int yOff, int xSize, int ySize, double[] buffer, int buf_xSize, int buf_ySize, int pixelSpace, int lineSpace) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = WriteRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Float64, pixelSpace, lineSpace);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+ public CPLErr ReadRaster(int xOff, int yOff, int xSize, int ySize, double[] buffer, int buf_xSize, int buf_ySize, int pixelSpace, int lineSpace, RasterIOExtraArg extraArg) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = ReadRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Float64, pixelSpace, lineSpace, extraArg);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+ public CPLErr WriteRaster(int xOff, int yOff, int xSize, int ySize, double[] buffer, int buf_xSize, int buf_ySize, int pixelSpace, int lineSpace, RasterIOExtraArg extraArg) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = WriteRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Float64, pixelSpace, lineSpace, extraArg);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+
+/*@SWIG@*/
+ public int XSize {
+ get {
+ int ret = GdalPINVOKE.Band_XSize_get(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public int YSize {
+ get {
+ int ret = GdalPINVOKE.Band_YSize_get(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public DataType DataType {
+ get {
+ DataType ret = (DataType)GdalPINVOKE.Band_DataType_get(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public Dataset GetDataset() {
+ IntPtr cPtr = GdalPINVOKE.Band_GetDataset(swigCPtr);
+ Dataset ret = (cPtr == IntPtr.Zero) ? null : new Dataset(cPtr, false, ThisOwn_false());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int GetBand() {
+ int ret = GdalPINVOKE.Band_GetBand(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void GetBlockSize(out int pnBlockXSize, out int pnBlockYSize) {
+ GdalPINVOKE.Band_GetBlockSize(swigCPtr, out pnBlockXSize, out pnBlockYSize);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public ColorInterp GetColorInterpretation() {
+ ColorInterp ret = (ColorInterp)GdalPINVOKE.Band_GetColorInterpretation(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public ColorInterp GetRasterColorInterpretation() {
+ ColorInterp ret = (ColorInterp)GdalPINVOKE.Band_GetRasterColorInterpretation(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr SetColorInterpretation(ColorInterp val) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Band_SetColorInterpretation(swigCPtr, (int)val);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr SetRasterColorInterpretation(ColorInterp val) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Band_SetRasterColorInterpretation(swigCPtr, (int)val);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void GetNoDataValue(out double val, out int hasval) {
+ GdalPINVOKE.Band_GetNoDataValue(swigCPtr, out val, out hasval);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public CPLErr SetNoDataValue(double d) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Band_SetNoDataValue(swigCPtr, d);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr DeleteNoDataValue() {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Band_DeleteNoDataValue(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetUnitType() {
+ string ret = GdalPINVOKE.Band_GetUnitType(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr SetUnitType(string val) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Band_SetUnitType(swigCPtr, val);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string[] GetRasterCategoryNames() {
+ /* %typemap(csout) char**options */
+ IntPtr cPtr = GdalPINVOKE.Band_GetRasterCategoryNames(swigCPtr);
+ IntPtr objPtr;
+ int count = 0;
+ if (cPtr != IntPtr.Zero) {
+ while (Marshal.ReadIntPtr(cPtr, count*IntPtr.Size) != IntPtr.Zero)
+ ++count;
+ }
+ string[] ret = new string[count];
+ if (count > 0) {
+ for(int cx = 0; cx < count; cx++) {
+ objPtr = System.Runtime.InteropServices.Marshal.ReadIntPtr(cPtr, cx * System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntPtr)));
+ ret[cx]= (objPtr == IntPtr.Zero) ? null : System.Runtime.InteropServices.Marshal.PtrToStringAnsi(objPtr);
+ }
+ }
+
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+}
+
+ public CPLErr SetRasterCategoryNames(string[] names) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Band_SetRasterCategoryNames(swigCPtr, (names != null)? new GdalPINVOKE.StringListMarshal(names)._ar : null);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void GetMinimum(out double val, out int hasval) {
+ GdalPINVOKE.Band_GetMinimum(swigCPtr, out val, out hasval);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void GetMaximum(out double val, out int hasval) {
+ GdalPINVOKE.Band_GetMaximum(swigCPtr, out val, out hasval);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void GetOffset(out double val, out int hasval) {
+ GdalPINVOKE.Band_GetOffset(swigCPtr, out val, out hasval);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void GetScale(out double val, out int hasval) {
+ GdalPINVOKE.Band_GetScale(swigCPtr, out val, out hasval);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public CPLErr SetOffset(double val) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Band_SetOffset(swigCPtr, val);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr SetScale(double val) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Band_SetScale(swigCPtr, val);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr GetStatistics(int approx_ok, int force, out double min, out double max, out double mean, out double stddev) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Band_GetStatistics(swigCPtr, approx_ok, force, out min, out max, out mean, out stddev);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr ComputeStatistics(bool approx_ok, out double min, out double max, out double mean, out double stddev, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Band_ComputeStatistics(swigCPtr, approx_ok, out min, out max, out mean, out stddev, callback, callback_data);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr SetStatistics(double min, double max, double mean, double stddev) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Band_SetStatistics(swigCPtr, min, max, mean, stddev);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int GetOverviewCount() {
+ int ret = GdalPINVOKE.Band_GetOverviewCount(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Band GetOverview(int i) {
+ IntPtr cPtr = GdalPINVOKE.Band_GetOverview(swigCPtr, i);
+ Band ret = (cPtr == IntPtr.Zero) ? null : new Band(cPtr, false, ThisOwn_false());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int Checksum(int xoff, int yoff, ref int xsize, ref int ysize) {
+ int ret = GdalPINVOKE.Band_Checksum(swigCPtr, xoff, yoff, (IntPtr)xsize, (IntPtr)ysize);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void ComputeRasterMinMax(double[] argout, int approx_ok) {
+ GdalPINVOKE.Band_ComputeRasterMinMax(swigCPtr, argout, approx_ok);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void ComputeBandStats(double[] argout, int samplestep) {
+ GdalPINVOKE.Band_ComputeBandStats(swigCPtr, argout, samplestep);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public CPLErr Fill(double real_fill, double imag_fill) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Band_Fill(swigCPtr, real_fill, imag_fill);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void FlushCache() {
+ GdalPINVOKE.Band_FlushCache(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public ColorTable GetRasterColorTable() {
+ IntPtr cPtr = GdalPINVOKE.Band_GetRasterColorTable(swigCPtr);
+ ColorTable ret = (cPtr == IntPtr.Zero) ? null : new ColorTable(cPtr, false, ThisOwn_false());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public ColorTable GetColorTable() {
+ IntPtr cPtr = GdalPINVOKE.Band_GetColorTable(swigCPtr);
+ ColorTable ret = (cPtr == IntPtr.Zero) ? null : new ColorTable(cPtr, false, ThisOwn_false());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetRasterColorTable(ColorTable arg) {
+ int ret = GdalPINVOKE.Band_SetRasterColorTable(swigCPtr, ColorTable.getCPtr(arg));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetColorTable(ColorTable arg) {
+ int ret = GdalPINVOKE.Band_SetColorTable(swigCPtr, ColorTable.getCPtr(arg));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public RasterAttributeTable GetDefaultRAT() {
+ IntPtr cPtr = GdalPINVOKE.Band_GetDefaultRAT(swigCPtr);
+ RasterAttributeTable ret = (cPtr == IntPtr.Zero) ? null : new RasterAttributeTable(cPtr, false, ThisOwn_false());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetDefaultRAT(RasterAttributeTable table) {
+ int ret = GdalPINVOKE.Band_SetDefaultRAT(swigCPtr, RasterAttributeTable.getCPtr(table));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Band GetMaskBand() {
+ IntPtr cPtr = GdalPINVOKE.Band_GetMaskBand(swigCPtr);
+ Band ret = (cPtr == IntPtr.Zero) ? null : new Band(cPtr, false, ThisOwn_false());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int GetMaskFlags() {
+ int ret = GdalPINVOKE.Band_GetMaskFlags(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr CreateMaskBand(int nFlags) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Band_CreateMaskBand(swigCPtr, nFlags);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool IsMaskBand() {
+ bool ret = GdalPINVOKE.Band_IsMaskBand(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr GetHistogram(double min, double max, int buckets, int[] panHistogram, int include_out_of_range, int approx_ok, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Band_GetHistogram(swigCPtr, min, max, buckets, panHistogram, include_out_of_range, approx_ok, callback, callback_data);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr GetDefaultHistogram(out double min_ret, out double max_ret, out int buckets_ret, out int[] ppanHistogram, int force, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Band_GetDefaultHistogram(swigCPtr, out min_ret, out max_ret, out buckets_ret, out ppanHistogram, force, callback, callback_data);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr SetDefaultHistogram(double min, double max, int buckets_in, int[] panHistogram_in) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Band_SetDefaultHistogram(swigCPtr, min, max, buckets_in, panHistogram_in);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool HasArbitraryOverviews() {
+ bool ret = GdalPINVOKE.Band_HasArbitraryOverviews(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string[] GetCategoryNames() {
+ /* %typemap(csout) char**options */
+ IntPtr cPtr = GdalPINVOKE.Band_GetCategoryNames(swigCPtr);
+ IntPtr objPtr;
+ int count = 0;
+ if (cPtr != IntPtr.Zero) {
+ while (Marshal.ReadIntPtr(cPtr, count*IntPtr.Size) != IntPtr.Zero)
+ ++count;
+ }
+ string[] ret = new string[count];
+ if (count > 0) {
+ for(int cx = 0; cx < count; cx++) {
+ objPtr = System.Runtime.InteropServices.Marshal.ReadIntPtr(cPtr, cx * System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntPtr)));
+ ret[cx]= (objPtr == IntPtr.Zero) ? null : System.Runtime.InteropServices.Marshal.PtrToStringAnsi(objPtr);
+ }
+ }
+
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+}
+
+ public CPLErr SetCategoryNames(string[] papszCategoryNames) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Band_SetCategoryNames(swigCPtr, (papszCategoryNames != null)? new GdalPINVOKE.StringListMarshal(papszCategoryNames)._ar : null);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr AdviseRead(int xoff, int yoff, int xsize, int ysize, SWIGTYPE_p_int buf_xsize, SWIGTYPE_p_int buf_ysize, ref int buf_type, string[] options) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Band_AdviseRead(swigCPtr, xoff, yoff, xsize, ysize, SWIGTYPE_p_int.getCPtr(buf_xsize), SWIGTYPE_p_int.getCPtr(buf_ysize), (IntPtr)buf_type, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public MDArray AsMDArray() {
+ IntPtr cPtr = GdalPINVOKE.Band_AsMDArray(swigCPtr);
+ MDArray ret = (cPtr == IntPtr.Zero) ? null : new MDArray(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void _EnablePixelTypeSignedByteWarning(bool b) {
+ GdalPINVOKE.Band__EnablePixelTypeSignedByteWarning(swigCPtr, b);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public CPLErr ReadRaster(int xOff, int yOff, int xSize, int ySize, IntPtr buffer, int buf_xSize, int buf_ySize, DataType buf_type, int pixelSpace, int lineSpace) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Band_ReadRaster__SWIG_0(swigCPtr, xOff, yOff, xSize, ySize, buffer, buf_xSize, buf_ySize, (int)buf_type, pixelSpace, lineSpace);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr WriteRaster(int xOff, int yOff, int xSize, int ySize, IntPtr buffer, int buf_xSize, int buf_ySize, DataType buf_type, int pixelSpace, int lineSpace) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Band_WriteRaster__SWIG_0(swigCPtr, xOff, yOff, xSize, ySize, buffer, buf_xSize, buf_ySize, (int)buf_type, pixelSpace, lineSpace);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr ReadRaster(int xOff, int yOff, int xSize, int ySize, IntPtr buffer, int buf_xSize, int buf_ySize, DataType buf_type, int pixelSpace, int lineSpace, RasterIOExtraArg extraArg) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Band_ReadRaster__SWIG_1(swigCPtr, xOff, yOff, xSize, ySize, buffer, buf_xSize, buf_ySize, (int)buf_type, pixelSpace, lineSpace, RasterIOExtraArg.getCPtr(extraArg));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr WriteRaster(int xOff, int yOff, int xSize, int ySize, IntPtr buffer, int buf_xSize, int buf_ySize, DataType buf_type, int pixelSpace, int lineSpace, RasterIOExtraArg extraArg) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Band_WriteRaster__SWIG_1(swigCPtr, xOff, yOff, xSize, ySize, buffer, buf_xSize, buf_ySize, (int)buf_type, pixelSpace, lineSpace, RasterIOExtraArg.getCPtr(extraArg));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/CPLErr.cs b/Geospatial/GDAL-Bindings/GDAL/CPLErr.cs
new file mode 100644
index 0000000..ddc1c23
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/CPLErr.cs
@@ -0,0 +1,21 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+public enum CPLErr {
+ CE_None = 0,
+ CE_Log = 1,
+ CE_Warning = 2,
+ CE_Failure = 3,
+ CE_Fatal = 4
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/ColorEntry.cs b/Geospatial/GDAL-Bindings/GDAL/ColorEntry.cs
new file mode 100644
index 0000000..e3ca1ef
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/ColorEntry.cs
@@ -0,0 +1,128 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class ColorEntry : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public ColorEntry(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(ColorEntry obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(ColorEntry obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(ColorEntry obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~ColorEntry() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ GdalPINVOKE.delete_ColorEntry(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public short c1 {
+ set {
+ GdalPINVOKE.ColorEntry_c1_set(swigCPtr, value);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get {
+ short ret = GdalPINVOKE.ColorEntry_c1_get(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public short c2 {
+ set {
+ GdalPINVOKE.ColorEntry_c2_set(swigCPtr, value);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get {
+ short ret = GdalPINVOKE.ColorEntry_c2_get(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public short c3 {
+ set {
+ GdalPINVOKE.ColorEntry_c3_set(swigCPtr, value);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get {
+ short ret = GdalPINVOKE.ColorEntry_c3_get(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public short c4 {
+ set {
+ GdalPINVOKE.ColorEntry_c4_set(swigCPtr, value);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get {
+ short ret = GdalPINVOKE.ColorEntry_c4_get(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public ColorEntry() : this(GdalPINVOKE.new_ColorEntry(), true, null) {
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/ColorInterp.cs b/Geospatial/GDAL-Bindings/GDAL/ColorInterp.cs
new file mode 100644
index 0000000..f2f31a9
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/ColorInterp.cs
@@ -0,0 +1,34 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+public enum ColorInterp {
+ GCI_Undefined = 0,
+ GCI_GrayIndex = 1,
+ GCI_PaletteIndex = 2,
+ GCI_RedBand = 3,
+ GCI_GreenBand = 4,
+ GCI_BlueBand = 5,
+ GCI_AlphaBand = 6,
+ GCI_HueBand = 7,
+ GCI_SaturationBand = 8,
+ GCI_LightnessBand = 9,
+ GCI_CyanBand = 10,
+ GCI_MagentaBand = 11,
+ GCI_YellowBand = 12,
+ GCI_BlackBand = 13,
+ GCI_YCbCr_YBand = 14,
+ GCI_YCbCr_CbBand = 15,
+ GCI_YCbCr_CrBand = 16,
+ GCI_Max = 16
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/ColorTable.cs b/Geospatial/GDAL-Bindings/GDAL/ColorTable.cs
new file mode 100644
index 0000000..368a1aa
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/ColorTable.cs
@@ -0,0 +1,122 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class ColorTable : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public ColorTable(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(ColorTable obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(ColorTable obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(ColorTable obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~ColorTable() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ GdalPINVOKE.delete_ColorTable(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public ColorTable(PaletteInterp palette) : this(GdalPINVOKE.new_ColorTable((int)palette), true, null) {
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public ColorTable Clone() {
+ IntPtr cPtr = GdalPINVOKE.ColorTable_Clone(swigCPtr);
+ ColorTable ret = (cPtr == IntPtr.Zero) ? null : new ColorTable(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public PaletteInterp GetPaletteInterpretation() {
+ PaletteInterp ret = (PaletteInterp)GdalPINVOKE.ColorTable_GetPaletteInterpretation(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int GetCount() {
+ int ret = GdalPINVOKE.ColorTable_GetCount(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public ColorEntry GetColorEntry(int entry) {
+ IntPtr cPtr = GdalPINVOKE.ColorTable_GetColorEntry(swigCPtr, entry);
+ ColorEntry ret = (cPtr == IntPtr.Zero) ? null : new ColorEntry(cPtr, false, ThisOwn_false());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int GetColorEntryAsRGB(int entry, ColorEntry centry) {
+ int ret = GdalPINVOKE.ColorTable_GetColorEntryAsRGB(swigCPtr, entry, ColorEntry.getCPtr(centry));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetColorEntry(int entry, ColorEntry centry) {
+ GdalPINVOKE.ColorTable_SetColorEntry(swigCPtr, entry, ColorEntry.getCPtr(centry));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void CreateColorRamp(int nStartIndex, ColorEntry startcolor, int nEndIndex, ColorEntry endcolor) {
+ GdalPINVOKE.ColorTable_CreateColorRamp(swigCPtr, nStartIndex, ColorEntry.getCPtr(startcolor), nEndIndex, ColorEntry.getCPtr(endcolor));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/DataType.cs b/Geospatial/GDAL-Bindings/GDAL/DataType.cs
new file mode 100644
index 0000000..60ed709
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/DataType.cs
@@ -0,0 +1,32 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+public enum DataType {
+ GDT_Unknown = 0,
+ GDT_Byte = 1,
+ GDT_Int8 = 14,
+ GDT_UInt16 = 2,
+ GDT_Int16 = 3,
+ GDT_UInt32 = 4,
+ GDT_Int32 = 5,
+ GDT_UInt64 = 12,
+ GDT_Int64 = 13,
+ GDT_Float32 = 6,
+ GDT_Float64 = 7,
+ GDT_CInt16 = 8,
+ GDT_CInt32 = 9,
+ GDT_CFloat32 = 10,
+ GDT_CFloat64 = 11,
+ GDT_TypeCount = 15
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/Dataset.cs b/Geospatial/GDAL-Bindings/GDAL/Dataset.cs
new file mode 100644
index 0000000..93366b7
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/Dataset.cs
@@ -0,0 +1,780 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class Dataset : MajorObject {
+ private HandleRef swigCPtr;
+
+ public Dataset(IntPtr cPtr, bool cMemoryOwn, object parent) : base(GdalPINVOKE.Dataset_SWIGUpcast(cPtr), cMemoryOwn, parent) {
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(Dataset obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(Dataset obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(Dataset obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~Dataset() {
+ Dispose();
+ }
+
+ public override void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ GdalPINVOKE.delete_Dataset(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ base.Dispose();
+ }
+ }
+/*! Eight bit unsigned integer */ /*@SWIG:C:/GDAL/Windows/gdal/swig/include/csharp\gdal_csharp.i,155,%ds_rasterio_functions@*/
+ public CPLErr ReadRaster(int xOff, int yOff, int xSize, int ySize, byte[] buffer, int buf_xSize, int buf_ySize,
+ int bandCount, int[] bandMap, int pixelSpace, int lineSpace, int bandSpace) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = ReadRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Byte,
+ bandCount, bandMap, pixelSpace, lineSpace, bandSpace);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+ public CPLErr WriteRaster(int xOff, int yOff, int xSize, int ySize, byte[] buffer, int buf_xSize, int buf_ySize,
+ int bandCount, int[] bandMap, int pixelSpace, int lineSpace, int bandSpace) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = WriteRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Byte,
+ bandCount, bandMap, pixelSpace, lineSpace, bandSpace);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+ public CPLErr ReadRaster(int xOff, int yOff, int xSize, int ySize, byte[] buffer, int buf_xSize, int buf_ySize,
+ int bandCount, int[] bandMap, int pixelSpace, int lineSpace, int bandSpace, RasterIOExtraArg extraArg) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = ReadRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Byte,
+ bandCount, bandMap, pixelSpace, lineSpace, bandSpace, extraArg);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+ public CPLErr WriteRaster(int xOff, int yOff, int xSize, int ySize, byte[] buffer, int buf_xSize, int buf_ySize,
+ int bandCount, int[] bandMap, int pixelSpace, int lineSpace, int bandSpace, RasterIOExtraArg extraArg) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = WriteRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Byte,
+ bandCount, bandMap, pixelSpace, lineSpace, bandSpace, extraArg);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+
+/*@SWIG@*/
+/*! Sixteen bit signed integer */ /*@SWIG:C:/GDAL/Windows/gdal/swig/include/csharp\gdal_csharp.i,155,%ds_rasterio_functions@*/
+ public CPLErr ReadRaster(int xOff, int yOff, int xSize, int ySize, short[] buffer, int buf_xSize, int buf_ySize,
+ int bandCount, int[] bandMap, int pixelSpace, int lineSpace, int bandSpace) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = ReadRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Int16,
+ bandCount, bandMap, pixelSpace, lineSpace, bandSpace);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+ public CPLErr WriteRaster(int xOff, int yOff, int xSize, int ySize, short[] buffer, int buf_xSize, int buf_ySize,
+ int bandCount, int[] bandMap, int pixelSpace, int lineSpace, int bandSpace) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = WriteRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Int16,
+ bandCount, bandMap, pixelSpace, lineSpace, bandSpace);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+ public CPLErr ReadRaster(int xOff, int yOff, int xSize, int ySize, short[] buffer, int buf_xSize, int buf_ySize,
+ int bandCount, int[] bandMap, int pixelSpace, int lineSpace, int bandSpace, RasterIOExtraArg extraArg) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = ReadRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Int16,
+ bandCount, bandMap, pixelSpace, lineSpace, bandSpace, extraArg);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+ public CPLErr WriteRaster(int xOff, int yOff, int xSize, int ySize, short[] buffer, int buf_xSize, int buf_ySize,
+ int bandCount, int[] bandMap, int pixelSpace, int lineSpace, int bandSpace, RasterIOExtraArg extraArg) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = WriteRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Int16,
+ bandCount, bandMap, pixelSpace, lineSpace, bandSpace, extraArg);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+
+/*@SWIG@*/
+/*! Thirty two bit signed integer */ /*@SWIG:C:/GDAL/Windows/gdal/swig/include/csharp\gdal_csharp.i,155,%ds_rasterio_functions@*/
+ public CPLErr ReadRaster(int xOff, int yOff, int xSize, int ySize, int[] buffer, int buf_xSize, int buf_ySize,
+ int bandCount, int[] bandMap, int pixelSpace, int lineSpace, int bandSpace) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = ReadRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Int32,
+ bandCount, bandMap, pixelSpace, lineSpace, bandSpace);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+ public CPLErr WriteRaster(int xOff, int yOff, int xSize, int ySize, int[] buffer, int buf_xSize, int buf_ySize,
+ int bandCount, int[] bandMap, int pixelSpace, int lineSpace, int bandSpace) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = WriteRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Int32,
+ bandCount, bandMap, pixelSpace, lineSpace, bandSpace);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+ public CPLErr ReadRaster(int xOff, int yOff, int xSize, int ySize, int[] buffer, int buf_xSize, int buf_ySize,
+ int bandCount, int[] bandMap, int pixelSpace, int lineSpace, int bandSpace, RasterIOExtraArg extraArg) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = ReadRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Int32,
+ bandCount, bandMap, pixelSpace, lineSpace, bandSpace, extraArg);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+ public CPLErr WriteRaster(int xOff, int yOff, int xSize, int ySize, int[] buffer, int buf_xSize, int buf_ySize,
+ int bandCount, int[] bandMap, int pixelSpace, int lineSpace, int bandSpace, RasterIOExtraArg extraArg) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = WriteRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Int32,
+ bandCount, bandMap, pixelSpace, lineSpace, bandSpace, extraArg);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+
+/*@SWIG@*/
+/*! Thirty two bit floating point */ /*@SWIG:C:/GDAL/Windows/gdal/swig/include/csharp\gdal_csharp.i,155,%ds_rasterio_functions@*/
+ public CPLErr ReadRaster(int xOff, int yOff, int xSize, int ySize, float[] buffer, int buf_xSize, int buf_ySize,
+ int bandCount, int[] bandMap, int pixelSpace, int lineSpace, int bandSpace) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = ReadRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Float32,
+ bandCount, bandMap, pixelSpace, lineSpace, bandSpace);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+ public CPLErr WriteRaster(int xOff, int yOff, int xSize, int ySize, float[] buffer, int buf_xSize, int buf_ySize,
+ int bandCount, int[] bandMap, int pixelSpace, int lineSpace, int bandSpace) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = WriteRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Float32,
+ bandCount, bandMap, pixelSpace, lineSpace, bandSpace);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+ public CPLErr ReadRaster(int xOff, int yOff, int xSize, int ySize, float[] buffer, int buf_xSize, int buf_ySize,
+ int bandCount, int[] bandMap, int pixelSpace, int lineSpace, int bandSpace, RasterIOExtraArg extraArg) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = ReadRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Float32,
+ bandCount, bandMap, pixelSpace, lineSpace, bandSpace, extraArg);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+ public CPLErr WriteRaster(int xOff, int yOff, int xSize, int ySize, float[] buffer, int buf_xSize, int buf_ySize,
+ int bandCount, int[] bandMap, int pixelSpace, int lineSpace, int bandSpace, RasterIOExtraArg extraArg) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = WriteRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Float32,
+ bandCount, bandMap, pixelSpace, lineSpace, bandSpace, extraArg);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+
+/*@SWIG@*/
+/*! Sixty four bit floating point */ /*@SWIG:C:/GDAL/Windows/gdal/swig/include/csharp\gdal_csharp.i,155,%ds_rasterio_functions@*/
+ public CPLErr ReadRaster(int xOff, int yOff, int xSize, int ySize, double[] buffer, int buf_xSize, int buf_ySize,
+ int bandCount, int[] bandMap, int pixelSpace, int lineSpace, int bandSpace) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = ReadRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Float64,
+ bandCount, bandMap, pixelSpace, lineSpace, bandSpace);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+ public CPLErr WriteRaster(int xOff, int yOff, int xSize, int ySize, double[] buffer, int buf_xSize, int buf_ySize,
+ int bandCount, int[] bandMap, int pixelSpace, int lineSpace, int bandSpace) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = WriteRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Float64,
+ bandCount, bandMap, pixelSpace, lineSpace, bandSpace);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+ public CPLErr ReadRaster(int xOff, int yOff, int xSize, int ySize, double[] buffer, int buf_xSize, int buf_ySize,
+ int bandCount, int[] bandMap, int pixelSpace, int lineSpace, int bandSpace, RasterIOExtraArg extraArg) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = ReadRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Float64,
+ bandCount, bandMap, pixelSpace, lineSpace, bandSpace, extraArg);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+ public CPLErr WriteRaster(int xOff, int yOff, int xSize, int ySize, double[] buffer, int buf_xSize, int buf_ySize,
+ int bandCount, int[] bandMap, int pixelSpace, int lineSpace, int bandSpace, RasterIOExtraArg extraArg) {
+ CPLErr retval;
+ GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
+ try {
+ retval = WriteRaster(xOff, yOff, xSize, ySize, handle.AddrOfPinnedObject(), buf_xSize, buf_ySize, DataType.GDT_Float64,
+ bandCount, bandMap, pixelSpace, lineSpace, bandSpace, extraArg);
+ } finally {
+ handle.Free();
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+
+/*@SWIG@*/
+
+public int BuildOverviews( string resampling, int[] overviewlist, Gdal.GDALProgressFuncDelegate callback, string callback_data, string[] options) {
+ int retval;
+ if (overviewlist.Length <= 0)
+ throw new ArgumentException("overviewlist size is small (BuildOverviews)");
+
+ IntPtr ptr = Marshal.AllocHGlobal(overviewlist.Length * Marshal.SizeOf(overviewlist[0]));
+ try {
+ Marshal.Copy(overviewlist, 0, ptr, overviewlist.Length);
+ retval = BuildOverviews(resampling, overviewlist.Length, ptr, callback, callback_data, options);
+ } finally {
+ Marshal.FreeHGlobal(ptr);
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+
+public int BuildOverviews( string resampling, int[] overviewlist, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ return BuildOverviews( resampling, overviewlist, null, null, null);
+ }
+
+public int BuildOverviews( string resampling, int[] overviewlist) {
+ return BuildOverviews( resampling, overviewlist, null, null);
+ }
+
+public GCP[] GetGCPs() {
+ /*hello*/
+ IntPtr cPtr = __GetGCPs();
+ int length = GetGCPCount();
+ GCP[] ret = null;
+ if (cPtr != IntPtr.Zero && length > 0)
+ {
+ ret = new GCP[length];
+ for (int i=0; i < length; i++)
+ ret[i] = __ReadCArrayItem_GDAL_GCP(cPtr, i);
+ }
+ GC.KeepAlive(this);
+ return ret;
+ }
+
+public CPLErr SetGCPs(GCP[] pGCPs, string pszGCPProjection) {
+ CPLErr ret = 0;
+ if (pGCPs != null && pGCPs.Length > 0)
+ {
+ IntPtr cPtr = __AllocCArray_GDAL_GCP(pGCPs.Length);
+ if (cPtr == IntPtr.Zero)
+ throw new ApplicationException("Error allocating CArray with __AllocCArray_GDAL_GCP");
+
+ try {
+ for (int i=0; i < pGCPs.Length; i++)
+ __WriteCArrayItem_GDAL_GCP(cPtr, i, pGCPs[i]);
+
+ ret = __SetGCPs(pGCPs.Length, cPtr, pszGCPProjection);
+ }
+ finally
+ {
+ __FreeCArray_GDAL_GCP(cPtr);
+ }
+ }
+ GC.KeepAlive(this);
+ return ret;
+ }
+ public int RasterXSize {
+ get {
+ int ret = GdalPINVOKE.Dataset_RasterXSize_get(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public int RasterYSize {
+ get {
+ int ret = GdalPINVOKE.Dataset_RasterYSize_get(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public int RasterCount {
+ get {
+ int ret = GdalPINVOKE.Dataset_RasterCount_get(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public CPLErr Close() {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Dataset_Close(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Driver GetDriver() {
+ IntPtr cPtr = GdalPINVOKE.Dataset_GetDriver(swigCPtr);
+ Driver ret = (cPtr == IntPtr.Zero) ? null : new Driver(cPtr, false, ThisOwn_false());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Band GetRasterBand(int nBand) {
+ IntPtr cPtr = GdalPINVOKE.Dataset_GetRasterBand(swigCPtr, nBand);
+ Band ret = (cPtr == IntPtr.Zero) ? null : new Band(cPtr, false, ThisOwn_false());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Group GetRootGroup() {
+ IntPtr cPtr = GdalPINVOKE.Dataset_GetRootGroup(swigCPtr);
+ Group ret = (cPtr == IntPtr.Zero) ? null : new Group(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetProjection() {
+ string ret = GdalPINVOKE.Dataset_GetProjection(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetProjectionRef() {
+ string ret = GdalPINVOKE.Dataset_GetProjectionRef(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public OSGeo.OSR.SpatialReference GetSpatialRef() {
+ IntPtr cPtr = GdalPINVOKE.Dataset_GetSpatialRef(swigCPtr);
+ OSGeo.OSR.SpatialReference ret = (cPtr == IntPtr.Zero) ? null : new OSGeo.OSR.SpatialReference(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr SetProjection(string prj) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Dataset_SetProjection(swigCPtr, prj);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr SetSpatialRef(OSGeo.OSR.SpatialReference srs) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Dataset_SetSpatialRef(swigCPtr, OSGeo.OSR.SpatialReference.getCPtr(srs));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void GetGeoTransform(double[] argout) {
+ GdalPINVOKE.Dataset_GetGeoTransform(swigCPtr, argout);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public CPLErr SetGeoTransform(double[] argin) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Dataset_SetGeoTransform(swigCPtr, argin);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int BuildOverviews(string resampling, int overviewlist, IntPtr pOverviews, Gdal.GDALProgressFuncDelegate callback, string callback_data, string[] options) {
+ int ret = GdalPINVOKE.Dataset_BuildOverviews(swigCPtr, resampling, overviewlist, pOverviews, callback, callback_data, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int GetGCPCount() {
+ int ret = GdalPINVOKE.Dataset_GetGCPCount(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetGCPProjection() {
+ string ret = GdalPINVOKE.Dataset_GetGCPProjection(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr FlushCache() {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Dataset_FlushCache(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr AddBand(DataType datatype, string[] options) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Dataset_AddBand(swigCPtr, (int)datatype, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr CreateMaskBand(int nFlags) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Dataset_CreateMaskBand(swigCPtr, nFlags);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string[] GetFileList() {
+ /* %typemap(csout) char** CSL */
+ IntPtr cPtr = GdalPINVOKE.Dataset_GetFileList(swigCPtr);
+ IntPtr objPtr;
+ int count = 0;
+ if (cPtr != IntPtr.Zero) {
+ while (Marshal.ReadIntPtr(cPtr, count*IntPtr.Size) != IntPtr.Zero)
+ ++count;
+ }
+ string[] ret = new string[count];
+ if (count > 0) {
+ for(int cx = 0; cx < count; cx++) {
+ objPtr = System.Runtime.InteropServices.Marshal.ReadIntPtr(cPtr, cx * System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntPtr)));
+ ret[cx]= (objPtr == IntPtr.Zero) ? null : System.Runtime.InteropServices.Marshal.PtrToStringAnsi(objPtr);
+ }
+ }
+ if (cPtr != IntPtr.Zero)
+ GdalPINVOKE.StringListDestroy(cPtr);
+
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+}
+
+ public CPLErr AdviseRead(int xoff, int yoff, int xsize, int ysize, SWIGTYPE_p_int buf_xsize, SWIGTYPE_p_int buf_ysize, ref int buf_type, int band_list, SWIGTYPE_p_int pband_list, string[] options) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Dataset_AdviseRead(swigCPtr, xoff, yoff, xsize, ysize, SWIGTYPE_p_int.getCPtr(buf_xsize), SWIGTYPE_p_int.getCPtr(buf_ysize), (IntPtr)buf_type, band_list, SWIGTYPE_p_int.getCPtr(pband_list), (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public OSGeo.OGR.Layer GetLayer(int index) {
+ IntPtr cPtr = GdalPINVOKE.Dataset_GetLayer(swigCPtr, index);
+ OSGeo.OGR.Layer ret = (cPtr == IntPtr.Zero) ? null : new OSGeo.OGR.Layer(cPtr, false, ThisOwn_false());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public OSGeo.OGR.Layer GetLayerByName(string layer_name) {
+ IntPtr cPtr = GdalPINVOKE.Dataset_GetLayerByName(swigCPtr, Gdal.StringToUtf8Bytes(layer_name));
+ OSGeo.OGR.Layer ret = (cPtr == IntPtr.Zero) ? null : new OSGeo.OGR.Layer(cPtr, false, ThisOwn_false());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void ResetReading() {
+ GdalPINVOKE.Dataset_ResetReading(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public int GetLayerCount() {
+ int ret = GdalPINVOKE.Dataset_GetLayerCount(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public OSGeo.OGR.Feature GetNextFeature(ref IntPtr ppoBelongingLayer, ref double pdfProgressPct, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ IntPtr cPtr = GdalPINVOKE.Dataset_GetNextFeature(swigCPtr, ref ppoBelongingLayer, ref pdfProgressPct, callback, callback_data);
+ OSGeo.OGR.Feature ret = (cPtr == IntPtr.Zero) ? null : new OSGeo.OGR.Feature(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int AbortSQL() {
+ int ret = GdalPINVOKE.Dataset_AbortSQL(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int StartTransaction(int force) {
+ int ret = GdalPINVOKE.Dataset_StartTransaction(swigCPtr, force);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int CommitTransaction() {
+ int ret = GdalPINVOKE.Dataset_CommitTransaction(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int RollbackTransaction() {
+ int ret = GdalPINVOKE.Dataset_RollbackTransaction(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void ClearStatistics() {
+ GdalPINVOKE.Dataset_ClearStatistics(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public string[] GetFieldDomainNames(string[] options) {
+ /* %typemap(csout) char** CSL */
+ IntPtr cPtr = GdalPINVOKE.Dataset_GetFieldDomainNames(swigCPtr, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ IntPtr objPtr;
+ int count = 0;
+ if (cPtr != IntPtr.Zero) {
+ while (Marshal.ReadIntPtr(cPtr, count*IntPtr.Size) != IntPtr.Zero)
+ ++count;
+ }
+ string[] ret = new string[count];
+ if (count > 0) {
+ for(int cx = 0; cx < count; cx++) {
+ objPtr = System.Runtime.InteropServices.Marshal.ReadIntPtr(cPtr, cx * System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntPtr)));
+ ret[cx]= (objPtr == IntPtr.Zero) ? null : System.Runtime.InteropServices.Marshal.PtrToStringAnsi(objPtr);
+ }
+ }
+ if (cPtr != IntPtr.Zero)
+ GdalPINVOKE.StringListDestroy(cPtr);
+
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+}
+
+ public SWIGTYPE_p_OGRFieldDomainShadow GetFieldDomain(string name) {
+ IntPtr cPtr = GdalPINVOKE.Dataset_GetFieldDomain(swigCPtr, name);
+ SWIGTYPE_p_OGRFieldDomainShadow ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_OGRFieldDomainShadow(cPtr, false, ThisOwn_false());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool AddFieldDomain(SWIGTYPE_p_OGRFieldDomainShadow fieldDomain) {
+ bool ret = GdalPINVOKE.Dataset_AddFieldDomain(swigCPtr, SWIGTYPE_p_OGRFieldDomainShadow.getCPtr(fieldDomain));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool DeleteFieldDomain(string name) {
+ bool ret = GdalPINVOKE.Dataset_DeleteFieldDomain(swigCPtr, name);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool UpdateFieldDomain(SWIGTYPE_p_OGRFieldDomainShadow fieldDomain) {
+ bool ret = GdalPINVOKE.Dataset_UpdateFieldDomain(swigCPtr, SWIGTYPE_p_OGRFieldDomainShadow.getCPtr(fieldDomain));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string[] GetRelationshipNames(string[] options) {
+ /* %typemap(csout) char** CSL */
+ IntPtr cPtr = GdalPINVOKE.Dataset_GetRelationshipNames(swigCPtr, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ IntPtr objPtr;
+ int count = 0;
+ if (cPtr != IntPtr.Zero) {
+ while (Marshal.ReadIntPtr(cPtr, count*IntPtr.Size) != IntPtr.Zero)
+ ++count;
+ }
+ string[] ret = new string[count];
+ if (count > 0) {
+ for(int cx = 0; cx < count; cx++) {
+ objPtr = System.Runtime.InteropServices.Marshal.ReadIntPtr(cPtr, cx * System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntPtr)));
+ ret[cx]= (objPtr == IntPtr.Zero) ? null : System.Runtime.InteropServices.Marshal.PtrToStringAnsi(objPtr);
+ }
+ }
+ if (cPtr != IntPtr.Zero)
+ GdalPINVOKE.StringListDestroy(cPtr);
+
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+}
+
+ public Relationship GetRelationship(string name) {
+ IntPtr cPtr = GdalPINVOKE.Dataset_GetRelationship(swigCPtr, name);
+ Relationship ret = (cPtr == IntPtr.Zero) ? null : new Relationship(cPtr, false, ThisOwn_false());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool AddRelationship(Relationship relationship) {
+ bool ret = GdalPINVOKE.Dataset_AddRelationship(swigCPtr, Relationship.getCPtr(relationship));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool DeleteRelationship(string name) {
+ bool ret = GdalPINVOKE.Dataset_DeleteRelationship(swigCPtr, name);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool UpdateRelationship(Relationship relationship) {
+ bool ret = GdalPINVOKE.Dataset_UpdateRelationship(swigCPtr, Relationship.getCPtr(relationship));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr ReadRaster(int xOff, int yOff, int xSize, int ySize, IntPtr buffer, int buf_xSize, int buf_ySize, DataType buf_type, int bandCount, int[] bandMap, int pixelSpace, int lineSpace, int bandSpace) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Dataset_ReadRaster__SWIG_0(swigCPtr, xOff, yOff, xSize, ySize, buffer, buf_xSize, buf_ySize, (int)buf_type, bandCount, bandMap, pixelSpace, lineSpace, bandSpace);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr WriteRaster(int xOff, int yOff, int xSize, int ySize, IntPtr buffer, int buf_xSize, int buf_ySize, DataType buf_type, int bandCount, int[] bandMap, int pixelSpace, int lineSpace, int bandSpace) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Dataset_WriteRaster__SWIG_0(swigCPtr, xOff, yOff, xSize, ySize, buffer, buf_xSize, buf_ySize, (int)buf_type, bandCount, bandMap, pixelSpace, lineSpace, bandSpace);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr ReadRaster(int xOff, int yOff, int xSize, int ySize, IntPtr buffer, int buf_xSize, int buf_ySize, DataType buf_type, int bandCount, int[] bandMap, int pixelSpace, int lineSpace, int bandSpace, RasterIOExtraArg extraArg) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Dataset_ReadRaster__SWIG_1(swigCPtr, xOff, yOff, xSize, ySize, buffer, buf_xSize, buf_ySize, (int)buf_type, bandCount, bandMap, pixelSpace, lineSpace, bandSpace, RasterIOExtraArg.getCPtr(extraArg));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr WriteRaster(int xOff, int yOff, int xSize, int ySize, IntPtr buffer, int buf_xSize, int buf_ySize, DataType buf_type, int bandCount, int[] bandMap, int pixelSpace, int lineSpace, int bandSpace, RasterIOExtraArg extraArg) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Dataset_WriteRaster__SWIG_1(swigCPtr, xOff, yOff, xSize, ySize, buffer, buf_xSize, buf_ySize, (int)buf_type, bandCount, bandMap, pixelSpace, lineSpace, bandSpace, RasterIOExtraArg.getCPtr(extraArg));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ private IntPtr __GetGCPs() {
+ IntPtr ret = GdalPINVOKE.Dataset___GetGCPs(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+}
+
+ private CPLErr __SetGCPs(int nGCPs, IntPtr pGCPs, string pszGCPProjection) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Dataset___SetGCPs(swigCPtr, nGCPs, pGCPs, pszGCPProjection);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ private void __WriteCArrayItem_GDAL_GCP(IntPtr carray, int index, GCP value) {
+ GdalPINVOKE.Dataset___WriteCArrayItem_GDAL_GCP(swigCPtr, carray, index, GCP.getCPtr(value));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ private GCP __ReadCArrayItem_GDAL_GCP(IntPtr carray, int index) {
+ IntPtr cPtr = GdalPINVOKE.Dataset___ReadCArrayItem_GDAL_GCP(swigCPtr, carray, index);
+ GCP ret = (cPtr == IntPtr.Zero) ? null : new GCP(cPtr, false, ThisOwn_false());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ private IntPtr __AllocCArray_GDAL_GCP(int size) {
+ IntPtr ret = GdalPINVOKE.Dataset___AllocCArray_GDAL_GCP(swigCPtr, size);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+}
+
+ private void __FreeCArray_GDAL_GCP(IntPtr carray) {
+ GdalPINVOKE.Dataset___FreeCArray_GDAL_GCP(swigCPtr, carray);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/Dimension.cs b/Geospatial/GDAL-Bindings/GDAL/Dimension.cs
new file mode 100644
index 0000000..c50a235
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/Dimension.cs
@@ -0,0 +1,125 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class Dimension : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public Dimension(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(Dimension obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(Dimension obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(Dimension obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~Dimension() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ GdalPINVOKE.delete_Dimension(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public string GetName() {
+ string ret = GdalPINVOKE.Dimension_GetName(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetFullName() {
+ string ret = GdalPINVOKE.Dimension_GetFullName(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetType_() {
+ string ret = GdalPINVOKE.Dimension_GetType_(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetDirection() {
+ string ret = GdalPINVOKE.Dimension_GetDirection(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public SWIGTYPE_p_GUIntBig GetSize() {
+ SWIGTYPE_p_GUIntBig ret = new SWIGTYPE_p_GUIntBig(GdalPINVOKE.Dimension_GetSize(swigCPtr), true, null);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public MDArray GetIndexingVariable() {
+ IntPtr cPtr = GdalPINVOKE.Dimension_GetIndexingVariable(swigCPtr);
+ MDArray ret = (cPtr == IntPtr.Zero) ? null : new MDArray(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool SetIndexingVariable(MDArray array) {
+ bool ret = GdalPINVOKE.Dimension_SetIndexingVariable(swigCPtr, MDArray.getCPtr(array));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr Rename(string newName) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Dimension_Rename(swigCPtr, newName);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/Driver.cs b/Geospatial/GDAL-Bindings/GDAL/Driver.cs
new file mode 100644
index 0000000..7da03b6
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/Driver.cs
@@ -0,0 +1,144 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class Driver : MajorObject {
+ private HandleRef swigCPtr;
+
+ public Driver(IntPtr cPtr, bool cMemoryOwn, object parent) : base(GdalPINVOKE.Driver_SWIGUpcast(cPtr), cMemoryOwn, parent) {
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(Driver obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(Driver obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(Driver obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~Driver() {
+ Dispose();
+ }
+
+ public override void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ throw new global::System.MethodAccessException("C++ destructor does not have public access");
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ base.Dispose();
+ }
+ }
+
+ public string ShortName {
+ get {
+ string ret = GdalPINVOKE.Driver_ShortName_get(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public string LongName {
+ get {
+ string ret = GdalPINVOKE.Driver_LongName_get(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public string HelpTopic {
+ get {
+ string ret = GdalPINVOKE.Driver_HelpTopic_get(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public Dataset Create(string utf8_path, int xsize, int ysize, int bands, DataType eType, string[] options) {
+ IntPtr cPtr = GdalPINVOKE.Driver_Create(swigCPtr, Gdal.StringToUtf8Bytes(utf8_path), xsize, ysize, bands, (int)eType, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ Dataset ret = (cPtr == IntPtr.Zero) ? null : new Dataset(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Dataset CreateMultiDimensional(string utf8_path, string[] root_group_options, string[] options) {
+ IntPtr cPtr = GdalPINVOKE.Driver_CreateMultiDimensional(swigCPtr, Gdal.StringToUtf8Bytes(utf8_path), (root_group_options != null)? new GdalPINVOKE.StringListMarshal(root_group_options)._ar : null, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ Dataset ret = (cPtr == IntPtr.Zero) ? null : new Dataset(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Dataset CreateCopy(string utf8_path, Dataset src, int strict, string[] options, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ IntPtr cPtr = GdalPINVOKE.Driver_CreateCopy(swigCPtr, Gdal.StringToUtf8Bytes(utf8_path), Dataset.getCPtr(src), strict, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null, callback, callback_data);
+ Dataset ret = (cPtr == IntPtr.Zero) ? null : new Dataset(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr Delete(string utf8_path) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Driver_Delete(swigCPtr, Gdal.StringToUtf8Bytes(utf8_path));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr Rename(string newName, string oldName) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Driver_Rename(swigCPtr, newName, oldName);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr CopyFiles(string newName, string oldName) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Driver_CopyFiles(swigCPtr, newName, oldName);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int Register() {
+ int ret = GdalPINVOKE.Driver_Register(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void Deregister() {
+ GdalPINVOKE.Driver_Deregister(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/EDTComponent.cs b/Geospatial/GDAL-Bindings/GDAL/EDTComponent.cs
new file mode 100644
index 0000000..d968551
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/EDTComponent.cs
@@ -0,0 +1,102 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class EDTComponent : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public EDTComponent(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(EDTComponent obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(EDTComponent obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(EDTComponent obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~EDTComponent() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ GdalPINVOKE.delete_EDTComponent(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public static EDTComponent Create(string name, uint offset, ExtendedDataType type) {
+ IntPtr cPtr = GdalPINVOKE.EDTComponent_Create(name, offset, ExtendedDataType.getCPtr(type));
+ EDTComponent ret = (cPtr == IntPtr.Zero) ? null : new EDTComponent(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetName() {
+ string ret = GdalPINVOKE.EDTComponent_GetName(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public uint GetOffset() {
+ uint ret = GdalPINVOKE.EDTComponent_GetOffset(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public ExtendedDataType GetType_() {
+ IntPtr cPtr = GdalPINVOKE.EDTComponent_GetType_(swigCPtr);
+ ExtendedDataType ret = (cPtr == IntPtr.Zero) ? null : new ExtendedDataType(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/ExtendedDataType.cs b/Geospatial/GDAL-Bindings/GDAL/ExtendedDataType.cs
new file mode 100644
index 0000000..159f113
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/ExtendedDataType.cs
@@ -0,0 +1,138 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class ExtendedDataType : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public ExtendedDataType(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(ExtendedDataType obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(ExtendedDataType obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(ExtendedDataType obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~ExtendedDataType() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ GdalPINVOKE.delete_ExtendedDataType(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public static ExtendedDataType Create(DataType dt) {
+ IntPtr cPtr = GdalPINVOKE.ExtendedDataType_Create((int)dt);
+ ExtendedDataType ret = (cPtr == IntPtr.Zero) ? null : new ExtendedDataType(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static ExtendedDataType CreateString(uint nMaxStringLength, ExtendedDataTypeSubType eSubType) {
+ IntPtr cPtr = GdalPINVOKE.ExtendedDataType_CreateString(nMaxStringLength, (int)eSubType);
+ ExtendedDataType ret = (cPtr == IntPtr.Zero) ? null : new ExtendedDataType(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetName() {
+ string ret = GdalPINVOKE.ExtendedDataType_GetName(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public ExtendedDataTypeClass GetClass() {
+ ExtendedDataTypeClass ret = (ExtendedDataTypeClass)GdalPINVOKE.ExtendedDataType_GetClass(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public DataType GetNumericDataType() {
+ DataType ret = (DataType)GdalPINVOKE.ExtendedDataType_GetNumericDataType(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public uint GetSize() {
+ uint ret = GdalPINVOKE.ExtendedDataType_GetSize(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public uint GetMaxStringLength() {
+ uint ret = GdalPINVOKE.ExtendedDataType_GetMaxStringLength(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public ExtendedDataTypeSubType GetSubType() {
+ ExtendedDataTypeSubType ret = (ExtendedDataTypeSubType)GdalPINVOKE.ExtendedDataType_GetSubType(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool CanConvertTo(ExtendedDataType other) {
+ bool ret = GdalPINVOKE.ExtendedDataType_CanConvertTo(swigCPtr, ExtendedDataType.getCPtr(other));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool Equals(ExtendedDataType other) {
+ bool ret = GdalPINVOKE.ExtendedDataType_Equals(swigCPtr, ExtendedDataType.getCPtr(other));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/ExtendedDataTypeClass.cs b/Geospatial/GDAL-Bindings/GDAL/ExtendedDataTypeClass.cs
new file mode 100644
index 0000000..60ef6c5
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/ExtendedDataTypeClass.cs
@@ -0,0 +1,19 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+public enum ExtendedDataTypeClass {
+ GEDTC_NUMERIC,
+ GEDTC_STRING,
+ GEDTC_COMPOUND
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/ExtendedDataTypeSubType.cs b/Geospatial/GDAL-Bindings/GDAL/ExtendedDataTypeSubType.cs
new file mode 100644
index 0000000..6e2027a
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/ExtendedDataTypeSubType.cs
@@ -0,0 +1,18 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+public enum ExtendedDataTypeSubType {
+ GEDTST_NONE = 0,
+ GEDTST_JSON = 1
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/GCP.cs b/Geospatial/GDAL-Bindings/GDAL/GCP.cs
new file mode 100644
index 0000000..f2d32c0
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/GCP.cs
@@ -0,0 +1,164 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class GCP : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public GCP(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(GCP obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(GCP obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(GCP obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~GCP() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ GdalPINVOKE.delete_GCP(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public double GCPX {
+ set {
+ GdalPINVOKE.GCP_GCPX_set(swigCPtr, value);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get {
+ double ret = GdalPINVOKE.GCP_GCPX_get(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public double GCPY {
+ set {
+ GdalPINVOKE.GCP_GCPY_set(swigCPtr, value);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get {
+ double ret = GdalPINVOKE.GCP_GCPY_get(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public double GCPZ {
+ set {
+ GdalPINVOKE.GCP_GCPZ_set(swigCPtr, value);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get {
+ double ret = GdalPINVOKE.GCP_GCPZ_get(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public double GCPPixel {
+ set {
+ GdalPINVOKE.GCP_GCPPixel_set(swigCPtr, value);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get {
+ double ret = GdalPINVOKE.GCP_GCPPixel_get(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public double GCPLine {
+ set {
+ GdalPINVOKE.GCP_GCPLine_set(swigCPtr, value);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get {
+ double ret = GdalPINVOKE.GCP_GCPLine_get(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public string Info {
+ set {
+ GdalPINVOKE.GCP_Info_set(swigCPtr, value);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get {
+ string ret = GdalPINVOKE.GCP_Info_get(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public string Id {
+ set {
+ GdalPINVOKE.GCP_Id_set(swigCPtr, value);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get {
+ string ret = GdalPINVOKE.GCP_Id_get(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public GCP(double x, double y, double z, double pixel, double line, string info, string id) : this(GdalPINVOKE.new_GCP(x, y, z, pixel, line, info, id), true, null) {
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/GDALBuildVRTOptions.cs b/Geospatial/GDAL-Bindings/GDAL/GDALBuildVRTOptions.cs
new file mode 100644
index 0000000..ee3c048
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/GDALBuildVRTOptions.cs
@@ -0,0 +1,80 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class GDALBuildVRTOptions : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public GDALBuildVRTOptions(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(GDALBuildVRTOptions obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(GDALBuildVRTOptions obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(GDALBuildVRTOptions obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~GDALBuildVRTOptions() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ GdalPINVOKE.delete_GDALBuildVRTOptions(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public GDALBuildVRTOptions(string[] options) : this(GdalPINVOKE.new_GDALBuildVRTOptions((options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null), true, null) {
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/GDALDEMProcessingOptions.cs b/Geospatial/GDAL-Bindings/GDAL/GDALDEMProcessingOptions.cs
new file mode 100644
index 0000000..a7c3c72
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/GDALDEMProcessingOptions.cs
@@ -0,0 +1,80 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class GDALDEMProcessingOptions : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public GDALDEMProcessingOptions(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(GDALDEMProcessingOptions obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(GDALDEMProcessingOptions obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(GDALDEMProcessingOptions obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~GDALDEMProcessingOptions() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ GdalPINVOKE.delete_GDALDEMProcessingOptions(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public GDALDEMProcessingOptions(string[] options) : this(GdalPINVOKE.new_GDALDEMProcessingOptions((options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null), true, null) {
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/GDALFootprintOptions.cs b/Geospatial/GDAL-Bindings/GDAL/GDALFootprintOptions.cs
new file mode 100644
index 0000000..24dcfb9
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/GDALFootprintOptions.cs
@@ -0,0 +1,80 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class GDALFootprintOptions : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public GDALFootprintOptions(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(GDALFootprintOptions obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(GDALFootprintOptions obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(GDALFootprintOptions obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~GDALFootprintOptions() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ GdalPINVOKE.delete_GDALFootprintOptions(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public GDALFootprintOptions(string[] options) : this(GdalPINVOKE.new_GDALFootprintOptions((options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null), true, null) {
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/GDALGridOptions.cs b/Geospatial/GDAL-Bindings/GDAL/GDALGridOptions.cs
new file mode 100644
index 0000000..8d493b7
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/GDALGridOptions.cs
@@ -0,0 +1,80 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class GDALGridOptions : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public GDALGridOptions(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(GDALGridOptions obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(GDALGridOptions obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(GDALGridOptions obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~GDALGridOptions() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ GdalPINVOKE.delete_GDALGridOptions(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public GDALGridOptions(string[] options) : this(GdalPINVOKE.new_GDALGridOptions((options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null), true, null) {
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/GDALInfoOptions.cs b/Geospatial/GDAL-Bindings/GDAL/GDALInfoOptions.cs
new file mode 100644
index 0000000..866cc04
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/GDALInfoOptions.cs
@@ -0,0 +1,80 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class GDALInfoOptions : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public GDALInfoOptions(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(GDALInfoOptions obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(GDALInfoOptions obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(GDALInfoOptions obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~GDALInfoOptions() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ GdalPINVOKE.delete_GDALInfoOptions(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public GDALInfoOptions(string[] options) : this(GdalPINVOKE.new_GDALInfoOptions((options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null), true, null) {
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/GDALMultiDimInfoOptions.cs b/Geospatial/GDAL-Bindings/GDAL/GDALMultiDimInfoOptions.cs
new file mode 100644
index 0000000..ba0af70
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/GDALMultiDimInfoOptions.cs
@@ -0,0 +1,80 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class GDALMultiDimInfoOptions : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public GDALMultiDimInfoOptions(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(GDALMultiDimInfoOptions obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(GDALMultiDimInfoOptions obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(GDALMultiDimInfoOptions obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~GDALMultiDimInfoOptions() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ GdalPINVOKE.delete_GDALMultiDimInfoOptions(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public GDALMultiDimInfoOptions(string[] options) : this(GdalPINVOKE.new_GDALMultiDimInfoOptions((options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null), true, null) {
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/GDALMultiDimTranslateOptions.cs b/Geospatial/GDAL-Bindings/GDAL/GDALMultiDimTranslateOptions.cs
new file mode 100644
index 0000000..21b3807
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/GDALMultiDimTranslateOptions.cs
@@ -0,0 +1,80 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class GDALMultiDimTranslateOptions : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public GDALMultiDimTranslateOptions(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(GDALMultiDimTranslateOptions obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(GDALMultiDimTranslateOptions obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(GDALMultiDimTranslateOptions obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~GDALMultiDimTranslateOptions() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ GdalPINVOKE.delete_GDALMultiDimTranslateOptions(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public GDALMultiDimTranslateOptions(string[] options) : this(GdalPINVOKE.new_GDALMultiDimTranslateOptions((options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null), true, null) {
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/GDALNearblackOptions.cs b/Geospatial/GDAL-Bindings/GDAL/GDALNearblackOptions.cs
new file mode 100644
index 0000000..c792b03
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/GDALNearblackOptions.cs
@@ -0,0 +1,80 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class GDALNearblackOptions : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public GDALNearblackOptions(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(GDALNearblackOptions obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(GDALNearblackOptions obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(GDALNearblackOptions obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~GDALNearblackOptions() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ GdalPINVOKE.delete_GDALNearblackOptions(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public GDALNearblackOptions(string[] options) : this(GdalPINVOKE.new_GDALNearblackOptions((options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null), true, null) {
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/GDALRasterizeOptions.cs b/Geospatial/GDAL-Bindings/GDAL/GDALRasterizeOptions.cs
new file mode 100644
index 0000000..7e4bc40
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/GDALRasterizeOptions.cs
@@ -0,0 +1,80 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class GDALRasterizeOptions : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public GDALRasterizeOptions(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(GDALRasterizeOptions obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(GDALRasterizeOptions obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(GDALRasterizeOptions obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~GDALRasterizeOptions() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ GdalPINVOKE.delete_GDALRasterizeOptions(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public GDALRasterizeOptions(string[] options) : this(GdalPINVOKE.new_GDALRasterizeOptions((options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null), true, null) {
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/GDALTileIndexOptions.cs b/Geospatial/GDAL-Bindings/GDAL/GDALTileIndexOptions.cs
new file mode 100644
index 0000000..17c88ae
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/GDALTileIndexOptions.cs
@@ -0,0 +1,80 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class GDALTileIndexOptions : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public GDALTileIndexOptions(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(GDALTileIndexOptions obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(GDALTileIndexOptions obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(GDALTileIndexOptions obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~GDALTileIndexOptions() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ GdalPINVOKE.delete_GDALTileIndexOptions(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public GDALTileIndexOptions(string[] options) : this(GdalPINVOKE.new_GDALTileIndexOptions((options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null), true, null) {
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/GDALTranslateOptions.cs b/Geospatial/GDAL-Bindings/GDAL/GDALTranslateOptions.cs
new file mode 100644
index 0000000..2140af0
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/GDALTranslateOptions.cs
@@ -0,0 +1,80 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class GDALTranslateOptions : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public GDALTranslateOptions(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(GDALTranslateOptions obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(GDALTranslateOptions obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(GDALTranslateOptions obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~GDALTranslateOptions() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ GdalPINVOKE.delete_GDALTranslateOptions(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public GDALTranslateOptions(string[] options) : this(GdalPINVOKE.new_GDALTranslateOptions((options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null), true, null) {
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/GDALVectorInfoOptions.cs b/Geospatial/GDAL-Bindings/GDAL/GDALVectorInfoOptions.cs
new file mode 100644
index 0000000..259b3bc
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/GDALVectorInfoOptions.cs
@@ -0,0 +1,80 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class GDALVectorInfoOptions : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public GDALVectorInfoOptions(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(GDALVectorInfoOptions obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(GDALVectorInfoOptions obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(GDALVectorInfoOptions obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~GDALVectorInfoOptions() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ GdalPINVOKE.delete_GDALVectorInfoOptions(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public GDALVectorInfoOptions(string[] options) : this(GdalPINVOKE.new_GDALVectorInfoOptions((options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null), true, null) {
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/GDALVectorTranslateOptions.cs b/Geospatial/GDAL-Bindings/GDAL/GDALVectorTranslateOptions.cs
new file mode 100644
index 0000000..895dad7
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/GDALVectorTranslateOptions.cs
@@ -0,0 +1,80 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class GDALVectorTranslateOptions : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public GDALVectorTranslateOptions(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(GDALVectorTranslateOptions obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(GDALVectorTranslateOptions obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(GDALVectorTranslateOptions obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~GDALVectorTranslateOptions() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ GdalPINVOKE.delete_GDALVectorTranslateOptions(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public GDALVectorTranslateOptions(string[] options) : this(GdalPINVOKE.new_GDALVectorTranslateOptions((options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null), true, null) {
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/GDALWarpAppOptions.cs b/Geospatial/GDAL-Bindings/GDAL/GDALWarpAppOptions.cs
new file mode 100644
index 0000000..2e4b896
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/GDALWarpAppOptions.cs
@@ -0,0 +1,80 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class GDALWarpAppOptions : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public GDALWarpAppOptions(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(GDALWarpAppOptions obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(GDALWarpAppOptions obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(GDALWarpAppOptions obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~GDALWarpAppOptions() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ GdalPINVOKE.delete_GDALWarpAppOptions(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public GDALWarpAppOptions(string[] options) : this(GdalPINVOKE.new_GDALWarpAppOptions((options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null), true, null) {
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/Gdal.cs b/Geospatial/GDAL-Bindings/GDAL/Gdal.cs
new file mode 100644
index 0000000..269eb04
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/Gdal.cs
@@ -0,0 +1,1318 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class Gdal {
+
+ internal class GdalObject : IDisposable {
+ public virtual void Dispose() {
+
+ }
+ }
+ internal static GdalObject theGdalObject = new GdalObject();
+ protected static object ThisOwn_true() { return null; }
+ protected static object ThisOwn_false() { return theGdalObject; }
+
+ public static void UseExceptions() {
+ GdalPINVOKE.UseExceptions();
+ }
+
+ public static void DontUseExceptions() {
+ GdalPINVOKE.DontUseExceptions();
+ }
+
+
+ internal static byte[] StringToUtf8Bytes(string str)
+ {
+ if (str == null)
+ return null;
+
+ int bytecount = System.Text.Encoding.UTF8.GetMaxByteCount(str.Length);
+ byte[] bytes = new byte[bytecount + 1];
+ System.Text.Encoding.UTF8.GetBytes(str, 0, str.Length, bytes, 0);
+ return bytes;
+ }
+
+ internal unsafe static string Utf8BytesToString(IntPtr pNativeData)
+ {
+ if (pNativeData == IntPtr.Zero)
+ return null;
+
+ byte* pStringUtf8 = (byte*) pNativeData;
+ int len = 0;
+ while (pStringUtf8[len] != 0) len++;
+ return System.Text.Encoding.UTF8.GetString(pStringUtf8, len);
+ }
+
+ internal static void StringListDestroy(IntPtr buffer_ptr) {
+ GdalPINVOKE.StringListDestroy(buffer_ptr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+public delegate void GDALErrorHandlerDelegate(int eclass, int code, IntPtr msg);
+public delegate int GDALProgressFuncDelegate(double Complete, IntPtr Message, IntPtr Data);
+
+ public static int GCPsToGeoTransform(GCP[] pGCPs, double[] argout, int bApproxOK) {
+ int ret = 0;
+ if (pGCPs != null && pGCPs.Length > 0)
+ {
+ IntPtr cPtr = __AllocCArray_GDAL_GCP(pGCPs.Length);
+ if (cPtr == IntPtr.Zero)
+ throw new ApplicationException("Error allocating CArray with __AllocCArray_GDAL_GCP");
+
+ try {
+ for (int i=0; i < pGCPs.Length; i++)
+ __WriteCArrayItem_GDAL_GCP(cPtr, i, pGCPs[i]);
+
+ ret = GCPsToGeoTransform(pGCPs.Length, cPtr, argout, bApproxOK);
+ }
+ finally
+ {
+ __FreeCArray_GDAL_GCP(cPtr);
+ }
+ }
+ return ret;
+ }
+
+ public static void FileFromMemBuffer(string utf8_path, byte[] bytes) {
+ GCHandle handle = GCHandle.Alloc(bytes, GCHandleType.Pinned);
+ try {
+ FileFromMemBuffer(utf8_path, bytes.Length, handle.AddrOfPinnedObject());
+ } finally {
+ handle.Free();
+ }
+ }
+
+ public static int Warp(Dataset dstDS, Dataset[] poObjects, GDALWarpAppOptions warpAppOptions, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ int retval = 0;
+ if (poObjects.Length <= 0)
+ throw new ArgumentException("poObjects size is small (GDALWarpDestDS)");
+
+ int intPtrSize = Marshal.SizeOf(typeof(IntPtr));
+ IntPtr nativeArray = Marshal.AllocHGlobal(poObjects.Length * intPtrSize);
+ try {
+ for (int i=0; i < poObjects.Length; i++)
+ Marshal.WriteIntPtr(nativeArray, i * intPtrSize, Dataset.getCPtr(poObjects[i]).Handle);
+
+ retval = wrapper_GDALWarpDestDS(dstDS, poObjects.Length, nativeArray, warpAppOptions, callback, callback_data);
+ } finally {
+ Marshal.FreeHGlobal(nativeArray);
+ }
+ return retval;
+ }
+
+ public static Dataset Warp(string dest, Dataset[] poObjects, GDALWarpAppOptions warpAppOptions, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ Dataset retval = null;
+ if (poObjects.Length <= 0)
+ throw new ArgumentException("poObjects size is small (GDALWarpDestDS)");
+
+ int intPtrSize = Marshal.SizeOf(typeof(IntPtr));
+ IntPtr nativeArray = Marshal.AllocHGlobal(poObjects.Length * intPtrSize);
+ try {
+ for (int i=0; i < poObjects.Length; i++)
+ Marshal.WriteIntPtr(nativeArray, i * intPtrSize, Dataset.getCPtr(poObjects[i]).Handle);
+
+ retval = wrapper_GDALWarpDestName(dest, poObjects.Length, nativeArray, warpAppOptions, callback, callback_data);
+ } finally {
+ Marshal.FreeHGlobal(nativeArray);
+ }
+ return retval;
+ }
+
+ public static Dataset BuildVRT(string dest, string[] poObjects, GDALBuildVRTOptions buildVrtAppOptions, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ return wrapper_GDALBuildVRT_names(dest, poObjects, buildVrtAppOptions, callback, callback_data);
+ }
+
+ public static Dataset BuildVRT(string dest, Dataset[] poObjects, GDALBuildVRTOptions buildVrtAppOptions, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ Dataset retval = null;
+ if (poObjects.Length <= 0)
+ throw new ArgumentException("poObjects size is small (BuildVRT)");
+
+ int intPtrSize = Marshal.SizeOf(typeof(IntPtr));
+ IntPtr nativeArray = Marshal.AllocHGlobal(poObjects.Length * intPtrSize);
+ try {
+ for (int i=0; i < poObjects.Length; i++)
+ Marshal.WriteIntPtr(nativeArray, i * intPtrSize, Dataset.getCPtr(poObjects[i]).Handle);
+
+ retval = wrapper_GDALBuildVRT_objects(dest, poObjects.Length, nativeArray, buildVrtAppOptions, callback, callback_data);
+ } finally {
+ Marshal.FreeHGlobal(nativeArray);
+ }
+ return retval;
+ }
+
+ public static Dataset MultiDimTranslate(string dest, Dataset[] poObjects, GDALMultiDimTranslateOptions multiDimAppOptions, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ Dataset retval = null;
+ if (poObjects.Length <= 0)
+ throw new ArgumentException("poObjects size is small (GDALMultiDimTranslateDestName)");
+
+ int intPtrSize = Marshal.SizeOf(typeof(IntPtr));
+ IntPtr nativeArray = Marshal.AllocHGlobal(poObjects.Length * intPtrSize);
+ try {
+ for (int i=0; i < poObjects.Length; i++)
+ Marshal.WriteIntPtr(nativeArray, i * intPtrSize, Dataset.getCPtr(poObjects[i]).Handle);
+
+ retval = wrapper_GDALMultiDimTranslateDestName(dest, poObjects.Length, nativeArray, multiDimAppOptions, callback, callback_data);
+ } finally {
+ Marshal.FreeHGlobal(nativeArray);
+ }
+ return retval;
+ }
+
+
+ public static void Debug(string msg_class, string message) {
+ GdalPINVOKE.Debug(msg_class, message);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public static CPLErr SetErrorHandler(Gdal.GDALErrorHandlerDelegate pfnErrorHandler, SWIGTYPE_p_void user_data) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.SetErrorHandler(pfnErrorHandler, SWIGTYPE_p_void.getCPtr(user_data));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static void SetCurrentErrorHandlerCatchDebug(int bCatchDebug) {
+ GdalPINVOKE.SetCurrentErrorHandlerCatchDebug(bCatchDebug);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public static CPLErr PushErrorHandler(string pszCallbackName) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.PushErrorHandler__SWIG_0(pszCallbackName);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static void Error(CPLErr msg_class, int err_code, string msg) {
+ GdalPINVOKE.Error((int)msg_class, err_code, msg);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public static string GOA2GetAuthorizationURL(string pszScope) {
+ string ret = GdalPINVOKE.GOA2GetAuthorizationURL(pszScope);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static string GOA2GetRefreshToken(string pszAuthToken, string pszScope) {
+ string ret = GdalPINVOKE.GOA2GetRefreshToken(pszAuthToken, pszScope);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static string GOA2GetAccessToken(string pszRefreshToken, string pszScope) {
+ string ret = GdalPINVOKE.GOA2GetAccessToken(pszRefreshToken, pszScope);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static void PushErrorHandler(Gdal.GDALErrorHandlerDelegate arg0) {
+ GdalPINVOKE.PushErrorHandler__SWIG_1(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 string EscapeString(int len, string bin_string, int scheme) {
+ string ret = GdalPINVOKE.EscapeString(len, bin_string, scheme);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ 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 uint GetErrorCounter() {
+ uint ret = GdalPINVOKE.GetErrorCounter();
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int VSIGetLastErrorNo() {
+ int ret = GdalPINVOKE.VSIGetLastErrorNo();
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static string VSIGetLastErrorMsg() {
+ string ret = GdalPINVOKE.VSIGetLastErrorMsg();
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static void VSIErrorReset() {
+ GdalPINVOKE.VSIErrorReset();
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public static void PushFinderLocation(string utf8_path) {
+ GdalPINVOKE.PushFinderLocation(Gdal.StringToUtf8Bytes(utf8_path));
+ 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 pszClass, string utf8_path) {
+ string ret = GdalPINVOKE.FindFile(pszClass, Gdal.StringToUtf8Bytes(utf8_path));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static string[] ReadDir(string utf8_path, int nMaxFiles) {
+ /* %typemap(csout) char** CSL */
+ IntPtr cPtr = GdalPINVOKE.ReadDir(Gdal.StringToUtf8Bytes(utf8_path), nMaxFiles);
+ IntPtr objPtr;
+ int count = 0;
+ if (cPtr != IntPtr.Zero) {
+ while (Marshal.ReadIntPtr(cPtr, count*IntPtr.Size) != IntPtr.Zero)
+ ++count;
+ }
+ string[] ret = new string[count];
+ if (count > 0) {
+ for(int cx = 0; cx < count; cx++) {
+ objPtr = System.Runtime.InteropServices.Marshal.ReadIntPtr(cPtr, cx * System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntPtr)));
+ ret[cx]= (objPtr == IntPtr.Zero) ? null : System.Runtime.InteropServices.Marshal.PtrToStringAnsi(objPtr);
+ }
+ }
+ if (cPtr != IntPtr.Zero)
+ GdalPINVOKE.StringListDestroy(cPtr);
+
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+}
+
+ public static string[] ReadDirRecursive(string utf8_path) {
+ /* %typemap(csout) char** CSL */
+ IntPtr cPtr = GdalPINVOKE.ReadDirRecursive(Gdal.StringToUtf8Bytes(utf8_path));
+ IntPtr objPtr;
+ int count = 0;
+ if (cPtr != IntPtr.Zero) {
+ while (Marshal.ReadIntPtr(cPtr, count*IntPtr.Size) != IntPtr.Zero)
+ ++count;
+ }
+ string[] ret = new string[count];
+ if (count > 0) {
+ for(int cx = 0; cx < count; cx++) {
+ objPtr = System.Runtime.InteropServices.Marshal.ReadIntPtr(cPtr, cx * System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntPtr)));
+ ret[cx]= (objPtr == IntPtr.Zero) ? null : System.Runtime.InteropServices.Marshal.PtrToStringAnsi(objPtr);
+ }
+ }
+ if (cPtr != IntPtr.Zero)
+ GdalPINVOKE.StringListDestroy(cPtr);
+
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+}
+
+ public static void SetConfigOption(string pszKey, string pszValue) {
+ GdalPINVOKE.SetConfigOption(pszKey, pszValue);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public static void SetThreadLocalConfigOption(string pszKey, string pszValue) {
+ GdalPINVOKE.SetThreadLocalConfigOption(pszKey, pszValue);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public static string GetConfigOption(string pszKey, string pszDefault) {
+ string ret = GdalPINVOKE.GetConfigOption(pszKey, pszDefault);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static string GetGlobalConfigOption(string pszKey, string pszDefault) {
+ string ret = GdalPINVOKE.GetGlobalConfigOption(pszKey, pszDefault);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static string GetThreadLocalConfigOption(string pszKey, string pszDefault) {
+ string ret = GdalPINVOKE.GetThreadLocalConfigOption(pszKey, pszDefault);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static SWIGTYPE_p_p_char GetConfigOptions() {
+ IntPtr cPtr = GdalPINVOKE.GetConfigOptions();
+ SWIGTYPE_p_p_char ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_char(cPtr, false, ThisOwn_false());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static void SetPathSpecificOption(string pszPathPrefix, string pszKey, string pszValue) {
+ GdalPINVOKE.SetPathSpecificOption(pszPathPrefix, pszKey, pszValue);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public static void SetCredential(string pszPathPrefix, string pszKey, string pszValue) {
+ GdalPINVOKE.SetCredential(pszPathPrefix, pszKey, pszValue);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public static string GetCredential(string pszPathPrefix, string pszKey, string pszDefault) {
+ string ret = GdalPINVOKE.GetCredential(pszPathPrefix, pszKey, pszDefault);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static string GetPathSpecificOption(string pszPathPrefix, string pszKey, string pszDefault) {
+ string ret = GdalPINVOKE.GetPathSpecificOption(pszPathPrefix, pszKey, pszDefault);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static void ClearCredentials(string pszPathPrefix) {
+ GdalPINVOKE.ClearCredentials(pszPathPrefix);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public static void ClearPathSpecificOptions(string pszPathPrefix) {
+ GdalPINVOKE.ClearPathSpecificOptions(pszPathPrefix);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public static string CPLBinaryToHex(int nBytes, IntPtr pabyData) {
+ string ret = GdalPINVOKE.CPLBinaryToHex(nBytes, pabyData);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static IntPtr CPLHexToBinary(string pszHex, out int pnBytes) {
+ IntPtr ret = GdalPINVOKE.CPLHexToBinary(pszHex, out pnBytes);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+}
+
+ public static int FileFromMemBuffer(string utf8_path, int nBytes, IntPtr pabyData) {
+ int ret = GdalPINVOKE.FileFromMemBuffer(Gdal.StringToUtf8Bytes(utf8_path), nBytes, pabyData);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int Unlink(string utf8_path) {
+ int ret = GdalPINVOKE.Unlink(Gdal.StringToUtf8Bytes(utf8_path));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static bool UnlinkBatch(string[] files) {
+ bool ret = GdalPINVOKE.UnlinkBatch((files != null)? new GdalPINVOKE.StringListMarshal(files)._ar : null);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int HasThreadSupport() {
+ int ret = GdalPINVOKE.HasThreadSupport();
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int Mkdir(string utf8_path, int mode) {
+ int ret = GdalPINVOKE.Mkdir(Gdal.StringToUtf8Bytes(utf8_path), mode);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int Rmdir(string utf8_path) {
+ int ret = GdalPINVOKE.Rmdir(Gdal.StringToUtf8Bytes(utf8_path));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int MkdirRecursive(string utf8_path, int mode) {
+ int ret = GdalPINVOKE.MkdirRecursive(Gdal.StringToUtf8Bytes(utf8_path), mode);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int RmdirRecursive(string utf8_path) {
+ int ret = GdalPINVOKE.RmdirRecursive(Gdal.StringToUtf8Bytes(utf8_path));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int Rename(string pszOld, string pszNew) {
+ int ret = GdalPINVOKE.Rename(Gdal.StringToUtf8Bytes(pszOld), Gdal.StringToUtf8Bytes(pszNew));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int CopyFile(string pszSource, string pszTarget, IntPtr fpSource, long nSourceSize, string[] options, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ int ret = GdalPINVOKE.CopyFile(Gdal.StringToUtf8Bytes(pszSource), Gdal.StringToUtf8Bytes(pszTarget), fpSource, nSourceSize, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null, callback, callback_data);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static string GetActualURL(string utf8_path) {
+ string ret = GdalPINVOKE.GetActualURL(Gdal.StringToUtf8Bytes(utf8_path));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static string GetSignedURL(string utf8_path, string[] options) {
+ string ret = GdalPINVOKE.GetSignedURL(Gdal.StringToUtf8Bytes(utf8_path), (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static string[] GetFileSystemsPrefixes() {
+ /* %typemap(csout) char** CSL */
+ IntPtr cPtr = GdalPINVOKE.GetFileSystemsPrefixes();
+ IntPtr objPtr;
+ int count = 0;
+ if (cPtr != IntPtr.Zero) {
+ while (Marshal.ReadIntPtr(cPtr, count*IntPtr.Size) != IntPtr.Zero)
+ ++count;
+ }
+ string[] ret = new string[count];
+ if (count > 0) {
+ for(int cx = 0; cx < count; cx++) {
+ objPtr = System.Runtime.InteropServices.Marshal.ReadIntPtr(cPtr, cx * System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntPtr)));
+ ret[cx]= (objPtr == IntPtr.Zero) ? null : System.Runtime.InteropServices.Marshal.PtrToStringAnsi(objPtr);
+ }
+ }
+ if (cPtr != IntPtr.Zero)
+ GdalPINVOKE.StringListDestroy(cPtr);
+
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+}
+
+ public static string GetFileSystemOptions(string utf8_path) {
+ string ret = GdalPINVOKE.GetFileSystemOptions(Gdal.StringToUtf8Bytes(utf8_path));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static SWIGTYPE_p_p_char GetFileMetadata(string utf8_path, string domain, string[] options) {
+ IntPtr cPtr = GdalPINVOKE.GetFileMetadata(Gdal.StringToUtf8Bytes(utf8_path), domain, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ SWIGTYPE_p_p_char ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_char(cPtr, false, ThisOwn_false());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static bool SetFileMetadata(string utf8_path, string[] metadata, string domain, string[] options) {
+ bool ret = GdalPINVOKE.SetFileMetadata(Gdal.StringToUtf8Bytes(utf8_path), (metadata != null)? new GdalPINVOKE.StringListMarshal(metadata)._ar : null, domain, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static IntPtr VSIFOpenL(string utf8_path, string pszMode) {
+ IntPtr ret = GdalPINVOKE.VSIFOpenL(Gdal.StringToUtf8Bytes(utf8_path), pszMode);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+}
+
+ public static IntPtr VSIFOpenExL(string utf8_path, string pszMode, int bSetError, string[] options) {
+ IntPtr ret = GdalPINVOKE.VSIFOpenExL(Gdal.StringToUtf8Bytes(utf8_path), pszMode, bSetError, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+}
+
+ public static int VSIFEofL(IntPtr fp) {
+ int ret = GdalPINVOKE.VSIFEofL(fp);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int VSIFFlushL(IntPtr fp) {
+ int ret = GdalPINVOKE.VSIFFlushL(fp);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int VSIFCloseL(IntPtr fp) {
+ int ret = GdalPINVOKE.VSIFCloseL(fp);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int VSIFSeekL(IntPtr fp, int offset, int whence) {
+ int ret = GdalPINVOKE.VSIFSeekL(fp, offset, whence);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int VSIFTellL(IntPtr fp) {
+ int ret = GdalPINVOKE.VSIFTellL(fp);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int VSIFTruncateL(IntPtr fp, int length) {
+ int ret = GdalPINVOKE.VSIFTruncateL(fp, length);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ // This binding is WRONG. See below. At least since GDAL 3.7, into GDAL 3.9.1
+ //public static int VSIFWriteL(string arg0, int arg1, int arg2, IntPtr fp) {
+ // int ret = GdalPINVOKE.VSIFWriteL(arg0, arg1, arg2, fp);
+ // if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ // return ret;
+ //}
+
+ ///
+ /// Kennedy edit: Above SWIG binding was incorrect.
+ /// https://gdal.org/api/cpl.html#_CPPv410VSIFWriteLPKv6size_t6size_tP8VSILFILE
+ ///
+ public static int VSIFWriteL(IntPtr bufHandle, int arg1, int arg2, IntPtr fp)
+ {
+ int ret = GdalPINVOKE.VSIFWriteL(bufHandle, arg1, arg2, fp);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static void VSICurlClearCache() {
+ GdalPINVOKE.VSICurlClearCache();
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public static void VSICurlPartialClearCache(string utf8_path) {
+ GdalPINVOKE.VSICurlPartialClearCache(Gdal.StringToUtf8Bytes(utf8_path));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public static void NetworkStatsReset() {
+ GdalPINVOKE.NetworkStatsReset();
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public static string NetworkStatsGetAsSerializedJSON(string[] options) {
+ string ret = GdalPINVOKE.NetworkStatsGetAsSerializedJSON((options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static string[] ParseCommandLine(string utf8_path) {
+ /* %typemap(csout) char** CSL */
+ IntPtr cPtr = GdalPINVOKE.ParseCommandLine(Gdal.StringToUtf8Bytes(utf8_path));
+ IntPtr objPtr;
+ int count = 0;
+ if (cPtr != IntPtr.Zero) {
+ while (Marshal.ReadIntPtr(cPtr, count*IntPtr.Size) != IntPtr.Zero)
+ ++count;
+ }
+ string[] ret = new string[count];
+ if (count > 0) {
+ for(int cx = 0; cx < count; cx++) {
+ objPtr = System.Runtime.InteropServices.Marshal.ReadIntPtr(cPtr, cx * System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntPtr)));
+ ret[cx]= (objPtr == IntPtr.Zero) ? null : System.Runtime.InteropServices.Marshal.PtrToStringAnsi(objPtr);
+ }
+ }
+ if (cPtr != IntPtr.Zero)
+ GdalPINVOKE.StringListDestroy(cPtr);
+
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+}
+
+ public static int GetNumCPUs() {
+ int ret = GdalPINVOKE.GetNumCPUs();
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static long GetUsablePhysicalRAM() {
+ long res = GdalPINVOKE.GetUsablePhysicalRAM();
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return res;
+}
+
+ public static double GDAL_GCP_GCPX_get(GCP gcp) {
+ double ret = GdalPINVOKE.GDAL_GCP_GCPX_get(GCP.getCPtr(gcp));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static void GDAL_GCP_GCPX_set(GCP gcp, double dfGCPX) {
+ GdalPINVOKE.GDAL_GCP_GCPX_set(GCP.getCPtr(gcp), dfGCPX);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public static double GDAL_GCP_GCPY_get(GCP gcp) {
+ double ret = GdalPINVOKE.GDAL_GCP_GCPY_get(GCP.getCPtr(gcp));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static void GDAL_GCP_GCPY_set(GCP gcp, double dfGCPY) {
+ GdalPINVOKE.GDAL_GCP_GCPY_set(GCP.getCPtr(gcp), dfGCPY);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public static double GDAL_GCP_GCPZ_get(GCP gcp) {
+ double ret = GdalPINVOKE.GDAL_GCP_GCPZ_get(GCP.getCPtr(gcp));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static void GDAL_GCP_GCPZ_set(GCP gcp, double dfGCPZ) {
+ GdalPINVOKE.GDAL_GCP_GCPZ_set(GCP.getCPtr(gcp), dfGCPZ);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public static double GDAL_GCP_GCPPixel_get(GCP gcp) {
+ double ret = GdalPINVOKE.GDAL_GCP_GCPPixel_get(GCP.getCPtr(gcp));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static void GDAL_GCP_GCPPixel_set(GCP gcp, double dfGCPPixel) {
+ GdalPINVOKE.GDAL_GCP_GCPPixel_set(GCP.getCPtr(gcp), dfGCPPixel);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public static double GDAL_GCP_GCPLine_get(GCP gcp) {
+ double ret = GdalPINVOKE.GDAL_GCP_GCPLine_get(GCP.getCPtr(gcp));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static void GDAL_GCP_GCPLine_set(GCP gcp, double dfGCPLine) {
+ GdalPINVOKE.GDAL_GCP_GCPLine_set(GCP.getCPtr(gcp), dfGCPLine);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public static string GDAL_GCP_Info_get(GCP gcp) {
+ string ret = GdalPINVOKE.GDAL_GCP_Info_get(GCP.getCPtr(gcp));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static void GDAL_GCP_Info_set(GCP gcp, string pszInfo) {
+ GdalPINVOKE.GDAL_GCP_Info_set(GCP.getCPtr(gcp), pszInfo);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public static string GDAL_GCP_Id_get(GCP gcp) {
+ string ret = GdalPINVOKE.GDAL_GCP_Id_get(GCP.getCPtr(gcp));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static void GDAL_GCP_Id_set(GCP gcp, string pszId) {
+ GdalPINVOKE.GDAL_GCP_Id_set(GCP.getCPtr(gcp), pszId);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public static double GDAL_GCP_get_GCPX(GCP gcp) {
+ double ret = GdalPINVOKE.GDAL_GCP_get_GCPX(GCP.getCPtr(gcp));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static void GDAL_GCP_set_GCPX(GCP gcp, double dfGCPX) {
+ GdalPINVOKE.GDAL_GCP_set_GCPX(GCP.getCPtr(gcp), dfGCPX);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public static double GDAL_GCP_get_GCPY(GCP gcp) {
+ double ret = GdalPINVOKE.GDAL_GCP_get_GCPY(GCP.getCPtr(gcp));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static void GDAL_GCP_set_GCPY(GCP gcp, double dfGCPY) {
+ GdalPINVOKE.GDAL_GCP_set_GCPY(GCP.getCPtr(gcp), dfGCPY);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public static double GDAL_GCP_get_GCPZ(GCP gcp) {
+ double ret = GdalPINVOKE.GDAL_GCP_get_GCPZ(GCP.getCPtr(gcp));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static void GDAL_GCP_set_GCPZ(GCP gcp, double dfGCPZ) {
+ GdalPINVOKE.GDAL_GCP_set_GCPZ(GCP.getCPtr(gcp), dfGCPZ);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public static double GDAL_GCP_get_GCPPixel(GCP gcp) {
+ double ret = GdalPINVOKE.GDAL_GCP_get_GCPPixel(GCP.getCPtr(gcp));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static void GDAL_GCP_set_GCPPixel(GCP gcp, double dfGCPPixel) {
+ GdalPINVOKE.GDAL_GCP_set_GCPPixel(GCP.getCPtr(gcp), dfGCPPixel);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public static double GDAL_GCP_get_GCPLine(GCP gcp) {
+ double ret = GdalPINVOKE.GDAL_GCP_get_GCPLine(GCP.getCPtr(gcp));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static void GDAL_GCP_set_GCPLine(GCP gcp, double dfGCPLine) {
+ GdalPINVOKE.GDAL_GCP_set_GCPLine(GCP.getCPtr(gcp), dfGCPLine);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public static string GDAL_GCP_get_Info(GCP gcp) {
+ string ret = GdalPINVOKE.GDAL_GCP_get_Info(GCP.getCPtr(gcp));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static void GDAL_GCP_set_Info(GCP gcp, string pszInfo) {
+ GdalPINVOKE.GDAL_GCP_set_Info(GCP.getCPtr(gcp), pszInfo);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public static string GDAL_GCP_get_Id(GCP gcp) {
+ string ret = GdalPINVOKE.GDAL_GCP_get_Id(GCP.getCPtr(gcp));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static void GDAL_GCP_set_Id(GCP gcp, string pszId) {
+ GdalPINVOKE.GDAL_GCP_set_Id(GCP.getCPtr(gcp), pszId);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ private static int GCPsToGeoTransform(int nGCPs, IntPtr pGCPs, double[] argout, int bApproxOK) {
+ int res = GdalPINVOKE.GCPsToGeoTransform(nGCPs, pGCPs, argout, bApproxOK);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return res;
+}
+
+ public static SWIGTYPE_p_GDALSubdatasetInfo GetSubdatasetInfo(string pszFileName) {
+ IntPtr cPtr = GdalPINVOKE.GetSubdatasetInfo(pszFileName);
+ SWIGTYPE_p_GDALSubdatasetInfo ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_GDALSubdatasetInfo(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int ComputeMedianCutPCT(Band red, Band green, Band blue, int num_colors, ColorTable colors, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ int ret = GdalPINVOKE.ComputeMedianCutPCT(Band.getCPtr(red), Band.getCPtr(green), Band.getCPtr(blue), num_colors, ColorTable.getCPtr(colors), callback, callback_data);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int DitherRGB2PCT(Band red, Band green, Band blue, Band target, ColorTable colors, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ int ret = GdalPINVOKE.DitherRGB2PCT(Band.getCPtr(red), Band.getCPtr(green), Band.getCPtr(blue), Band.getCPtr(target), ColorTable.getCPtr(colors), callback, callback_data);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static CPLErr ReprojectImage(Dataset src_ds, Dataset dst_ds, string src_wkt, string dst_wkt, ResampleAlg eResampleAlg, double WarpMemoryLimit, double maxerror, Gdal.GDALProgressFuncDelegate callback, string callback_data, string[] options) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.ReprojectImage(Dataset.getCPtr(src_ds), Dataset.getCPtr(dst_ds), src_wkt, dst_wkt, (int)eResampleAlg, WarpMemoryLimit, maxerror, callback, callback_data, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int ComputeProximity(Band srcBand, Band proximityBand, string[] options, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ int ret = GdalPINVOKE.ComputeProximity(Band.getCPtr(srcBand), Band.getCPtr(proximityBand), (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null, callback, callback_data);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int RasterizeLayer(Dataset dataset, int bands, int[] band_list, OSGeo.OGR.Layer layer, IntPtr pfnTransformer, IntPtr pTransformArg, int burn_values, double[] burn_values_list, string[] options, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ int ret = GdalPINVOKE.RasterizeLayer(Dataset.getCPtr(dataset), bands, band_list, OSGeo.OGR.Layer.getCPtr(layer), pfnTransformer, pTransformArg, burn_values, burn_values_list, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null, callback, callback_data);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int Polygonize(Band srcBand, Band maskBand, OSGeo.OGR.Layer outLayer, int iPixValField, string[] options, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ int ret = GdalPINVOKE.Polygonize(Band.getCPtr(srcBand), Band.getCPtr(maskBand), OSGeo.OGR.Layer.getCPtr(outLayer), iPixValField, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null, callback, callback_data);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int FPolygonize(Band srcBand, Band maskBand, OSGeo.OGR.Layer outLayer, int iPixValField, string[] options, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ int ret = GdalPINVOKE.FPolygonize(Band.getCPtr(srcBand), Band.getCPtr(maskBand), OSGeo.OGR.Layer.getCPtr(outLayer), iPixValField, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null, callback, callback_data);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int FillNodata(Band targetBand, Band maskBand, double maxSearchDist, int smoothingIterations, string[] options, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ int ret = GdalPINVOKE.FillNodata(Band.getCPtr(targetBand), Band.getCPtr(maskBand), maxSearchDist, smoothingIterations, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null, callback, callback_data);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int SieveFilter(Band srcBand, Band maskBand, Band dstBand, int threshold, int connectedness, string[] options, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ int ret = GdalPINVOKE.SieveFilter(Band.getCPtr(srcBand), Band.getCPtr(maskBand), Band.getCPtr(dstBand), threshold, connectedness, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null, callback, callback_data);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int RegenerateOverviews(Band srcBand, int overviewBandCount, SWIGTYPE_p_p_GDALRasterBandShadow overviewBands, string resampling, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ int ret = GdalPINVOKE.RegenerateOverviews(Band.getCPtr(srcBand), overviewBandCount, SWIGTYPE_p_p_GDALRasterBandShadow.getCPtr(overviewBands), resampling, callback, callback_data);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int RegenerateOverview(Band srcBand, Band overviewBand, string resampling, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ int ret = GdalPINVOKE.RegenerateOverview(Band.getCPtr(srcBand), Band.getCPtr(overviewBand), resampling, callback, callback_data);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int ContourGenerate(Band srcBand, double contourInterval, double contourBase, int fixedLevelCount, double[] fixedLevels, int useNoData, double noDataValue, OSGeo.OGR.Layer dstLayer, int idField, int elevField, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ int ret = GdalPINVOKE.ContourGenerate(Band.getCPtr(srcBand), contourInterval, contourBase, fixedLevelCount, fixedLevels, useNoData, noDataValue, OSGeo.OGR.Layer.getCPtr(dstLayer), idField, elevField, callback, callback_data);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int ContourGenerateEx(Band srcBand, OSGeo.OGR.Layer dstLayer, string[] options, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ int ret = GdalPINVOKE.ContourGenerateEx(Band.getCPtr(srcBand), OSGeo.OGR.Layer.getCPtr(dstLayer), (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null, callback, callback_data);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static Dataset ViewshedGenerate(Band srcBand, string driverName, string targetRasterName, string[] creationOptions, double observerX, double observerY, double observerHeight, double targetHeight, double visibleVal, double invisibleVal, double outOfRangeVal, double noDataVal, double dfCurvCoeff, ViewshedMode mode, double maxDistance, Gdal.GDALProgressFuncDelegate callback, string callback_data, ViewshedOutputType heightMode, string[] options) {
+ IntPtr cPtr = GdalPINVOKE.ViewshedGenerate(Band.getCPtr(srcBand), driverName, targetRasterName, (creationOptions != null)? new GdalPINVOKE.StringListMarshal(creationOptions)._ar : null, observerX, observerY, observerHeight, targetHeight, visibleVal, invisibleVal, outOfRangeVal, noDataVal, dfCurvCoeff, (int)mode, maxDistance, callback, callback_data, (int)heightMode, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ Dataset ret = (cPtr == IntPtr.Zero) ? null : new Dataset(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static bool IsLineOfSightVisible(Band band, int xA, int yA, double zA, int xB, int yB, double zB, string[] options) {
+ bool ret = GdalPINVOKE.IsLineOfSightVisible(Band.getCPtr(band), xA, yA, zA, xB, yB, zB, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static Dataset AutoCreateWarpedVRT(Dataset src_ds, string src_wkt, string dst_wkt, ResampleAlg eResampleAlg, double maxerror) {
+ IntPtr cPtr = GdalPINVOKE.AutoCreateWarpedVRT(Dataset.getCPtr(src_ds), src_wkt, dst_wkt, (int)eResampleAlg, maxerror);
+ Dataset ret = (cPtr == IntPtr.Zero) ? null : new Dataset(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static Dataset CreatePansharpenedVRT(string pszXML, Band panchroBand, int nInputSpectralBands, SWIGTYPE_p_p_GDALRasterBandShadow ahInputSpectralBands) {
+ IntPtr cPtr = GdalPINVOKE.CreatePansharpenedVRT(pszXML, Band.getCPtr(panchroBand), nInputSpectralBands, SWIGTYPE_p_p_GDALRasterBandShadow.getCPtr(ahInputSpectralBands));
+ Dataset ret = (cPtr == IntPtr.Zero) ? null : new Dataset(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static SuggestedWarpOutputRes SuggestedWarpOutput(Dataset src, Transformer transformer) {
+ IntPtr cPtr = GdalPINVOKE.SuggestedWarpOutput__SWIG_0(Dataset.getCPtr(src), Transformer.getCPtr(transformer));
+ SuggestedWarpOutputRes ret = (cPtr == IntPtr.Zero) ? null : new SuggestedWarpOutputRes(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static SuggestedWarpOutputRes SuggestedWarpOutput(Dataset src, string[] options) {
+ IntPtr cPtr = GdalPINVOKE.SuggestedWarpOutput__SWIG_1(Dataset.getCPtr(src), (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ SuggestedWarpOutputRes ret = (cPtr == IntPtr.Zero) ? null : new SuggestedWarpOutputRes(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static Dataset ApplyVerticalShiftGrid(Dataset src_ds, Dataset grid_ds, bool inverse, double srcUnitToMeter, double dstUnitToMeter, string[] options) {
+ IntPtr cPtr = GdalPINVOKE.ApplyVerticalShiftGrid(Dataset.getCPtr(src_ds), Dataset.getCPtr(grid_ds), inverse, srcUnitToMeter, dstUnitToMeter, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ Dataset ret = (cPtr == IntPtr.Zero) ? null : new Dataset(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static void ApplyGeoTransform(double[] padfGeoTransform, double dfPixel, double dfLine, out double pdfGeoX, out double pdfGeoY) {
+ GdalPINVOKE.ApplyGeoTransform(padfGeoTransform, dfPixel, dfLine, out pdfGeoX, out pdfGeoY);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public static int InvGeoTransform(double[] gt_in, double[] gt_out) {
+ int res = GdalPINVOKE.InvGeoTransform(gt_in, gt_out);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return res;
+}
+
+ public static string VersionInfo(string request) {
+ string ret = GdalPINVOKE.VersionInfo(request);
+ 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 void GDALDestroyDriverManager() {
+ GdalPINVOKE.GDALDestroyDriverManager();
+ 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 int GetCacheUsed() {
+ int ret = GdalPINVOKE.GetCacheUsed();
+ 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 GetDataTypeSize(DataType eDataType) {
+ int ret = GdalPINVOKE.GetDataTypeSize((int)eDataType);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int DataTypeIsComplex(DataType eDataType) {
+ int ret = GdalPINVOKE.DataTypeIsComplex((int)eDataType);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static string GetDataTypeName(DataType eDataType) {
+ string ret = GdalPINVOKE.GetDataTypeName((int)eDataType);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static DataType GetDataTypeByName(string pszDataTypeName) {
+ DataType ret = (DataType)GdalPINVOKE.GetDataTypeByName(pszDataTypeName);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static DataType DataTypeUnion(DataType a, DataType b) {
+ DataType ret = (DataType)GdalPINVOKE.DataTypeUnion((int)a, (int)b);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static string GetColorInterpretationName(ColorInterp eColorInterp) {
+ string ret = GdalPINVOKE.GetColorInterpretationName((int)eColorInterp);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static string GetPaletteInterpretationName(PaletteInterp ePaletteInterp) {
+ string ret = GdalPINVOKE.GetPaletteInterpretationName((int)ePaletteInterp);
+ 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 dfPacked) {
+ double ret = GdalPINVOKE.PackedDMSToDec(dfPacked);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static double DecToPackedDMS(double dfDec) {
+ double ret = GdalPINVOKE.DecToPackedDMS(dfDec);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static XMLNode ParseXMLString(string pszXMLString) {
+ IntPtr cPtr = GdalPINVOKE.ParseXMLString(pszXMLString);
+ XMLNode ret = (cPtr == IntPtr.Zero) ? null : new XMLNode(cPtr, true, ThisOwn_true());
+ 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 string GetJPEG2000StructureAsString(string pszFilename, string[] options) {
+ string ret = GdalPINVOKE.GetJPEG2000StructureAsString(pszFilename, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int HasTriangulation() {
+ int ret = GdalPINVOKE.HasTriangulation();
+ 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, ThisOwn_false());
+ 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, ThisOwn_false());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static Dataset Open(string utf8_path, Access eAccess) {
+ IntPtr cPtr = GdalPINVOKE.Open(Gdal.StringToUtf8Bytes(utf8_path), (int)eAccess);
+ Dataset ret = (cPtr == IntPtr.Zero) ? null : new Dataset(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static Dataset OpenEx(string utf8_path, uint nOpenFlags, string[] allowed_drivers, string[] open_options, string[] sibling_files) {
+ IntPtr cPtr = GdalPINVOKE.OpenEx(Gdal.StringToUtf8Bytes(utf8_path), nOpenFlags, (allowed_drivers != null)? new GdalPINVOKE.StringListMarshal(allowed_drivers)._ar : null, (open_options != null)? new GdalPINVOKE.StringListMarshal(open_options)._ar : null, (sibling_files != null)? new GdalPINVOKE.StringListMarshal(sibling_files)._ar : null);
+ Dataset ret = (cPtr == IntPtr.Zero) ? null : new Dataset(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static Dataset OpenShared(string utf8_path, Access eAccess) {
+ IntPtr cPtr = GdalPINVOKE.OpenShared(Gdal.StringToUtf8Bytes(utf8_path), (int)eAccess);
+ Dataset ret = (cPtr == IntPtr.Zero) ? null : new Dataset(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static Driver IdentifyDriver(string utf8_path, string[] papszSiblings) {
+ IntPtr cPtr = GdalPINVOKE.IdentifyDriver(Gdal.StringToUtf8Bytes(utf8_path), (papszSiblings != null)? new GdalPINVOKE.StringListMarshal(papszSiblings)._ar : null);
+ Driver ret = (cPtr == IntPtr.Zero) ? null : new Driver(cPtr, false, ThisOwn_false());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static Driver IdentifyDriverEx(string utf8_path, uint nIdentifyFlags, string[] allowed_drivers, string[] sibling_files) {
+ IntPtr cPtr = GdalPINVOKE.IdentifyDriverEx(Gdal.StringToUtf8Bytes(utf8_path), nIdentifyFlags, (allowed_drivers != null)? new GdalPINVOKE.StringListMarshal(allowed_drivers)._ar : null, (sibling_files != null)? new GdalPINVOKE.StringListMarshal(sibling_files)._ar : null);
+ Driver ret = (cPtr == IntPtr.Zero) ? null : new Driver(cPtr, false, ThisOwn_false());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static string[] GeneralCmdLineProcessor(string[] papszArgv, int nOptions) {
+ /* %typemap(csout) char**options */
+ IntPtr cPtr = GdalPINVOKE.GeneralCmdLineProcessor((papszArgv != null)? new GdalPINVOKE.StringListMarshal(papszArgv)._ar : null, nOptions);
+ IntPtr objPtr;
+ int count = 0;
+ if (cPtr != IntPtr.Zero) {
+ while (Marshal.ReadIntPtr(cPtr, count*IntPtr.Size) != IntPtr.Zero)
+ ++count;
+ }
+ string[] ret = new string[count];
+ if (count > 0) {
+ for(int cx = 0; cx < count; cx++) {
+ objPtr = System.Runtime.InteropServices.Marshal.ReadIntPtr(cPtr, cx * System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntPtr)));
+ ret[cx]= (objPtr == IntPtr.Zero) ? null : System.Runtime.InteropServices.Marshal.PtrToStringAnsi(objPtr);
+ }
+ }
+
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+}
+
+ internal static void __WriteCArrayItem_GDAL_GCP(IntPtr carray, int index, GCP value) {
+ GdalPINVOKE.__WriteCArrayItem_GDAL_GCP(carray, index, GCP.getCPtr(value));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ internal static GCP __ReadCArrayItem_GDAL_GCP(IntPtr carray, int index) {
+ IntPtr cPtr = GdalPINVOKE.__ReadCArrayItem_GDAL_GCP(carray, index);
+ GCP ret = (cPtr == IntPtr.Zero) ? null : new GCP(cPtr, false, ThisOwn_false());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ internal static IntPtr __AllocCArray_GDAL_GCP(int size) {
+ IntPtr ret = GdalPINVOKE.__AllocCArray_GDAL_GCP(size);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+}
+
+ internal static void __FreeCArray_GDAL_GCP(IntPtr carray) {
+ GdalPINVOKE.__FreeCArray_GDAL_GCP(carray);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public static string GDALInfo(Dataset hDataset, GDALInfoOptions infoOptions) {
+ string ret = GdalPINVOKE.GDALInfo(Dataset.getCPtr(hDataset), GDALInfoOptions.getCPtr(infoOptions));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static string GDALVectorInfo(Dataset hDataset, GDALVectorInfoOptions infoOptions) {
+ string ret = GdalPINVOKE.GDALVectorInfo(Dataset.getCPtr(hDataset), GDALVectorInfoOptions.getCPtr(infoOptions));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static string GDALMultiDimInfo(Dataset hDataset, GDALMultiDimInfoOptions infoOptions) {
+ string ret = GdalPINVOKE.GDALMultiDimInfo(Dataset.getCPtr(hDataset), GDALMultiDimInfoOptions.getCPtr(infoOptions));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static Dataset wrapper_GDALTranslate(string dest, Dataset dataset, GDALTranslateOptions translateOptions, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ IntPtr cPtr = GdalPINVOKE.wrapper_GDALTranslate(Gdal.StringToUtf8Bytes(dest), Dataset.getCPtr(dataset), GDALTranslateOptions.getCPtr(translateOptions), callback, callback_data);
+ Dataset ret = (cPtr == IntPtr.Zero) ? null : new Dataset(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ private static int wrapper_GDALWarpDestDS(Dataset dstDS, int object_list_count, IntPtr poObjects, GDALWarpAppOptions warpAppOptions, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ int ret = GdalPINVOKE.wrapper_GDALWarpDestDS(Dataset.getCPtr(dstDS), object_list_count, poObjects, GDALWarpAppOptions.getCPtr(warpAppOptions), callback, callback_data);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ private static Dataset wrapper_GDALWarpDestName(string dest, int object_list_count, IntPtr poObjects, GDALWarpAppOptions warpAppOptions, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ IntPtr cPtr = GdalPINVOKE.wrapper_GDALWarpDestName(Gdal.StringToUtf8Bytes(dest), object_list_count, poObjects, GDALWarpAppOptions.getCPtr(warpAppOptions), callback, callback_data);
+ Dataset ret = (cPtr == IntPtr.Zero) ? null : new Dataset(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int wrapper_GDALVectorTranslateDestDS(Dataset dstDS, Dataset srcDS, GDALVectorTranslateOptions options, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ int ret = GdalPINVOKE.wrapper_GDALVectorTranslateDestDS(Dataset.getCPtr(dstDS), Dataset.getCPtr(srcDS), GDALVectorTranslateOptions.getCPtr(options), callback, callback_data);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static Dataset wrapper_GDALVectorTranslateDestName(string dest, Dataset srcDS, GDALVectorTranslateOptions options, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ IntPtr cPtr = GdalPINVOKE.wrapper_GDALVectorTranslateDestName(Gdal.StringToUtf8Bytes(dest), Dataset.getCPtr(srcDS), GDALVectorTranslateOptions.getCPtr(options), callback, callback_data);
+ Dataset ret = (cPtr == IntPtr.Zero) ? null : new Dataset(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static Dataset wrapper_GDALDEMProcessing(string dest, Dataset dataset, string pszProcessing, string pszColorFilename, GDALDEMProcessingOptions options, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ IntPtr cPtr = GdalPINVOKE.wrapper_GDALDEMProcessing(Gdal.StringToUtf8Bytes(dest), Dataset.getCPtr(dataset), pszProcessing, pszColorFilename, GDALDEMProcessingOptions.getCPtr(options), callback, callback_data);
+ Dataset ret = (cPtr == IntPtr.Zero) ? null : new Dataset(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int wrapper_GDALNearblackDestDS(Dataset dstDS, Dataset srcDS, GDALNearblackOptions options, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ int ret = GdalPINVOKE.wrapper_GDALNearblackDestDS(Dataset.getCPtr(dstDS), Dataset.getCPtr(srcDS), GDALNearblackOptions.getCPtr(options), callback, callback_data);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static Dataset wrapper_GDALNearblackDestName(string dest, Dataset srcDS, GDALNearblackOptions options, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ IntPtr cPtr = GdalPINVOKE.wrapper_GDALNearblackDestName(Gdal.StringToUtf8Bytes(dest), Dataset.getCPtr(srcDS), GDALNearblackOptions.getCPtr(options), callback, callback_data);
+ Dataset ret = (cPtr == IntPtr.Zero) ? null : new Dataset(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static Dataset wrapper_GDALGrid(string dest, Dataset dataset, GDALGridOptions options, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ IntPtr cPtr = GdalPINVOKE.wrapper_GDALGrid(Gdal.StringToUtf8Bytes(dest), Dataset.getCPtr(dataset), GDALGridOptions.getCPtr(options), callback, callback_data);
+ Dataset ret = (cPtr == IntPtr.Zero) ? null : new Dataset(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int wrapper_GDALRasterizeDestDS(Dataset dstDS, Dataset srcDS, GDALRasterizeOptions options, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ int ret = GdalPINVOKE.wrapper_GDALRasterizeDestDS(Dataset.getCPtr(dstDS), Dataset.getCPtr(srcDS), GDALRasterizeOptions.getCPtr(options), callback, callback_data);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static Dataset wrapper_GDALRasterizeDestName(string dest, Dataset srcDS, GDALRasterizeOptions options, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ IntPtr cPtr = GdalPINVOKE.wrapper_GDALRasterizeDestName(Gdal.StringToUtf8Bytes(dest), Dataset.getCPtr(srcDS), GDALRasterizeOptions.getCPtr(options), callback, callback_data);
+ Dataset ret = (cPtr == IntPtr.Zero) ? null : new Dataset(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int wrapper_GDALFootprintDestDS(Dataset dstDS, Dataset srcDS, GDALFootprintOptions options, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ int ret = GdalPINVOKE.wrapper_GDALFootprintDestDS(Dataset.getCPtr(dstDS), Dataset.getCPtr(srcDS), GDALFootprintOptions.getCPtr(options), callback, callback_data);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static Dataset wrapper_GDALFootprintDestName(string dest, Dataset srcDS, GDALFootprintOptions options, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ IntPtr cPtr = GdalPINVOKE.wrapper_GDALFootprintDestName(Gdal.StringToUtf8Bytes(dest), Dataset.getCPtr(srcDS), GDALFootprintOptions.getCPtr(options), callback, callback_data);
+ Dataset ret = (cPtr == IntPtr.Zero) ? null : new Dataset(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static Dataset wrapper_GDALBuildVRT_objects(string dest, int object_list_count, IntPtr poObjects, GDALBuildVRTOptions options, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ IntPtr cPtr = GdalPINVOKE.wrapper_GDALBuildVRT_objects(Gdal.StringToUtf8Bytes(dest), object_list_count, poObjects, GDALBuildVRTOptions.getCPtr(options), callback, callback_data);
+ Dataset ret = (cPtr == IntPtr.Zero) ? null : new Dataset(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static Dataset wrapper_GDALBuildVRT_names(string dest, string[] source_filenames, GDALBuildVRTOptions options, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ IntPtr cPtr = GdalPINVOKE.wrapper_GDALBuildVRT_names(Gdal.StringToUtf8Bytes(dest), (source_filenames != null)? new GdalPINVOKE.StringListMarshal(source_filenames)._ar : null, GDALBuildVRTOptions.getCPtr(options), callback, callback_data);
+ Dataset ret = (cPtr == IntPtr.Zero) ? null : new Dataset(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static Dataset wrapper_TileIndex_names(string dest, string[] source_filenames, GDALTileIndexOptions options, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ IntPtr cPtr = GdalPINVOKE.wrapper_TileIndex_names(Gdal.StringToUtf8Bytes(dest), (source_filenames != null)? new GdalPINVOKE.StringListMarshal(source_filenames)._ar : null, GDALTileIndexOptions.getCPtr(options), callback, callback_data);
+ Dataset ret = (cPtr == IntPtr.Zero) ? null : new Dataset(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static Dataset wrapper_GDALMultiDimTranslateDestName(string dest, int object_list_count, IntPtr poObjects, GDALMultiDimTranslateOptions multiDimTranslateOptions, Gdal.GDALProgressFuncDelegate callback, string callback_data) {
+ IntPtr cPtr = GdalPINVOKE.wrapper_GDALMultiDimTranslateDestName(Gdal.StringToUtf8Bytes(dest), object_list_count, poObjects, GDALMultiDimTranslateOptions.getCPtr(multiDimTranslateOptions), callback, callback_data);
+ Dataset ret = (cPtr == IntPtr.Zero) ? null : new Dataset(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/GdalPINVOKE.cs b/Geospatial/GDAL-Bindings/GDAL/GdalPINVOKE.cs
new file mode 100644
index 0000000..f0c6292
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/GdalPINVOKE.cs
@@ -0,0 +1,1957 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+class GdalPINVOKE {
+
+ 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);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="SWIGRegisterExceptionCallbacks_Gdal")]
+ public static extern void SWIGRegisterExceptionCallbacks_Gdal(
+ ExceptionDelegate applicationDelegate,
+ ExceptionDelegate arithmeticDelegate,
+ ExceptionDelegate divideByZeroDelegate,
+ ExceptionDelegate indexOutOfRangeDelegate,
+ ExceptionDelegate invalidCastDelegate,
+ ExceptionDelegate invalidOperationDelegate,
+ ExceptionDelegate ioDelegate,
+ ExceptionDelegate nullReferenceDelegate,
+ ExceptionDelegate outOfMemoryDelegate,
+ ExceptionDelegate overflowDelegate,
+ ExceptionDelegate systemExceptionDelegate);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="SWIGRegisterExceptionArgumentCallbacks_Gdal")]
+ public static extern void SWIGRegisterExceptionCallbacksArgument_Gdal(
+ ExceptionArgumentDelegate argumentDelegate,
+ ExceptionArgumentDelegate argumentNullDelegate,
+ ExceptionArgumentDelegate argumentOutOfRangeDelegate);
+
+ static void SetPendingApplicationException(string message) {
+ SWIGPendingException.Set(new global::System.ApplicationException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingArithmeticException(string message) {
+ SWIGPendingException.Set(new global::System.ArithmeticException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingDivideByZeroException(string message) {
+ SWIGPendingException.Set(new global::System.DivideByZeroException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingIndexOutOfRangeException(string message) {
+ SWIGPendingException.Set(new global::System.IndexOutOfRangeException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingInvalidCastException(string message) {
+ SWIGPendingException.Set(new global::System.InvalidCastException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingInvalidOperationException(string message) {
+ SWIGPendingException.Set(new global::System.InvalidOperationException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingIOException(string message) {
+ SWIGPendingException.Set(new global::System.IO.IOException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingNullReferenceException(string message) {
+ SWIGPendingException.Set(new global::System.NullReferenceException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingOutOfMemoryException(string message) {
+ SWIGPendingException.Set(new global::System.OutOfMemoryException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingOverflowException(string message) {
+ SWIGPendingException.Set(new global::System.OverflowException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingSystemException(string message) {
+ SWIGPendingException.Set(new global::System.SystemException(message, SWIGPendingException.Retrieve()));
+ }
+
+ static void SetPendingArgumentException(string message, string paramName) {
+ SWIGPendingException.Set(new global::System.ArgumentException(message, paramName, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingArgumentNullException(string message, string paramName) {
+ global::System.Exception e = SWIGPendingException.Retrieve();
+ if (e != null) message = message + " Inner Exception: " + e.Message;
+ SWIGPendingException.Set(new global::System.ArgumentNullException(paramName, message));
+ }
+ static void SetPendingArgumentOutOfRangeException(string message, string paramName) {
+ global::System.Exception e = SWIGPendingException.Retrieve();
+ if (e != null) message = message + " Inner Exception: " + e.Message;
+ SWIGPendingException.Set(new global::System.ArgumentOutOfRangeException(paramName, message));
+ }
+
+ static SWIGExceptionHelper() {
+ SWIGRegisterExceptionCallbacks_Gdal(
+ applicationDelegate,
+ arithmeticDelegate,
+ divideByZeroDelegate,
+ indexOutOfRangeDelegate,
+ invalidCastDelegate,
+ invalidOperationDelegate,
+ ioDelegate,
+ nullReferenceDelegate,
+ outOfMemoryDelegate,
+ overflowDelegate,
+ systemDelegate);
+
+ SWIGRegisterExceptionCallbacksArgument_Gdal(
+ argumentDelegate,
+ argumentNullDelegate,
+ argumentOutOfRangeDelegate);
+ }
+ }
+
+ protected static SWIGExceptionHelper swigExceptionHelper = new SWIGExceptionHelper();
+
+ public class SWIGPendingException {
+ [global::System.ThreadStatic]
+ private static global::System.Exception pendingException = null;
+ private static int numExceptionsPending = 0;
+ private static global::System.Object exceptionsLock = null;
+
+ public static bool Pending {
+ get {
+ bool pending = false;
+ if (numExceptionsPending > 0)
+ if (pendingException != null)
+ pending = true;
+ return pending;
+ }
+ }
+
+ public static void Set(global::System.Exception e) {
+ if (pendingException != null)
+ throw new global::System.ApplicationException("FATAL: An earlier pending exception from unmanaged code was missed and thus not thrown (" + pendingException.ToString() + ")", e);
+ pendingException = e;
+ lock(exceptionsLock) {
+ numExceptionsPending++;
+ }
+ }
+
+ public static global::System.Exception Retrieve() {
+ global::System.Exception e = null;
+ if (numExceptionsPending > 0) {
+ if (pendingException != null) {
+ e = pendingException;
+ pendingException = null;
+ lock(exceptionsLock) {
+ numExceptionsPending--;
+ }
+ }
+ }
+ return e;
+ }
+
+ static SWIGPendingException() {
+ exceptionsLock = new global::System.Object();
+ }
+ }
+
+
+ protected class SWIGStringHelper {
+
+ public delegate string SWIGStringDelegate(string message);
+ static SWIGStringDelegate stringDelegate = new SWIGStringDelegate(CreateString);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="SWIGRegisterStringCallback_Gdal")]
+ public static extern void SWIGRegisterStringCallback_Gdal(SWIGStringDelegate stringDelegate);
+
+ static string CreateString(string cString) {
+ return cString;
+ }
+
+ static SWIGStringHelper() {
+ SWIGRegisterStringCallback_Gdal(stringDelegate);
+ }
+ }
+
+ static protected SWIGStringHelper swigStringHelper = new SWIGStringHelper();
+
+
+ static GdalPINVOKE() {
+ }
+
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_UseExceptions___")]
+ public static extern void UseExceptions();
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_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);
+ }
+ }
+
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_StringListDestroy___")]
+ public static extern void StringListDestroy(IntPtr jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterIOExtraArg_nVersion_set___")]
+ public static extern void RasterIOExtraArg_nVersion_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterIOExtraArg_nVersion_get___")]
+ public static extern int RasterIOExtraArg_nVersion_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterIOExtraArg_eResampleAlg_set___")]
+ public static extern void RasterIOExtraArg_eResampleAlg_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterIOExtraArg_eResampleAlg_get___")]
+ public static extern int RasterIOExtraArg_eResampleAlg_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterIOExtraArg_pfnProgress_set___")]
+ public static extern void RasterIOExtraArg_pfnProgress_set(global::System.Runtime.InteropServices.HandleRef jarg1, Gdal.GDALProgressFuncDelegate jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterIOExtraArg_pfnProgress_get___")]
+ public static extern Gdal.GDALProgressFuncDelegate RasterIOExtraArg_pfnProgress_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterIOExtraArg_pProgressData_set___")]
+ public static extern void RasterIOExtraArg_pProgressData_set(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterIOExtraArg_pProgressData_get___")]
+ public static extern IntPtr RasterIOExtraArg_pProgressData_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterIOExtraArg_bFloatingPointWindowValidity_set___")]
+ public static extern void RasterIOExtraArg_bFloatingPointWindowValidity_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterIOExtraArg_bFloatingPointWindowValidity_get___")]
+ public static extern int RasterIOExtraArg_bFloatingPointWindowValidity_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterIOExtraArg_dfXOff_set___")]
+ public static extern void RasterIOExtraArg_dfXOff_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterIOExtraArg_dfXOff_get___")]
+ public static extern double RasterIOExtraArg_dfXOff_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterIOExtraArg_dfYOff_set___")]
+ public static extern void RasterIOExtraArg_dfYOff_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterIOExtraArg_dfYOff_get___")]
+ public static extern double RasterIOExtraArg_dfYOff_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterIOExtraArg_dfXSize_set___")]
+ public static extern void RasterIOExtraArg_dfXSize_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterIOExtraArg_dfXSize_get___")]
+ public static extern double RasterIOExtraArg_dfXSize_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterIOExtraArg_dfYSize_set___")]
+ public static extern void RasterIOExtraArg_dfYSize_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterIOExtraArg_dfYSize_get___")]
+ public static extern double RasterIOExtraArg_dfYSize_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_new_RasterIOExtraArg___")]
+ public static extern global::System.IntPtr new_RasterIOExtraArg();
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_delete_RasterIOExtraArg___")]
+ public static extern void delete_RasterIOExtraArg(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Debug___")]
+ public static extern void Debug(string jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_SetErrorHandler___")]
+ public static extern int SetErrorHandler(Gdal.GDALErrorHandlerDelegate jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_SetCurrentErrorHandlerCatchDebug___")]
+ public static extern void SetCurrentErrorHandlerCatchDebug(int jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_PushErrorHandler__SWIG_0___")]
+ public static extern int PushErrorHandler__SWIG_0(string jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Error___")]
+ public static extern void Error(int jarg1, int jarg2, string jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GOA2GetAuthorizationURL___")]
+ public static extern string GOA2GetAuthorizationURL(string jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GOA2GetRefreshToken___")]
+ public static extern string GOA2GetRefreshToken(string jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GOA2GetAccessToken___")]
+ public static extern string GOA2GetAccessToken(string jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_PushErrorHandler__SWIG_1___")]
+ public static extern void PushErrorHandler__SWIG_1(Gdal.GDALErrorHandlerDelegate jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_PopErrorHandler___")]
+ public static extern void PopErrorHandler();
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ErrorReset___")]
+ public static extern void ErrorReset();
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_EscapeString___")]
+ public static extern string EscapeString(int jarg1, string jarg2, int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GetLastErrorNo___")]
+ public static extern int GetLastErrorNo();
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GetLastErrorType___")]
+ public static extern int GetLastErrorType();
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GetLastErrorMsg___")]
+ public static extern string GetLastErrorMsg();
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GetErrorCounter___")]
+ public static extern uint GetErrorCounter();
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_VSIGetLastErrorNo___")]
+ public static extern int VSIGetLastErrorNo();
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_VSIGetLastErrorMsg___")]
+ public static extern string VSIGetLastErrorMsg();
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_VSIErrorReset___")]
+ public static extern void VSIErrorReset();
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_PushFinderLocation___")]
+ public static extern void PushFinderLocation(byte[] jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_PopFinderLocation___")]
+ public static extern void PopFinderLocation();
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_FinderClean___")]
+ public static extern void FinderClean();
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_FindFile___")]
+ public static extern string FindFile(string jarg1, byte[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ReadDir___")]
+ public static extern IntPtr ReadDir(byte[] jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ReadDirRecursive___")]
+ public static extern IntPtr ReadDirRecursive(byte[] jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_SetConfigOption___")]
+ public static extern void SetConfigOption(string jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_SetThreadLocalConfigOption___")]
+ public static extern void SetThreadLocalConfigOption(string jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GetConfigOption___")]
+ public static extern string GetConfigOption(string jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GetGlobalConfigOption___")]
+ public static extern string GetGlobalConfigOption(string jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GetThreadLocalConfigOption___")]
+ public static extern string GetThreadLocalConfigOption(string jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GetConfigOptions___")]
+ public static extern global::System.IntPtr GetConfigOptions();
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_SetPathSpecificOption___")]
+ public static extern void SetPathSpecificOption(string jarg1, string jarg2, string jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_SetCredential___")]
+ public static extern void SetCredential(string jarg1, string jarg2, string jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GetCredential___")]
+ public static extern string GetCredential(string jarg1, string jarg2, string jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GetPathSpecificOption___")]
+ public static extern string GetPathSpecificOption(string jarg1, string jarg2, string jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ClearCredentials___")]
+ public static extern void ClearCredentials(string jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ClearPathSpecificOptions___")]
+ public static extern void ClearPathSpecificOptions(string jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_CPLBinaryToHex___")]
+ public static extern string CPLBinaryToHex(int jarg1, IntPtr jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_CPLHexToBinary___")]
+ public static extern IntPtr CPLHexToBinary(string jarg1, out int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_FileFromMemBuffer___")]
+ public static extern int FileFromMemBuffer(byte[] jarg1, int jarg2, IntPtr jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Unlink___")]
+ public static extern int Unlink(byte[] jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_UnlinkBatch___")]
+ public static extern bool UnlinkBatch(IntPtr[] jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_HasThreadSupport___")]
+ public static extern int HasThreadSupport();
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Mkdir___")]
+ public static extern int Mkdir(byte[] jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Rmdir___")]
+ public static extern int Rmdir(byte[] jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MkdirRecursive___")]
+ public static extern int MkdirRecursive(byte[] jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RmdirRecursive___")]
+ public static extern int RmdirRecursive(byte[] jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Rename___")]
+ public static extern int Rename(byte[] jarg1, byte[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_CopyFile___")]
+ public static extern int CopyFile(byte[] jarg1, byte[] jarg2, IntPtr jarg3, long jarg4, IntPtr[] jarg5, Gdal.GDALProgressFuncDelegate jarg6, string jarg7);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GetActualURL___")]
+ public static extern string GetActualURL(byte[] jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GetSignedURL___")]
+ public static extern string GetSignedURL(byte[] jarg1, IntPtr[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GetFileSystemsPrefixes___")]
+ public static extern IntPtr GetFileSystemsPrefixes();
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GetFileSystemOptions___")]
+ public static extern string GetFileSystemOptions(byte[] jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GetFileMetadata___")]
+ public static extern global::System.IntPtr GetFileMetadata(byte[] jarg1, string jarg2, IntPtr[] jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_SetFileMetadata___")]
+ public static extern bool SetFileMetadata(byte[] jarg1, IntPtr[] jarg2, string jarg3, IntPtr[] jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_VSIFOpenL___")]
+ public static extern IntPtr VSIFOpenL(byte[] jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_VSIFOpenExL___")]
+ public static extern IntPtr VSIFOpenExL(byte[] jarg1, string jarg2, int jarg3, IntPtr[] jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_VSIFEofL___")]
+ public static extern int VSIFEofL(IntPtr jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_VSIFFlushL___")]
+ public static extern int VSIFFlushL(IntPtr jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_VSIFCloseL___")]
+ public static extern int VSIFCloseL(IntPtr jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_VSIFSeekL___")]
+ public static extern int VSIFSeekL(IntPtr jarg1, int jarg2, int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_VSIFTellL___")]
+ public static extern int VSIFTellL(IntPtr jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_VSIFTruncateL___")]
+ public static extern int VSIFTruncateL(IntPtr jarg1, int jarg2);
+
+ // This binding is wrong
+ //[global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_VSIFWriteL___")]
+ //public static extern int VSIFWriteL(string jarg1, int jarg2, int jarg3, IntPtr jarg4);
+
+ // Kennedy edit: replacing incorrect binding.
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint = "CSharp_OSGeofGDAL_VSIFWriteL___")]
+ public static extern int VSIFWriteL(IntPtr jarg1, int jarg2, int jarg3, IntPtr jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_VSICurlClearCache___")]
+ public static extern void VSICurlClearCache();
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_VSICurlPartialClearCache___")]
+ public static extern void VSICurlPartialClearCache(byte[] jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_NetworkStatsReset___")]
+ public static extern void NetworkStatsReset();
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_NetworkStatsGetAsSerializedJSON___")]
+ public static extern string NetworkStatsGetAsSerializedJSON(IntPtr[] jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ParseCommandLine___")]
+ public static extern IntPtr ParseCommandLine(byte[] jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GetNumCPUs___")]
+ public static extern int GetNumCPUs();
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GetUsablePhysicalRAM___")]
+ public static extern long GetUsablePhysicalRAM();
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_XMLNode_Type_get___")]
+ public static extern int XMLNode_Type_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_XMLNode_Value_get___")]
+ public static extern string XMLNode_Value_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_XMLNode_Next_get___")]
+ public static extern global::System.IntPtr XMLNode_Next_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_XMLNode_Child_get___")]
+ public static extern global::System.IntPtr XMLNode_Child_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_new_XMLNode__SWIG_0___")]
+ public static extern global::System.IntPtr new_XMLNode__SWIG_0(string jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_new_XMLNode__SWIG_1___")]
+ public static extern global::System.IntPtr new_XMLNode__SWIG_1(int jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_delete_XMLNode___")]
+ public static extern void delete_XMLNode(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_XMLNode_SerializeXMLTree___")]
+ public static extern string XMLNode_SerializeXMLTree(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_XMLNode_toString___")]
+ public static extern string XMLNode_toString(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_XMLNode_SearchXMLNode___")]
+ public static extern global::System.IntPtr XMLNode_SearchXMLNode(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_XMLNode_GetXMLNode___")]
+ public static extern global::System.IntPtr XMLNode_GetXMLNode(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_XMLNode_GetXMLValue___")]
+ public static extern string XMLNode_GetXMLValue(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_XMLNode_AddXMLChild___")]
+ public static extern void XMLNode_AddXMLChild(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_XMLNode_RemoveXMLChild___")]
+ public static extern int XMLNode_RemoveXMLChild(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_XMLNode_AddXMLSibling___")]
+ public static extern void XMLNode_AddXMLSibling(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_XMLNode_CreateXMLElementAndValue___")]
+ public static extern global::System.IntPtr XMLNode_CreateXMLElementAndValue(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_XMLNode_CloneXMLTree___")]
+ public static extern global::System.IntPtr XMLNode_CloneXMLTree(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_XMLNode_Clone___")]
+ public static extern global::System.IntPtr XMLNode_Clone(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_XMLNode_SetXMLValue___")]
+ public static extern int XMLNode_SetXMLValue(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_XMLNode_StripXMLNamespace___")]
+ public static extern void XMLNode_StripXMLNamespace(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MajorObject_GetDescription___")]
+ public static extern string MajorObject_GetDescription(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MajorObject_SetDescription___")]
+ public static extern void MajorObject_SetDescription(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MajorObject_GetMetadataDomainList___")]
+ public static extern IntPtr MajorObject_GetMetadataDomainList(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MajorObject_GetMetadata___")]
+ public static extern IntPtr MajorObject_GetMetadata(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MajorObject_SetMetadata__SWIG_0___")]
+ public static extern int MajorObject_SetMetadata__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr[] jarg2, string jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MajorObject_SetMetadata__SWIG_1___")]
+ public static extern int MajorObject_SetMetadata__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MajorObject_GetMetadataItem___")]
+ public static extern string MajorObject_GetMetadataItem(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MajorObject_SetMetadataItem___")]
+ public static extern int MajorObject_SetMetadataItem(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3, string jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Driver_ShortName_get___")]
+ public static extern string Driver_ShortName_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Driver_LongName_get___")]
+ public static extern string Driver_LongName_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Driver_HelpTopic_get___")]
+ public static extern string Driver_HelpTopic_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Driver_Create___")]
+ public static extern global::System.IntPtr Driver_Create(global::System.Runtime.InteropServices.HandleRef jarg1, byte[] jarg2, int jarg3, int jarg4, int jarg5, int jarg6, IntPtr[] jarg7);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Driver_CreateMultiDimensional___")]
+ public static extern global::System.IntPtr Driver_CreateMultiDimensional(global::System.Runtime.InteropServices.HandleRef jarg1, byte[] jarg2, IntPtr[] jarg3, IntPtr[] jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Driver_CreateCopy___")]
+ public static extern global::System.IntPtr Driver_CreateCopy(global::System.Runtime.InteropServices.HandleRef jarg1, byte[] jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, int jarg4, IntPtr[] jarg5, Gdal.GDALProgressFuncDelegate jarg6, string jarg7);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Driver_Delete___")]
+ public static extern int Driver_Delete(global::System.Runtime.InteropServices.HandleRef jarg1, byte[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Driver_Rename___")]
+ public static extern int Driver_Rename(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Driver_CopyFiles___")]
+ public static extern int Driver_CopyFiles(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Driver_Register___")]
+ public static extern int Driver_Register(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Driver_Deregister___")]
+ public static extern void Driver_Deregister(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ColorEntry_c1_set___")]
+ public static extern void ColorEntry_c1_set(global::System.Runtime.InteropServices.HandleRef jarg1, short jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ColorEntry_c1_get___")]
+ public static extern short ColorEntry_c1_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ColorEntry_c2_set___")]
+ public static extern void ColorEntry_c2_set(global::System.Runtime.InteropServices.HandleRef jarg1, short jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ColorEntry_c2_get___")]
+ public static extern short ColorEntry_c2_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ColorEntry_c3_set___")]
+ public static extern void ColorEntry_c3_set(global::System.Runtime.InteropServices.HandleRef jarg1, short jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ColorEntry_c3_get___")]
+ public static extern short ColorEntry_c3_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ColorEntry_c4_set___")]
+ public static extern void ColorEntry_c4_set(global::System.Runtime.InteropServices.HandleRef jarg1, short jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ColorEntry_c4_get___")]
+ public static extern short ColorEntry_c4_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_new_ColorEntry___")]
+ public static extern global::System.IntPtr new_ColorEntry();
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_delete_ColorEntry___")]
+ public static extern void delete_ColorEntry(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GCP_GCPX_set___")]
+ public static extern void GCP_GCPX_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GCP_GCPX_get___")]
+ public static extern double GCP_GCPX_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GCP_GCPY_set___")]
+ public static extern void GCP_GCPY_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GCP_GCPY_get___")]
+ public static extern double GCP_GCPY_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GCP_GCPZ_set___")]
+ public static extern void GCP_GCPZ_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GCP_GCPZ_get___")]
+ public static extern double GCP_GCPZ_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GCP_GCPPixel_set___")]
+ public static extern void GCP_GCPPixel_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GCP_GCPPixel_get___")]
+ public static extern double GCP_GCPPixel_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GCP_GCPLine_set___")]
+ public static extern void GCP_GCPLine_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GCP_GCPLine_get___")]
+ public static extern double GCP_GCPLine_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GCP_Info_set___")]
+ public static extern void GCP_Info_set(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GCP_Info_get___")]
+ public static extern string GCP_Info_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GCP_Id_set___")]
+ public static extern void GCP_Id_set(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GCP_Id_get___")]
+ public static extern string GCP_Id_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_new_GCP___")]
+ public static extern global::System.IntPtr new_GCP(double jarg1, double jarg2, double jarg3, double jarg4, double jarg5, string jarg6, string jarg7);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_delete_GCP___")]
+ public static extern void delete_GCP(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_GCP_GCPX_get___")]
+ public static extern double GDAL_GCP_GCPX_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_GCP_GCPX_set___")]
+ public static extern void GDAL_GCP_GCPX_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_GCP_GCPY_get___")]
+ public static extern double GDAL_GCP_GCPY_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_GCP_GCPY_set___")]
+ public static extern void GDAL_GCP_GCPY_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_GCP_GCPZ_get___")]
+ public static extern double GDAL_GCP_GCPZ_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_GCP_GCPZ_set___")]
+ public static extern void GDAL_GCP_GCPZ_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_GCP_GCPPixel_get___")]
+ public static extern double GDAL_GCP_GCPPixel_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_GCP_GCPPixel_set___")]
+ public static extern void GDAL_GCP_GCPPixel_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_GCP_GCPLine_get___")]
+ public static extern double GDAL_GCP_GCPLine_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_GCP_GCPLine_set___")]
+ public static extern void GDAL_GCP_GCPLine_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_GCP_Info_get___")]
+ public static extern string GDAL_GCP_Info_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_GCP_Info_set___")]
+ public static extern void GDAL_GCP_Info_set(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_GCP_Id_get___")]
+ public static extern string GDAL_GCP_Id_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_GCP_Id_set___")]
+ public static extern void GDAL_GCP_Id_set(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_GCP_get_GCPX___")]
+ public static extern double GDAL_GCP_get_GCPX(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_GCP_set_GCPX___")]
+ public static extern void GDAL_GCP_set_GCPX(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_GCP_get_GCPY___")]
+ public static extern double GDAL_GCP_get_GCPY(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_GCP_set_GCPY___")]
+ public static extern void GDAL_GCP_set_GCPY(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_GCP_get_GCPZ___")]
+ public static extern double GDAL_GCP_get_GCPZ(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_GCP_set_GCPZ___")]
+ public static extern void GDAL_GCP_set_GCPZ(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_GCP_get_GCPPixel___")]
+ public static extern double GDAL_GCP_get_GCPPixel(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_GCP_set_GCPPixel___")]
+ public static extern void GDAL_GCP_set_GCPPixel(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_GCP_get_GCPLine___")]
+ public static extern double GDAL_GCP_get_GCPLine(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_GCP_set_GCPLine___")]
+ public static extern void GDAL_GCP_set_GCPLine(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_GCP_get_Info___")]
+ public static extern string GDAL_GCP_get_Info(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_GCP_set_Info___")]
+ public static extern void GDAL_GCP_set_Info(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_GCP_get_Id___")]
+ public static extern string GDAL_GCP_get_Id(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GDAL_GCP_set_Id___")]
+ public static extern void GDAL_GCP_set_Id(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GCPsToGeoTransform___")]
+ public static extern int GCPsToGeoTransform(int jarg1, IntPtr jarg2, double[] jarg3, int jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_delete_AsyncReader___")]
+ public static extern void delete_AsyncReader(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_AsyncReader_GetNextUpdatedRegion___")]
+ public static extern int AsyncReader_GetNextUpdatedRegion(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, out int jarg3, out int jarg4, out int jarg5, out int jarg6);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_AsyncReader_LockBuffer___")]
+ public static extern int AsyncReader_LockBuffer(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_AsyncReader_UnlockBuffer___")]
+ public static extern void AsyncReader_UnlockBuffer(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_RasterXSize_get___")]
+ public static extern int Dataset_RasterXSize_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_RasterYSize_get___")]
+ public static extern int Dataset_RasterYSize_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_RasterCount_get___")]
+ public static extern int Dataset_RasterCount_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_delete_Dataset___")]
+ public static extern void delete_Dataset(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_Close___")]
+ public static extern int Dataset_Close(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_GetDriver___")]
+ public static extern global::System.IntPtr Dataset_GetDriver(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_GetRasterBand___")]
+ public static extern global::System.IntPtr Dataset_GetRasterBand(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_GetRootGroup___")]
+ public static extern global::System.IntPtr Dataset_GetRootGroup(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_GetProjection___")]
+ public static extern string Dataset_GetProjection(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_GetProjectionRef___")]
+ public static extern string Dataset_GetProjectionRef(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_GetSpatialRef___")]
+ public static extern global::System.IntPtr Dataset_GetSpatialRef(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_SetProjection___")]
+ public static extern int Dataset_SetProjection(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_SetSpatialRef___")]
+ public static extern int Dataset_SetSpatialRef(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_GetGeoTransform___")]
+ public static extern void Dataset_GetGeoTransform(global::System.Runtime.InteropServices.HandleRef jarg1, double[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_SetGeoTransform___")]
+ public static extern int Dataset_SetGeoTransform(global::System.Runtime.InteropServices.HandleRef jarg1, double[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_BuildOverviews___")]
+ public static extern int Dataset_BuildOverviews(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, int jarg3, IntPtr jarg4, Gdal.GDALProgressFuncDelegate jarg5, string jarg6, IntPtr[] jarg7);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_GetGCPCount___")]
+ public static extern int Dataset_GetGCPCount(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_GetGCPProjection___")]
+ public static extern string Dataset_GetGCPProjection(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_FlushCache___")]
+ public static extern int Dataset_FlushCache(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_AddBand___")]
+ public static extern int Dataset_AddBand(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, IntPtr[] jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_CreateMaskBand___")]
+ public static extern int Dataset_CreateMaskBand(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_GetFileList___")]
+ public static extern IntPtr Dataset_GetFileList(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_AdviseRead___")]
+ public static extern int Dataset_AdviseRead(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, int jarg4, int jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, global::System.Runtime.InteropServices.HandleRef jarg7, IntPtr jarg8, int jarg9, global::System.Runtime.InteropServices.HandleRef jarg10, IntPtr[] jarg11);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_GetLayer___")]
+ public static extern global::System.IntPtr Dataset_GetLayer(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_GetLayerByName___")]
+ public static extern global::System.IntPtr Dataset_GetLayerByName(global::System.Runtime.InteropServices.HandleRef jarg1, byte[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_ResetReading___")]
+ public static extern void Dataset_ResetReading(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_GetLayerCount___")]
+ public static extern int Dataset_GetLayerCount(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_GetNextFeature___")]
+ public static extern global::System.IntPtr Dataset_GetNextFeature(global::System.Runtime.InteropServices.HandleRef jarg1, ref IntPtr jarg2, ref double jarg3, Gdal.GDALProgressFuncDelegate jarg4, string jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_AbortSQL___")]
+ public static extern int Dataset_AbortSQL(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_StartTransaction___")]
+ public static extern int Dataset_StartTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_CommitTransaction___")]
+ public static extern int Dataset_CommitTransaction(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_RollbackTransaction___")]
+ public static extern int Dataset_RollbackTransaction(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_ClearStatistics___")]
+ public static extern void Dataset_ClearStatistics(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_GetFieldDomainNames___")]
+ public static extern IntPtr Dataset_GetFieldDomainNames(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_GetFieldDomain___")]
+ public static extern global::System.IntPtr Dataset_GetFieldDomain(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_AddFieldDomain___")]
+ public static extern bool Dataset_AddFieldDomain(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_DeleteFieldDomain___")]
+ public static extern bool Dataset_DeleteFieldDomain(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_UpdateFieldDomain___")]
+ public static extern bool Dataset_UpdateFieldDomain(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_GetRelationshipNames___")]
+ public static extern IntPtr Dataset_GetRelationshipNames(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_GetRelationship___")]
+ public static extern global::System.IntPtr Dataset_GetRelationship(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_AddRelationship___")]
+ public static extern bool Dataset_AddRelationship(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_DeleteRelationship___")]
+ public static extern bool Dataset_DeleteRelationship(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_UpdateRelationship___")]
+ public static extern bool Dataset_UpdateRelationship(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_ReadRaster__SWIG_0___")]
+ public static extern int Dataset_ReadRaster__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, int jarg4, int jarg5, IntPtr jarg6, int jarg7, int jarg8, int jarg9, int jarg10, int[] jarg11, int jarg12, int jarg13, int jarg14);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_WriteRaster__SWIG_0___")]
+ public static extern int Dataset_WriteRaster__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, int jarg4, int jarg5, IntPtr jarg6, int jarg7, int jarg8, int jarg9, int jarg10, int[] jarg11, int jarg12, int jarg13, int jarg14);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_ReadRaster__SWIG_1___")]
+ public static extern int Dataset_ReadRaster__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, int jarg4, int jarg5, IntPtr jarg6, int jarg7, int jarg8, int jarg9, int jarg10, int[] jarg11, int jarg12, int jarg13, int jarg14, global::System.Runtime.InteropServices.HandleRef jarg15);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_WriteRaster__SWIG_1___")]
+ public static extern int Dataset_WriteRaster__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, int jarg4, int jarg5, IntPtr jarg6, int jarg7, int jarg8, int jarg9, int jarg10, int[] jarg11, int jarg12, int jarg13, int jarg14, global::System.Runtime.InteropServices.HandleRef jarg15);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset___GetGCPs___")]
+ public static extern IntPtr Dataset___GetGCPs(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset___SetGCPs___")]
+ public static extern int Dataset___SetGCPs(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, IntPtr jarg3, string jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset___WriteCArrayItem_GDAL_GCP___")]
+ public static extern void Dataset___WriteCArrayItem_GDAL_GCP(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2, int jarg3, global::System.Runtime.InteropServices.HandleRef jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset___ReadCArrayItem_GDAL_GCP___")]
+ public static extern global::System.IntPtr Dataset___ReadCArrayItem_GDAL_GCP(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2, int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset___AllocCArray_GDAL_GCP___")]
+ public static extern IntPtr Dataset___AllocCArray_GDAL_GCP(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset___FreeCArray_GDAL_GCP___")]
+ public static extern void Dataset___FreeCArray_GDAL_GCP(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_new_RasterAttributeTable___")]
+ public static extern global::System.IntPtr new_RasterAttributeTable();
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_delete_RasterAttributeTable___")]
+ public static extern void delete_RasterAttributeTable(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterAttributeTable_Clone___")]
+ public static extern global::System.IntPtr RasterAttributeTable_Clone(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterAttributeTable_GetColumnCount___")]
+ public static extern int RasterAttributeTable_GetColumnCount(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterAttributeTable_GetNameOfCol___")]
+ public static extern string RasterAttributeTable_GetNameOfCol(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterAttributeTable_GetUsageOfCol___")]
+ public static extern int RasterAttributeTable_GetUsageOfCol(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterAttributeTable_GetTypeOfCol___")]
+ public static extern int RasterAttributeTable_GetTypeOfCol(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterAttributeTable_GetColOfUsage___")]
+ public static extern int RasterAttributeTable_GetColOfUsage(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterAttributeTable_GetRowCount___")]
+ public static extern int RasterAttributeTable_GetRowCount(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterAttributeTable_GetValueAsString___")]
+ public static extern string RasterAttributeTable_GetValueAsString(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterAttributeTable_GetValueAsInt___")]
+ public static extern int RasterAttributeTable_GetValueAsInt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterAttributeTable_GetValueAsDouble___")]
+ public static extern double RasterAttributeTable_GetValueAsDouble(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterAttributeTable_SetValueAsString___")]
+ public static extern void RasterAttributeTable_SetValueAsString(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, string jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterAttributeTable_SetValueAsInt___")]
+ public static extern void RasterAttributeTable_SetValueAsInt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, int jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterAttributeTable_SetValueAsDouble___")]
+ public static extern void RasterAttributeTable_SetValueAsDouble(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, double jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterAttributeTable_SetRowCount___")]
+ public static extern void RasterAttributeTable_SetRowCount(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterAttributeTable_CreateColumn___")]
+ public static extern int RasterAttributeTable_CreateColumn(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, int jarg3, int jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterAttributeTable_GetLinearBinning___")]
+ public static extern bool RasterAttributeTable_GetLinearBinning(global::System.Runtime.InteropServices.HandleRef jarg1, out double jarg2, out double jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterAttributeTable_SetLinearBinning___")]
+ public static extern int RasterAttributeTable_SetLinearBinning(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterAttributeTable_GetRowOfValue___")]
+ public static extern int RasterAttributeTable_GetRowOfValue(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterAttributeTable_ChangesAreWrittenToFile___")]
+ public static extern int RasterAttributeTable_ChangesAreWrittenToFile(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterAttributeTable_DumpReadable___")]
+ public static extern void RasterAttributeTable_DumpReadable(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterAttributeTable_SetTableType___")]
+ public static extern void RasterAttributeTable_SetTableType(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterAttributeTable_GetTableType___")]
+ public static extern int RasterAttributeTable_GetTableType(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterAttributeTable_RemoveStatistics___")]
+ public static extern void RasterAttributeTable_RemoveStatistics(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_delete_Group___")]
+ public static extern void delete_Group(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Group_GetName___")]
+ public static extern string Group_GetName(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Group_GetFullName___")]
+ public static extern string Group_GetFullName(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Group_GetMDArrayNames___")]
+ public static extern IntPtr Group_GetMDArrayNames(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Group_OpenMDArray___")]
+ public static extern global::System.IntPtr Group_OpenMDArray(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, IntPtr[] jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Group_OpenMDArrayFromFullname___")]
+ public static extern global::System.IntPtr Group_OpenMDArrayFromFullname(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, IntPtr[] jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Group_ResolveMDArray___")]
+ public static extern global::System.IntPtr Group_ResolveMDArray(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3, IntPtr[] jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Group_GetGroupNames___")]
+ public static extern IntPtr Group_GetGroupNames(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Group_OpenGroup___")]
+ public static extern global::System.IntPtr Group_OpenGroup(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, IntPtr[] jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Group_OpenGroupFromFullname___")]
+ public static extern global::System.IntPtr Group_OpenGroupFromFullname(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, IntPtr[] jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Group_GetVectorLayerNames___")]
+ public static extern IntPtr Group_GetVectorLayerNames(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Group_OpenVectorLayer___")]
+ public static extern global::System.IntPtr Group_OpenVectorLayer(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, IntPtr[] jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Group_GetAttribute___")]
+ public static extern global::System.IntPtr Group_GetAttribute(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Group_GetStructuralInfo___")]
+ public static extern IntPtr Group_GetStructuralInfo(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Group_CreateGroup___")]
+ public static extern global::System.IntPtr Group_CreateGroup(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, IntPtr[] jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Group_DeleteGroup___")]
+ public static extern int Group_DeleteGroup(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, IntPtr[] jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Group_CreateDimension___")]
+ public static extern global::System.IntPtr Group_CreateDimension(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3, string jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, IntPtr[] jarg6);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Group_DeleteMDArray___")]
+ public static extern int Group_DeleteMDArray(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, IntPtr[] jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Group_CreateAttribute___")]
+ public static extern global::System.IntPtr Group_CreateAttribute(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, int jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, IntPtr[] jarg6);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Group_DeleteAttribute___")]
+ public static extern int Group_DeleteAttribute(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, IntPtr[] jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Group_Rename___")]
+ public static extern int Group_Rename(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Group_SubsetDimensionFromSelection___")]
+ public static extern global::System.IntPtr Group_SubsetDimensionFromSelection(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, IntPtr[] jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_delete_MDArray___")]
+ public static extern void delete_MDArray(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MDArray_GetName___")]
+ public static extern string MDArray_GetName(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MDArray_GetFullName___")]
+ public static extern string MDArray_GetFullName(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MDArray_GetTotalElementsCount___")]
+ public static extern global::System.IntPtr MDArray_GetTotalElementsCount(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MDArray_GetDimensionCount___")]
+ public static extern uint MDArray_GetDimensionCount(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MDArray_GetDataType___")]
+ public static extern global::System.IntPtr MDArray_GetDataType(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MDArray_GetStructuralInfo___")]
+ public static extern IntPtr MDArray_GetStructuralInfo(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MDArray_Resize___")]
+ public static extern int MDArray_Resize(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, IntPtr[] jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MDArray_GetAttribute___")]
+ public static extern global::System.IntPtr MDArray_GetAttribute(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MDArray_CreateAttribute___")]
+ public static extern global::System.IntPtr MDArray_CreateAttribute(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, int jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, IntPtr[] jarg6);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MDArray_DeleteAttribute___")]
+ public static extern int MDArray_DeleteAttribute(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, IntPtr[] jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MDArray_GetNoDataValueAsDouble___")]
+ public static extern void MDArray_GetNoDataValueAsDouble(global::System.Runtime.InteropServices.HandleRef jarg1, out double jarg2, out int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MDArray_GetNoDataValueAsString___")]
+ public static extern string MDArray_GetNoDataValueAsString(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MDArray_SetNoDataValueDouble___")]
+ public static extern int MDArray_SetNoDataValueDouble(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MDArray_SetNoDataValueString___")]
+ public static extern int MDArray_SetNoDataValueString(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MDArray_DeleteNoDataValue___")]
+ public static extern int MDArray_DeleteNoDataValue(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MDArray_GetOffset___")]
+ public static extern void MDArray_GetOffset(global::System.Runtime.InteropServices.HandleRef jarg1, out double jarg2, out int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MDArray_GetOffsetStorageType___")]
+ public static extern int MDArray_GetOffsetStorageType(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MDArray_GetScale___")]
+ public static extern void MDArray_GetScale(global::System.Runtime.InteropServices.HandleRef jarg1, out double jarg2, out int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MDArray_GetScaleStorageType___")]
+ public static extern int MDArray_GetScaleStorageType(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MDArray_SetOffset___")]
+ public static extern int MDArray_SetOffset(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MDArray_SetScale___")]
+ public static extern int MDArray_SetScale(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MDArray_SetUnit___")]
+ public static extern int MDArray_SetUnit(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MDArray_GetUnit___")]
+ public static extern string MDArray_GetUnit(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MDArray_GetView___")]
+ public static extern global::System.IntPtr MDArray_GetView(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MDArray_Transpose___")]
+ public static extern global::System.IntPtr MDArray_Transpose(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MDArray_GetUnscaled___")]
+ public static extern global::System.IntPtr MDArray_GetUnscaled(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MDArray_GetMask___")]
+ public static extern global::System.IntPtr MDArray_GetMask(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MDArray_GetGridded___")]
+ public static extern global::System.IntPtr MDArray_GetGridded(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, IntPtr[] jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MDArray_AsClassicDataset___")]
+ public static extern global::System.IntPtr MDArray_AsClassicDataset(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, uint jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, IntPtr[] jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MDArray_Cache___")]
+ public static extern bool MDArray_Cache(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_MDArray_Rename___")]
+ public static extern int MDArray_Rename(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_delete_Attribute___")]
+ public static extern void delete_Attribute(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Attribute_GetName___")]
+ public static extern string Attribute_GetName(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Attribute_GetFullName___")]
+ public static extern string Attribute_GetFullName(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Attribute_GetTotalElementsCount___")]
+ public static extern global::System.IntPtr Attribute_GetTotalElementsCount(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Attribute_GetDimensionCount___")]
+ public static extern uint Attribute_GetDimensionCount(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Attribute_GetDataType___")]
+ public static extern global::System.IntPtr Attribute_GetDataType(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Attribute_ReadAsString___")]
+ public static extern string Attribute_ReadAsString(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Attribute_ReadAsInt___")]
+ public static extern int Attribute_ReadAsInt(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Attribute_ReadAsDouble___")]
+ public static extern double Attribute_ReadAsDouble(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Attribute_ReadAsStringArray___")]
+ public static extern IntPtr Attribute_ReadAsStringArray(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Attribute_WriteString___")]
+ public static extern int Attribute_WriteString(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Attribute_WriteStringArray___")]
+ public static extern int Attribute_WriteStringArray(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Attribute_WriteInt___")]
+ public static extern int Attribute_WriteInt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Attribute_WriteDouble___")]
+ public static extern int Attribute_WriteDouble(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Attribute_Rename___")]
+ public static extern int Attribute_Rename(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_delete_Dimension___")]
+ public static extern void delete_Dimension(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dimension_GetName___")]
+ public static extern string Dimension_GetName(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dimension_GetFullName___")]
+ public static extern string Dimension_GetFullName(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dimension_GetType____")]
+ public static extern string Dimension_GetType_(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dimension_GetDirection___")]
+ public static extern string Dimension_GetDirection(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dimension_GetSize___")]
+ public static extern global::System.IntPtr Dimension_GetSize(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dimension_GetIndexingVariable___")]
+ public static extern global::System.IntPtr Dimension_GetIndexingVariable(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dimension_SetIndexingVariable___")]
+ public static extern bool Dimension_SetIndexingVariable(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dimension_Rename___")]
+ public static extern int Dimension_Rename(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_delete_ExtendedDataType___")]
+ public static extern void delete_ExtendedDataType(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ExtendedDataType_Create___")]
+ public static extern global::System.IntPtr ExtendedDataType_Create(int jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ExtendedDataType_CreateString___")]
+ public static extern global::System.IntPtr ExtendedDataType_CreateString(uint jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ExtendedDataType_GetName___")]
+ public static extern string ExtendedDataType_GetName(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ExtendedDataType_GetClass___")]
+ public static extern int ExtendedDataType_GetClass(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ExtendedDataType_GetNumericDataType___")]
+ public static extern int ExtendedDataType_GetNumericDataType(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ExtendedDataType_GetSize___")]
+ public static extern uint ExtendedDataType_GetSize(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ExtendedDataType_GetMaxStringLength___")]
+ public static extern uint ExtendedDataType_GetMaxStringLength(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ExtendedDataType_GetSubType___")]
+ public static extern int ExtendedDataType_GetSubType(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ExtendedDataType_CanConvertTo___")]
+ public static extern bool ExtendedDataType_CanConvertTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ExtendedDataType_Equals___")]
+ public static extern bool ExtendedDataType_Equals(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_delete_EDTComponent___")]
+ public static extern void delete_EDTComponent(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_EDTComponent_Create___")]
+ public static extern global::System.IntPtr EDTComponent_Create(string jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_EDTComponent_GetName___")]
+ public static extern string EDTComponent_GetName(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_EDTComponent_GetOffset___")]
+ public static extern uint EDTComponent_GetOffset(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_EDTComponent_GetType____")]
+ public static extern global::System.IntPtr EDTComponent_GetType_(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_XSize_get___")]
+ public static extern int Band_XSize_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_YSize_get___")]
+ public static extern int Band_YSize_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_DataType_get___")]
+ public static extern int Band_DataType_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_GetDataset___")]
+ public static extern global::System.IntPtr Band_GetDataset(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_GetBand___")]
+ public static extern int Band_GetBand(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_GetBlockSize___")]
+ public static extern void Band_GetBlockSize(global::System.Runtime.InteropServices.HandleRef jarg1, out int jarg2, out int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_GetColorInterpretation___")]
+ public static extern int Band_GetColorInterpretation(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_GetRasterColorInterpretation___")]
+ public static extern int Band_GetRasterColorInterpretation(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_SetColorInterpretation___")]
+ public static extern int Band_SetColorInterpretation(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_SetRasterColorInterpretation___")]
+ public static extern int Band_SetRasterColorInterpretation(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_GetNoDataValue___")]
+ public static extern void Band_GetNoDataValue(global::System.Runtime.InteropServices.HandleRef jarg1, out double jarg2, out int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_SetNoDataValue___")]
+ public static extern int Band_SetNoDataValue(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_DeleteNoDataValue___")]
+ public static extern int Band_DeleteNoDataValue(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_GetUnitType___")]
+ public static extern string Band_GetUnitType(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_SetUnitType___")]
+ public static extern int Band_SetUnitType(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_GetRasterCategoryNames___")]
+ public static extern IntPtr Band_GetRasterCategoryNames(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_SetRasterCategoryNames___")]
+ public static extern int Band_SetRasterCategoryNames(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_GetMinimum___")]
+ public static extern void Band_GetMinimum(global::System.Runtime.InteropServices.HandleRef jarg1, out double jarg2, out int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_GetMaximum___")]
+ public static extern void Band_GetMaximum(global::System.Runtime.InteropServices.HandleRef jarg1, out double jarg2, out int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_GetOffset___")]
+ public static extern void Band_GetOffset(global::System.Runtime.InteropServices.HandleRef jarg1, out double jarg2, out int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_GetScale___")]
+ public static extern void Band_GetScale(global::System.Runtime.InteropServices.HandleRef jarg1, out double jarg2, out int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_SetOffset___")]
+ public static extern int Band_SetOffset(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_SetScale___")]
+ public static extern int Band_SetScale(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_GetStatistics___")]
+ public static extern int Band_GetStatistics(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, out double jarg4, out double jarg5, out double jarg6, out double jarg7);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_ComputeStatistics___")]
+ public static extern int Band_ComputeStatistics(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2, out double jarg3, out double jarg4, out double jarg5, out double jarg6, Gdal.GDALProgressFuncDelegate jarg7, string jarg8);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_SetStatistics___")]
+ public static extern int Band_SetStatistics(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_GetOverviewCount___")]
+ public static extern int Band_GetOverviewCount(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_GetOverview___")]
+ public static extern global::System.IntPtr Band_GetOverview(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_Checksum___")]
+ public static extern int Band_Checksum(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, IntPtr jarg4, IntPtr jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_ComputeRasterMinMax___")]
+ public static extern void Band_ComputeRasterMinMax(global::System.Runtime.InteropServices.HandleRef jarg1, double[] jarg2, int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_ComputeBandStats___")]
+ public static extern void Band_ComputeBandStats(global::System.Runtime.InteropServices.HandleRef jarg1, double[] jarg2, int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_Fill___")]
+ public static extern int Band_Fill(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_FlushCache___")]
+ public static extern void Band_FlushCache(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_GetRasterColorTable___")]
+ public static extern global::System.IntPtr Band_GetRasterColorTable(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_GetColorTable___")]
+ public static extern global::System.IntPtr Band_GetColorTable(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_SetRasterColorTable___")]
+ public static extern int Band_SetRasterColorTable(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_SetColorTable___")]
+ public static extern int Band_SetColorTable(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_GetDefaultRAT___")]
+ public static extern global::System.IntPtr Band_GetDefaultRAT(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_SetDefaultRAT___")]
+ public static extern int Band_SetDefaultRAT(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_GetMaskBand___")]
+ public static extern global::System.IntPtr Band_GetMaskBand(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_GetMaskFlags___")]
+ public static extern int Band_GetMaskFlags(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_CreateMaskBand___")]
+ public static extern int Band_CreateMaskBand(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_IsMaskBand___")]
+ public static extern bool Band_IsMaskBand(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_GetHistogram___")]
+ public static extern int Band_GetHistogram(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, int jarg4, int[] jarg5, int jarg6, int jarg7, Gdal.GDALProgressFuncDelegate jarg8, string jarg9);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_GetDefaultHistogram___")]
+ public static extern int Band_GetDefaultHistogram(global::System.Runtime.InteropServices.HandleRef jarg1, out double jarg2, out double jarg3, out int jarg4, out int[] jarg5, int jarg6, Gdal.GDALProgressFuncDelegate jarg7, string jarg8);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_SetDefaultHistogram___")]
+ public static extern int Band_SetDefaultHistogram(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, int jarg4, int[] jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_HasArbitraryOverviews___")]
+ public static extern bool Band_HasArbitraryOverviews(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_GetCategoryNames___")]
+ public static extern IntPtr Band_GetCategoryNames(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_SetCategoryNames___")]
+ public static extern int Band_SetCategoryNames(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_AdviseRead___")]
+ public static extern int Band_AdviseRead(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, int jarg4, int jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, global::System.Runtime.InteropServices.HandleRef jarg7, IntPtr jarg8, IntPtr[] jarg9);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_AsMDArray___")]
+ public static extern global::System.IntPtr Band_AsMDArray(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band__EnablePixelTypeSignedByteWarning___")]
+ public static extern void Band__EnablePixelTypeSignedByteWarning(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_ReadRaster__SWIG_0___")]
+ public static extern int Band_ReadRaster__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, int jarg4, int jarg5, IntPtr jarg6, int jarg7, int jarg8, int jarg9, int jarg10, int jarg11);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_WriteRaster__SWIG_0___")]
+ public static extern int Band_WriteRaster__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, int jarg4, int jarg5, IntPtr jarg6, int jarg7, int jarg8, int jarg9, int jarg10, int jarg11);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_ReadRaster__SWIG_1___")]
+ public static extern int Band_ReadRaster__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, int jarg4, int jarg5, IntPtr jarg6, int jarg7, int jarg8, int jarg9, int jarg10, int jarg11, global::System.Runtime.InteropServices.HandleRef jarg12);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_WriteRaster__SWIG_1___")]
+ public static extern int Band_WriteRaster__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, int jarg4, int jarg5, IntPtr jarg6, int jarg7, int jarg8, int jarg9, int jarg10, int jarg11, global::System.Runtime.InteropServices.HandleRef jarg12);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_new_ColorTable___")]
+ public static extern global::System.IntPtr new_ColorTable(int jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_delete_ColorTable___")]
+ public static extern void delete_ColorTable(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ColorTable_Clone___")]
+ public static extern global::System.IntPtr ColorTable_Clone(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ColorTable_GetPaletteInterpretation___")]
+ public static extern int ColorTable_GetPaletteInterpretation(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ColorTable_GetCount___")]
+ public static extern int ColorTable_GetCount(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ColorTable_GetColorEntry___")]
+ public static extern global::System.IntPtr ColorTable_GetColorEntry(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ColorTable_GetColorEntryAsRGB___")]
+ public static extern int ColorTable_GetColorEntryAsRGB(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ColorTable_SetColorEntry___")]
+ public static extern void ColorTable_SetColorEntry(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ColorTable_CreateColorRamp___")]
+ public static extern void ColorTable_CreateColorRamp(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, int jarg4, global::System.Runtime.InteropServices.HandleRef jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_delete_SubdatasetInfo___")]
+ public static extern void delete_SubdatasetInfo(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_SubdatasetInfo_GetPathComponent___")]
+ public static extern string SubdatasetInfo_GetPathComponent(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_SubdatasetInfo_GetSubdatasetComponent___")]
+ public static extern string SubdatasetInfo_GetSubdatasetComponent(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_SubdatasetInfo_ModifyPathComponent___")]
+ public static extern string SubdatasetInfo_ModifyPathComponent(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GetSubdatasetInfo___")]
+ public static extern global::System.IntPtr GetSubdatasetInfo(string jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_new_Relationship___")]
+ public static extern global::System.IntPtr new_Relationship(string jarg1, string jarg2, string jarg3, int jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_delete_Relationship___")]
+ public static extern void delete_Relationship(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Relationship_GetName___")]
+ public static extern string Relationship_GetName(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Relationship_GetCardinality___")]
+ public static extern int Relationship_GetCardinality(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Relationship_GetLeftTableName___")]
+ public static extern string Relationship_GetLeftTableName(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Relationship_GetRightTableName___")]
+ public static extern string Relationship_GetRightTableName(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Relationship_GetMappingTableName___")]
+ public static extern string Relationship_GetMappingTableName(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Relationship_SetMappingTableName___")]
+ public static extern void Relationship_SetMappingTableName(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Relationship_GetLeftTableFields___")]
+ public static extern IntPtr Relationship_GetLeftTableFields(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Relationship_GetRightTableFields___")]
+ public static extern IntPtr Relationship_GetRightTableFields(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Relationship_SetLeftTableFields___")]
+ public static extern void Relationship_SetLeftTableFields(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Relationship_SetRightTableFields___")]
+ public static extern void Relationship_SetRightTableFields(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Relationship_GetLeftMappingTableFields___")]
+ public static extern IntPtr Relationship_GetLeftMappingTableFields(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Relationship_GetRightMappingTableFields___")]
+ public static extern IntPtr Relationship_GetRightMappingTableFields(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Relationship_SetLeftMappingTableFields___")]
+ public static extern void Relationship_SetLeftMappingTableFields(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Relationship_SetRightMappingTableFields___")]
+ public static extern void Relationship_SetRightMappingTableFields(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Relationship_GetType___")]
+ public static extern int Relationship_GetType(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Relationship_SetType___")]
+ public static extern void Relationship_SetType(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Relationship_GetForwardPathLabel___")]
+ public static extern string Relationship_GetForwardPathLabel(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Relationship_SetForwardPathLabel___")]
+ public static extern void Relationship_SetForwardPathLabel(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Relationship_GetBackwardPathLabel___")]
+ public static extern string Relationship_GetBackwardPathLabel(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Relationship_SetBackwardPathLabel___")]
+ public static extern void Relationship_SetBackwardPathLabel(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Relationship_GetRelatedTableType___")]
+ public static extern string Relationship_GetRelatedTableType(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Relationship_SetRelatedTableType___")]
+ public static extern void Relationship_SetRelatedTableType(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ComputeMedianCutPCT___")]
+ public static extern int ComputeMedianCutPCT(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, int jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, Gdal.GDALProgressFuncDelegate jarg6, string jarg7);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_DitherRGB2PCT___")]
+ public static extern int DitherRGB2PCT(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, Gdal.GDALProgressFuncDelegate jarg6, string jarg7);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ReprojectImage___")]
+ public static extern int ReprojectImage(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, string jarg3, string jarg4, int jarg5, double jarg6, double jarg7, Gdal.GDALProgressFuncDelegate jarg8, string jarg9, IntPtr[] jarg10);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ComputeProximity___")]
+ public static extern int ComputeProximity(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, IntPtr[] jarg3, Gdal.GDALProgressFuncDelegate jarg4, string jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RasterizeLayer___")]
+ public static extern int RasterizeLayer(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int[] jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, IntPtr jarg5, IntPtr jarg6, int jarg7, double[] jarg8, IntPtr[] jarg9, Gdal.GDALProgressFuncDelegate jarg10, string jarg11);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Polygonize___")]
+ public static extern int Polygonize(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, int jarg4, IntPtr[] jarg5, Gdal.GDALProgressFuncDelegate jarg6, string jarg7);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_FPolygonize___")]
+ public static extern int FPolygonize(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, int jarg4, IntPtr[] jarg5, Gdal.GDALProgressFuncDelegate jarg6, string jarg7);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_FillNodata___")]
+ public static extern int FillNodata(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3, int jarg4, IntPtr[] jarg5, Gdal.GDALProgressFuncDelegate jarg6, string jarg7);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_SieveFilter___")]
+ public static extern int SieveFilter(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, int jarg4, int jarg5, IntPtr[] jarg6, Gdal.GDALProgressFuncDelegate jarg7, string jarg8);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RegenerateOverviews___")]
+ public static extern int RegenerateOverviews(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, string jarg4, Gdal.GDALProgressFuncDelegate jarg5, string jarg6);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_RegenerateOverview___")]
+ public static extern int RegenerateOverview(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, string jarg3, Gdal.GDALProgressFuncDelegate jarg4, string jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ContourGenerate___")]
+ public static extern int ContourGenerate(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, int jarg4, double[] jarg5, int jarg6, double jarg7, global::System.Runtime.InteropServices.HandleRef jarg8, int jarg9, int jarg10, Gdal.GDALProgressFuncDelegate jarg11, string jarg12);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ContourGenerateEx___")]
+ public static extern int ContourGenerateEx(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, IntPtr[] jarg3, Gdal.GDALProgressFuncDelegate jarg4, string jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ViewshedGenerate___")]
+ public static extern global::System.IntPtr ViewshedGenerate(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3, IntPtr[] jarg4, double jarg5, double jarg6, double jarg7, double jarg8, double jarg9, double jarg10, double jarg11, double jarg12, double jarg13, int jarg14, double jarg15, Gdal.GDALProgressFuncDelegate jarg16, string jarg17, int jarg18, IntPtr[] jarg19);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_IsLineOfSightVisible___")]
+ public static extern bool IsLineOfSightVisible(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, double jarg4, int jarg5, int jarg6, double jarg7, IntPtr[] jarg8);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_AutoCreateWarpedVRT___")]
+ public static extern global::System.IntPtr AutoCreateWarpedVRT(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3, int jarg4, double jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_CreatePansharpenedVRT___")]
+ public static extern global::System.IntPtr CreatePansharpenedVRT(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3, global::System.Runtime.InteropServices.HandleRef jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_new_Transformer___")]
+ public static extern global::System.IntPtr new_Transformer(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, IntPtr[] jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_delete_Transformer___")]
+ public static extern void delete_Transformer(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Transformer_TransformPoint__SWIG_0___")]
+ public static extern int Transformer_TransformPoint__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, double[] jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Transformer_TransformPoint__SWIG_1___")]
+ public static extern int Transformer_TransformPoint__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double[] jarg2, int jarg3, double jarg4, double jarg5, double jarg6);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Transformer_TransformPoints___")]
+ public static extern int Transformer_TransformPoints(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, double[] jarg4, double[] jarg5, double[] jarg6, double[] jarg7);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Transformer_TransformGeolocations___")]
+ public static extern int Transformer_TransformGeolocations(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, Gdal.GDALProgressFuncDelegate jarg5, string jarg6, IntPtr[] jarg7);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_SuggestedWarpOutputRes_width_get___")]
+ public static extern int SuggestedWarpOutputRes_width_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_SuggestedWarpOutputRes_height_get___")]
+ public static extern int SuggestedWarpOutputRes_height_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_SuggestedWarpOutputRes_xmin_get___")]
+ public static extern double SuggestedWarpOutputRes_xmin_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_SuggestedWarpOutputRes_ymin_get___")]
+ public static extern double SuggestedWarpOutputRes_ymin_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_SuggestedWarpOutputRes_xmax_get___")]
+ public static extern double SuggestedWarpOutputRes_xmax_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_SuggestedWarpOutputRes_ymax_get___")]
+ public static extern double SuggestedWarpOutputRes_ymax_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_delete_SuggestedWarpOutputRes___")]
+ public static extern void delete_SuggestedWarpOutputRes(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_SuggestedWarpOutputRes_GetGeotransform___")]
+ public static extern void SuggestedWarpOutputRes_GetGeotransform(global::System.Runtime.InteropServices.HandleRef jarg1, double[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_SuggestedWarpOutput__SWIG_0___")]
+ public static extern global::System.IntPtr SuggestedWarpOutput__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_SuggestedWarpOutput__SWIG_1___")]
+ public static extern global::System.IntPtr SuggestedWarpOutput__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ApplyVerticalShiftGrid___")]
+ public static extern global::System.IntPtr ApplyVerticalShiftGrid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3, double jarg4, double jarg5, IntPtr[] jarg6);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ApplyGeoTransform___")]
+ public static extern void ApplyGeoTransform(double[] jarg1, double jarg2, double jarg3, out double jarg4, out double jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_InvGeoTransform___")]
+ public static extern int InvGeoTransform(double[] jarg1, double[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_VersionInfo___")]
+ public static extern string VersionInfo(string jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_AllRegister___")]
+ public static extern void AllRegister();
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GDALDestroyDriverManager___")]
+ public static extern void GDALDestroyDriverManager();
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GetCacheMax___")]
+ public static extern int GetCacheMax();
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GetCacheUsed___")]
+ public static extern int GetCacheUsed();
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_SetCacheMax___")]
+ public static extern void SetCacheMax(int jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GetDataTypeSize___")]
+ public static extern int GetDataTypeSize(int jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_DataTypeIsComplex___")]
+ public static extern int DataTypeIsComplex(int jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GetDataTypeName___")]
+ public static extern string GetDataTypeName(int jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GetDataTypeByName___")]
+ public static extern int GetDataTypeByName(string jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_DataTypeUnion___")]
+ public static extern int DataTypeUnion(int jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GetColorInterpretationName___")]
+ public static extern string GetColorInterpretationName(int jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GetPaletteInterpretationName___")]
+ public static extern string GetPaletteInterpretationName(int jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_DecToDMS___")]
+ public static extern string DecToDMS(double jarg1, string jarg2, int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_PackedDMSToDec___")]
+ public static extern double PackedDMSToDec(double jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_DecToPackedDMS___")]
+ public static extern double DecToPackedDMS(double jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_ParseXMLString___")]
+ public static extern global::System.IntPtr ParseXMLString(string jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_SerializeXMLTree___")]
+ public static extern string SerializeXMLTree(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GetJPEG2000StructureAsString___")]
+ public static extern string GetJPEG2000StructureAsString(string jarg1, IntPtr[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_HasTriangulation___")]
+ public static extern int HasTriangulation();
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GetDriverCount___")]
+ public static extern int GetDriverCount();
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GetDriverByName___")]
+ public static extern global::System.IntPtr GetDriverByName(string jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GetDriver___")]
+ public static extern global::System.IntPtr GetDriver(int jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Open___")]
+ public static extern global::System.IntPtr Open(byte[] jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_OpenEx___")]
+ public static extern global::System.IntPtr OpenEx(byte[] jarg1, uint jarg2, IntPtr[] jarg3, IntPtr[] jarg4, IntPtr[] jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_OpenShared___")]
+ public static extern global::System.IntPtr OpenShared(byte[] jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_IdentifyDriver___")]
+ public static extern global::System.IntPtr IdentifyDriver(byte[] jarg1, IntPtr[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_IdentifyDriverEx___")]
+ public static extern global::System.IntPtr IdentifyDriverEx(byte[] jarg1, uint jarg2, IntPtr[] jarg3, IntPtr[] jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GeneralCmdLineProcessor___")]
+ public static extern IntPtr GeneralCmdLineProcessor(IntPtr[] jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL___WriteCArrayItem_GDAL_GCP___")]
+ public static extern void __WriteCArrayItem_GDAL_GCP(IntPtr jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL___ReadCArrayItem_GDAL_GCP___")]
+ public static extern global::System.IntPtr __ReadCArrayItem_GDAL_GCP(IntPtr jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL___AllocCArray_GDAL_GCP___")]
+ public static extern IntPtr __AllocCArray_GDAL_GCP(int jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL___FreeCArray_GDAL_GCP___")]
+ public static extern void __FreeCArray_GDAL_GCP(IntPtr jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_new_GDALInfoOptions___")]
+ public static extern global::System.IntPtr new_GDALInfoOptions(IntPtr[] jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_delete_GDALInfoOptions___")]
+ public static extern void delete_GDALInfoOptions(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GDALInfo___")]
+ public static extern string GDALInfo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_new_GDALVectorInfoOptions___")]
+ public static extern global::System.IntPtr new_GDALVectorInfoOptions(IntPtr[] jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_delete_GDALVectorInfoOptions___")]
+ public static extern void delete_GDALVectorInfoOptions(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GDALVectorInfo___")]
+ public static extern string GDALVectorInfo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_new_GDALMultiDimInfoOptions___")]
+ public static extern global::System.IntPtr new_GDALMultiDimInfoOptions(IntPtr[] jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_delete_GDALMultiDimInfoOptions___")]
+ public static extern void delete_GDALMultiDimInfoOptions(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_GDALMultiDimInfo___")]
+ public static extern string GDALMultiDimInfo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_new_GDALTranslateOptions___")]
+ public static extern global::System.IntPtr new_GDALTranslateOptions(IntPtr[] jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_delete_GDALTranslateOptions___")]
+ public static extern void delete_GDALTranslateOptions(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_wrapper_GDALTranslate___")]
+ public static extern global::System.IntPtr wrapper_GDALTranslate(byte[] jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, Gdal.GDALProgressFuncDelegate jarg4, string jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_new_GDALWarpAppOptions___")]
+ public static extern global::System.IntPtr new_GDALWarpAppOptions(IntPtr[] jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_delete_GDALWarpAppOptions___")]
+ public static extern void delete_GDALWarpAppOptions(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_wrapper_GDALWarpDestDS___")]
+ public static extern int wrapper_GDALWarpDestDS(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, IntPtr jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, Gdal.GDALProgressFuncDelegate jarg5, string jarg6);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_wrapper_GDALWarpDestName___")]
+ public static extern global::System.IntPtr wrapper_GDALWarpDestName(byte[] jarg1, int jarg2, IntPtr jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, Gdal.GDALProgressFuncDelegate jarg5, string jarg6);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_new_GDALVectorTranslateOptions___")]
+ public static extern global::System.IntPtr new_GDALVectorTranslateOptions(IntPtr[] jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_delete_GDALVectorTranslateOptions___")]
+ public static extern void delete_GDALVectorTranslateOptions(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_wrapper_GDALVectorTranslateDestDS___")]
+ public static extern int wrapper_GDALVectorTranslateDestDS(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, Gdal.GDALProgressFuncDelegate jarg4, string jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_wrapper_GDALVectorTranslateDestName___")]
+ public static extern global::System.IntPtr wrapper_GDALVectorTranslateDestName(byte[] jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, Gdal.GDALProgressFuncDelegate jarg4, string jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_new_GDALDEMProcessingOptions___")]
+ public static extern global::System.IntPtr new_GDALDEMProcessingOptions(IntPtr[] jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_delete_GDALDEMProcessingOptions___")]
+ public static extern void delete_GDALDEMProcessingOptions(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_wrapper_GDALDEMProcessing___")]
+ public static extern global::System.IntPtr wrapper_GDALDEMProcessing(byte[] jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, string jarg3, string jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, Gdal.GDALProgressFuncDelegate jarg6, string jarg7);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_new_GDALNearblackOptions___")]
+ public static extern global::System.IntPtr new_GDALNearblackOptions(IntPtr[] jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_delete_GDALNearblackOptions___")]
+ public static extern void delete_GDALNearblackOptions(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_wrapper_GDALNearblackDestDS___")]
+ public static extern int wrapper_GDALNearblackDestDS(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, Gdal.GDALProgressFuncDelegate jarg4, string jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_wrapper_GDALNearblackDestName___")]
+ public static extern global::System.IntPtr wrapper_GDALNearblackDestName(byte[] jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, Gdal.GDALProgressFuncDelegate jarg4, string jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_new_GDALGridOptions___")]
+ public static extern global::System.IntPtr new_GDALGridOptions(IntPtr[] jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_delete_GDALGridOptions___")]
+ public static extern void delete_GDALGridOptions(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_wrapper_GDALGrid___")]
+ public static extern global::System.IntPtr wrapper_GDALGrid(byte[] jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, Gdal.GDALProgressFuncDelegate jarg4, string jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_new_GDALRasterizeOptions___")]
+ public static extern global::System.IntPtr new_GDALRasterizeOptions(IntPtr[] jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_delete_GDALRasterizeOptions___")]
+ public static extern void delete_GDALRasterizeOptions(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_wrapper_GDALRasterizeDestDS___")]
+ public static extern int wrapper_GDALRasterizeDestDS(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, Gdal.GDALProgressFuncDelegate jarg4, string jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_wrapper_GDALRasterizeDestName___")]
+ public static extern global::System.IntPtr wrapper_GDALRasterizeDestName(byte[] jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, Gdal.GDALProgressFuncDelegate jarg4, string jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_new_GDALFootprintOptions___")]
+ public static extern global::System.IntPtr new_GDALFootprintOptions(IntPtr[] jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_delete_GDALFootprintOptions___")]
+ public static extern void delete_GDALFootprintOptions(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_wrapper_GDALFootprintDestDS___")]
+ public static extern int wrapper_GDALFootprintDestDS(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, Gdal.GDALProgressFuncDelegate jarg4, string jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_wrapper_GDALFootprintDestName___")]
+ public static extern global::System.IntPtr wrapper_GDALFootprintDestName(byte[] jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, Gdal.GDALProgressFuncDelegate jarg4, string jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_new_GDALBuildVRTOptions___")]
+ public static extern global::System.IntPtr new_GDALBuildVRTOptions(IntPtr[] jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_delete_GDALBuildVRTOptions___")]
+ public static extern void delete_GDALBuildVRTOptions(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_wrapper_GDALBuildVRT_objects___")]
+ public static extern global::System.IntPtr wrapper_GDALBuildVRT_objects(byte[] jarg1, int jarg2, IntPtr jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, Gdal.GDALProgressFuncDelegate jarg5, string jarg6);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_wrapper_GDALBuildVRT_names___")]
+ public static extern global::System.IntPtr wrapper_GDALBuildVRT_names(byte[] jarg1, IntPtr[] jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, Gdal.GDALProgressFuncDelegate jarg4, string jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_new_GDALTileIndexOptions___")]
+ public static extern global::System.IntPtr new_GDALTileIndexOptions(IntPtr[] jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_delete_GDALTileIndexOptions___")]
+ public static extern void delete_GDALTileIndexOptions(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_wrapper_TileIndex_names___")]
+ public static extern global::System.IntPtr wrapper_TileIndex_names(byte[] jarg1, IntPtr[] jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, Gdal.GDALProgressFuncDelegate jarg4, string jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_new_GDALMultiDimTranslateOptions___")]
+ public static extern global::System.IntPtr new_GDALMultiDimTranslateOptions(IntPtr[] jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_delete_GDALMultiDimTranslateOptions___")]
+ public static extern void delete_GDALMultiDimTranslateOptions(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_wrapper_GDALMultiDimTranslateDestName___")]
+ public static extern global::System.IntPtr wrapper_GDALMultiDimTranslateDestName(byte[] jarg1, int jarg2, IntPtr jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, Gdal.GDALProgressFuncDelegate jarg5, string jarg6);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Driver_SWIGUpcast___")]
+ public static extern global::System.IntPtr Driver_SWIGUpcast(global::System.IntPtr jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Dataset_SWIGUpcast___")]
+ public static extern global::System.IntPtr Dataset_SWIGUpcast(global::System.IntPtr jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("gdal_wrap", EntryPoint="CSharp_OSGeofGDAL_Band_SWIGUpcast___")]
+ public static extern global::System.IntPtr Band_SWIGUpcast(global::System.IntPtr jarg1);
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/Group.cs b/Geospatial/GDAL-Bindings/GDAL/Group.cs
new file mode 100644
index 0000000..de7343d
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/Group.cs
@@ -0,0 +1,279 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class Group : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public Group(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(Group obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(Group obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(Group obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~Group() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ GdalPINVOKE.delete_Group(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public string GetName() {
+ string ret = GdalPINVOKE.Group_GetName(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetFullName() {
+ string ret = GdalPINVOKE.Group_GetFullName(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string[] GetMDArrayNames(string[] options) {
+ /* %typemap(csout) char** CSL */
+ IntPtr cPtr = GdalPINVOKE.Group_GetMDArrayNames(swigCPtr, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ IntPtr objPtr;
+ int count = 0;
+ if (cPtr != IntPtr.Zero) {
+ while (Marshal.ReadIntPtr(cPtr, count*IntPtr.Size) != IntPtr.Zero)
+ ++count;
+ }
+ string[] ret = new string[count];
+ if (count > 0) {
+ for(int cx = 0; cx < count; cx++) {
+ objPtr = System.Runtime.InteropServices.Marshal.ReadIntPtr(cPtr, cx * System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntPtr)));
+ ret[cx]= (objPtr == IntPtr.Zero) ? null : System.Runtime.InteropServices.Marshal.PtrToStringAnsi(objPtr);
+ }
+ }
+ if (cPtr != IntPtr.Zero)
+ GdalPINVOKE.StringListDestroy(cPtr);
+
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+}
+
+ public MDArray OpenMDArray(string name, string[] options) {
+ IntPtr cPtr = GdalPINVOKE.Group_OpenMDArray(swigCPtr, name, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ MDArray ret = (cPtr == IntPtr.Zero) ? null : new MDArray(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public MDArray OpenMDArrayFromFullname(string name, string[] options) {
+ IntPtr cPtr = GdalPINVOKE.Group_OpenMDArrayFromFullname(swigCPtr, name, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ MDArray ret = (cPtr == IntPtr.Zero) ? null : new MDArray(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public MDArray ResolveMDArray(string name, string starting_point, string[] options) {
+ IntPtr cPtr = GdalPINVOKE.Group_ResolveMDArray(swigCPtr, name, starting_point, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ MDArray ret = (cPtr == IntPtr.Zero) ? null : new MDArray(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string[] GetGroupNames(string[] options) {
+ /* %typemap(csout) char** CSL */
+ IntPtr cPtr = GdalPINVOKE.Group_GetGroupNames(swigCPtr, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ IntPtr objPtr;
+ int count = 0;
+ if (cPtr != IntPtr.Zero) {
+ while (Marshal.ReadIntPtr(cPtr, count*IntPtr.Size) != IntPtr.Zero)
+ ++count;
+ }
+ string[] ret = new string[count];
+ if (count > 0) {
+ for(int cx = 0; cx < count; cx++) {
+ objPtr = System.Runtime.InteropServices.Marshal.ReadIntPtr(cPtr, cx * System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntPtr)));
+ ret[cx]= (objPtr == IntPtr.Zero) ? null : System.Runtime.InteropServices.Marshal.PtrToStringAnsi(objPtr);
+ }
+ }
+ if (cPtr != IntPtr.Zero)
+ GdalPINVOKE.StringListDestroy(cPtr);
+
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+}
+
+ public Group OpenGroup(string name, string[] options) {
+ IntPtr cPtr = GdalPINVOKE.Group_OpenGroup(swigCPtr, name, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ Group ret = (cPtr == IntPtr.Zero) ? null : new Group(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Group OpenGroupFromFullname(string name, string[] options) {
+ IntPtr cPtr = GdalPINVOKE.Group_OpenGroupFromFullname(swigCPtr, name, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ Group ret = (cPtr == IntPtr.Zero) ? null : new Group(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string[] GetVectorLayerNames(string[] options) {
+ /* %typemap(csout) char** CSL */
+ IntPtr cPtr = GdalPINVOKE.Group_GetVectorLayerNames(swigCPtr, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ IntPtr objPtr;
+ int count = 0;
+ if (cPtr != IntPtr.Zero) {
+ while (Marshal.ReadIntPtr(cPtr, count*IntPtr.Size) != IntPtr.Zero)
+ ++count;
+ }
+ string[] ret = new string[count];
+ if (count > 0) {
+ for(int cx = 0; cx < count; cx++) {
+ objPtr = System.Runtime.InteropServices.Marshal.ReadIntPtr(cPtr, cx * System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntPtr)));
+ ret[cx]= (objPtr == IntPtr.Zero) ? null : System.Runtime.InteropServices.Marshal.PtrToStringAnsi(objPtr);
+ }
+ }
+ if (cPtr != IntPtr.Zero)
+ GdalPINVOKE.StringListDestroy(cPtr);
+
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+}
+
+ public OSGeo.OGR.Layer OpenVectorLayer(string name, string[] options) {
+ IntPtr cPtr = GdalPINVOKE.Group_OpenVectorLayer(swigCPtr, name, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ OSGeo.OGR.Layer ret = (cPtr == IntPtr.Zero) ? null : new OSGeo.OGR.Layer(cPtr, false, ThisOwn_false());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Attribute GetAttribute(string name) {
+ IntPtr cPtr = GdalPINVOKE.Group_GetAttribute(swigCPtr, name);
+ Attribute ret = (cPtr == IntPtr.Zero) ? null : new Attribute(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string[] GetStructuralInfo() {
+ /* %typemap(csout) char**options */
+ IntPtr cPtr = GdalPINVOKE.Group_GetStructuralInfo(swigCPtr);
+ IntPtr objPtr;
+ int count = 0;
+ if (cPtr != IntPtr.Zero) {
+ while (Marshal.ReadIntPtr(cPtr, count*IntPtr.Size) != IntPtr.Zero)
+ ++count;
+ }
+ string[] ret = new string[count];
+ if (count > 0) {
+ for(int cx = 0; cx < count; cx++) {
+ objPtr = System.Runtime.InteropServices.Marshal.ReadIntPtr(cPtr, cx * System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntPtr)));
+ ret[cx]= (objPtr == IntPtr.Zero) ? null : System.Runtime.InteropServices.Marshal.PtrToStringAnsi(objPtr);
+ }
+ }
+
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+}
+
+ public Group CreateGroup(string name, string[] options) {
+ IntPtr cPtr = GdalPINVOKE.Group_CreateGroup(swigCPtr, name, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ Group ret = (cPtr == IntPtr.Zero) ? null : new Group(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr DeleteGroup(string name, string[] options) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Group_DeleteGroup(swigCPtr, name, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Dimension CreateDimension(string name, string type, string direction, SWIGTYPE_p_GUIntBig size, string[] options) {
+ IntPtr cPtr = GdalPINVOKE.Group_CreateDimension(swigCPtr, name, type, direction, SWIGTYPE_p_GUIntBig.getCPtr(size), (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ Dimension ret = (cPtr == IntPtr.Zero) ? null : new Dimension(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr DeleteMDArray(string name, string[] options) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Group_DeleteMDArray(swigCPtr, name, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Attribute CreateAttribute(string name, int dimensions, SWIGTYPE_p_GUIntBig sizes, ExtendedDataType data_type, string[] options) {
+ IntPtr cPtr = GdalPINVOKE.Group_CreateAttribute(swigCPtr, name, dimensions, SWIGTYPE_p_GUIntBig.getCPtr(sizes), ExtendedDataType.getCPtr(data_type), (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ Attribute ret = (cPtr == IntPtr.Zero) ? null : new Attribute(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr DeleteAttribute(string name, string[] options) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Group_DeleteAttribute(swigCPtr, name, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr Rename(string newName) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.Group_Rename(swigCPtr, newName);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Group SubsetDimensionFromSelection(string selection, string[] options) {
+ IntPtr cPtr = GdalPINVOKE.Group_SubsetDimensionFromSelection(swigCPtr, selection, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ Group ret = (cPtr == IntPtr.Zero) ? null : new Group(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/MDArray.cs b/Geospatial/GDAL-Bindings/GDAL/MDArray.cs
new file mode 100644
index 0000000..70106ee
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/MDArray.cs
@@ -0,0 +1,283 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class MDArray : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public MDArray(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(MDArray obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(MDArray obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(MDArray obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~MDArray() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ GdalPINVOKE.delete_MDArray(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public string GetName() {
+ string ret = GdalPINVOKE.MDArray_GetName(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetFullName() {
+ string ret = GdalPINVOKE.MDArray_GetFullName(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public SWIGTYPE_p_GUIntBig GetTotalElementsCount() {
+ SWIGTYPE_p_GUIntBig ret = new SWIGTYPE_p_GUIntBig(GdalPINVOKE.MDArray_GetTotalElementsCount(swigCPtr), true, null);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public uint GetDimensionCount() {
+ uint ret = GdalPINVOKE.MDArray_GetDimensionCount(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public ExtendedDataType GetDataType() {
+ IntPtr cPtr = GdalPINVOKE.MDArray_GetDataType(swigCPtr);
+ ExtendedDataType ret = (cPtr == IntPtr.Zero) ? null : new ExtendedDataType(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string[] GetStructuralInfo() {
+ /* %typemap(csout) char**options */
+ IntPtr cPtr = GdalPINVOKE.MDArray_GetStructuralInfo(swigCPtr);
+ IntPtr objPtr;
+ int count = 0;
+ if (cPtr != IntPtr.Zero) {
+ while (Marshal.ReadIntPtr(cPtr, count*IntPtr.Size) != IntPtr.Zero)
+ ++count;
+ }
+ string[] ret = new string[count];
+ if (count > 0) {
+ for(int cx = 0; cx < count; cx++) {
+ objPtr = System.Runtime.InteropServices.Marshal.ReadIntPtr(cPtr, cx * System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntPtr)));
+ ret[cx]= (objPtr == IntPtr.Zero) ? null : System.Runtime.InteropServices.Marshal.PtrToStringAnsi(objPtr);
+ }
+ }
+
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+}
+
+ public CPLErr Resize(int newDimensions, SWIGTYPE_p_GUIntBig newSizes, string[] options) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.MDArray_Resize(swigCPtr, newDimensions, SWIGTYPE_p_GUIntBig.getCPtr(newSizes), (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Attribute GetAttribute(string name) {
+ IntPtr cPtr = GdalPINVOKE.MDArray_GetAttribute(swigCPtr, name);
+ Attribute ret = (cPtr == IntPtr.Zero) ? null : new Attribute(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Attribute CreateAttribute(string name, int dimensions, SWIGTYPE_p_GUIntBig sizes, ExtendedDataType data_type, string[] options) {
+ IntPtr cPtr = GdalPINVOKE.MDArray_CreateAttribute(swigCPtr, name, dimensions, SWIGTYPE_p_GUIntBig.getCPtr(sizes), ExtendedDataType.getCPtr(data_type), (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ Attribute ret = (cPtr == IntPtr.Zero) ? null : new Attribute(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr DeleteAttribute(string name, string[] options) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.MDArray_DeleteAttribute(swigCPtr, name, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void GetNoDataValueAsDouble(out double val, out int hasval) {
+ GdalPINVOKE.MDArray_GetNoDataValueAsDouble(swigCPtr, out val, out hasval);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public string GetNoDataValueAsString() {
+ string ret = GdalPINVOKE.MDArray_GetNoDataValueAsString(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr SetNoDataValueDouble(double d) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.MDArray_SetNoDataValueDouble(swigCPtr, d);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr SetNoDataValueString(string nodata) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.MDArray_SetNoDataValueString(swigCPtr, nodata);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr DeleteNoDataValue() {
+ CPLErr ret = (CPLErr)GdalPINVOKE.MDArray_DeleteNoDataValue(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void GetOffset(out double val, out int hasval) {
+ GdalPINVOKE.MDArray_GetOffset(swigCPtr, out val, out hasval);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public DataType GetOffsetStorageType() {
+ DataType ret = (DataType)GdalPINVOKE.MDArray_GetOffsetStorageType(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void GetScale(out double val, out int hasval) {
+ GdalPINVOKE.MDArray_GetScale(swigCPtr, out val, out hasval);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public DataType GetScaleStorageType() {
+ DataType ret = (DataType)GdalPINVOKE.MDArray_GetScaleStorageType(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr SetOffset(double val, DataType storageType) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.MDArray_SetOffset(swigCPtr, val, (int)storageType);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr SetScale(double val, DataType storageType) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.MDArray_SetScale(swigCPtr, val, (int)storageType);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr SetUnit(string unit) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.MDArray_SetUnit(swigCPtr, unit);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetUnit() {
+ string ret = GdalPINVOKE.MDArray_GetUnit(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public MDArray GetView(string viewExpr) {
+ IntPtr cPtr = GdalPINVOKE.MDArray_GetView(swigCPtr, viewExpr);
+ MDArray ret = (cPtr == IntPtr.Zero) ? null : new MDArray(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public MDArray Transpose(int axisMap, SWIGTYPE_p_int mapInts) {
+ IntPtr cPtr = GdalPINVOKE.MDArray_Transpose(swigCPtr, axisMap, SWIGTYPE_p_int.getCPtr(mapInts));
+ MDArray ret = (cPtr == IntPtr.Zero) ? null : new MDArray(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public MDArray GetUnscaled() {
+ IntPtr cPtr = GdalPINVOKE.MDArray_GetUnscaled(swigCPtr);
+ MDArray ret = (cPtr == IntPtr.Zero) ? null : new MDArray(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public MDArray GetMask(string[] options) {
+ IntPtr cPtr = GdalPINVOKE.MDArray_GetMask(swigCPtr, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ MDArray ret = (cPtr == IntPtr.Zero) ? null : new MDArray(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public MDArray GetGridded(string pszGridOptions, MDArray xArray, MDArray yArray, string[] options) {
+ IntPtr cPtr = GdalPINVOKE.MDArray_GetGridded(swigCPtr, pszGridOptions, MDArray.getCPtr(xArray), MDArray.getCPtr(yArray), (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ MDArray ret = (cPtr == IntPtr.Zero) ? null : new MDArray(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Dataset AsClassicDataset(uint iXDim, uint iYDim, Group hRootGroup, string[] options) {
+ IntPtr cPtr = GdalPINVOKE.MDArray_AsClassicDataset(swigCPtr, iXDim, iYDim, Group.getCPtr(hRootGroup), (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ Dataset ret = (cPtr == IntPtr.Zero) ? null : new Dataset(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool Cache(string[] options) {
+ bool ret = GdalPINVOKE.MDArray_Cache(swigCPtr, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr Rename(string newName) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.MDArray_Rename(swigCPtr, newName);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/MajorObject.cs b/Geospatial/GDAL-Bindings/GDAL/MajorObject.cs
new file mode 100644
index 0000000..08fe77b
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/MajorObject.cs
@@ -0,0 +1,155 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class MajorObject : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public MajorObject(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(MajorObject obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(MajorObject obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(MajorObject obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~MajorObject() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ throw new global::System.MethodAccessException("C++ destructor does not have public access");
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public string GetDescription() {
+ string ret = GdalPINVOKE.MajorObject_GetDescription(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetDescription(string pszNewDesc) {
+ GdalPINVOKE.MajorObject_SetDescription(swigCPtr, pszNewDesc);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public string[] GetMetadataDomainList() {
+ /* %typemap(csout) char** CSL */
+ IntPtr cPtr = GdalPINVOKE.MajorObject_GetMetadataDomainList(swigCPtr);
+ IntPtr objPtr;
+ int count = 0;
+ if (cPtr != IntPtr.Zero) {
+ while (Marshal.ReadIntPtr(cPtr, count*IntPtr.Size) != IntPtr.Zero)
+ ++count;
+ }
+ string[] ret = new string[count];
+ if (count > 0) {
+ for(int cx = 0; cx < count; cx++) {
+ objPtr = System.Runtime.InteropServices.Marshal.ReadIntPtr(cPtr, cx * System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntPtr)));
+ ret[cx]= (objPtr == IntPtr.Zero) ? null : System.Runtime.InteropServices.Marshal.PtrToStringAnsi(objPtr);
+ }
+ }
+ if (cPtr != IntPtr.Zero)
+ GdalPINVOKE.StringListDestroy(cPtr);
+
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+}
+
+ public string[] GetMetadata(string pszDomain) {
+ /* %typemap(csout) char**options */
+ IntPtr cPtr = GdalPINVOKE.MajorObject_GetMetadata(swigCPtr, pszDomain);
+ IntPtr objPtr;
+ int count = 0;
+ if (cPtr != IntPtr.Zero) {
+ while (Marshal.ReadIntPtr(cPtr, count*IntPtr.Size) != IntPtr.Zero)
+ ++count;
+ }
+ string[] ret = new string[count];
+ if (count > 0) {
+ for(int cx = 0; cx < count; cx++) {
+ objPtr = System.Runtime.InteropServices.Marshal.ReadIntPtr(cPtr, cx * System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntPtr)));
+ ret[cx]= (objPtr == IntPtr.Zero) ? null : System.Runtime.InteropServices.Marshal.PtrToStringAnsi(objPtr);
+ }
+ }
+
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+}
+
+ public CPLErr SetMetadata(string[] papszMetadata, string pszDomain) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.MajorObject_SetMetadata__SWIG_0(swigCPtr, (papszMetadata != null)? new GdalPINVOKE.StringListMarshal(papszMetadata)._ar : null, pszDomain);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr SetMetadata(string pszMetadataString, string pszDomain) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.MajorObject_SetMetadata__SWIG_1(swigCPtr, pszMetadataString, pszDomain);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetMetadataItem(string pszName, string pszDomain) {
+ string ret = GdalPINVOKE.MajorObject_GetMetadataItem(swigCPtr, pszName, pszDomain);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public CPLErr SetMetadataItem(string pszName, string pszValue, string pszDomain) {
+ CPLErr ret = (CPLErr)GdalPINVOKE.MajorObject_SetMetadataItem(swigCPtr, pszName, pszValue, pszDomain);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/PaletteInterp.cs b/Geospatial/GDAL-Bindings/GDAL/PaletteInterp.cs
new file mode 100644
index 0000000..1a5f0b4
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/PaletteInterp.cs
@@ -0,0 +1,20 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+public enum PaletteInterp {
+ GPI_Gray = 0,
+ GPI_RGB = 1,
+ GPI_CMYK = 2,
+ GPI_HLS = 3
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/RATFieldType.cs b/Geospatial/GDAL-Bindings/GDAL/RATFieldType.cs
new file mode 100644
index 0000000..0d1466c
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/RATFieldType.cs
@@ -0,0 +1,19 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+public enum RATFieldType {
+ GFT_Integer,
+ GFT_Real,
+ GFT_String
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/RATFieldUsage.cs b/Geospatial/GDAL-Bindings/GDAL/RATFieldUsage.cs
new file mode 100644
index 0000000..2a9d1ed
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/RATFieldUsage.cs
@@ -0,0 +1,35 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+public enum RATFieldUsage {
+ GFU_Generic = 0,
+ GFU_PixelCount = 1,
+ GFU_Name = 2,
+ GFU_Min = 3,
+ GFU_Max = 4,
+ GFU_MinMax = 5,
+ GFU_Red = 6,
+ GFU_Green = 7,
+ GFU_Blue = 8,
+ GFU_Alpha = 9,
+ GFU_RedMin = 10,
+ GFU_GreenMin = 11,
+ GFU_BlueMin = 12,
+ GFU_AlphaMin = 13,
+ GFU_RedMax = 14,
+ GFU_GreenMax = 15,
+ GFU_BlueMax = 16,
+ GFU_AlphaMax = 17,
+ GFU_MaxCount
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/RATTableType.cs b/Geospatial/GDAL-Bindings/GDAL/RATTableType.cs
new file mode 100644
index 0000000..6c03788
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/RATTableType.cs
@@ -0,0 +1,18 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+public enum RATTableType {
+ GRTT_THEMATIC,
+ GRTT_ATHEMATIC
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/RIOResampleAlg.cs b/Geospatial/GDAL-Bindings/GDAL/RIOResampleAlg.cs
new file mode 100644
index 0000000..3587965
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/RIOResampleAlg.cs
@@ -0,0 +1,25 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+public enum RIOResampleAlg {
+ GRIORA_NearestNeighbour = 0,
+ GRIORA_Bilinear = 1,
+ GRIORA_Cubic = 2,
+ GRIORA_CubicSpline = 3,
+ GRIORA_Lanczos = 4,
+ GRIORA_Average = 5,
+ GRIORA_RMS = 14,
+ GRIORA_Mode = 6,
+ GRIORA_Gauss = 7
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/RWFlag.cs b/Geospatial/GDAL-Bindings/GDAL/RWFlag.cs
new file mode 100644
index 0000000..834b91a
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/RWFlag.cs
@@ -0,0 +1,18 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+public enum RWFlag {
+ GF_Read = 0,
+ GF_Write = 1
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/RasterAttributeTable.cs b/Geospatial/GDAL-Bindings/GDAL/RasterAttributeTable.cs
new file mode 100644
index 0000000..9dd91f4
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/RasterAttributeTable.cs
@@ -0,0 +1,212 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class RasterAttributeTable : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public RasterAttributeTable(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(RasterAttributeTable obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(RasterAttributeTable obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(RasterAttributeTable obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~RasterAttributeTable() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ GdalPINVOKE.delete_RasterAttributeTable(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public RasterAttributeTable() : this(GdalPINVOKE.new_RasterAttributeTable(), true, null) {
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public RasterAttributeTable Clone() {
+ IntPtr cPtr = GdalPINVOKE.RasterAttributeTable_Clone(swigCPtr);
+ RasterAttributeTable ret = (cPtr == IntPtr.Zero) ? null : new RasterAttributeTable(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int GetColumnCount() {
+ int ret = GdalPINVOKE.RasterAttributeTable_GetColumnCount(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetNameOfCol(int iCol) {
+ string ret = GdalPINVOKE.RasterAttributeTable_GetNameOfCol(swigCPtr, iCol);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public RATFieldUsage GetUsageOfCol(int iCol) {
+ RATFieldUsage ret = (RATFieldUsage)GdalPINVOKE.RasterAttributeTable_GetUsageOfCol(swigCPtr, iCol);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public RATFieldType GetTypeOfCol(int iCol) {
+ RATFieldType ret = (RATFieldType)GdalPINVOKE.RasterAttributeTable_GetTypeOfCol(swigCPtr, iCol);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int GetColOfUsage(RATFieldUsage eUsage) {
+ int ret = GdalPINVOKE.RasterAttributeTable_GetColOfUsage(swigCPtr, (int)eUsage);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int GetRowCount() {
+ int ret = GdalPINVOKE.RasterAttributeTable_GetRowCount(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetValueAsString(int iRow, int iCol) {
+ string ret = GdalPINVOKE.RasterAttributeTable_GetValueAsString(swigCPtr, iRow, iCol);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int GetValueAsInt(int iRow, int iCol) {
+ int ret = GdalPINVOKE.RasterAttributeTable_GetValueAsInt(swigCPtr, iRow, iCol);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public double GetValueAsDouble(int iRow, int iCol) {
+ double ret = GdalPINVOKE.RasterAttributeTable_GetValueAsDouble(swigCPtr, iRow, iCol);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetValueAsString(int iRow, int iCol, string pszValue) {
+ GdalPINVOKE.RasterAttributeTable_SetValueAsString(swigCPtr, iRow, iCol, pszValue);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void SetValueAsInt(int iRow, int iCol, int nValue) {
+ GdalPINVOKE.RasterAttributeTable_SetValueAsInt(swigCPtr, iRow, iCol, nValue);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void SetValueAsDouble(int iRow, int iCol, double dfValue) {
+ GdalPINVOKE.RasterAttributeTable_SetValueAsDouble(swigCPtr, iRow, iCol, dfValue);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void SetRowCount(int nCount) {
+ GdalPINVOKE.RasterAttributeTable_SetRowCount(swigCPtr, nCount);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public int CreateColumn(string pszName, RATFieldType eType, RATFieldUsage eUsage) {
+ int ret = GdalPINVOKE.RasterAttributeTable_CreateColumn(swigCPtr, pszName, (int)eType, (int)eUsage);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool GetLinearBinning(out double pdfRow0Min, out double pdfBinSize) {
+ bool ret = GdalPINVOKE.RasterAttributeTable_GetLinearBinning(swigCPtr, out pdfRow0Min, out pdfBinSize);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetLinearBinning(double dfRow0Min, double dfBinSize) {
+ int ret = GdalPINVOKE.RasterAttributeTable_SetLinearBinning(swigCPtr, dfRow0Min, dfBinSize);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int GetRowOfValue(double dfValue) {
+ int ret = GdalPINVOKE.RasterAttributeTable_GetRowOfValue(swigCPtr, dfValue);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int ChangesAreWrittenToFile() {
+ int ret = GdalPINVOKE.RasterAttributeTable_ChangesAreWrittenToFile(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void DumpReadable() {
+ GdalPINVOKE.RasterAttributeTable_DumpReadable(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void SetTableType(RATTableType eTableType) {
+ GdalPINVOKE.RasterAttributeTable_SetTableType(swigCPtr, (int)eTableType);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public RATTableType GetTableType() {
+ RATTableType ret = (RATTableType)GdalPINVOKE.RasterAttributeTable_GetTableType(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void RemoveStatistics() {
+ GdalPINVOKE.RasterAttributeTable_RemoveStatistics(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/RasterIOExtraArg.cs b/Geospatial/GDAL-Bindings/GDAL/RasterIOExtraArg.cs
new file mode 100644
index 0000000..829a7be
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/RasterIOExtraArg.cs
@@ -0,0 +1,188 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class RasterIOExtraArg : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public RasterIOExtraArg(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(RasterIOExtraArg obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(RasterIOExtraArg obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(RasterIOExtraArg obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~RasterIOExtraArg() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ GdalPINVOKE.delete_RasterIOExtraArg(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public int nVersion {
+ set {
+ GdalPINVOKE.RasterIOExtraArg_nVersion_set(swigCPtr, value);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get {
+ int ret = GdalPINVOKE.RasterIOExtraArg_nVersion_get(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public RIOResampleAlg eResampleAlg {
+ set {
+ GdalPINVOKE.RasterIOExtraArg_eResampleAlg_set(swigCPtr, (int)value);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get {
+ RIOResampleAlg ret = (RIOResampleAlg)GdalPINVOKE.RasterIOExtraArg_eResampleAlg_get(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public Gdal.GDALProgressFuncDelegate pfnProgress {
+ set {
+ GdalPINVOKE.RasterIOExtraArg_pfnProgress_set(swigCPtr, value);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get {
+ Gdal.GDALProgressFuncDelegate ret = GdalPINVOKE.RasterIOExtraArg_pfnProgress_get(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public IntPtr pProgressData {
+ set {
+ GdalPINVOKE.RasterIOExtraArg_pProgressData_set(swigCPtr, value);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get {
+ IntPtr ret = GdalPINVOKE.RasterIOExtraArg_pProgressData_get(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public int bFloatingPointWindowValidity {
+ set {
+ GdalPINVOKE.RasterIOExtraArg_bFloatingPointWindowValidity_set(swigCPtr, value);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get {
+ int ret = GdalPINVOKE.RasterIOExtraArg_bFloatingPointWindowValidity_get(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public double dfXOff {
+ set {
+ GdalPINVOKE.RasterIOExtraArg_dfXOff_set(swigCPtr, value);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get {
+ double ret = GdalPINVOKE.RasterIOExtraArg_dfXOff_get(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public double dfYOff {
+ set {
+ GdalPINVOKE.RasterIOExtraArg_dfYOff_set(swigCPtr, value);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get {
+ double ret = GdalPINVOKE.RasterIOExtraArg_dfYOff_get(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public double dfXSize {
+ set {
+ GdalPINVOKE.RasterIOExtraArg_dfXSize_set(swigCPtr, value);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get {
+ double ret = GdalPINVOKE.RasterIOExtraArg_dfXSize_get(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public double dfYSize {
+ set {
+ GdalPINVOKE.RasterIOExtraArg_dfYSize_set(swigCPtr, value);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get {
+ double ret = GdalPINVOKE.RasterIOExtraArg_dfYSize_get(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public RasterIOExtraArg() : this(GdalPINVOKE.new_RasterIOExtraArg(), true, null) {
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/Relationship.cs b/Geospatial/GDAL-Bindings/GDAL/Relationship.cs
new file mode 100644
index 0000000..7b97994
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/Relationship.cs
@@ -0,0 +1,272 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class Relationship : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public Relationship(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(Relationship obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(Relationship obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(Relationship obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~Relationship() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ GdalPINVOKE.delete_Relationship(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public Relationship(string name, string leftTableName, string rightTableName, RelationshipCardinality cardinality) : this(GdalPINVOKE.new_Relationship(name, leftTableName, rightTableName, (int)cardinality), true, null) {
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public string GetName() {
+ string ret = GdalPINVOKE.Relationship_GetName(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public RelationshipCardinality GetCardinality() {
+ RelationshipCardinality ret = (RelationshipCardinality)GdalPINVOKE.Relationship_GetCardinality(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetLeftTableName() {
+ string ret = GdalPINVOKE.Relationship_GetLeftTableName(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetRightTableName() {
+ string ret = GdalPINVOKE.Relationship_GetRightTableName(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetMappingTableName() {
+ string ret = GdalPINVOKE.Relationship_GetMappingTableName(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetMappingTableName(string pszName) {
+ GdalPINVOKE.Relationship_SetMappingTableName(swigCPtr, pszName);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public string[] GetLeftTableFields() {
+ /* %typemap(csout) char** CSL */
+ IntPtr cPtr = GdalPINVOKE.Relationship_GetLeftTableFields(swigCPtr);
+ IntPtr objPtr;
+ int count = 0;
+ if (cPtr != IntPtr.Zero) {
+ while (Marshal.ReadIntPtr(cPtr, count*IntPtr.Size) != IntPtr.Zero)
+ ++count;
+ }
+ string[] ret = new string[count];
+ if (count > 0) {
+ for(int cx = 0; cx < count; cx++) {
+ objPtr = System.Runtime.InteropServices.Marshal.ReadIntPtr(cPtr, cx * System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntPtr)));
+ ret[cx]= (objPtr == IntPtr.Zero) ? null : System.Runtime.InteropServices.Marshal.PtrToStringAnsi(objPtr);
+ }
+ }
+ if (cPtr != IntPtr.Zero)
+ GdalPINVOKE.StringListDestroy(cPtr);
+
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+}
+
+ public string[] GetRightTableFields() {
+ /* %typemap(csout) char** CSL */
+ IntPtr cPtr = GdalPINVOKE.Relationship_GetRightTableFields(swigCPtr);
+ IntPtr objPtr;
+ int count = 0;
+ if (cPtr != IntPtr.Zero) {
+ while (Marshal.ReadIntPtr(cPtr, count*IntPtr.Size) != IntPtr.Zero)
+ ++count;
+ }
+ string[] ret = new string[count];
+ if (count > 0) {
+ for(int cx = 0; cx < count; cx++) {
+ objPtr = System.Runtime.InteropServices.Marshal.ReadIntPtr(cPtr, cx * System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntPtr)));
+ ret[cx]= (objPtr == IntPtr.Zero) ? null : System.Runtime.InteropServices.Marshal.PtrToStringAnsi(objPtr);
+ }
+ }
+ if (cPtr != IntPtr.Zero)
+ GdalPINVOKE.StringListDestroy(cPtr);
+
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+}
+
+ public void SetLeftTableFields(string[] pFields) {
+ GdalPINVOKE.Relationship_SetLeftTableFields(swigCPtr, (pFields != null)? new GdalPINVOKE.StringListMarshal(pFields)._ar : null);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void SetRightTableFields(string[] pFields) {
+ GdalPINVOKE.Relationship_SetRightTableFields(swigCPtr, (pFields != null)? new GdalPINVOKE.StringListMarshal(pFields)._ar : null);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public string[] GetLeftMappingTableFields() {
+ /* %typemap(csout) char** CSL */
+ IntPtr cPtr = GdalPINVOKE.Relationship_GetLeftMappingTableFields(swigCPtr);
+ IntPtr objPtr;
+ int count = 0;
+ if (cPtr != IntPtr.Zero) {
+ while (Marshal.ReadIntPtr(cPtr, count*IntPtr.Size) != IntPtr.Zero)
+ ++count;
+ }
+ string[] ret = new string[count];
+ if (count > 0) {
+ for(int cx = 0; cx < count; cx++) {
+ objPtr = System.Runtime.InteropServices.Marshal.ReadIntPtr(cPtr, cx * System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntPtr)));
+ ret[cx]= (objPtr == IntPtr.Zero) ? null : System.Runtime.InteropServices.Marshal.PtrToStringAnsi(objPtr);
+ }
+ }
+ if (cPtr != IntPtr.Zero)
+ GdalPINVOKE.StringListDestroy(cPtr);
+
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+}
+
+ public string[] GetRightMappingTableFields() {
+ /* %typemap(csout) char** CSL */
+ IntPtr cPtr = GdalPINVOKE.Relationship_GetRightMappingTableFields(swigCPtr);
+ IntPtr objPtr;
+ int count = 0;
+ if (cPtr != IntPtr.Zero) {
+ while (Marshal.ReadIntPtr(cPtr, count*IntPtr.Size) != IntPtr.Zero)
+ ++count;
+ }
+ string[] ret = new string[count];
+ if (count > 0) {
+ for(int cx = 0; cx < count; cx++) {
+ objPtr = System.Runtime.InteropServices.Marshal.ReadIntPtr(cPtr, cx * System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntPtr)));
+ ret[cx]= (objPtr == IntPtr.Zero) ? null : System.Runtime.InteropServices.Marshal.PtrToStringAnsi(objPtr);
+ }
+ }
+ if (cPtr != IntPtr.Zero)
+ GdalPINVOKE.StringListDestroy(cPtr);
+
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+}
+
+ public void SetLeftMappingTableFields(string[] pFields) {
+ GdalPINVOKE.Relationship_SetLeftMappingTableFields(swigCPtr, (pFields != null)? new GdalPINVOKE.StringListMarshal(pFields)._ar : null);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void SetRightMappingTableFields(string[] pFields) {
+ GdalPINVOKE.Relationship_SetRightMappingTableFields(swigCPtr, (pFields != null)? new GdalPINVOKE.StringListMarshal(pFields)._ar : null);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ // New: GetType() is a dotnet method...
+ public new RelationshipType GetType() {
+ RelationshipType ret = (RelationshipType)GdalPINVOKE.Relationship_GetType(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetType(RelationshipType type) {
+ GdalPINVOKE.Relationship_SetType(swigCPtr, (int)type);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public string GetForwardPathLabel() {
+ string ret = GdalPINVOKE.Relationship_GetForwardPathLabel(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetForwardPathLabel(string pszLabel) {
+ GdalPINVOKE.Relationship_SetForwardPathLabel(swigCPtr, pszLabel);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public string GetBackwardPathLabel() {
+ string ret = GdalPINVOKE.Relationship_GetBackwardPathLabel(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetBackwardPathLabel(string pszLabel) {
+ GdalPINVOKE.Relationship_SetBackwardPathLabel(swigCPtr, pszLabel);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public string GetRelatedTableType() {
+ string ret = GdalPINVOKE.Relationship_GetRelatedTableType(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetRelatedTableType(string pszType) {
+ GdalPINVOKE.Relationship_SetRelatedTableType(swigCPtr, pszType);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/RelationshipCardinality.cs b/Geospatial/GDAL-Bindings/GDAL/RelationshipCardinality.cs
new file mode 100644
index 0000000..94def64
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/RelationshipCardinality.cs
@@ -0,0 +1,20 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+public enum RelationshipCardinality {
+ GRC_ONE_TO_ONE = 0,
+ GRC_ONE_TO_MANY = 1,
+ GRC_MANY_TO_ONE = 2,
+ GRC_MANY_TO_MANY = 3
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/RelationshipType.cs b/Geospatial/GDAL-Bindings/GDAL/RelationshipType.cs
new file mode 100644
index 0000000..758a427
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/RelationshipType.cs
@@ -0,0 +1,19 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+public enum RelationshipType {
+ GRT_COMPOSITE = 0,
+ GRT_ASSOCIATION = 1,
+ GRT_AGGREGATION = 2
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/ResampleAlg.cs b/Geospatial/GDAL-Bindings/GDAL/ResampleAlg.cs
new file mode 100644
index 0000000..40e55e7
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/ResampleAlg.cs
@@ -0,0 +1,30 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+public enum ResampleAlg {
+ GRA_NearestNeighbour = 0,
+ GRA_Bilinear = 1,
+ GRA_Cubic = 2,
+ GRA_CubicSpline = 3,
+ GRA_Lanczos = 4,
+ GRA_Average = 5,
+ GRA_Mode = 6,
+ GRA_Max = 8,
+ GRA_Min = 9,
+ GRA_Med = 10,
+ GRA_Q1 = 11,
+ GRA_Q3 = 12,
+ GRA_Sum = 13,
+ GRA_RMS = 14
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/SWIGTYPE_p_GDALProgressFunc.cs b/Geospatial/GDAL-Bindings/GDAL/SWIGTYPE_p_GDALProgressFunc.cs
new file mode 100644
index 0000000..8299a15
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/SWIGTYPE_p_GDALProgressFunc.cs
@@ -0,0 +1,32 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class SWIGTYPE_p_GDALProgressFunc {
+ private HandleRef swigCPtr;
+
+ public SWIGTYPE_p_GDALProgressFunc(IntPtr cPtr, bool futureUse, object parent) {
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ protected SWIGTYPE_p_GDALProgressFunc() {
+ swigCPtr = new HandleRef(null, IntPtr.Zero);
+ }
+
+ public static HandleRef getCPtr(SWIGTYPE_p_GDALProgressFunc obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/SWIGTYPE_p_GDALSubdatasetInfo.cs b/Geospatial/GDAL-Bindings/GDAL/SWIGTYPE_p_GDALSubdatasetInfo.cs
new file mode 100644
index 0000000..48b9556
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/SWIGTYPE_p_GDALSubdatasetInfo.cs
@@ -0,0 +1,32 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class SWIGTYPE_p_GDALSubdatasetInfo {
+ private HandleRef swigCPtr;
+
+ public SWIGTYPE_p_GDALSubdatasetInfo(IntPtr cPtr, bool futureUse, object parent) {
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ protected SWIGTYPE_p_GDALSubdatasetInfo() {
+ swigCPtr = new HandleRef(null, IntPtr.Zero);
+ }
+
+ public static HandleRef getCPtr(SWIGTYPE_p_GDALSubdatasetInfo obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/SWIGTYPE_p_GUIntBig.cs b/Geospatial/GDAL-Bindings/GDAL/SWIGTYPE_p_GUIntBig.cs
new file mode 100644
index 0000000..f8700e1
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/SWIGTYPE_p_GUIntBig.cs
@@ -0,0 +1,32 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class SWIGTYPE_p_GUIntBig {
+ private HandleRef swigCPtr;
+
+ public SWIGTYPE_p_GUIntBig(IntPtr cPtr, bool futureUse, object parent) {
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ protected SWIGTYPE_p_GUIntBig() {
+ swigCPtr = new HandleRef(null, IntPtr.Zero);
+ }
+
+ public static HandleRef getCPtr(SWIGTYPE_p_GUIntBig obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/SWIGTYPE_p_OGRFieldDomainShadow.cs b/Geospatial/GDAL-Bindings/GDAL/SWIGTYPE_p_OGRFieldDomainShadow.cs
new file mode 100644
index 0000000..afe2d13
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/SWIGTYPE_p_OGRFieldDomainShadow.cs
@@ -0,0 +1,32 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class SWIGTYPE_p_OGRFieldDomainShadow {
+ private HandleRef swigCPtr;
+
+ public SWIGTYPE_p_OGRFieldDomainShadow(IntPtr cPtr, bool futureUse, object parent) {
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ protected SWIGTYPE_p_OGRFieldDomainShadow() {
+ swigCPtr = new HandleRef(null, IntPtr.Zero);
+ }
+
+ public static HandleRef getCPtr(SWIGTYPE_p_OGRFieldDomainShadow obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/SWIGTYPE_p_int.cs b/Geospatial/GDAL-Bindings/GDAL/SWIGTYPE_p_int.cs
new file mode 100644
index 0000000..dd2236b
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/SWIGTYPE_p_int.cs
@@ -0,0 +1,32 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class SWIGTYPE_p_int {
+ private HandleRef swigCPtr;
+
+ public SWIGTYPE_p_int(IntPtr cPtr, bool futureUse, object parent) {
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ protected SWIGTYPE_p_int() {
+ swigCPtr = new HandleRef(null, IntPtr.Zero);
+ }
+
+ public static HandleRef getCPtr(SWIGTYPE_p_int obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/SWIGTYPE_p_p_GDALRasterBandShadow.cs b/Geospatial/GDAL-Bindings/GDAL/SWIGTYPE_p_p_GDALRasterBandShadow.cs
new file mode 100644
index 0000000..5949709
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/SWIGTYPE_p_p_GDALRasterBandShadow.cs
@@ -0,0 +1,32 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class SWIGTYPE_p_p_GDALRasterBandShadow {
+ private HandleRef swigCPtr;
+
+ public SWIGTYPE_p_p_GDALRasterBandShadow(IntPtr cPtr, bool futureUse, object parent) {
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ protected SWIGTYPE_p_p_GDALRasterBandShadow() {
+ swigCPtr = new HandleRef(null, IntPtr.Zero);
+ }
+
+ public static HandleRef getCPtr(SWIGTYPE_p_p_GDALRasterBandShadow obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/SWIGTYPE_p_p_char.cs b/Geospatial/GDAL-Bindings/GDAL/SWIGTYPE_p_p_char.cs
new file mode 100644
index 0000000..4bc44d3
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/SWIGTYPE_p_p_char.cs
@@ -0,0 +1,32 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class SWIGTYPE_p_p_char {
+ private HandleRef swigCPtr;
+
+ public SWIGTYPE_p_p_char(IntPtr cPtr, bool futureUse, object parent) {
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ protected SWIGTYPE_p_p_char() {
+ swigCPtr = new HandleRef(null, IntPtr.Zero);
+ }
+
+ public static HandleRef getCPtr(SWIGTYPE_p_p_char obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/SWIGTYPE_p_void.cs b/Geospatial/GDAL-Bindings/GDAL/SWIGTYPE_p_void.cs
new file mode 100644
index 0000000..357c869
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/SWIGTYPE_p_void.cs
@@ -0,0 +1,32 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class SWIGTYPE_p_void {
+ private HandleRef swigCPtr;
+
+ public SWIGTYPE_p_void(IntPtr cPtr, bool futureUse, object parent) {
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ protected SWIGTYPE_p_void() {
+ swigCPtr = new HandleRef(null, IntPtr.Zero);
+ }
+
+ public static HandleRef getCPtr(SWIGTYPE_p_void obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/SubdatasetInfo.cs b/Geospatial/GDAL-Bindings/GDAL/SubdatasetInfo.cs
new file mode 100644
index 0000000..9919158
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/SubdatasetInfo.cs
@@ -0,0 +1,94 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class SubdatasetInfo : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public SubdatasetInfo(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(SubdatasetInfo obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(SubdatasetInfo obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(SubdatasetInfo obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~SubdatasetInfo() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ GdalPINVOKE.delete_SubdatasetInfo(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public string GetPathComponent() {
+ string ret = GdalPINVOKE.SubdatasetInfo_GetPathComponent(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetSubdatasetComponent() {
+ string ret = GdalPINVOKE.SubdatasetInfo_GetSubdatasetComponent(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string ModifyPathComponent(string pszNewFileName) {
+ string ret = GdalPINVOKE.SubdatasetInfo_ModifyPathComponent(swigCPtr, pszNewFileName);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/SuggestedWarpOutputRes.cs b/Geospatial/GDAL-Bindings/GDAL/SuggestedWarpOutputRes.cs
new file mode 100644
index 0000000..c816bd3
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/SuggestedWarpOutputRes.cs
@@ -0,0 +1,129 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class SuggestedWarpOutputRes : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public SuggestedWarpOutputRes(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(SuggestedWarpOutputRes obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(SuggestedWarpOutputRes obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(SuggestedWarpOutputRes obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~SuggestedWarpOutputRes() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ GdalPINVOKE.delete_SuggestedWarpOutputRes(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public int width {
+ get {
+ int ret = GdalPINVOKE.SuggestedWarpOutputRes_width_get(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public int height {
+ get {
+ int ret = GdalPINVOKE.SuggestedWarpOutputRes_height_get(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public double xmin {
+ get {
+ double ret = GdalPINVOKE.SuggestedWarpOutputRes_xmin_get(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public double ymin {
+ get {
+ double ret = GdalPINVOKE.SuggestedWarpOutputRes_ymin_get(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public double xmax {
+ get {
+ double ret = GdalPINVOKE.SuggestedWarpOutputRes_xmax_get(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public double ymax {
+ get {
+ double ret = GdalPINVOKE.SuggestedWarpOutputRes_ymax_get(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public void GetGeotransform(double[] geotransform) {
+ GdalPINVOKE.SuggestedWarpOutputRes_GetGeotransform(swigCPtr, geotransform);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/Transformer.cs b/Geospatial/GDAL-Bindings/GDAL/Transformer.cs
new file mode 100644
index 0000000..759ca26
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/Transformer.cs
@@ -0,0 +1,104 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class Transformer : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public Transformer(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(Transformer obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(Transformer obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(Transformer obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~Transformer() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ GdalPINVOKE.delete_Transformer(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public Transformer(Dataset src, Dataset dst, string[] options) : this(GdalPINVOKE.new_Transformer(Dataset.getCPtr(src), Dataset.getCPtr(dst), (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null), true, null) {
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public int TransformPoint(int bDstToSrc, double[] inout) {
+ int ret = GdalPINVOKE.Transformer_TransformPoint__SWIG_0(swigCPtr, bDstToSrc, inout);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int TransformPoint(double[] argout, int bDstToSrc, double x, double y, double z) {
+ int ret = GdalPINVOKE.Transformer_TransformPoint__SWIG_1(swigCPtr, argout, bDstToSrc, x, y, z);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int TransformPoints(int bDstToSrc, int nCount, double[] x, double[] y, double[] z, double[] panSuccess) {
+ int ret = GdalPINVOKE.Transformer_TransformPoints(swigCPtr, bDstToSrc, nCount, x, y, z, panSuccess);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int TransformGeolocations(Band xBand, Band yBand, Band zBand, Gdal.GDALProgressFuncDelegate callback, string callback_data, string[] options) {
+ int ret = GdalPINVOKE.Transformer_TransformGeolocations(swigCPtr, Band.getCPtr(xBand), Band.getCPtr(yBand), Band.getCPtr(zBand), callback, callback_data, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/ViewshedMode.cs b/Geospatial/GDAL-Bindings/GDAL/ViewshedMode.cs
new file mode 100644
index 0000000..c4f0ce1
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/ViewshedMode.cs
@@ -0,0 +1,20 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+public enum ViewshedMode {
+ GVM_Diagonal = 1,
+ GVM_Edge = 2,
+ GVM_Max = 3,
+ GVM_Min = 4
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/ViewshedOutputType.cs b/Geospatial/GDAL-Bindings/GDAL/ViewshedOutputType.cs
new file mode 100644
index 0000000..6289287
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/ViewshedOutputType.cs
@@ -0,0 +1,19 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+public enum ViewshedOutputType {
+ GVOT_NORMAL = 1,
+ GVOT_MIN_TARGET_HEIGHT_FROM_DEM = 2,
+ GVOT_MIN_TARGET_HEIGHT_FROM_GROUND = 3
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/XMLNode.cs b/Geospatial/GDAL-Bindings/GDAL/XMLNode.cs
new file mode 100644
index 0000000..2d12654
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/XMLNode.cs
@@ -0,0 +1,198 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class XMLNode : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public XMLNode(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(XMLNode obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(XMLNode obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(XMLNode obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~XMLNode() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ GdalPINVOKE.delete_XMLNode(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public XMLNodeType Type {
+ get {
+ XMLNodeType ret = (XMLNodeType)GdalPINVOKE.XMLNode_Type_get(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public string Value {
+ get {
+ string ret = GdalPINVOKE.XMLNode_Value_get(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public XMLNode Next {
+ get {
+ IntPtr cPtr = GdalPINVOKE.XMLNode_Next_get(swigCPtr);
+ XMLNode ret = (cPtr == IntPtr.Zero) ? null : new XMLNode(cPtr, false, ThisOwn_false());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public XMLNode Child {
+ get {
+ IntPtr cPtr = GdalPINVOKE.XMLNode_Child_get(swigCPtr);
+ XMLNode ret = (cPtr == IntPtr.Zero) ? null : new XMLNode(cPtr, false, ThisOwn_false());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public XMLNode(string pszString) : this(GdalPINVOKE.new_XMLNode__SWIG_0(pszString), true, null) {
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public XMLNode(XMLNodeType eType, string pszText) : this(GdalPINVOKE.new_XMLNode__SWIG_1((int)eType, pszText), true, null) {
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public string SerializeXMLTree() {
+ string ret = GdalPINVOKE.XMLNode_SerializeXMLTree(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string toString() {
+ string ret = GdalPINVOKE.XMLNode_toString(swigCPtr);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public XMLNode SearchXMLNode(string pszElement) {
+ IntPtr cPtr = GdalPINVOKE.XMLNode_SearchXMLNode(swigCPtr, pszElement);
+ XMLNode ret = (cPtr == IntPtr.Zero) ? null : new XMLNode(cPtr, false, ThisOwn_false());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public XMLNode GetXMLNode(string pszPath) {
+ IntPtr cPtr = GdalPINVOKE.XMLNode_GetXMLNode(swigCPtr, pszPath);
+ XMLNode ret = (cPtr == IntPtr.Zero) ? null : new XMLNode(cPtr, false, ThisOwn_false());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetXMLValue(string pszPath, string pszDefault) {
+ string ret = GdalPINVOKE.XMLNode_GetXMLValue(swigCPtr, pszPath, pszDefault);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void AddXMLChild(XMLNode psChild) {
+ GdalPINVOKE.XMLNode_AddXMLChild(swigCPtr, XMLNode.getCPtr(psChild));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public int RemoveXMLChild(XMLNode psChild) {
+ int ret = GdalPINVOKE.XMLNode_RemoveXMLChild(swigCPtr, XMLNode.getCPtr(psChild));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void AddXMLSibling(XMLNode psNewSibling) {
+ GdalPINVOKE.XMLNode_AddXMLSibling(swigCPtr, XMLNode.getCPtr(psNewSibling));
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public XMLNode CreateXMLElementAndValue(string pszName, string pszValue) {
+ IntPtr cPtr = GdalPINVOKE.XMLNode_CreateXMLElementAndValue(swigCPtr, pszName, pszValue);
+ XMLNode ret = (cPtr == IntPtr.Zero) ? null : new XMLNode(cPtr, false, ThisOwn_false());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public XMLNode CloneXMLTree(XMLNode psTree) {
+ IntPtr cPtr = GdalPINVOKE.XMLNode_CloneXMLTree(swigCPtr, XMLNode.getCPtr(psTree));
+ XMLNode ret = (cPtr == IntPtr.Zero) ? null : new XMLNode(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public XMLNode Clone() {
+ IntPtr cPtr = GdalPINVOKE.XMLNode_Clone(swigCPtr);
+ XMLNode ret = (cPtr == IntPtr.Zero) ? null : new XMLNode(cPtr, true, ThisOwn_true());
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetXMLValue(string pszPath, string pszValue) {
+ int ret = GdalPINVOKE.XMLNode_SetXMLValue(swigCPtr, pszPath, pszValue);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void StripXMLNamespace(string pszNamespace, int bRecurse) {
+ GdalPINVOKE.XMLNode_StripXMLNamespace(swigCPtr, pszNamespace, bRecurse);
+ if (GdalPINVOKE.SWIGPendingException.Pending) throw GdalPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/GDAL/XMLNodeType.cs b/Geospatial/GDAL-Bindings/GDAL/XMLNodeType.cs
new file mode 100644
index 0000000..20054bb
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/GDAL/XMLNodeType.cs
@@ -0,0 +1,21 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.GDAL {
+
+public enum XMLNodeType {
+ CXT_Element = 0,
+ CXT_Text = 1,
+ CXT_Attribute = 2,
+ CXT_Comment = 3,
+ CXT_Literal = 4
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OGR/DataSource.cs b/Geospatial/GDAL-Bindings/OGR/DataSource.cs
new file mode 100644
index 0000000..e1dfe5a
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OGR/DataSource.cs
@@ -0,0 +1,220 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OGR {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class DataSource : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public DataSource(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(DataSource obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(DataSource obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(DataSource obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~DataSource() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ OgrPINVOKE.delete_DataSource(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public string name {
+ get {
+ string ret = OgrPINVOKE.DataSource_name_get(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public SWIGTYPE_p_CPLErr Close() {
+ SWIGTYPE_p_CPLErr ret = new SWIGTYPE_p_CPLErr(OgrPINVOKE.DataSource_Close(swigCPtr), true, null);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int GetRefCount() {
+ int ret = OgrPINVOKE.DataSource_GetRefCount(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int GetSummaryRefCount() {
+ int ret = OgrPINVOKE.DataSource_GetSummaryRefCount(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int GetLayerCount() {
+ int ret = OgrPINVOKE.DataSource_GetLayerCount(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Driver GetDriver() {
+ IntPtr cPtr = OgrPINVOKE.DataSource_GetDriver(swigCPtr);
+ Driver ret = (cPtr == IntPtr.Zero) ? null : new Driver(cPtr, false, ThisOwn_false());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetName() {
+ string ret = OgrPINVOKE.DataSource_GetName(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int DeleteLayer(int index) {
+ int ret = OgrPINVOKE.DataSource_DeleteLayer(swigCPtr, index);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SyncToDisk() {
+ int ret = OgrPINVOKE.DataSource_SyncToDisk(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void FlushCache() {
+ OgrPINVOKE.DataSource_FlushCache(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public Layer CreateLayer(string name, OSGeo.OSR.SpatialReference srs, wkbGeometryType geom_type, string[] options) {
+ IntPtr cPtr = OgrPINVOKE.DataSource_CreateLayer(swigCPtr, name, OSGeo.OSR.SpatialReference.getCPtr(srs), (int)geom_type, (options != null)? new OgrPINVOKE.StringListMarshal(options)._ar : null);
+ Layer ret = (cPtr == IntPtr.Zero) ? null : new Layer(cPtr, false, ThisOwn_false());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Layer CopyLayer(Layer src_layer, string new_name, string[] options) {
+ IntPtr cPtr = OgrPINVOKE.DataSource_CopyLayer(swigCPtr, Layer.getCPtr(src_layer), new_name, (options != null)? new OgrPINVOKE.StringListMarshal(options)._ar : null);
+ Layer ret = (cPtr == IntPtr.Zero) ? null : new Layer(cPtr, false, ThisOwn_false());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Layer GetLayerByIndex(int index) {
+ IntPtr cPtr = OgrPINVOKE.DataSource_GetLayerByIndex(swigCPtr, index);
+ Layer ret = (cPtr == IntPtr.Zero) ? null : new Layer(cPtr, false, ThisOwn_false());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Layer GetLayerByName(string layer_name) {
+ IntPtr cPtr = OgrPINVOKE.DataSource_GetLayerByName(swigCPtr, Ogr.StringToUtf8Bytes(layer_name));
+ Layer ret = (cPtr == IntPtr.Zero) ? null : new Layer(cPtr, false, ThisOwn_false());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool TestCapability(string cap) {
+ bool ret = OgrPINVOKE.DataSource_TestCapability(swigCPtr, cap);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Layer ExecuteSQL(string statement, Geometry spatialFilter, string dialect) {
+ IntPtr cPtr = OgrPINVOKE.DataSource_ExecuteSQL(swigCPtr, statement, Geometry.getCPtr(spatialFilter), dialect);
+ Layer ret = (cPtr == IntPtr.Zero) ? null : new Layer(cPtr, false, ThisOwn_false());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int AbortSQL() {
+ int ret = OgrPINVOKE.DataSource_AbortSQL(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void ReleaseResultSet(Layer layer) {
+ OgrPINVOKE.DataSource_ReleaseResultSet(swigCPtr, Layer.getCPtrAndDisown(layer, ThisOwn_false()));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public StyleTable GetStyleTable() {
+ IntPtr cPtr = OgrPINVOKE.DataSource_GetStyleTable(swigCPtr);
+ StyleTable ret = (cPtr == IntPtr.Zero) ? null : new StyleTable(cPtr, false, ThisOwn_false());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetStyleTable(StyleTable table) {
+ OgrPINVOKE.DataSource_SetStyleTable(swigCPtr, StyleTable.getCPtr(table));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public int StartTransaction(int force) {
+ int ret = OgrPINVOKE.DataSource_StartTransaction(swigCPtr, force);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int CommitTransaction() {
+ int ret = OgrPINVOKE.DataSource_CommitTransaction(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int RollbackTransaction() {
+ int ret = OgrPINVOKE.DataSource_RollbackTransaction(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OGR/Driver.cs b/Geospatial/GDAL-Bindings/OGR/Driver.cs
new file mode 100644
index 0000000..ae9fef6
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OGR/Driver.cs
@@ -0,0 +1,133 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OGR {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class Driver : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public Driver(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(Driver obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(Driver obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(Driver obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~Driver() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ throw new global::System.MethodAccessException("C++ destructor does not have public access");
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public string name {
+ get {
+ string ret = OgrPINVOKE.Driver_name_get(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public DataSource CreateDataSource(string utf8_path, string[] options) {
+ IntPtr cPtr = OgrPINVOKE.Driver_CreateDataSource(swigCPtr, Ogr.StringToUtf8Bytes(utf8_path), (options != null)? new OgrPINVOKE.StringListMarshal(options)._ar : null);
+ DataSource ret = (cPtr == IntPtr.Zero) ? null : new DataSource(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public DataSource CopyDataSource(DataSource copy_ds, string utf8_path, string[] options) {
+ IntPtr cPtr = OgrPINVOKE.Driver_CopyDataSource(swigCPtr, DataSource.getCPtr(copy_ds), Ogr.StringToUtf8Bytes(utf8_path), (options != null)? new OgrPINVOKE.StringListMarshal(options)._ar : null);
+ DataSource ret = (cPtr == IntPtr.Zero) ? null : new DataSource(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public DataSource Open(string utf8_path, int update) {
+ IntPtr cPtr = OgrPINVOKE.Driver_Open(swigCPtr, Ogr.StringToUtf8Bytes(utf8_path), update);
+ DataSource ret = (cPtr == IntPtr.Zero) ? null : new DataSource(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int DeleteDataSource(string utf8_path) {
+ int ret = OgrPINVOKE.Driver_DeleteDataSource(swigCPtr, Ogr.StringToUtf8Bytes(utf8_path));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool TestCapability(string cap) {
+ bool ret = OgrPINVOKE.Driver_TestCapability(swigCPtr, cap);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetName() {
+ string ret = OgrPINVOKE.Driver_GetName(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void Register() {
+ OgrPINVOKE.Driver_Register(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void Deregister() {
+ OgrPINVOKE.Driver_Deregister(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OGR/Envelope.cs b/Geospatial/GDAL-Bindings/OGR/Envelope.cs
new file mode 100644
index 0000000..628cfcd
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OGR/Envelope.cs
@@ -0,0 +1,128 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OGR {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class Envelope : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public Envelope(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(Envelope obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(Envelope obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(Envelope obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~Envelope() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ OgrPINVOKE.delete_Envelope(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public double MinX {
+ set {
+ OgrPINVOKE.Envelope_MinX_set(swigCPtr, value);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get {
+ double ret = OgrPINVOKE.Envelope_MinX_get(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public double MaxX {
+ set {
+ OgrPINVOKE.Envelope_MaxX_set(swigCPtr, value);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get {
+ double ret = OgrPINVOKE.Envelope_MaxX_get(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public double MinY {
+ set {
+ OgrPINVOKE.Envelope_MinY_set(swigCPtr, value);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get {
+ double ret = OgrPINVOKE.Envelope_MinY_get(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public double MaxY {
+ set {
+ OgrPINVOKE.Envelope_MaxY_set(swigCPtr, value);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get {
+ double ret = OgrPINVOKE.Envelope_MaxY_get(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public Envelope() : this(OgrPINVOKE.new_Envelope(), true, null) {
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OGR/Envelope3D.cs b/Geospatial/GDAL-Bindings/OGR/Envelope3D.cs
new file mode 100644
index 0000000..cf7ff77
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OGR/Envelope3D.cs
@@ -0,0 +1,152 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OGR {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class Envelope3D : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public Envelope3D(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(Envelope3D obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(Envelope3D obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(Envelope3D obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~Envelope3D() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ OgrPINVOKE.delete_Envelope3D(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public double MinX {
+ set {
+ OgrPINVOKE.Envelope3D_MinX_set(swigCPtr, value);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get {
+ double ret = OgrPINVOKE.Envelope3D_MinX_get(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public double MaxX {
+ set {
+ OgrPINVOKE.Envelope3D_MaxX_set(swigCPtr, value);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get {
+ double ret = OgrPINVOKE.Envelope3D_MaxX_get(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public double MinY {
+ set {
+ OgrPINVOKE.Envelope3D_MinY_set(swigCPtr, value);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get {
+ double ret = OgrPINVOKE.Envelope3D_MinY_get(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public double MaxY {
+ set {
+ OgrPINVOKE.Envelope3D_MaxY_set(swigCPtr, value);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get {
+ double ret = OgrPINVOKE.Envelope3D_MaxY_get(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public double MinZ {
+ set {
+ OgrPINVOKE.Envelope3D_MinZ_set(swigCPtr, value);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get {
+ double ret = OgrPINVOKE.Envelope3D_MinZ_get(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public double MaxZ {
+ set {
+ OgrPINVOKE.Envelope3D_MaxZ_set(swigCPtr, value);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+ get {
+ double ret = OgrPINVOKE.Envelope3D_MaxZ_get(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public Envelope3D() : this(OgrPINVOKE.new_Envelope3D(), true, null) {
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OGR/Feature.cs b/Geospatial/GDAL-Bindings/OGR/Feature.cs
new file mode 100644
index 0000000..c4addcb
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OGR/Feature.cs
@@ -0,0 +1,574 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OGR {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class Feature : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public Feature(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(Feature obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(Feature obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(Feature obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~Feature() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ OgrPINVOKE.delete_Feature(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public Feature(FeatureDefn feature_def) : this(OgrPINVOKE.new_Feature(FeatureDefn.getCPtr(feature_def)), true, null) {
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public FeatureDefn GetDefnRef() {
+ IntPtr cPtr = OgrPINVOKE.Feature_GetDefnRef(swigCPtr);
+ FeatureDefn ret = (cPtr == IntPtr.Zero) ? null : new FeatureDefn(cPtr, false, ThisOwn_false());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetGeometry(Geometry geom) {
+ int ret = OgrPINVOKE.Feature_SetGeometry(swigCPtr, Geometry.getCPtr(geom));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetGeometryDirectly(Geometry geom) {
+ int ret = OgrPINVOKE.Feature_SetGeometryDirectly(swigCPtr, Geometry.getCPtrAndDisown(geom, ThisOwn_false()));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Geometry GetGeometryRef() {
+ IntPtr cPtr = OgrPINVOKE.Feature_GetGeometryRef(swigCPtr);
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, false, ThisOwn_false());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public IntPtr GetGeometryRefPtr() {
+ IntPtr cPtr = OgrPINVOKE.Feature_GetGeometryRef(swigCPtr);
+ //Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, false, ThisOwn_false());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return cPtr;
+ }
+
+ public static IntPtr GetGeometryRefPtr(object owner, IntPtr ftPtr)
+ {
+ IntPtr cPtr = OgrPINVOKE.Feature_GetGeometryRef(new HandleRef(owner, ftPtr));
+ //Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, false, ThisOwn_false());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return cPtr;
+ }
+
+ public int SetGeomField(int iField, Geometry geom) {
+ int ret = OgrPINVOKE.Feature_SetGeomField__SWIG_0(swigCPtr, iField, Geometry.getCPtr(geom));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetGeomField(string field_name, Geometry geom) {
+ int ret = OgrPINVOKE.Feature_SetGeomField__SWIG_1(swigCPtr, field_name, Geometry.getCPtr(geom));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetGeomFieldDirectly(int iField, Geometry geom) {
+ int ret = OgrPINVOKE.Feature_SetGeomFieldDirectly__SWIG_0(swigCPtr, iField, Geometry.getCPtrAndDisown(geom, ThisOwn_false()));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetGeomFieldDirectly(string field_name, Geometry geom) {
+ int ret = OgrPINVOKE.Feature_SetGeomFieldDirectly__SWIG_1(swigCPtr, field_name, Geometry.getCPtrAndDisown(geom, ThisOwn_false()));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Geometry GetGeomFieldRef(int iField) {
+ IntPtr cPtr = OgrPINVOKE.Feature_GetGeomFieldRef__SWIG_0(swigCPtr, iField);
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, false, ThisOwn_false());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Geometry GetGeomFieldRef(string field_name) {
+ IntPtr cPtr = OgrPINVOKE.Feature_GetGeomFieldRef__SWIG_1(swigCPtr, field_name);
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, false, ThisOwn_false());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Feature Clone() {
+ IntPtr cPtr = OgrPINVOKE.Feature_Clone(swigCPtr);
+ Feature ret = (cPtr == IntPtr.Zero) ? null : new Feature(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool Equal(Feature feature) {
+ bool ret = OgrPINVOKE.Feature_Equal(swigCPtr, Feature.getCPtr(feature));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int GetFieldCount() {
+ int ret = OgrPINVOKE.Feature_GetFieldCount(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public FieldDefn GetFieldDefnRef(int id) {
+ IntPtr cPtr = OgrPINVOKE.Feature_GetFieldDefnRef__SWIG_0(swigCPtr, id);
+ FieldDefn ret = (cPtr == IntPtr.Zero) ? null : new FieldDefn(cPtr, false, ThisOwn_false());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public FieldDefn GetFieldDefnRef(string field_name) {
+ IntPtr cPtr = OgrPINVOKE.Feature_GetFieldDefnRef__SWIG_1(swigCPtr, field_name);
+ FieldDefn ret = (cPtr == IntPtr.Zero) ? null : new FieldDefn(cPtr, false, ThisOwn_false());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int GetGeomFieldCount() {
+ int ret = OgrPINVOKE.Feature_GetGeomFieldCount(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public GeomFieldDefn GetGeomFieldDefnRef(int id) {
+ IntPtr cPtr = OgrPINVOKE.Feature_GetGeomFieldDefnRef__SWIG_0(swigCPtr, id);
+ GeomFieldDefn ret = (cPtr == IntPtr.Zero) ? null : new GeomFieldDefn(cPtr, false, ThisOwn_false());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public GeomFieldDefn GetGeomFieldDefnRef(string field_name) {
+ IntPtr cPtr = OgrPINVOKE.Feature_GetGeomFieldDefnRef__SWIG_1(swigCPtr, field_name);
+ GeomFieldDefn ret = (cPtr == IntPtr.Zero) ? null : new GeomFieldDefn(cPtr, false, ThisOwn_false());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetFieldAsString(int id) {
+ /* %typemap(csout) (const char *utf8_path) */
+ IntPtr cPtr = OgrPINVOKE.Feature_GetFieldAsString__SWIG_0(swigCPtr, id);
+ string ret = Ogr.Utf8BytesToString(cPtr);
+
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+}
+
+ public string GetFieldAsString(string field_name) {
+ /* %typemap(csout) (const char *utf8_path) */
+ IntPtr cPtr = OgrPINVOKE.Feature_GetFieldAsString__SWIG_1(swigCPtr, field_name);
+ string ret = Ogr.Utf8BytesToString(cPtr);
+
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ // Zach M has made this function to bypass string allocation
+ public IntPtr GetFieldAsStringPtr(string field_name)
+ {
+ /* %typemap(csout) (const char *utf8_path) */
+ IntPtr cPtr = OgrPINVOKE.Feature_GetFieldAsString__SWIG_1(swigCPtr, field_name);
+
+ if (OgrPINVOKE.SWIGPendingException.Pending)
+ throw OgrPINVOKE.SWIGPendingException.Retrieve();
+
+ return cPtr;
+ }
+
+ public string GetFieldAsISO8601DateTime(int id, string[] options) {
+ string ret = OgrPINVOKE.Feature_GetFieldAsISO8601DateTime__SWIG_0(swigCPtr, id, (options != null)? new OgrPINVOKE.StringListMarshal(options)._ar : null);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetFieldAsISO8601DateTime(string field_name, string[] options) {
+ string ret = OgrPINVOKE.Feature_GetFieldAsISO8601DateTime__SWIG_1(swigCPtr, field_name, (options != null)? new OgrPINVOKE.StringListMarshal(options)._ar : null);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int GetFieldAsInteger(int id) {
+ int ret = OgrPINVOKE.Feature_GetFieldAsInteger__SWIG_0(swigCPtr, id);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int GetFieldAsInteger(string field_name) {
+ int ret = OgrPINVOKE.Feature_GetFieldAsInteger__SWIG_1(swigCPtr, field_name);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public long GetFieldAsInteger64(int id) {
+ long res = OgrPINVOKE.Feature_GetFieldAsInteger64__SWIG_0(swigCPtr, id);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return res;
+}
+
+ public long GetFieldAsInteger64(string field_name) {
+ long res = OgrPINVOKE.Feature_GetFieldAsInteger64__SWIG_1(swigCPtr, field_name);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return res;
+}
+
+ public double GetFieldAsDouble(int id) {
+ double ret = OgrPINVOKE.Feature_GetFieldAsDouble__SWIG_0(swigCPtr, id);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public double GetFieldAsDouble(string field_name) {
+ double ret = OgrPINVOKE.Feature_GetFieldAsDouble__SWIG_1(swigCPtr, field_name);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void GetFieldAsDateTime(int id, out int pnYear, out int pnMonth, out int pnDay, out int pnHour, out int pnMinute, out float pfSecond, out int pnTZFlag) {
+ OgrPINVOKE.Feature_GetFieldAsDateTime__SWIG_0(swigCPtr, id, out pnYear, out pnMonth, out pnDay, out pnHour, out pnMinute, out pfSecond, out pnTZFlag);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void GetFieldAsDateTime(string field_name, out int pnYear, out int pnMonth, out int pnDay, out int pnHour, out int pnMinute, out float pfSecond, out int pnTZFlag) {
+ OgrPINVOKE.Feature_GetFieldAsDateTime__SWIG_1(swigCPtr, field_name, out pnYear, out pnMonth, out pnDay, out pnHour, out pnMinute, out pfSecond, out pnTZFlag);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public int[] GetFieldAsIntegerList(int id, out int count) {
+ /* %typemap(csout) int *intList */
+ IntPtr cPtr = OgrPINVOKE.Feature_GetFieldAsIntegerList(swigCPtr, id, out count);
+ int[] ret = new int[count];
+ if (count > 0) {
+ System.Runtime.InteropServices.Marshal.Copy(cPtr, ret, 0, count);
+ }
+
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+}
+
+ public double[] GetFieldAsDoubleList(int id, out int count) {
+ /* %typemap(csout) int *intList */
+ IntPtr cPtr = OgrPINVOKE.Feature_GetFieldAsDoubleList(swigCPtr, id, out count);
+ double[] ret = new double[count];
+ if (count > 0) {
+ System.Runtime.InteropServices.Marshal.Copy(cPtr, ret, 0, count);
+ }
+
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+}
+
+ public string[] GetFieldAsStringList(int id) {
+ /* %typemap(csout) char**options */
+ IntPtr cPtr = OgrPINVOKE.Feature_GetFieldAsStringList(swigCPtr, id);
+ IntPtr objPtr;
+ int count = 0;
+ if (cPtr != IntPtr.Zero) {
+ while (Marshal.ReadIntPtr(cPtr, count*IntPtr.Size) != IntPtr.Zero)
+ ++count;
+ }
+ string[] ret = new string[count];
+ if (count > 0) {
+ for(int cx = 0; cx < count; cx++) {
+ objPtr = System.Runtime.InteropServices.Marshal.ReadIntPtr(cPtr, cx * System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntPtr)));
+ ret[cx]= (objPtr == IntPtr.Zero) ? null : System.Runtime.InteropServices.Marshal.PtrToStringAnsi(objPtr);
+ }
+ }
+
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+}
+
+ public bool IsFieldSet(int id) {
+ bool ret = OgrPINVOKE.Feature_IsFieldSet__SWIG_0(swigCPtr, id);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool IsFieldSet(string field_name) {
+ bool ret = OgrPINVOKE.Feature_IsFieldSet__SWIG_1(swigCPtr, field_name);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool IsFieldNull(int id) {
+ bool ret = OgrPINVOKE.Feature_IsFieldNull__SWIG_0(swigCPtr, id);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool IsFieldNull(string field_name) {
+ bool ret = OgrPINVOKE.Feature_IsFieldNull__SWIG_1(swigCPtr, field_name);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool IsFieldSetAndNotNull(int id) {
+ bool ret = OgrPINVOKE.Feature_IsFieldSetAndNotNull__SWIG_0(swigCPtr, id);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool IsFieldSetAndNotNull(string field_name) {
+ bool ret = OgrPINVOKE.Feature_IsFieldSetAndNotNull__SWIG_1(swigCPtr, field_name);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int GetFieldIndex(string field_name) {
+ int ret = OgrPINVOKE.Feature_GetFieldIndex(swigCPtr, field_name);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int GetGeomFieldIndex(string field_name) {
+ int ret = OgrPINVOKE.Feature_GetGeomFieldIndex(swigCPtr, field_name);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public long GetFID() {
+ long res = OgrPINVOKE.Feature_GetFID(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return res;
+}
+
+ public int SetFID(long fid) {
+ int ret = OgrPINVOKE.Feature_SetFID(swigCPtr, fid);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void DumpReadable() {
+ OgrPINVOKE.Feature_DumpReadable(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public string DumpReadableAsString(string[] options) {
+ string ret = OgrPINVOKE.Feature_DumpReadableAsString(swigCPtr, (options != null)? new OgrPINVOKE.StringListMarshal(options)._ar : null);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void UnsetField(int id) {
+ OgrPINVOKE.Feature_UnsetField__SWIG_0(swigCPtr, id);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void UnsetField(string field_name) {
+ OgrPINVOKE.Feature_UnsetField__SWIG_1(swigCPtr, field_name);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void SetFieldNull(int id) {
+ OgrPINVOKE.Feature_SetFieldNull__SWIG_0(swigCPtr, id);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void SetFieldNull(string field_name) {
+ OgrPINVOKE.Feature_SetFieldNull__SWIG_1(swigCPtr, field_name);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void SetField(int id, string value) {
+ OgrPINVOKE.Feature_SetField__SWIG_0(swigCPtr, id, Ogr.StringToUtf8Bytes(value));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void SetField(string field_name, string value) {
+ OgrPINVOKE.Feature_SetField__SWIG_1(swigCPtr, field_name, Ogr.StringToUtf8Bytes(value));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void SetFieldInteger64(int id, long value) {
+ OgrPINVOKE.Feature_SetFieldInteger64(swigCPtr, id, value);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void SetField(int id, int value) {
+ OgrPINVOKE.Feature_SetField__SWIG_2(swigCPtr, id, value);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void SetField(string field_name, int value) {
+ OgrPINVOKE.Feature_SetField__SWIG_3(swigCPtr, field_name, value);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void SetField(int id, double value) {
+ OgrPINVOKE.Feature_SetField__SWIG_4(swigCPtr, id, value);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void SetField(string field_name, double value) {
+ OgrPINVOKE.Feature_SetField__SWIG_5(swigCPtr, field_name, value);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void SetField(int id, int year, int month, int day, int hour, int minute, float second, int tzflag) {
+ OgrPINVOKE.Feature_SetField__SWIG_6(swigCPtr, id, year, month, day, hour, minute, second, tzflag);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void SetField(string field_name, int year, int month, int day, int hour, int minute, float second, int tzflag) {
+ OgrPINVOKE.Feature_SetField__SWIG_7(swigCPtr, field_name, year, month, day, hour, minute, second, tzflag);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void SetFieldIntegerList(int id, int nList, int[] pList) {
+ OgrPINVOKE.Feature_SetFieldIntegerList(swigCPtr, id, nList, pList);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void SetFieldDoubleList(int id, int nList, double[] pList) {
+ OgrPINVOKE.Feature_SetFieldDoubleList(swigCPtr, id, nList, pList);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void SetFieldStringList(int id, string[] pList) {
+ OgrPINVOKE.Feature_SetFieldStringList(swigCPtr, id, (pList != null)? new OgrPINVOKE.StringListMarshal(pList)._ar : null);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void SetFieldBinaryFromHexString(int id, string pszValue) {
+ OgrPINVOKE.Feature_SetFieldBinaryFromHexString__SWIG_0(swigCPtr, id, pszValue);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void SetFieldBinaryFromHexString(string field_name, string pszValue) {
+ OgrPINVOKE.Feature_SetFieldBinaryFromHexString__SWIG_1(swigCPtr, field_name, pszValue);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public int SetFrom(Feature other, int forgiving) {
+ int ret = OgrPINVOKE.Feature_SetFrom(swigCPtr, Feature.getCPtr(other), forgiving);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetFromWithMap(Feature other, int forgiving, int nList, int[] pList) {
+ int ret = OgrPINVOKE.Feature_SetFromWithMap(swigCPtr, Feature.getCPtr(other), forgiving, nList, pList);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetStyleString() {
+ string ret = OgrPINVOKE.Feature_GetStyleString(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetStyleString(string the_string) {
+ OgrPINVOKE.Feature_SetStyleString(swigCPtr, the_string);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public FieldType GetFieldType(int id) {
+ FieldType ret = (FieldType)OgrPINVOKE.Feature_GetFieldType__SWIG_0(swigCPtr, id);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public FieldType GetFieldType(string field_name) {
+ FieldType ret = (FieldType)OgrPINVOKE.Feature_GetFieldType__SWIG_1(swigCPtr, field_name);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int Validate(int flags, int bEmitError) {
+ int ret = OgrPINVOKE.Feature_Validate(swigCPtr, flags, bEmitError);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void FillUnsetWithDefault(int bNotNullableOnly, string[] options) {
+ OgrPINVOKE.Feature_FillUnsetWithDefault(swigCPtr, bNotNullableOnly, (options != null)? new OgrPINVOKE.StringListMarshal(options)._ar : null);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public string GetNativeData() {
+ string ret = OgrPINVOKE.Feature_GetNativeData(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetNativeMediaType() {
+ string ret = OgrPINVOKE.Feature_GetNativeMediaType(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetNativeData(string nativeData) {
+ OgrPINVOKE.Feature_SetNativeData(swigCPtr, nativeData);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void SetNativeMediaType(string nativeMediaType) {
+ OgrPINVOKE.Feature_SetNativeMediaType(swigCPtr, nativeMediaType);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OGR/FeatureDefn.cs b/Geospatial/GDAL-Bindings/OGR/FeatureDefn.cs
new file mode 100644
index 0000000..32c8d33
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OGR/FeatureDefn.cs
@@ -0,0 +1,185 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OGR {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class FeatureDefn : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public FeatureDefn(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(FeatureDefn obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(FeatureDefn obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(FeatureDefn obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~FeatureDefn() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ OgrPINVOKE.delete_FeatureDefn(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public FeatureDefn(string name_null_ok) : this(OgrPINVOKE.new_FeatureDefn(name_null_ok), true, null) {
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public string GetName() {
+ string ret = OgrPINVOKE.FeatureDefn_GetName(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int GetFieldCount() {
+ int ret = OgrPINVOKE.FeatureDefn_GetFieldCount(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public FieldDefn GetFieldDefn(int i) {
+ IntPtr cPtr = OgrPINVOKE.FeatureDefn_GetFieldDefn(swigCPtr, i);
+ FieldDefn ret = (cPtr == IntPtr.Zero) ? null : new FieldDefn(cPtr, false, ThisOwn_false());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int GetFieldIndex(string field_name) {
+ int ret = OgrPINVOKE.FeatureDefn_GetFieldIndex(swigCPtr, field_name);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void AddFieldDefn(FieldDefn defn) {
+ OgrPINVOKE.FeatureDefn_AddFieldDefn(swigCPtr, FieldDefn.getCPtr(defn));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public int GetGeomFieldCount() {
+ int ret = OgrPINVOKE.FeatureDefn_GetGeomFieldCount(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public GeomFieldDefn GetGeomFieldDefn(int i) {
+ IntPtr cPtr = OgrPINVOKE.FeatureDefn_GetGeomFieldDefn(swigCPtr, i);
+ GeomFieldDefn ret = (cPtr == IntPtr.Zero) ? null : new GeomFieldDefn(cPtr, false, ThisOwn_false());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int GetGeomFieldIndex(string field_name) {
+ int ret = OgrPINVOKE.FeatureDefn_GetGeomFieldIndex(swigCPtr, field_name);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void AddGeomFieldDefn(GeomFieldDefn defn) {
+ OgrPINVOKE.FeatureDefn_AddGeomFieldDefn(swigCPtr, GeomFieldDefn.getCPtr(defn));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public int DeleteGeomFieldDefn(int idx) {
+ int ret = OgrPINVOKE.FeatureDefn_DeleteGeomFieldDefn(swigCPtr, idx);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public wkbGeometryType GetGeomType() {
+ wkbGeometryType ret = (wkbGeometryType)OgrPINVOKE.FeatureDefn_GetGeomType(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetGeomType(wkbGeometryType geom_type) {
+ OgrPINVOKE.FeatureDefn_SetGeomType(swigCPtr, (int)geom_type);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public int GetReferenceCount() {
+ int ret = OgrPINVOKE.FeatureDefn_GetReferenceCount(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int IsGeometryIgnored() {
+ int ret = OgrPINVOKE.FeatureDefn_IsGeometryIgnored(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetGeometryIgnored(int bIgnored) {
+ OgrPINVOKE.FeatureDefn_SetGeometryIgnored(swigCPtr, bIgnored);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public int IsStyleIgnored() {
+ int ret = OgrPINVOKE.FeatureDefn_IsStyleIgnored(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetStyleIgnored(int bIgnored) {
+ OgrPINVOKE.FeatureDefn_SetStyleIgnored(swigCPtr, bIgnored);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public int IsSame(FeatureDefn other_defn) {
+ int ret = OgrPINVOKE.FeatureDefn_IsSame(swigCPtr, FeatureDefn.getCPtr(other_defn));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OGR/FieldDefn.cs b/Geospatial/GDAL-Bindings/OGR/FieldDefn.cs
new file mode 100644
index 0000000..75ff370
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OGR/FieldDefn.cs
@@ -0,0 +1,264 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OGR {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class FieldDefn : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public FieldDefn(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(FieldDefn obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(FieldDefn obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(FieldDefn obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~FieldDefn() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ OgrPINVOKE.delete_FieldDefn(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public FieldDefn(string name_null_ok, FieldType field_type) : this(OgrPINVOKE.new_FieldDefn(name_null_ok, (int)field_type), true, null) {
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public string GetName() {
+ string ret = OgrPINVOKE.FieldDefn_GetName(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetNameRef() {
+ string ret = OgrPINVOKE.FieldDefn_GetNameRef(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetName(string name) {
+ OgrPINVOKE.FieldDefn_SetName(swigCPtr, name);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public string GetAlternativeName() {
+ string ret = OgrPINVOKE.FieldDefn_GetAlternativeName(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetAlternativeNameRef() {
+ string ret = OgrPINVOKE.FieldDefn_GetAlternativeNameRef(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetAlternativeName(string alternativeName) {
+ OgrPINVOKE.FieldDefn_SetAlternativeName(swigCPtr, alternativeName);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public FieldType GetFieldType() {
+ FieldType ret = (FieldType)OgrPINVOKE.FieldDefn_GetFieldType(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetType(FieldType type) {
+ OgrPINVOKE.FieldDefn_SetType(swigCPtr, (int)type);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public FieldSubType GetSubType() {
+ FieldSubType ret = (FieldSubType)OgrPINVOKE.FieldDefn_GetSubType(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetSubType(FieldSubType type) {
+ OgrPINVOKE.FieldDefn_SetSubType(swigCPtr, (int)type);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public Justification GetJustify() {
+ Justification ret = (Justification)OgrPINVOKE.FieldDefn_GetJustify(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetJustify(Justification justify) {
+ OgrPINVOKE.FieldDefn_SetJustify(swigCPtr, (int)justify);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public int GetWidth() {
+ int ret = OgrPINVOKE.FieldDefn_GetWidth(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetWidth(int width) {
+ OgrPINVOKE.FieldDefn_SetWidth(swigCPtr, width);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public int GetPrecision() {
+ int ret = OgrPINVOKE.FieldDefn_GetPrecision(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetPrecision(int precision) {
+ OgrPINVOKE.FieldDefn_SetPrecision(swigCPtr, precision);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public int GetTZFlag() {
+ int ret = OgrPINVOKE.FieldDefn_GetTZFlag(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetTZFlag(int tzflag) {
+ OgrPINVOKE.FieldDefn_SetTZFlag(swigCPtr, tzflag);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public string GetTypeName() {
+ string ret = OgrPINVOKE.FieldDefn_GetTypeName(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetFieldTypeName(FieldType type) {
+ string ret = OgrPINVOKE.FieldDefn_GetFieldTypeName(swigCPtr, (int)type);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int IsIgnored() {
+ int ret = OgrPINVOKE.FieldDefn_IsIgnored(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetIgnored(int bIgnored) {
+ OgrPINVOKE.FieldDefn_SetIgnored(swigCPtr, bIgnored);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public int IsNullable() {
+ int ret = OgrPINVOKE.FieldDefn_IsNullable(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetNullable(int bNullable) {
+ OgrPINVOKE.FieldDefn_SetNullable(swigCPtr, bNullable);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public int IsUnique() {
+ int ret = OgrPINVOKE.FieldDefn_IsUnique(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetUnique(int bUnique) {
+ OgrPINVOKE.FieldDefn_SetUnique(swigCPtr, bUnique);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public string GetDefault() {
+ string ret = OgrPINVOKE.FieldDefn_GetDefault(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetDefault(string pszValue) {
+ OgrPINVOKE.FieldDefn_SetDefault(swigCPtr, pszValue);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public int IsDefaultDriverSpecific() {
+ int ret = OgrPINVOKE.FieldDefn_IsDefaultDriverSpecific(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetDomainName() {
+ string ret = OgrPINVOKE.FieldDefn_GetDomainName(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetDomainName(string name) {
+ OgrPINVOKE.FieldDefn_SetDomainName(swigCPtr, name);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public string GetComment() {
+ string ret = OgrPINVOKE.FieldDefn_GetComment(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetComment(string comment) {
+ OgrPINVOKE.FieldDefn_SetComment(swigCPtr, comment);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OGR/FieldDomain.cs b/Geospatial/GDAL-Bindings/OGR/FieldDomain.cs
new file mode 100644
index 0000000..9d08a79
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OGR/FieldDomain.cs
@@ -0,0 +1,170 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OGR {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class FieldDomain : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public FieldDomain(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(FieldDomain obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(FieldDomain obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(FieldDomain obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~FieldDomain() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ OgrPINVOKE.delete_FieldDomain(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public string GetName() {
+ string ret = OgrPINVOKE.FieldDomain_GetName(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetDescription() {
+ string ret = OgrPINVOKE.FieldDomain_GetDescription(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public FieldType GetFieldType() {
+ FieldType ret = (FieldType)OgrPINVOKE.FieldDomain_GetFieldType(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public FieldSubType GetFieldSubType() {
+ FieldSubType ret = (FieldSubType)OgrPINVOKE.FieldDomain_GetFieldSubType(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public FieldDomainType GetDomainType() {
+ FieldDomainType ret = (FieldDomainType)OgrPINVOKE.FieldDomain_GetDomainType(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public FieldDomainSplitPolicy GetSplitPolicy() {
+ FieldDomainSplitPolicy ret = (FieldDomainSplitPolicy)OgrPINVOKE.FieldDomain_GetSplitPolicy(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetSplitPolicy(FieldDomainSplitPolicy policy) {
+ OgrPINVOKE.FieldDomain_SetSplitPolicy(swigCPtr, (int)policy);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public FieldDomainMergePolicy GetMergePolicy() {
+ FieldDomainMergePolicy ret = (FieldDomainMergePolicy)OgrPINVOKE.FieldDomain_GetMergePolicy(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetMergePolicy(FieldDomainMergePolicy policy) {
+ OgrPINVOKE.FieldDomain_SetMergePolicy(swigCPtr, (int)policy);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public double GetMinAsDouble() {
+ double ret = OgrPINVOKE.FieldDomain_GetMinAsDouble(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetMinAsString() {
+ string ret = OgrPINVOKE.FieldDomain_GetMinAsString(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool IsMinInclusive() {
+ bool ret = OgrPINVOKE.FieldDomain_IsMinInclusive(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public double GetMaxAsDouble() {
+ double ret = OgrPINVOKE.FieldDomain_GetMaxAsDouble(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetMaxAsString() {
+ string ret = OgrPINVOKE.FieldDomain_GetMaxAsString(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool IsMaxInclusive() {
+ bool ret = OgrPINVOKE.FieldDomain_IsMaxInclusive(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetGlob() {
+ string ret = OgrPINVOKE.FieldDomain_GetGlob(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OGR/FieldDomainMergePolicy.cs b/Geospatial/GDAL-Bindings/OGR/FieldDomainMergePolicy.cs
new file mode 100644
index 0000000..ea8ae5b
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OGR/FieldDomainMergePolicy.cs
@@ -0,0 +1,19 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OGR {
+
+public enum FieldDomainMergePolicy {
+ OFDMP_DEFAULT_VALUE,
+ OFDMP_SUM,
+ OFDMP_GEOMETRY_WEIGHTED
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OGR/FieldDomainSplitPolicy.cs b/Geospatial/GDAL-Bindings/OGR/FieldDomainSplitPolicy.cs
new file mode 100644
index 0000000..9030d5e
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OGR/FieldDomainSplitPolicy.cs
@@ -0,0 +1,19 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OGR {
+
+public enum FieldDomainSplitPolicy {
+ OFDSP_DEFAULT_VALUE,
+ OFDSP_DUPLICATE,
+ OFDSP_GEOMETRY_RATIO
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OGR/FieldDomainType.cs b/Geospatial/GDAL-Bindings/OGR/FieldDomainType.cs
new file mode 100644
index 0000000..38335ae
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OGR/FieldDomainType.cs
@@ -0,0 +1,19 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OGR {
+
+public enum FieldDomainType {
+ OFDT_CODED = 0,
+ OFDT_RANGE = 1,
+ OFDT_GLOB = 2
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OGR/FieldSubType.cs b/Geospatial/GDAL-Bindings/OGR/FieldSubType.cs
new file mode 100644
index 0000000..e9b5723
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OGR/FieldSubType.cs
@@ -0,0 +1,22 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OGR {
+
+public enum FieldSubType {
+ OFSTNone = 0,
+ OFSTBoolean = 1,
+ OFSTInt16 = 2,
+ OFSTFloat32 = 3,
+ OFSTJSON = 4,
+ OFSTUUID = 5
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OGR/FieldType.cs b/Geospatial/GDAL-Bindings/OGR/FieldType.cs
new file mode 100644
index 0000000..ed1953a
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OGR/FieldType.cs
@@ -0,0 +1,30 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OGR {
+
+public enum FieldType {
+ OFTInteger = 0,
+ OFTIntegerList = 1,
+ OFTReal = 2,
+ OFTRealList = 3,
+ OFTString = 4,
+ OFTStringList = 5,
+ OFTWideString = 6,
+ OFTWideStringList = 7,
+ OFTBinary = 8,
+ OFTDate = 9,
+ OFTTime = 10,
+ OFTDateTime = 11,
+ OFTInteger64 = 12,
+ OFTInteger64List = 13
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OGR/GeomCoordinatePrecision.cs b/Geospatial/GDAL-Bindings/OGR/GeomCoordinatePrecision.cs
new file mode 100644
index 0000000..7ab14d2
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OGR/GeomCoordinatePrecision.cs
@@ -0,0 +1,153 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OGR {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class GeomCoordinatePrecision : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public GeomCoordinatePrecision(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(GeomCoordinatePrecision obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(GeomCoordinatePrecision obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(GeomCoordinatePrecision obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~GeomCoordinatePrecision() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ OgrPINVOKE.delete_GeomCoordinatePrecision(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public void Set(double xyResolution, double zResolution, double mResolution) {
+ OgrPINVOKE.GeomCoordinatePrecision_Set(swigCPtr, xyResolution, zResolution, mResolution);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void SetFromMeter(OSGeo.OSR.SpatialReference srs, double xyMeterResolution, double zMeterResolution, double mResolution) {
+ OgrPINVOKE.GeomCoordinatePrecision_SetFromMeter(swigCPtr, OSGeo.OSR.SpatialReference.getCPtr(srs), xyMeterResolution, zMeterResolution, mResolution);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public double GetXYResolution() {
+ double ret = OgrPINVOKE.GeomCoordinatePrecision_GetXYResolution(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public double GetZResolution() {
+ double ret = OgrPINVOKE.GeomCoordinatePrecision_GetZResolution(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public double GetMResolution() {
+ double ret = OgrPINVOKE.GeomCoordinatePrecision_GetMResolution(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string[] GetFormats() {
+ /* %typemap(csout) char** CSL */
+ IntPtr cPtr = OgrPINVOKE.GeomCoordinatePrecision_GetFormats(swigCPtr);
+ IntPtr objPtr;
+ int count = 0;
+ if (cPtr != IntPtr.Zero) {
+ while (Marshal.ReadIntPtr(cPtr, count*IntPtr.Size) != IntPtr.Zero)
+ ++count;
+ }
+ string[] ret = new string[count];
+ if (count > 0) {
+ for(int cx = 0; cx < count; cx++) {
+ objPtr = System.Runtime.InteropServices.Marshal.ReadIntPtr(cPtr, cx * System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntPtr)));
+ ret[cx]= (objPtr == IntPtr.Zero) ? null : System.Runtime.InteropServices.Marshal.PtrToStringAnsi(objPtr);
+ }
+ }
+ if (cPtr != IntPtr.Zero)
+ OgrPINVOKE.StringListDestroy(cPtr);
+
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+}
+
+ public string[] GetFormatSpecificOptions(string formatName) {
+ /* %typemap(csout) char**options */
+ IntPtr cPtr = OgrPINVOKE.GeomCoordinatePrecision_GetFormatSpecificOptions(swigCPtr, formatName);
+ IntPtr objPtr;
+ int count = 0;
+ if (cPtr != IntPtr.Zero) {
+ while (Marshal.ReadIntPtr(cPtr, count*IntPtr.Size) != IntPtr.Zero)
+ ++count;
+ }
+ string[] ret = new string[count];
+ if (count > 0) {
+ for(int cx = 0; cx < count; cx++) {
+ objPtr = System.Runtime.InteropServices.Marshal.ReadIntPtr(cPtr, cx * System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntPtr)));
+ ret[cx]= (objPtr == IntPtr.Zero) ? null : System.Runtime.InteropServices.Marshal.PtrToStringAnsi(objPtr);
+ }
+ }
+
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+}
+
+ public void SetFormatSpecificOptions(string formatName, string[] formatSpecificOptions) {
+ OgrPINVOKE.GeomCoordinatePrecision_SetFormatSpecificOptions(swigCPtr, formatName, (formatSpecificOptions != null)? new OgrPINVOKE.StringListMarshal(formatSpecificOptions)._ar : null);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OGR/GeomFieldDefn.cs b/Geospatial/GDAL-Bindings/OGR/GeomFieldDefn.cs
new file mode 100644
index 0000000..74f1ccc
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OGR/GeomFieldDefn.cs
@@ -0,0 +1,154 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OGR {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class GeomFieldDefn : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public GeomFieldDefn(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(GeomFieldDefn obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(GeomFieldDefn obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(GeomFieldDefn obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~GeomFieldDefn() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ OgrPINVOKE.delete_GeomFieldDefn(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public GeomFieldDefn(string name_null_ok, wkbGeometryType field_type) : this(OgrPINVOKE.new_GeomFieldDefn(name_null_ok, (int)field_type), true, null) {
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public string GetName() {
+ string ret = OgrPINVOKE.GeomFieldDefn_GetName(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetNameRef() {
+ string ret = OgrPINVOKE.GeomFieldDefn_GetNameRef(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetName(string name) {
+ OgrPINVOKE.GeomFieldDefn_SetName(swigCPtr, name);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public wkbGeometryType GetFieldType() {
+ wkbGeometryType ret = (wkbGeometryType)OgrPINVOKE.GeomFieldDefn_GetFieldType(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetType(wkbGeometryType type) {
+ OgrPINVOKE.GeomFieldDefn_SetType(swigCPtr, (int)type);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public OSGeo.OSR.SpatialReference GetSpatialRef() {
+ IntPtr cPtr = OgrPINVOKE.GeomFieldDefn_GetSpatialRef(swigCPtr);
+ OSGeo.OSR.SpatialReference ret = (cPtr == IntPtr.Zero) ? null : new OSGeo.OSR.SpatialReference(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetSpatialRef(OSGeo.OSR.SpatialReference srs) {
+ OgrPINVOKE.GeomFieldDefn_SetSpatialRef(swigCPtr, OSGeo.OSR.SpatialReference.getCPtr(srs));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public int IsIgnored() {
+ int ret = OgrPINVOKE.GeomFieldDefn_IsIgnored(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetIgnored(int bIgnored) {
+ OgrPINVOKE.GeomFieldDefn_SetIgnored(swigCPtr, bIgnored);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public int IsNullable() {
+ int ret = OgrPINVOKE.GeomFieldDefn_IsNullable(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetNullable(int bNullable) {
+ OgrPINVOKE.GeomFieldDefn_SetNullable(swigCPtr, bNullable);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public GeomCoordinatePrecision GetCoordinatePrecision() {
+ IntPtr cPtr = OgrPINVOKE.GeomFieldDefn_GetCoordinatePrecision(swigCPtr);
+ GeomCoordinatePrecision ret = (cPtr == IntPtr.Zero) ? null : new GeomCoordinatePrecision(cPtr, false, ThisOwn_false());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetCoordinatePrecision(GeomCoordinatePrecision coordPrec) {
+ OgrPINVOKE.GeomFieldDefn_SetCoordinatePrecision(swigCPtr, GeomCoordinatePrecision.getCPtr(coordPrec));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OGR/GeomTransformer.cs b/Geospatial/GDAL-Bindings/OGR/GeomTransformer.cs
new file mode 100644
index 0000000..b8ad11b
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OGR/GeomTransformer.cs
@@ -0,0 +1,87 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OGR {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class GeomTransformer : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public GeomTransformer(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(GeomTransformer obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(GeomTransformer obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(GeomTransformer obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~GeomTransformer() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ OgrPINVOKE.delete_GeomTransformer(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public GeomTransformer(OSGeo.OSR.CoordinateTransformation ct, string[] options) : this(OgrPINVOKE.new_GeomTransformer(OSGeo.OSR.CoordinateTransformation.getCPtr(ct), (options != null)? new OgrPINVOKE.StringListMarshal(options)._ar : null), true, null) {
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public Geometry Transform(Geometry src_geom) {
+ IntPtr cPtr = OgrPINVOKE.GeomTransformer_Transform(swigCPtr, Geometry.getCPtr(src_geom));
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OGR/Geometry.cs b/Geospatial/GDAL-Bindings/OGR/Geometry.cs
new file mode 100644
index 0000000..79c96a3
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OGR/Geometry.cs
@@ -0,0 +1,913 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+// Note some Kennedy shenanigans to get older fixes to port forward - sorry for the merge
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OGR
+{
+ using System.Diagnostics;
+ using global::System;
+ using global::System.Runtime.InteropServices;
+
+ public class Geometry : global::System.IDisposable
+ {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+ private bool _isDisposed;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public Geometry(IntPtr cPtr, bool cMemoryOwn, object parent)
+ {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(Geometry obj)
+ {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(Geometry obj, object parent)
+ {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(Geometry obj, object parent)
+ {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~Geometry()
+ {
+ //kennedy hernandez & morris
+#if DEBUG
+ if (!_isDisposed)
+ throw new Exception("not allowed");
+#endif
+ Dispose();
+ }
+
+ public virtual void Dispose()
+ {
+ //kennedy hernandez & morris
+ //destructor double dispose causing race condition with OSM map
+ if (_isDisposed) return;
+ _isDisposed = true;
+
+ lock (this)
+ {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero)
+ {
+ if (swigCMemOwn)
+ {
+ swigCMemOwn = false;
+ OgrPINVOKE.delete_Geometry(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+ public int ExportToWkb(byte[] buffer, wkbByteOrder byte_order)
+ {
+ int retval;
+ long size = WkbSize();
+ if (size > Int32.MaxValue)
+ throw new ArgumentException("Too big geometry (ExportToWkb)");
+ if (buffer.Length < size)
+ throw new ArgumentException("Buffer size is small (ExportToWkb)");
+
+ IntPtr ptr = Marshal.AllocHGlobal((int)size * Marshal.SizeOf(buffer[0]));
+ try
+ {
+ retval = ExportToWkb((int)size, ptr, byte_order);
+ Marshal.Copy(ptr, buffer, 0, (int)size);
+ }
+ finally
+ {
+ Marshal.FreeHGlobal(ptr);
+ }
+ GC.KeepAlive(this);
+ return retval;
+ }
+ public int ExportToWkb(byte[] buffer)
+ {
+ return ExportToWkb(buffer, wkbByteOrder.wkbXDR);
+ }
+
+ public static Geometry CreateFromWkb(byte[] wkb)
+ {
+ if (wkb.Length == 0)
+ throw new ArgumentException("Buffer size is small (CreateFromWkb)");
+ Geometry retval;
+ IntPtr ptr = Marshal.AllocHGlobal(wkb.Length * Marshal.SizeOf(wkb[0]));
+ try
+ {
+ Marshal.Copy(wkb, 0, ptr, wkb.Length);
+ retval = new Geometry(wkbGeometryType.wkbUnknown, null, wkb.Length, ptr, null);
+ }
+ finally
+ {
+ Marshal.FreeHGlobal(ptr);
+ }
+ return retval;
+ }
+
+ public static Geometry CreateFromWkt(string wkt)
+ {
+ return new Geometry(wkbGeometryType.wkbUnknown, wkt, 0, IntPtr.Zero, null);
+ }
+
+ public static Geometry CreateFromGML(string gml)
+ {
+ return new Geometry(wkbGeometryType.wkbUnknown, null, 0, IntPtr.Zero, gml);
+ }
+
+ public Geometry(wkbGeometryType type) : this(OgrPINVOKE.new_Geometry((int)type, null, 0, IntPtr.Zero, null), true, null)
+ {
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+ public Geometry(wkbGeometryType type, string wkt, int wkb, IntPtr wkb_buf, string gml) : this(OgrPINVOKE.new_Geometry((int)type, wkt, wkb, wkb_buf, gml), true, null)
+ {
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public int ExportToWkt(out string argout)
+ {
+ int ret = OgrPINVOKE.Geometry_ExportToWkt(swigCPtr, out argout);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int ExportToIsoWkt(out string argout)
+ {
+ int ret = OgrPINVOKE.Geometry_ExportToIsoWkt(swigCPtr, out argout);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string ExportToGML()
+ {
+ string ret = OgrPINVOKE.Geometry_ExportToGML__SWIG_0(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string ExportToGML(string[] options)
+ {
+ string ret = OgrPINVOKE.Geometry_ExportToGML__SWIG_1(swigCPtr, (options != null) ? new OgrPINVOKE.StringListMarshal(options)._ar : null);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string ExportToKML(string altitude_mode)
+ {
+ string ret = OgrPINVOKE.Geometry_ExportToKML(swigCPtr, altitude_mode);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string ExportToJson(string[] options)
+ {
+ string ret = OgrPINVOKE.Geometry_ExportToJson(swigCPtr, (options != null) ? new OgrPINVOKE.StringListMarshal(options)._ar : null);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void AddPoint(double x, double y, double z)
+ {
+ OgrPINVOKE.Geometry_AddPoint(swigCPtr, x, y, z);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void AddPointM(double x, double y, double m)
+ {
+ OgrPINVOKE.Geometry_AddPointM(swigCPtr, x, y, m);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void AddPointZM(double x, double y, double z, double m)
+ {
+ OgrPINVOKE.Geometry_AddPointZM(swigCPtr, x, y, z, m);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void AddPoint_2D(double x, double y)
+ {
+ OgrPINVOKE.Geometry_AddPoint_2D(swigCPtr, x, y);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public int AddGeometryDirectly(Geometry other_disown)
+ {
+ int ret = OgrPINVOKE.Geometry_AddGeometryDirectly(swigCPtr, Geometry.getCPtrAndDisown(other_disown, ThisOwn_false()));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int AddGeometry(Geometry other)
+ {
+ int ret = OgrPINVOKE.Geometry_AddGeometry(swigCPtr, Geometry.getCPtr(other));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int RemoveGeometry(int iSubGeom)
+ {
+ int ret = OgrPINVOKE.Geometry_RemoveGeometry(swigCPtr, iSubGeom);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Geometry Clone()
+ {
+ IntPtr cPtr = OgrPINVOKE.Geometry_Clone(swigCPtr);
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public wkbGeometryType GetGeometryType()
+ {
+ wkbGeometryType ret = (wkbGeometryType)OgrPINVOKE.Geometry_GetGeometryType(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static wkbGeometryType GetGeometryType(object owner, IntPtr geometryPtr)
+ {
+ wkbGeometryType ret = (wkbGeometryType)OgrPINVOKE.Geometry_GetGeometryType(new HandleRef(owner, geometryPtr));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetGeometryName()
+ {
+ string ret = OgrPINVOKE.Geometry_GetGeometryName(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public double Length()
+ {
+ double ret = OgrPINVOKE.Geometry_Length(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public double Area()
+ {
+ double ret = OgrPINVOKE.Geometry_Area(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public double GeodesicArea()
+ {
+ double ret = OgrPINVOKE.Geometry_GeodesicArea(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool IsClockwise()
+ {
+ bool ret = OgrPINVOKE.Geometry_IsClockwise(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public double GetArea()
+ {
+ double ret = OgrPINVOKE.Geometry_GetArea(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int GetPointCount()
+ {
+ int ret = OgrPINVOKE.Geometry_GetPointCount(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int GetPointCount(object owner, IntPtr geometryPtr)
+ {
+ int ret = OgrPINVOKE.Geometry_GetPointCount(new HandleRef(owner, geometryPtr));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public double GetX(int point)
+ {
+ double ret = OgrPINVOKE.Geometry_GetX(swigCPtr, point);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public double GetY(int point)
+ {
+ double ret = OgrPINVOKE.Geometry_GetY(swigCPtr, point);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public double GetZ(int point)
+ {
+ double ret = OgrPINVOKE.Geometry_GetZ(swigCPtr, point);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public double GetM(int point)
+ {
+ double ret = OgrPINVOKE.Geometry_GetM(swigCPtr, point);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void GetPoint(int iPoint, double[] argout)
+ {
+ OgrPINVOKE.Geometry_GetPoint(swigCPtr, iPoint, argout);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public static void GetPoint(object owner, IntPtr geometryPtr, int iPoint, double[] argout)
+ {
+ OgrPINVOKE.Geometry_GetPoint(new HandleRef(owner, geometryPtr), iPoint, argout);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void GetPointZM(int iPoint, double[] argout)
+ {
+ OgrPINVOKE.Geometry_GetPointZM(swigCPtr, iPoint, argout);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void GetPoint_2D(int iPoint, double[] argout)
+ {
+ OgrPINVOKE.Geometry_GetPoint_2D(swigCPtr, iPoint, argout);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public int GetGeometryCount()
+ {
+ int ret = OgrPINVOKE.Geometry_GetGeometryCount(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int GetGeometryCount(object owner, IntPtr cPtr)
+ {
+ int ret = OgrPINVOKE.Geometry_GetGeometryCount(new HandleRef(owner, cPtr));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetPoint(int point, double x, double y, double z)
+ {
+ OgrPINVOKE.Geometry_SetPoint(swigCPtr, point, x, y, z);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void SetPointM(int point, double x, double y, double m)
+ {
+ OgrPINVOKE.Geometry_SetPointM(swigCPtr, point, x, y, m);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void SetPointZM(int point, double x, double y, double z, double m)
+ {
+ OgrPINVOKE.Geometry_SetPointZM(swigCPtr, point, x, y, z, m);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void SetPoint_2D(int point, double x, double y)
+ {
+ OgrPINVOKE.Geometry_SetPoint_2D(swigCPtr, point, x, y);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void SwapXY()
+ {
+ OgrPINVOKE.Geometry_SwapXY(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public Geometry GetGeometryRef(int geom)
+ {
+ IntPtr cPtr = OgrPINVOKE.Geometry_GetGeometryRef(swigCPtr, geom);
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, false, ThisOwn_false());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public IntPtr GetGeometryRefPtr(int geom)
+ {
+ IntPtr cPtr = OgrPINVOKE.Geometry_GetGeometryRef(swigCPtr, geom);
+ //Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, false, ThisOwn_false());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return cPtr;
+ }
+
+ public static IntPtr GetGeometryRefPtr(object owner, IntPtr geometryPtr, int geom)
+ {
+ IntPtr cPtr = OgrPINVOKE.Geometry_GetGeometryRef(new HandleRef(owner, geometryPtr), geom);
+ //Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, false, ThisOwn_false());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return cPtr;
+ }
+
+ public Geometry Simplify(double tolerance)
+ {
+ IntPtr cPtr = OgrPINVOKE.Geometry_Simplify(swigCPtr, tolerance);
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Geometry SimplifyPreserveTopology(double tolerance)
+ {
+ IntPtr cPtr = OgrPINVOKE.Geometry_SimplifyPreserveTopology(swigCPtr, tolerance);
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Geometry DelaunayTriangulation(double dfTolerance, int bOnlyEdges)
+ {
+ IntPtr cPtr = OgrPINVOKE.Geometry_DelaunayTriangulation(swigCPtr, dfTolerance, bOnlyEdges);
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Geometry Polygonize()
+ {
+ IntPtr cPtr = OgrPINVOKE.Geometry_Polygonize(swigCPtr);
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Geometry Boundary()
+ {
+ IntPtr cPtr = OgrPINVOKE.Geometry_Boundary(swigCPtr);
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Geometry GetBoundary()
+ {
+ IntPtr cPtr = OgrPINVOKE.Geometry_GetBoundary(swigCPtr);
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Geometry ConvexHull()
+ {
+ IntPtr cPtr = OgrPINVOKE.Geometry_ConvexHull(swigCPtr);
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Geometry ConcaveHull(double ratio, bool allowHoles)
+ {
+ IntPtr cPtr = OgrPINVOKE.Geometry_ConcaveHull(swigCPtr, ratio, allowHoles);
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Geometry MakeValid(string[] options)
+ {
+ IntPtr cPtr = OgrPINVOKE.Geometry_MakeValid(swigCPtr, (options != null) ? new OgrPINVOKE.StringListMarshal(options)._ar : null);
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Geometry SetPrecision(double gridSize, int flags)
+ {
+ IntPtr cPtr = OgrPINVOKE.Geometry_SetPrecision(swigCPtr, gridSize, flags);
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Geometry Normalize()
+ {
+ IntPtr cPtr = OgrPINVOKE.Geometry_Normalize(swigCPtr);
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Geometry RemoveLowerDimensionSubGeoms()
+ {
+ IntPtr cPtr = OgrPINVOKE.Geometry_RemoveLowerDimensionSubGeoms(swigCPtr);
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Geometry Buffer(double distance, int quadsecs)
+ {
+ IntPtr cPtr = OgrPINVOKE.Geometry_Buffer(swigCPtr, distance, quadsecs);
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Geometry Intersection(Geometry other)
+ {
+ IntPtr cPtr = OgrPINVOKE.Geometry_Intersection(swigCPtr, Geometry.getCPtr(other));
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Geometry Union(Geometry other)
+ {
+ IntPtr cPtr = OgrPINVOKE.Geometry_Union(swigCPtr, Geometry.getCPtr(other));
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Geometry UnionCascaded()
+ {
+ IntPtr cPtr = OgrPINVOKE.Geometry_UnionCascaded(swigCPtr);
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Geometry UnaryUnion()
+ {
+ IntPtr cPtr = OgrPINVOKE.Geometry_UnaryUnion(swigCPtr);
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Geometry Difference(Geometry other)
+ {
+ IntPtr cPtr = OgrPINVOKE.Geometry_Difference(swigCPtr, Geometry.getCPtr(other));
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Geometry SymDifference(Geometry other)
+ {
+ IntPtr cPtr = OgrPINVOKE.Geometry_SymDifference(swigCPtr, Geometry.getCPtr(other));
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Geometry SymmetricDifference(Geometry other)
+ {
+ IntPtr cPtr = OgrPINVOKE.Geometry_SymmetricDifference(swigCPtr, Geometry.getCPtr(other));
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public double Distance(Geometry other)
+ {
+ double ret = OgrPINVOKE.Geometry_Distance(swigCPtr, Geometry.getCPtr(other));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public double Distance3D(Geometry other)
+ {
+ double ret = OgrPINVOKE.Geometry_Distance3D(swigCPtr, Geometry.getCPtr(other));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void Empty()
+ {
+ OgrPINVOKE.Geometry_Empty(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public bool IsEmpty()
+ {
+ bool ret = OgrPINVOKE.Geometry_IsEmpty(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool IsValid()
+ {
+ bool ret = OgrPINVOKE.Geometry_IsValid(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool IsSimple()
+ {
+ bool ret = OgrPINVOKE.Geometry_IsSimple(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool IsRing()
+ {
+ bool ret = OgrPINVOKE.Geometry_IsRing(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool Intersects(Geometry other)
+ {
+ bool ret = OgrPINVOKE.Geometry_Intersects(swigCPtr, Geometry.getCPtr(other));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool Intersect(Geometry other)
+ {
+ bool ret = OgrPINVOKE.Geometry_Intersect(swigCPtr, Geometry.getCPtr(other));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool Equals(Geometry other)
+ {
+ bool ret = OgrPINVOKE.Geometry_Equals(swigCPtr, Geometry.getCPtr(other));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool Equal(Geometry other)
+ {
+ bool ret = OgrPINVOKE.Geometry_Equal(swigCPtr, Geometry.getCPtr(other));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool Disjoint(Geometry other)
+ {
+ bool ret = OgrPINVOKE.Geometry_Disjoint(swigCPtr, Geometry.getCPtr(other));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool Touches(Geometry other)
+ {
+ bool ret = OgrPINVOKE.Geometry_Touches(swigCPtr, Geometry.getCPtr(other));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool Crosses(Geometry other)
+ {
+ bool ret = OgrPINVOKE.Geometry_Crosses(swigCPtr, Geometry.getCPtr(other));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool Within(Geometry other)
+ {
+ bool ret = OgrPINVOKE.Geometry_Within(swigCPtr, Geometry.getCPtr(other));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool Contains(Geometry other)
+ {
+ bool ret = OgrPINVOKE.Geometry_Contains(swigCPtr, Geometry.getCPtr(other));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool Overlaps(Geometry other)
+ {
+ bool ret = OgrPINVOKE.Geometry_Overlaps(swigCPtr, Geometry.getCPtr(other));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int TransformTo(OSGeo.OSR.SpatialReference reference)
+ {
+ int ret = OgrPINVOKE.Geometry_TransformTo(swigCPtr, OSGeo.OSR.SpatialReference.getCPtr(reference));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int Transform(OSGeo.OSR.CoordinateTransformation trans)
+ {
+ int ret = OgrPINVOKE.Geometry_Transform__SWIG_0(swigCPtr, OSGeo.OSR.CoordinateTransformation.getCPtr(trans));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public OSGeo.OSR.SpatialReference GetSpatialReference()
+ {
+ IntPtr cPtr = OgrPINVOKE.Geometry_GetSpatialReference(swigCPtr);
+ OSGeo.OSR.SpatialReference ret = (cPtr == IntPtr.Zero) ? null : new OSGeo.OSR.SpatialReference(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void AssignSpatialReference(OSGeo.OSR.SpatialReference reference)
+ {
+ OgrPINVOKE.Geometry_AssignSpatialReference(swigCPtr, OSGeo.OSR.SpatialReference.getCPtr(reference));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void CloseRings()
+ {
+ OgrPINVOKE.Geometry_CloseRings(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void FlattenTo2D()
+ {
+ OgrPINVOKE.Geometry_FlattenTo2D(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void Segmentize(double dfMaxLength)
+ {
+ OgrPINVOKE.Geometry_Segmentize(swigCPtr, dfMaxLength);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void GetEnvelope(Envelope env)
+ {
+ OgrPINVOKE.Geometry_GetEnvelope(swigCPtr, Envelope.getCPtr(env));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void GetEnvelope3D(Envelope3D env)
+ {
+ OgrPINVOKE.Geometry_GetEnvelope3D(swigCPtr, Envelope3D.getCPtr(env));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public Geometry Centroid()
+ {
+ IntPtr cPtr = OgrPINVOKE.Geometry_Centroid(swigCPtr);
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Geometry PointOnSurface()
+ {
+ IntPtr cPtr = OgrPINVOKE.Geometry_PointOnSurface(swigCPtr);
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public uint WkbSize()
+ {
+ uint ret = OgrPINVOKE.Geometry_WkbSize(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int GetCoordinateDimension()
+ {
+ int ret = OgrPINVOKE.Geometry_GetCoordinateDimension(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int CoordinateDimension()
+ {
+ int ret = OgrPINVOKE.Geometry_CoordinateDimension(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int Is3D()
+ {
+ int ret = OgrPINVOKE.Geometry_Is3D(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int IsMeasured()
+ {
+ int ret = OgrPINVOKE.Geometry_IsMeasured(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetCoordinateDimension(int dimension)
+ {
+ OgrPINVOKE.Geometry_SetCoordinateDimension(swigCPtr, dimension);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void Set3D(int b3D)
+ {
+ OgrPINVOKE.Geometry_Set3D(swigCPtr, b3D);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void SetMeasured(int bMeasured)
+ {
+ OgrPINVOKE.Geometry_SetMeasured(swigCPtr, bMeasured);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public int GetDimension()
+ {
+ int ret = OgrPINVOKE.Geometry_GetDimension(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int HasCurveGeometry(int bLookForCircular)
+ {
+ int ret = OgrPINVOKE.Geometry_HasCurveGeometry(swigCPtr, bLookForCircular);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Geometry GetLinearGeometry(double dfMaxAngleStepSizeDegrees, string[] options)
+ {
+ IntPtr cPtr = OgrPINVOKE.Geometry_GetLinearGeometry(swigCPtr, dfMaxAngleStepSizeDegrees, (options != null) ? new OgrPINVOKE.StringListMarshal(options)._ar : null);
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Geometry GetCurveGeometry(string[] options)
+ {
+ IntPtr cPtr = OgrPINVOKE.Geometry_GetCurveGeometry(swigCPtr, (options != null) ? new OgrPINVOKE.StringListMarshal(options)._ar : null);
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Geometry Value(double dfDistance)
+ {
+ IntPtr cPtr = OgrPINVOKE.Geometry_Value(swigCPtr, dfDistance);
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Geometry Transform(GeomTransformer transformer)
+ {
+ IntPtr cPtr = OgrPINVOKE.Geometry_Transform__SWIG_1(swigCPtr, GeomTransformer.getCPtr(transformer));
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public PreparedGeometry CreatePreparedGeometry()
+ {
+ IntPtr cPtr = OgrPINVOKE.Geometry_CreatePreparedGeometry(swigCPtr);
+ PreparedGeometry ret = (cPtr == IntPtr.Zero) ? null : new PreparedGeometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int ExportToWkb(int bufLen, IntPtr buffer, wkbByteOrder byte_order)
+ {
+ int ret = OgrPINVOKE.Geometry_ExportToWkb(swigCPtr, bufLen, buffer, (int)byte_order);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ }
+
+}
diff --git a/Geospatial/GDAL-Bindings/OGR/Justification.cs b/Geospatial/GDAL-Bindings/OGR/Justification.cs
new file mode 100644
index 0000000..3c22695
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OGR/Justification.cs
@@ -0,0 +1,19 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OGR {
+
+public enum Justification {
+ OJUndefined = 0,
+ OJLeft = 1,
+ OJRight = 2
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OGR/Layer.cs b/Geospatial/GDAL-Bindings/OGR/Layer.cs
new file mode 100644
index 0000000..eccb307
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OGR/Layer.cs
@@ -0,0 +1,376 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OGR {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class Layer : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public Layer(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(Layer obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(Layer obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(Layer obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~Layer() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ throw new global::System.MethodAccessException("C++ destructor does not have public access");
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public int Rename(string new_name) {
+ int ret = OgrPINVOKE.Layer_Rename(swigCPtr, new_name);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int GetRefCount() {
+ int ret = OgrPINVOKE.Layer_GetRefCount(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetSpatialFilter(Geometry filter) {
+ OgrPINVOKE.Layer_SetSpatialFilter__SWIG_0(swigCPtr, Geometry.getCPtr(filter));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void SetSpatialFilterRect(double minx, double miny, double maxx, double maxy) {
+ OgrPINVOKE.Layer_SetSpatialFilterRect__SWIG_0(swigCPtr, minx, miny, maxx, maxy);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void SetSpatialFilter(int iGeomField, Geometry filter) {
+ OgrPINVOKE.Layer_SetSpatialFilter__SWIG_1(swigCPtr, iGeomField, Geometry.getCPtr(filter));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void SetSpatialFilterRect(int iGeomField, double minx, double miny, double maxx, double maxy) {
+ OgrPINVOKE.Layer_SetSpatialFilterRect__SWIG_1(swigCPtr, iGeomField, minx, miny, maxx, maxy);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public Geometry GetSpatialFilter() {
+ IntPtr cPtr = OgrPINVOKE.Layer_GetSpatialFilter(swigCPtr);
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, false, ThisOwn_false());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetAttributeFilter(string filter_string) {
+ int ret = OgrPINVOKE.Layer_SetAttributeFilter(swigCPtr, Ogr.StringToUtf8Bytes(filter_string));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void ResetReading() {
+ OgrPINVOKE.Layer_ResetReading(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public string GetName() {
+ string ret = OgrPINVOKE.Layer_GetName(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public wkbGeometryType GetGeomType() {
+ wkbGeometryType ret = (wkbGeometryType)OgrPINVOKE.Layer_GetGeomType(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetGeometryColumn() {
+ string ret = OgrPINVOKE.Layer_GetGeometryColumn(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetFIDColumn() {
+ string ret = OgrPINVOKE.Layer_GetFIDColumn(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Feature GetFeature(long fid) {
+ IntPtr cPtr = OgrPINVOKE.Layer_GetFeature(swigCPtr, fid);
+ Feature ret = (cPtr == IntPtr.Zero) ? null : new Feature(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public Feature GetNextFeature() {
+ IntPtr cPtr = OgrPINVOKE.Layer_GetNextFeature(swigCPtr);
+ Feature ret = (cPtr == IntPtr.Zero) ? null : new Feature(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetNextByIndex(long new_index) {
+ int ret = OgrPINVOKE.Layer_SetNextByIndex(swigCPtr, new_index);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetFeature(Feature feature) {
+ int ret = OgrPINVOKE.Layer_SetFeature(swigCPtr, Feature.getCPtr(feature));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int CreateFeature(Feature feature) {
+ int ret = OgrPINVOKE.Layer_CreateFeature(swigCPtr, Feature.getCPtr(feature));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int UpsertFeature(Feature feature) {
+ int ret = OgrPINVOKE.Layer_UpsertFeature(swigCPtr, Feature.getCPtr(feature));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int UpdateFeature(Feature feature, int nUpdatedFieldsCount, SWIGTYPE_p_int panUpdatedFieldsIdx, int nUpdatedGeomFieldsCount, SWIGTYPE_p_int panUpdatedGeomFieldsIdx, bool bUpdateStyleString) {
+ int ret = OgrPINVOKE.Layer_UpdateFeature(swigCPtr, Feature.getCPtr(feature), nUpdatedFieldsCount, SWIGTYPE_p_int.getCPtr(panUpdatedFieldsIdx), nUpdatedGeomFieldsCount, SWIGTYPE_p_int.getCPtr(panUpdatedGeomFieldsIdx), bUpdateStyleString);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int DeleteFeature(long fid) {
+ int ret = OgrPINVOKE.Layer_DeleteFeature(swigCPtr, fid);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SyncToDisk() {
+ int ret = OgrPINVOKE.Layer_SyncToDisk(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public FeatureDefn GetLayerDefn() {
+ IntPtr cPtr = OgrPINVOKE.Layer_GetLayerDefn(swigCPtr);
+ FeatureDefn ret = (cPtr == IntPtr.Zero) ? null : new FeatureDefn(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public long GetFeatureCount(int force) {
+ long res = OgrPINVOKE.Layer_GetFeatureCount(swigCPtr, force);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return res;
+}
+
+ public int GetExtent(Envelope extent, int force) {
+ int ret = OgrPINVOKE.Layer_GetExtent(swigCPtr, Envelope.getCPtr(extent), force);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool TestCapability(string cap) {
+ bool ret = OgrPINVOKE.Layer_TestCapability(swigCPtr, cap);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int CreateField(FieldDefn field_def, int approx_ok) {
+ int ret = OgrPINVOKE.Layer_CreateField(swigCPtr, FieldDefn.getCPtr(field_def), approx_ok);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int DeleteField(int iField) {
+ int ret = OgrPINVOKE.Layer_DeleteField(swigCPtr, iField);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int ReorderField(int iOldFieldPos, int iNewFieldPos) {
+ int ret = OgrPINVOKE.Layer_ReorderField(swigCPtr, iOldFieldPos, iNewFieldPos);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int ReorderFields(int nList, int[] pList) {
+ int ret = OgrPINVOKE.Layer_ReorderFields(swigCPtr, nList, pList);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int AlterFieldDefn(int iField, FieldDefn field_def, int nFlags) {
+ int ret = OgrPINVOKE.Layer_AlterFieldDefn(swigCPtr, iField, FieldDefn.getCPtr(field_def), nFlags);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int AlterGeomFieldDefn(int iGeomField, GeomFieldDefn field_def, int nFlags) {
+ int ret = OgrPINVOKE.Layer_AlterGeomFieldDefn(swigCPtr, iGeomField, GeomFieldDefn.getCPtr(field_def), nFlags);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int CreateGeomField(GeomFieldDefn field_def, int approx_ok) {
+ int ret = OgrPINVOKE.Layer_CreateGeomField(swigCPtr, GeomFieldDefn.getCPtr(field_def), approx_ok);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int StartTransaction() {
+ int ret = OgrPINVOKE.Layer_StartTransaction(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int CommitTransaction() {
+ int ret = OgrPINVOKE.Layer_CommitTransaction(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int RollbackTransaction() {
+ int ret = OgrPINVOKE.Layer_RollbackTransaction(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int FindFieldIndex(string pszFieldName, int bExactMatch) {
+ int ret = OgrPINVOKE.Layer_FindFieldIndex(swigCPtr, pszFieldName, bExactMatch);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public OSGeo.OSR.SpatialReference GetSpatialRef() {
+ IntPtr cPtr = OgrPINVOKE.Layer_GetSpatialRef(swigCPtr);
+ OSGeo.OSR.SpatialReference ret = (cPtr == IntPtr.Zero) ? null : new OSGeo.OSR.SpatialReference(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public long GetFeaturesRead() {
+ long res = OgrPINVOKE.Layer_GetFeaturesRead(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return res;
+}
+
+ public int SetIgnoredFields(string[] options) {
+ int ret = OgrPINVOKE.Layer_SetIgnoredFields(swigCPtr, (options != null)? new OgrPINVOKE.StringListMarshal(options)._ar : null);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int Intersection(Layer method_layer, Layer result_layer, string[] options, Ogr.GDALProgressFuncDelegate callback, string callback_data) {
+ int ret = OgrPINVOKE.Layer_Intersection(swigCPtr, Layer.getCPtr(method_layer), Layer.getCPtr(result_layer), (options != null)? new OgrPINVOKE.StringListMarshal(options)._ar : null, callback, callback_data);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int Union(Layer method_layer, Layer result_layer, string[] options, Ogr.GDALProgressFuncDelegate callback, string callback_data) {
+ int ret = OgrPINVOKE.Layer_Union(swigCPtr, Layer.getCPtr(method_layer), Layer.getCPtr(result_layer), (options != null)? new OgrPINVOKE.StringListMarshal(options)._ar : null, callback, callback_data);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SymDifference(Layer method_layer, Layer result_layer, string[] options, Ogr.GDALProgressFuncDelegate callback, string callback_data) {
+ int ret = OgrPINVOKE.Layer_SymDifference(swigCPtr, Layer.getCPtr(method_layer), Layer.getCPtr(result_layer), (options != null)? new OgrPINVOKE.StringListMarshal(options)._ar : null, callback, callback_data);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int Identity(Layer method_layer, Layer result_layer, string[] options, Ogr.GDALProgressFuncDelegate callback, string callback_data) {
+ int ret = OgrPINVOKE.Layer_Identity(swigCPtr, Layer.getCPtr(method_layer), Layer.getCPtr(result_layer), (options != null)? new OgrPINVOKE.StringListMarshal(options)._ar : null, callback, callback_data);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int Update(Layer method_layer, Layer result_layer, string[] options, Ogr.GDALProgressFuncDelegate callback, string callback_data) {
+ int ret = OgrPINVOKE.Layer_Update(swigCPtr, Layer.getCPtr(method_layer), Layer.getCPtr(result_layer), (options != null)? new OgrPINVOKE.StringListMarshal(options)._ar : null, callback, callback_data);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int Clip(Layer method_layer, Layer result_layer, string[] options, Ogr.GDALProgressFuncDelegate callback, string callback_data) {
+ int ret = OgrPINVOKE.Layer_Clip(swigCPtr, Layer.getCPtr(method_layer), Layer.getCPtr(result_layer), (options != null)? new OgrPINVOKE.StringListMarshal(options)._ar : null, callback, callback_data);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int Erase(Layer method_layer, Layer result_layer, string[] options, Ogr.GDALProgressFuncDelegate callback, string callback_data) {
+ int ret = OgrPINVOKE.Layer_Erase(swigCPtr, Layer.getCPtr(method_layer), Layer.getCPtr(result_layer), (options != null)? new OgrPINVOKE.StringListMarshal(options)._ar : null, callback, callback_data);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public StyleTable GetStyleTable() {
+ IntPtr cPtr = OgrPINVOKE.Layer_GetStyleTable(swigCPtr);
+ StyleTable ret = (cPtr == IntPtr.Zero) ? null : new StyleTable(cPtr, false, ThisOwn_false());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetStyleTable(StyleTable table) {
+ OgrPINVOKE.Layer_SetStyleTable(swigCPtr, StyleTable.getCPtr(table));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public int SetActiveSRS(int geom_field, OSGeo.OSR.SpatialReference srs) {
+ int ret = OgrPINVOKE.Layer_SetActiveSRS(swigCPtr, geom_field, OSGeo.OSR.SpatialReference.getCPtr(srs));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OGR/Ogr.cs b/Geospatial/GDAL-Bindings/OGR/Ogr.cs
new file mode 100644
index 0000000..49c3c3b
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OGR/Ogr.cs
@@ -0,0 +1,444 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OGR {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class Ogr {
+
+ internal class OgrObject : IDisposable {
+ public virtual void Dispose() {
+
+ }
+ }
+ internal static OgrObject theOgrObject = new OgrObject();
+ protected static object ThisOwn_true() { return null; }
+ protected static object ThisOwn_false() { return theOgrObject; }
+
+ public static void UseExceptions() {
+ OgrPINVOKE.UseExceptions();
+ }
+
+ public static void DontUseExceptions() {
+ OgrPINVOKE.DontUseExceptions();
+ }
+
+
+ internal static byte[] StringToUtf8Bytes(string str)
+ {
+ if (str == null)
+ return null;
+
+ int bytecount = System.Text.Encoding.UTF8.GetMaxByteCount(str.Length);
+ byte[] bytes = new byte[bytecount + 1];
+ System.Text.Encoding.UTF8.GetBytes(str, 0, str.Length, bytes, 0);
+ return bytes;
+ }
+
+ internal unsafe static string Utf8BytesToString(IntPtr pNativeData)
+ {
+ if (pNativeData == IntPtr.Zero)
+ return null;
+
+ byte* pStringUtf8 = (byte*) pNativeData;
+ int len = 0;
+ while (pStringUtf8[len] != 0) len++;
+ return System.Text.Encoding.UTF8.GetString(pStringUtf8, len);
+ }
+
+ internal static void StringListDestroy(IntPtr buffer_ptr) {
+ OgrPINVOKE.StringListDestroy(buffer_ptr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+public delegate void GDALErrorHandlerDelegate(int eclass, int code, IntPtr msg);
+public delegate int GDALProgressFuncDelegate(double Complete, IntPtr Message, IntPtr Data);
+ public static int GetGEOSVersionMajor() {
+ int ret = OgrPINVOKE.GetGEOSVersionMajor();
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int GetGEOSVersionMinor() {
+ int ret = OgrPINVOKE.GetGEOSVersionMinor();
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int GetGEOSVersionMicro() {
+ int ret = OgrPINVOKE.GetGEOSVersionMicro();
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static Geometry CreateGeometryFromWkb(uint len, IntPtr bin_string, OSGeo.OSR.SpatialReference reference) {
+ IntPtr cPtr = OgrPINVOKE.CreateGeometryFromWkb(len, bin_string, OSGeo.OSR.SpatialReference.getCPtr(reference));
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static Geometry CreateGeometryFromWkt(ref string val, OSGeo.OSR.SpatialReference reference) {
+ IntPtr cPtr = OgrPINVOKE.CreateGeometryFromWkt(ref val, OSGeo.OSR.SpatialReference.getCPtr(reference));
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static Geometry CreateGeometryFromGML(string input_string) {
+ IntPtr cPtr = OgrPINVOKE.CreateGeometryFromGML(input_string);
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static Geometry CreateGeometryFromJson(string input_string) {
+ IntPtr cPtr = OgrPINVOKE.CreateGeometryFromJson(input_string);
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static Geometry CreateGeometryFromEsriJson(string input_string) {
+ IntPtr cPtr = OgrPINVOKE.CreateGeometryFromEsriJson(input_string);
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static Geometry BuildPolygonFromEdges(Geometry hLineCollection, int bBestEffort, int bAutoClose, double dfTolerance) {
+ IntPtr cPtr = OgrPINVOKE.BuildPolygonFromEdges(Geometry.getCPtr(hLineCollection), bBestEffort, bAutoClose, dfTolerance);
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static Geometry ApproximateArcAngles(double dfCenterX, double dfCenterY, double dfZ, double dfPrimaryRadius, double dfSecondaryAxis, double dfRotation, double dfStartAngle, double dfEndAngle, double dfMaxAngleStepSizeDegrees) {
+ IntPtr cPtr = OgrPINVOKE.ApproximateArcAngles(dfCenterX, dfCenterY, dfZ, dfPrimaryRadius, dfSecondaryAxis, dfRotation, dfStartAngle, dfEndAngle, dfMaxAngleStepSizeDegrees);
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static Geometry ForceToPolygon(Geometry geom_in) {
+ IntPtr cPtr = OgrPINVOKE.ForceToPolygon(Geometry.getCPtr(geom_in));
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static Geometry ForceToLineString(Geometry geom_in) {
+ IntPtr cPtr = OgrPINVOKE.ForceToLineString(Geometry.getCPtr(geom_in));
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static Geometry ForceToMultiPolygon(Geometry geom_in) {
+ IntPtr cPtr = OgrPINVOKE.ForceToMultiPolygon(Geometry.getCPtr(geom_in));
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static Geometry ForceToMultiPoint(Geometry geom_in) {
+ IntPtr cPtr = OgrPINVOKE.ForceToMultiPoint(Geometry.getCPtr(geom_in));
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static Geometry ForceToMultiLineString(Geometry geom_in) {
+ IntPtr cPtr = OgrPINVOKE.ForceToMultiLineString(Geometry.getCPtr(geom_in));
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static Geometry ForceTo(Geometry geom_in, wkbGeometryType eTargetType, string[] options) {
+ IntPtr cPtr = OgrPINVOKE.ForceTo(Geometry.getCPtr(geom_in), (int)eTargetType, (options != null)? new OgrPINVOKE.StringListMarshal(options)._ar : null);
+ Geometry ret = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static FieldDomain CreateRangeFieldDomain(string name, string description, FieldType type, FieldSubType subtype, double min, bool minIsInclusive, double max, double maxIsInclusive) {
+ IntPtr cPtr = OgrPINVOKE.CreateRangeFieldDomain(name, description, (int)type, (int)subtype, min, minIsInclusive, max, maxIsInclusive);
+ FieldDomain ret = (cPtr == IntPtr.Zero) ? null : new FieldDomain(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static FieldDomain CreateRangeFieldDomainDateTime(string name, string description, string min, bool minIsInclusive, string max, double maxIsInclusive) {
+ IntPtr cPtr = OgrPINVOKE.CreateRangeFieldDomainDateTime(name, description, min, minIsInclusive, max, maxIsInclusive);
+ FieldDomain ret = (cPtr == IntPtr.Zero) ? null : new FieldDomain(cPtr, false, ThisOwn_false());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static FieldDomain CreateGlobFieldDomain(string name, string description, FieldType type, FieldSubType subtype, string glob) {
+ IntPtr cPtr = OgrPINVOKE.CreateGlobFieldDomain(name, description, (int)type, (int)subtype, glob);
+ FieldDomain ret = (cPtr == IntPtr.Zero) ? null : new FieldDomain(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static GeomCoordinatePrecision CreateGeomCoordinatePrecision() {
+ IntPtr cPtr = OgrPINVOKE.CreateGeomCoordinatePrecision();
+ GeomCoordinatePrecision ret = (cPtr == IntPtr.Zero) ? null : new GeomCoordinatePrecision(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int GetDriverCount() {
+ int ret = OgrPINVOKE.GetDriverCount();
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int GetOpenDSCount() {
+ int ret = OgrPINVOKE.GetOpenDSCount();
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int SetGenerate_DB2_V72_BYTE_ORDER(int bGenerate_DB2_V72_BYTE_ORDER) {
+ int ret = OgrPINVOKE.SetGenerate_DB2_V72_BYTE_ORDER(bGenerate_DB2_V72_BYTE_ORDER);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static void RegisterAll() {
+ OgrPINVOKE.RegisterAll();
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public static string GeometryTypeToName(wkbGeometryType eType) {
+ string ret = OgrPINVOKE.GeometryTypeToName((int)eType);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static string GetFieldTypeName(FieldType type) {
+ string ret = OgrPINVOKE.GetFieldTypeName((int)type);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static string GetFieldSubTypeName(FieldSubType type) {
+ string ret = OgrPINVOKE.GetFieldSubTypeName((int)type);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static wkbGeometryType GT_Flatten(wkbGeometryType eType) {
+ wkbGeometryType ret = (wkbGeometryType)OgrPINVOKE.GT_Flatten((int)eType);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static wkbGeometryType GT_SetZ(wkbGeometryType eType) {
+ wkbGeometryType ret = (wkbGeometryType)OgrPINVOKE.GT_SetZ((int)eType);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static wkbGeometryType GT_SetM(wkbGeometryType eType) {
+ wkbGeometryType ret = (wkbGeometryType)OgrPINVOKE.GT_SetM((int)eType);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static wkbGeometryType GT_SetModifier(wkbGeometryType eType, int bSetZ, int bSetM) {
+ wkbGeometryType ret = (wkbGeometryType)OgrPINVOKE.GT_SetModifier((int)eType, bSetZ, bSetM);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int GT_HasZ(wkbGeometryType eType) {
+ int ret = OgrPINVOKE.GT_HasZ((int)eType);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int GT_HasM(wkbGeometryType eType) {
+ int ret = OgrPINVOKE.GT_HasM((int)eType);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int GT_IsSubClassOf(wkbGeometryType eType, wkbGeometryType eSuperType) {
+ int ret = OgrPINVOKE.GT_IsSubClassOf((int)eType, (int)eSuperType);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int GT_IsCurve(wkbGeometryType arg0) {
+ int ret = OgrPINVOKE.GT_IsCurve((int)arg0);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int GT_IsSurface(wkbGeometryType arg0) {
+ int ret = OgrPINVOKE.GT_IsSurface((int)arg0);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int GT_IsNonLinear(wkbGeometryType arg0) {
+ int ret = OgrPINVOKE.GT_IsNonLinear((int)arg0);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static wkbGeometryType GT_GetCollection(wkbGeometryType eType) {
+ wkbGeometryType ret = (wkbGeometryType)OgrPINVOKE.GT_GetCollection((int)eType);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static wkbGeometryType GT_GetCurve(wkbGeometryType eType) {
+ wkbGeometryType ret = (wkbGeometryType)OgrPINVOKE.GT_GetCurve((int)eType);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static wkbGeometryType GT_GetLinear(wkbGeometryType eType) {
+ wkbGeometryType ret = (wkbGeometryType)OgrPINVOKE.GT_GetLinear((int)eType);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static void SetNonLinearGeometriesEnabledFlag(int bFlag) {
+ OgrPINVOKE.SetNonLinearGeometriesEnabledFlag(bFlag);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public static int GetNonLinearGeometriesEnabledFlag() {
+ int ret = OgrPINVOKE.GetNonLinearGeometriesEnabledFlag();
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static DataSource GetOpenDS(int ds_number) {
+ IntPtr cPtr = OgrPINVOKE.GetOpenDS(ds_number);
+ DataSource ret = (cPtr == IntPtr.Zero) ? null : new DataSource(cPtr, false, ThisOwn_false());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static DataSource Open(string utf8_path, int update) {
+ IntPtr cPtr = OgrPINVOKE.Open(Ogr.StringToUtf8Bytes(utf8_path), update);
+ DataSource ret = (cPtr == IntPtr.Zero) ? null : new DataSource(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static DataSource OpenShared(string utf8_path, int update) {
+ IntPtr cPtr = OgrPINVOKE.OpenShared(Ogr.StringToUtf8Bytes(utf8_path), update);
+ DataSource ret = (cPtr == IntPtr.Zero) ? null : new DataSource(cPtr, true, ThisOwn_true());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static Driver GetDriverByName(string name) {
+ IntPtr cPtr = OgrPINVOKE.GetDriverByName(name);
+ Driver ret = (cPtr == IntPtr.Zero) ? null : new Driver(cPtr, false, ThisOwn_false());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static Driver GetDriver(int driver_number) {
+ IntPtr cPtr = OgrPINVOKE.GetDriver(driver_number);
+ Driver ret = (cPtr == IntPtr.Zero) ? null : new Driver(cPtr, false, ThisOwn_false());
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static string[] GeneralCmdLineProcessor(string[] papszArgv, int nOptions) {
+ /* %typemap(csout) char**options */
+ IntPtr cPtr = OgrPINVOKE.GeneralCmdLineProcessor((papszArgv != null)? new OgrPINVOKE.StringListMarshal(papszArgv)._ar : null, nOptions);
+ IntPtr objPtr;
+ int count = 0;
+ if (cPtr != IntPtr.Zero) {
+ while (Marshal.ReadIntPtr(cPtr, count*IntPtr.Size) != IntPtr.Zero)
+ ++count;
+ }
+ string[] ret = new string[count];
+ if (count > 0) {
+ for(int cx = 0; cx < count; cx++) {
+ objPtr = System.Runtime.InteropServices.Marshal.ReadIntPtr(cPtr, cx * System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntPtr)));
+ ret[cx]= (objPtr == IntPtr.Zero) ? null : System.Runtime.InteropServices.Marshal.PtrToStringAnsi(objPtr);
+ }
+ }
+
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+}
+
+ public static readonly int wkb25DBit = OgrPINVOKE.wkb25DBit_get();
+ public static readonly int ogrZMarker = OgrPINVOKE.ogrZMarker_get();
+ public static readonly int OGRNullFID = OgrPINVOKE.OGRNullFID_get();
+ public static readonly int OGRUnsetMarker = OgrPINVOKE.OGRUnsetMarker_get();
+ public static readonly string OLCRandomRead = OgrPINVOKE.OLCRandomRead_get();
+ public static readonly string OLCSequentialWrite = OgrPINVOKE.OLCSequentialWrite_get();
+ public static readonly string OLCRandomWrite = OgrPINVOKE.OLCRandomWrite_get();
+ public static readonly string OLCFastSpatialFilter = OgrPINVOKE.OLCFastSpatialFilter_get();
+ public static readonly string OLCFastFeatureCount = OgrPINVOKE.OLCFastFeatureCount_get();
+ public static readonly string OLCFastGetExtent = OgrPINVOKE.OLCFastGetExtent_get();
+ public static readonly string OLCFastGetExtent3D = OgrPINVOKE.OLCFastGetExtent3D_get();
+ public static readonly string OLCCreateField = OgrPINVOKE.OLCCreateField_get();
+ public static readonly string OLCDeleteField = OgrPINVOKE.OLCDeleteField_get();
+ public static readonly string OLCReorderFields = OgrPINVOKE.OLCReorderFields_get();
+ public static readonly string OLCAlterFieldDefn = OgrPINVOKE.OLCAlterFieldDefn_get();
+ public static readonly string OLCAlterGeomFieldDefn = OgrPINVOKE.OLCAlterGeomFieldDefn_get();
+ public static readonly string OLCTransactions = OgrPINVOKE.OLCTransactions_get();
+ public static readonly string OLCDeleteFeature = OgrPINVOKE.OLCDeleteFeature_get();
+ public static readonly string OLCUpsertFeature = OgrPINVOKE.OLCUpsertFeature_get();
+ public static readonly string OLCUpdateFeature = OgrPINVOKE.OLCUpdateFeature_get();
+ public static readonly string OLCFastSetNextByIndex = OgrPINVOKE.OLCFastSetNextByIndex_get();
+ public static readonly string OLCStringsAsUTF8 = OgrPINVOKE.OLCStringsAsUTF8_get();
+ public static readonly string OLCCreateGeomField = OgrPINVOKE.OLCCreateGeomField_get();
+ public static readonly string OLCCurveGeometries = OgrPINVOKE.OLCCurveGeometries_get();
+ public static readonly string OLCMeasuredGeometries = OgrPINVOKE.OLCMeasuredGeometries_get();
+ public static readonly string OLCZGeometries = OgrPINVOKE.OLCZGeometries_get();
+ public static readonly string OLCRename = OgrPINVOKE.OLCRename_get();
+ public static readonly string OLCFastGetArrowStream = OgrPINVOKE.OLCFastGetArrowStream_get();
+ public static readonly string OLCFastWriteArrowBatch = OgrPINVOKE.OLCFastWriteArrowBatch_get();
+ public static readonly string ODsCCreateLayer = OgrPINVOKE.ODsCCreateLayer_get();
+ public static readonly string ODsCDeleteLayer = OgrPINVOKE.ODsCDeleteLayer_get();
+ public static readonly string ODsCCreateGeomFieldAfterCreateLayer = OgrPINVOKE.ODsCCreateGeomFieldAfterCreateLayer_get();
+ public static readonly string ODsCCurveGeometries = OgrPINVOKE.ODsCCurveGeometries_get();
+ public static readonly string ODsCTransactions = OgrPINVOKE.ODsCTransactions_get();
+ public static readonly string ODsCEmulatedTransactions = OgrPINVOKE.ODsCEmulatedTransactions_get();
+ public static readonly string ODsCMeasuredGeometries = OgrPINVOKE.ODsCMeasuredGeometries_get();
+ public static readonly string ODsCZGeometries = OgrPINVOKE.ODsCZGeometries_get();
+ public static readonly string ODsCRandomLayerRead = OgrPINVOKE.ODsCRandomLayerRead_get();
+ public static readonly string ODsCRandomLayerWrite = OgrPINVOKE.ODsCRandomLayerWrite_get();
+ public static readonly string ODrCCreateDataSource = OgrPINVOKE.ODrCCreateDataSource_get();
+ public static readonly string ODrCDeleteDataSource = OgrPINVOKE.ODrCDeleteDataSource_get();
+ public static readonly string OLMD_FID64 = OgrPINVOKE.OLMD_FID64_get();
+ public static readonly int GEOS_PREC_NO_TOPO = OgrPINVOKE.GEOS_PREC_NO_TOPO_get();
+ public static readonly int GEOS_PREC_KEEP_COLLAPSED = OgrPINVOKE.GEOS_PREC_KEEP_COLLAPSED_get();
+ public static readonly int OGRERR_NONE = OgrPINVOKE.OGRERR_NONE_get();
+ public static readonly int OGRERR_NOT_ENOUGH_DATA = OgrPINVOKE.OGRERR_NOT_ENOUGH_DATA_get();
+ public static readonly int OGRERR_NOT_ENOUGH_MEMORY = OgrPINVOKE.OGRERR_NOT_ENOUGH_MEMORY_get();
+ public static readonly int OGRERR_UNSUPPORTED_GEOMETRY_TYPE = OgrPINVOKE.OGRERR_UNSUPPORTED_GEOMETRY_TYPE_get();
+ public static readonly int OGRERR_UNSUPPORTED_OPERATION = OgrPINVOKE.OGRERR_UNSUPPORTED_OPERATION_get();
+ public static readonly int OGRERR_CORRUPT_DATA = OgrPINVOKE.OGRERR_CORRUPT_DATA_get();
+ public static readonly int OGRERR_FAILURE = OgrPINVOKE.OGRERR_FAILURE_get();
+ public static readonly int OGRERR_UNSUPPORTED_SRS = OgrPINVOKE.OGRERR_UNSUPPORTED_SRS_get();
+ public static readonly int OGRERR_INVALID_HANDLE = OgrPINVOKE.OGRERR_INVALID_HANDLE_get();
+ public static readonly int OGRERR_NON_EXISTING_FEATURE = OgrPINVOKE.OGRERR_NON_EXISTING_FEATURE_get();
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OGR/OgrPINVOKE.cs b/Geospatial/GDAL-Bindings/OGR/OgrPINVOKE.cs
new file mode 100644
index 0000000..5a794fb
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OGR/OgrPINVOKE.cs
@@ -0,0 +1,1724 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OGR {
+
+using global::System;
+using global::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);
+
+ [global::System.Runtime.InteropServices.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);
+
+ [global::System.Runtime.InteropServices.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 global::System.ApplicationException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingArithmeticException(string message) {
+ SWIGPendingException.Set(new global::System.ArithmeticException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingDivideByZeroException(string message) {
+ SWIGPendingException.Set(new global::System.DivideByZeroException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingIndexOutOfRangeException(string message) {
+ SWIGPendingException.Set(new global::System.IndexOutOfRangeException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingInvalidCastException(string message) {
+ SWIGPendingException.Set(new global::System.InvalidCastException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingInvalidOperationException(string message) {
+ SWIGPendingException.Set(new global::System.InvalidOperationException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingIOException(string message) {
+ SWIGPendingException.Set(new global::System.IO.IOException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingNullReferenceException(string message) {
+ SWIGPendingException.Set(new global::System.NullReferenceException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingOutOfMemoryException(string message) {
+ SWIGPendingException.Set(new global::System.OutOfMemoryException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingOverflowException(string message) {
+ SWIGPendingException.Set(new global::System.OverflowException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingSystemException(string message) {
+ SWIGPendingException.Set(new global::System.SystemException(message, SWIGPendingException.Retrieve()));
+ }
+
+ static void SetPendingArgumentException(string message, string paramName) {
+ SWIGPendingException.Set(new global::System.ArgumentException(message, paramName, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingArgumentNullException(string message, string paramName) {
+ global::System.Exception e = SWIGPendingException.Retrieve();
+ if (e != null) message = message + " Inner Exception: " + e.Message;
+ SWIGPendingException.Set(new global::System.ArgumentNullException(paramName, message));
+ }
+ static void SetPendingArgumentOutOfRangeException(string message, string paramName) {
+ global::System.Exception e = SWIGPendingException.Retrieve();
+ if (e != null) message = message + " Inner Exception: " + e.Message;
+ SWIGPendingException.Set(new global::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 {
+ [global::System.ThreadStatic]
+ private static global::System.Exception pendingException = null;
+ private static int numExceptionsPending = 0;
+ private static global::System.Object exceptionsLock = null;
+
+ public static bool Pending {
+ get {
+ bool pending = false;
+ if (numExceptionsPending > 0)
+ if (pendingException != null)
+ pending = true;
+ return pending;
+ }
+ }
+
+ public static void Set(global::System.Exception e) {
+ if (pendingException != null)
+ throw new global::System.ApplicationException("FATAL: An earlier pending exception from unmanaged code was missed and thus not thrown (" + pendingException.ToString() + ")", e);
+ pendingException = e;
+ lock(exceptionsLock) {
+ numExceptionsPending++;
+ }
+ }
+
+ public static global::System.Exception Retrieve() {
+ global::System.Exception e = null;
+ if (numExceptionsPending > 0) {
+ if (pendingException != null) {
+ e = pendingException;
+ pendingException = null;
+ lock(exceptionsLock) {
+ numExceptionsPending--;
+ }
+ }
+ }
+ return e;
+ }
+
+ static SWIGPendingException() {
+ exceptionsLock = new global::System.Object();
+ }
+ }
+
+
+ protected class SWIGStringHelper {
+
+ public delegate string SWIGStringDelegate(string message);
+ static SWIGStringDelegate stringDelegate = new SWIGStringDelegate(CreateString);
+
+ [global::System.Runtime.InteropServices.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();
+
+
+ static OgrPINVOKE() {
+ }
+
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_wkb25DBit_get___")]
+ public static extern int wkb25DBit_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_ogrZMarker_get___")]
+ public static extern int ogrZMarker_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OGRNullFID_get___")]
+ public static extern int OGRNullFID_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OGRUnsetMarker_get___")]
+ public static extern int OGRUnsetMarker_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OLCRandomRead_get___")]
+ public static extern string OLCRandomRead_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OLCSequentialWrite_get___")]
+ public static extern string OLCSequentialWrite_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OLCRandomWrite_get___")]
+ public static extern string OLCRandomWrite_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OLCFastSpatialFilter_get___")]
+ public static extern string OLCFastSpatialFilter_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OLCFastFeatureCount_get___")]
+ public static extern string OLCFastFeatureCount_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OLCFastGetExtent_get___")]
+ public static extern string OLCFastGetExtent_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OLCFastGetExtent3D_get___")]
+ public static extern string OLCFastGetExtent3D_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OLCCreateField_get___")]
+ public static extern string OLCCreateField_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OLCDeleteField_get___")]
+ public static extern string OLCDeleteField_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OLCReorderFields_get___")]
+ public static extern string OLCReorderFields_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OLCAlterFieldDefn_get___")]
+ public static extern string OLCAlterFieldDefn_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OLCAlterGeomFieldDefn_get___")]
+ public static extern string OLCAlterGeomFieldDefn_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OLCTransactions_get___")]
+ public static extern string OLCTransactions_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OLCDeleteFeature_get___")]
+ public static extern string OLCDeleteFeature_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OLCUpsertFeature_get___")]
+ public static extern string OLCUpsertFeature_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OLCUpdateFeature_get___")]
+ public static extern string OLCUpdateFeature_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OLCFastSetNextByIndex_get___")]
+ public static extern string OLCFastSetNextByIndex_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OLCStringsAsUTF8_get___")]
+ public static extern string OLCStringsAsUTF8_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OLCCreateGeomField_get___")]
+ public static extern string OLCCreateGeomField_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OLCCurveGeometries_get___")]
+ public static extern string OLCCurveGeometries_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OLCMeasuredGeometries_get___")]
+ public static extern string OLCMeasuredGeometries_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OLCZGeometries_get___")]
+ public static extern string OLCZGeometries_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OLCRename_get___")]
+ public static extern string OLCRename_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OLCFastGetArrowStream_get___")]
+ public static extern string OLCFastGetArrowStream_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OLCFastWriteArrowBatch_get___")]
+ public static extern string OLCFastWriteArrowBatch_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_ODsCCreateLayer_get___")]
+ public static extern string ODsCCreateLayer_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_ODsCDeleteLayer_get___")]
+ public static extern string ODsCDeleteLayer_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_ODsCCreateGeomFieldAfterCreateLayer_get___")]
+ public static extern string ODsCCreateGeomFieldAfterCreateLayer_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_ODsCCurveGeometries_get___")]
+ public static extern string ODsCCurveGeometries_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_ODsCTransactions_get___")]
+ public static extern string ODsCTransactions_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_ODsCEmulatedTransactions_get___")]
+ public static extern string ODsCEmulatedTransactions_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_ODsCMeasuredGeometries_get___")]
+ public static extern string ODsCMeasuredGeometries_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_ODsCZGeometries_get___")]
+ public static extern string ODsCZGeometries_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_ODsCRandomLayerRead_get___")]
+ public static extern string ODsCRandomLayerRead_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_ODsCRandomLayerWrite_get___")]
+ public static extern string ODsCRandomLayerWrite_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_ODrCCreateDataSource_get___")]
+ public static extern string ODrCCreateDataSource_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_ODrCDeleteDataSource_get___")]
+ public static extern string ODrCDeleteDataSource_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OLMD_FID64_get___")]
+ public static extern string OLMD_FID64_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GEOS_PREC_NO_TOPO_get___")]
+ public static extern int GEOS_PREC_NO_TOPO_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GEOS_PREC_KEEP_COLLAPSED_get___")]
+ public static extern int GEOS_PREC_KEEP_COLLAPSED_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OGRERR_NONE_get___")]
+ public static extern int OGRERR_NONE_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OGRERR_NOT_ENOUGH_DATA_get___")]
+ public static extern int OGRERR_NOT_ENOUGH_DATA_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OGRERR_NOT_ENOUGH_MEMORY_get___")]
+ public static extern int OGRERR_NOT_ENOUGH_MEMORY_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OGRERR_UNSUPPORTED_GEOMETRY_TYPE_get___")]
+ public static extern int OGRERR_UNSUPPORTED_GEOMETRY_TYPE_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OGRERR_UNSUPPORTED_OPERATION_get___")]
+ public static extern int OGRERR_UNSUPPORTED_OPERATION_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OGRERR_CORRUPT_DATA_get___")]
+ public static extern int OGRERR_CORRUPT_DATA_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OGRERR_FAILURE_get___")]
+ public static extern int OGRERR_FAILURE_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OGRERR_UNSUPPORTED_SRS_get___")]
+ public static extern int OGRERR_UNSUPPORTED_SRS_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OGRERR_INVALID_HANDLE_get___")]
+ public static extern int OGRERR_INVALID_HANDLE_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OGRERR_NON_EXISTING_FEATURE_get___")]
+ public static extern int OGRERR_NON_EXISTING_FEATURE_get();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_UseExceptions___")]
+ public static extern void UseExceptions();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_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);
+ }
+ }
+
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_StringListDestroy___")]
+ public static extern void StringListDestroy(IntPtr jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GetGEOSVersionMajor___")]
+ public static extern int GetGEOSVersionMajor();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GetGEOSVersionMinor___")]
+ public static extern int GetGEOSVersionMinor();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GetGEOSVersionMicro___")]
+ public static extern int GetGEOSVersionMicro();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Envelope_MinX_set___")]
+ public static extern void Envelope_MinX_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Envelope_MinX_get___")]
+ public static extern double Envelope_MinX_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Envelope_MaxX_set___")]
+ public static extern void Envelope_MaxX_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Envelope_MaxX_get___")]
+ public static extern double Envelope_MaxX_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Envelope_MinY_set___")]
+ public static extern void Envelope_MinY_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Envelope_MinY_get___")]
+ public static extern double Envelope_MinY_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Envelope_MaxY_set___")]
+ public static extern void Envelope_MaxY_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Envelope_MaxY_get___")]
+ public static extern double Envelope_MaxY_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_new_Envelope___")]
+ public static extern global::System.IntPtr new_Envelope();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_delete_Envelope___")]
+ public static extern void delete_Envelope(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Envelope3D_MinX_set___")]
+ public static extern void Envelope3D_MinX_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Envelope3D_MinX_get___")]
+ public static extern double Envelope3D_MinX_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Envelope3D_MaxX_set___")]
+ public static extern void Envelope3D_MaxX_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Envelope3D_MaxX_get___")]
+ public static extern double Envelope3D_MaxX_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Envelope3D_MinY_set___")]
+ public static extern void Envelope3D_MinY_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Envelope3D_MinY_get___")]
+ public static extern double Envelope3D_MinY_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Envelope3D_MaxY_set___")]
+ public static extern void Envelope3D_MaxY_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Envelope3D_MaxY_get___")]
+ public static extern double Envelope3D_MaxY_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Envelope3D_MinZ_set___")]
+ public static extern void Envelope3D_MinZ_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Envelope3D_MinZ_get___")]
+ public static extern double Envelope3D_MinZ_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Envelope3D_MaxZ_set___")]
+ public static extern void Envelope3D_MaxZ_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Envelope3D_MaxZ_get___")]
+ public static extern double Envelope3D_MaxZ_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_new_Envelope3D___")]
+ public static extern global::System.IntPtr new_Envelope3D();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_delete_Envelope3D___")]
+ public static extern void delete_Envelope3D(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_new_StyleTable___")]
+ public static extern global::System.IntPtr new_StyleTable();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_delete_StyleTable___")]
+ public static extern void delete_StyleTable(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_StyleTable_AddStyle___")]
+ public static extern int StyleTable_AddStyle(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_StyleTable_LoadStyleTable___")]
+ public static extern int StyleTable_LoadStyleTable(global::System.Runtime.InteropServices.HandleRef jarg1, byte[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_StyleTable_SaveStyleTable___")]
+ public static extern int StyleTable_SaveStyleTable(global::System.Runtime.InteropServices.HandleRef jarg1, byte[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_StyleTable_Find___")]
+ public static extern string StyleTable_Find(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_StyleTable_ResetStyleStringReading___")]
+ public static extern void StyleTable_ResetStyleStringReading(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_StyleTable_GetNextStyle___")]
+ public static extern string StyleTable_GetNextStyle(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_StyleTable_GetLastStyleName___")]
+ public static extern string StyleTable_GetLastStyleName(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Driver_name_get___")]
+ public static extern string Driver_name_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Driver_CreateDataSource___")]
+ public static extern global::System.IntPtr Driver_CreateDataSource(global::System.Runtime.InteropServices.HandleRef jarg1, byte[] jarg2, IntPtr[] jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Driver_CopyDataSource___")]
+ public static extern global::System.IntPtr Driver_CopyDataSource(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, byte[] jarg3, IntPtr[] jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Driver_Open___")]
+ public static extern global::System.IntPtr Driver_Open(global::System.Runtime.InteropServices.HandleRef jarg1, byte[] jarg2, int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Driver_DeleteDataSource___")]
+ public static extern int Driver_DeleteDataSource(global::System.Runtime.InteropServices.HandleRef jarg1, byte[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Driver_TestCapability___")]
+ public static extern bool Driver_TestCapability(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Driver_GetName___")]
+ public static extern string Driver_GetName(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Driver_Register___")]
+ public static extern void Driver_Register(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Driver_Deregister___")]
+ public static extern void Driver_Deregister(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_DataSource_name_get___")]
+ public static extern string DataSource_name_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_delete_DataSource___")]
+ public static extern void delete_DataSource(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_DataSource_Close___")]
+ public static extern global::System.IntPtr DataSource_Close(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_DataSource_GetRefCount___")]
+ public static extern int DataSource_GetRefCount(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_DataSource_GetSummaryRefCount___")]
+ public static extern int DataSource_GetSummaryRefCount(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_DataSource_GetLayerCount___")]
+ public static extern int DataSource_GetLayerCount(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_DataSource_GetDriver___")]
+ public static extern global::System.IntPtr DataSource_GetDriver(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_DataSource_GetName___")]
+ public static extern string DataSource_GetName(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_DataSource_DeleteLayer___")]
+ public static extern int DataSource_DeleteLayer(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_DataSource_SyncToDisk___")]
+ public static extern int DataSource_SyncToDisk(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_DataSource_FlushCache___")]
+ public static extern void DataSource_FlushCache(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_DataSource_CreateLayer___")]
+ public static extern global::System.IntPtr DataSource_CreateLayer(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, int jarg4, IntPtr[] jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_DataSource_CopyLayer___")]
+ public static extern global::System.IntPtr DataSource_CopyLayer(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, string jarg3, IntPtr[] jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_DataSource_GetLayerByIndex___")]
+ public static extern global::System.IntPtr DataSource_GetLayerByIndex(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_DataSource_GetLayerByName___")]
+ public static extern global::System.IntPtr DataSource_GetLayerByName(global::System.Runtime.InteropServices.HandleRef jarg1, byte[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_DataSource_TestCapability___")]
+ public static extern bool DataSource_TestCapability(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_DataSource_ExecuteSQL___")]
+ public static extern global::System.IntPtr DataSource_ExecuteSQL(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, string jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_DataSource_AbortSQL___")]
+ public static extern int DataSource_AbortSQL(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_DataSource_ReleaseResultSet___")]
+ public static extern void DataSource_ReleaseResultSet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_DataSource_GetStyleTable___")]
+ public static extern global::System.IntPtr DataSource_GetStyleTable(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_DataSource_SetStyleTable___")]
+ public static extern void DataSource_SetStyleTable(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_DataSource_StartTransaction___")]
+ public static extern int DataSource_StartTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_DataSource_CommitTransaction___")]
+ public static extern int DataSource_CommitTransaction(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_DataSource_RollbackTransaction___")]
+ public static extern int DataSource_RollbackTransaction(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_Rename___")]
+ public static extern int Layer_Rename(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_GetRefCount___")]
+ public static extern int Layer_GetRefCount(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_SetSpatialFilter__SWIG_0___")]
+ public static extern void Layer_SetSpatialFilter__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_SetSpatialFilterRect__SWIG_0___")]
+ public static extern void Layer_SetSpatialFilterRect__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_SetSpatialFilter__SWIG_1___")]
+ public static extern void Layer_SetSpatialFilter__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_SetSpatialFilterRect__SWIG_1___")]
+ public static extern void Layer_SetSpatialFilterRect__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, double jarg3, double jarg4, double jarg5, double jarg6);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_GetSpatialFilter___")]
+ public static extern global::System.IntPtr Layer_GetSpatialFilter(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_SetAttributeFilter___")]
+ public static extern int Layer_SetAttributeFilter(global::System.Runtime.InteropServices.HandleRef jarg1, byte[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_ResetReading___")]
+ public static extern void Layer_ResetReading(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_GetName___")]
+ public static extern string Layer_GetName(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_GetGeomType___")]
+ public static extern int Layer_GetGeomType(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_GetGeometryColumn___")]
+ public static extern string Layer_GetGeometryColumn(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_GetFIDColumn___")]
+ public static extern string Layer_GetFIDColumn(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_GetFeature___")]
+ public static extern global::System.IntPtr Layer_GetFeature(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_GetNextFeature___")]
+ public static extern global::System.IntPtr Layer_GetNextFeature(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_SetNextByIndex___")]
+ public static extern int Layer_SetNextByIndex(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_SetFeature___")]
+ public static extern int Layer_SetFeature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_CreateFeature___")]
+ public static extern int Layer_CreateFeature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_UpsertFeature___")]
+ public static extern int Layer_UpsertFeature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_UpdateFeature___")]
+ public static extern int Layer_UpdateFeature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, int jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, bool jarg7);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_DeleteFeature___")]
+ public static extern int Layer_DeleteFeature(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_SyncToDisk___")]
+ public static extern int Layer_SyncToDisk(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_GetLayerDefn___")]
+ public static extern global::System.IntPtr Layer_GetLayerDefn(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_GetFeatureCount___")]
+ public static extern long Layer_GetFeatureCount(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_GetExtent___")]
+ public static extern int Layer_GetExtent(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_TestCapability___")]
+ public static extern bool Layer_TestCapability(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_CreateField___")]
+ public static extern int Layer_CreateField(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_DeleteField___")]
+ public static extern int Layer_DeleteField(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_ReorderField___")]
+ public static extern int Layer_ReorderField(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_ReorderFields___")]
+ public static extern int Layer_ReorderFields(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int[] jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_AlterFieldDefn___")]
+ public static extern int Layer_AlterFieldDefn(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, int jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_AlterGeomFieldDefn___")]
+ public static extern int Layer_AlterGeomFieldDefn(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, int jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_CreateGeomField___")]
+ public static extern int Layer_CreateGeomField(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_StartTransaction___")]
+ public static extern int Layer_StartTransaction(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_CommitTransaction___")]
+ public static extern int Layer_CommitTransaction(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_RollbackTransaction___")]
+ public static extern int Layer_RollbackTransaction(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_FindFieldIndex___")]
+ public static extern int Layer_FindFieldIndex(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_GetSpatialRef___")]
+ public static extern global::System.IntPtr Layer_GetSpatialRef(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_GetFeaturesRead___")]
+ public static extern long Layer_GetFeaturesRead(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_SetIgnoredFields___")]
+ public static extern int Layer_SetIgnoredFields(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_Intersection___")]
+ public static extern int Layer_Intersection(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, IntPtr[] jarg4, Ogr.GDALProgressFuncDelegate jarg5, string jarg6);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_Union___")]
+ public static extern int Layer_Union(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, IntPtr[] jarg4, Ogr.GDALProgressFuncDelegate jarg5, string jarg6);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_SymDifference___")]
+ public static extern int Layer_SymDifference(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, IntPtr[] jarg4, Ogr.GDALProgressFuncDelegate jarg5, string jarg6);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_Identity___")]
+ public static extern int Layer_Identity(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, IntPtr[] jarg4, Ogr.GDALProgressFuncDelegate jarg5, string jarg6);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_Update___")]
+ public static extern int Layer_Update(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, IntPtr[] jarg4, Ogr.GDALProgressFuncDelegate jarg5, string jarg6);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_Clip___")]
+ public static extern int Layer_Clip(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, IntPtr[] jarg4, Ogr.GDALProgressFuncDelegate jarg5, string jarg6);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_Erase___")]
+ public static extern int Layer_Erase(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, IntPtr[] jarg4, Ogr.GDALProgressFuncDelegate jarg5, string jarg6);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_GetStyleTable___")]
+ public static extern global::System.IntPtr Layer_GetStyleTable(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_SetStyleTable___")]
+ public static extern void Layer_SetStyleTable(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Layer_SetActiveSRS___")]
+ public static extern int Layer_SetActiveSRS(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_delete_Feature___")]
+ public static extern void delete_Feature(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_new_Feature___")]
+ public static extern global::System.IntPtr new_Feature(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_GetDefnRef___")]
+ public static extern global::System.IntPtr Feature_GetDefnRef(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_SetGeometry___")]
+ public static extern int Feature_SetGeometry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_SetGeometryDirectly___")]
+ public static extern int Feature_SetGeometryDirectly(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_GetGeometryRef___")]
+ public static extern global::System.IntPtr Feature_GetGeometryRef(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_SetGeomField__SWIG_0___")]
+ public static extern int Feature_SetGeomField__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_SetGeomField__SWIG_1___")]
+ public static extern int Feature_SetGeomField__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_SetGeomFieldDirectly__SWIG_0___")]
+ public static extern int Feature_SetGeomFieldDirectly__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_SetGeomFieldDirectly__SWIG_1___")]
+ public static extern int Feature_SetGeomFieldDirectly__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_GetGeomFieldRef__SWIG_0___")]
+ public static extern global::System.IntPtr Feature_GetGeomFieldRef__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_GetGeomFieldRef__SWIG_1___")]
+ public static extern global::System.IntPtr Feature_GetGeomFieldRef__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_Clone___")]
+ public static extern global::System.IntPtr Feature_Clone(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_Equal___")]
+ public static extern bool Feature_Equal(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_GetFieldCount___")]
+ public static extern int Feature_GetFieldCount(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_GetFieldDefnRef__SWIG_0___")]
+ public static extern global::System.IntPtr Feature_GetFieldDefnRef__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_GetFieldDefnRef__SWIG_1___")]
+ public static extern global::System.IntPtr Feature_GetFieldDefnRef__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_GetGeomFieldCount___")]
+ public static extern int Feature_GetGeomFieldCount(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_GetGeomFieldDefnRef__SWIG_0___")]
+ public static extern global::System.IntPtr Feature_GetGeomFieldDefnRef__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_GetGeomFieldDefnRef__SWIG_1___")]
+ public static extern global::System.IntPtr Feature_GetGeomFieldDefnRef__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_GetFieldAsString__SWIG_0___")]
+ public static extern IntPtr Feature_GetFieldAsString__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_GetFieldAsString__SWIG_1___")]
+ public static extern IntPtr Feature_GetFieldAsString__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_GetFieldAsISO8601DateTime__SWIG_0___")]
+ public static extern string Feature_GetFieldAsISO8601DateTime__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, IntPtr[] jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_GetFieldAsISO8601DateTime__SWIG_1___")]
+ public static extern string Feature_GetFieldAsISO8601DateTime__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, IntPtr[] jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_GetFieldAsInteger__SWIG_0___")]
+ public static extern int Feature_GetFieldAsInteger__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_GetFieldAsInteger__SWIG_1___")]
+ public static extern int Feature_GetFieldAsInteger__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_GetFieldAsInteger64__SWIG_0___")]
+ public static extern long Feature_GetFieldAsInteger64__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_GetFieldAsInteger64__SWIG_1___")]
+ public static extern long Feature_GetFieldAsInteger64__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_GetFieldAsDouble__SWIG_0___")]
+ public static extern double Feature_GetFieldAsDouble__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_GetFieldAsDouble__SWIG_1___")]
+ public static extern double Feature_GetFieldAsDouble__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_GetFieldAsDateTime__SWIG_0___")]
+ public static extern void Feature_GetFieldAsDateTime__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, out int jarg3, out int jarg4, out int jarg5, out int jarg6, out int jarg7, out float jarg8, out int jarg9);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_GetFieldAsDateTime__SWIG_1___")]
+ public static extern void Feature_GetFieldAsDateTime__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, out int jarg3, out int jarg4, out int jarg5, out int jarg6, out int jarg7, out float jarg8, out int jarg9);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_GetFieldAsIntegerList___")]
+ public static extern IntPtr Feature_GetFieldAsIntegerList(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, out int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_GetFieldAsDoubleList___")]
+ public static extern IntPtr Feature_GetFieldAsDoubleList(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, out int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_GetFieldAsStringList___")]
+ public static extern IntPtr Feature_GetFieldAsStringList(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_IsFieldSet__SWIG_0___")]
+ public static extern bool Feature_IsFieldSet__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_IsFieldSet__SWIG_1___")]
+ public static extern bool Feature_IsFieldSet__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_IsFieldNull__SWIG_0___")]
+ public static extern bool Feature_IsFieldNull__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_IsFieldNull__SWIG_1___")]
+ public static extern bool Feature_IsFieldNull__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_IsFieldSetAndNotNull__SWIG_0___")]
+ public static extern bool Feature_IsFieldSetAndNotNull__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_IsFieldSetAndNotNull__SWIG_1___")]
+ public static extern bool Feature_IsFieldSetAndNotNull__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_GetFieldIndex___")]
+ public static extern int Feature_GetFieldIndex(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_GetGeomFieldIndex___")]
+ public static extern int Feature_GetGeomFieldIndex(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_GetFID___")]
+ public static extern long Feature_GetFID(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_SetFID___")]
+ public static extern int Feature_SetFID(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_DumpReadable___")]
+ public static extern void Feature_DumpReadable(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_DumpReadableAsString___")]
+ public static extern string Feature_DumpReadableAsString(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_UnsetField__SWIG_0___")]
+ public static extern void Feature_UnsetField__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_UnsetField__SWIG_1___")]
+ public static extern void Feature_UnsetField__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_SetFieldNull__SWIG_0___")]
+ public static extern void Feature_SetFieldNull__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_SetFieldNull__SWIG_1___")]
+ public static extern void Feature_SetFieldNull__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_SetField__SWIG_0___")]
+ public static extern void Feature_SetField__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, byte[] jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_SetField__SWIG_1___")]
+ public static extern void Feature_SetField__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, byte[] jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_SetFieldInteger64___")]
+ public static extern void Feature_SetFieldInteger64(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, long jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_SetField__SWIG_2___")]
+ public static extern void Feature_SetField__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_SetField__SWIG_3___")]
+ public static extern void Feature_SetField__SWIG_3(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_SetField__SWIG_4___")]
+ public static extern void Feature_SetField__SWIG_4(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, double jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_SetField__SWIG_5___")]
+ public static extern void Feature_SetField__SWIG_5(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, double jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_SetField__SWIG_6___")]
+ public static extern void Feature_SetField__SWIG_6(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, int jarg4, int jarg5, int jarg6, int jarg7, float jarg8, int jarg9);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_SetField__SWIG_7___")]
+ public static extern void Feature_SetField__SWIG_7(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, int jarg3, int jarg4, int jarg5, int jarg6, int jarg7, float jarg8, int jarg9);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_SetFieldIntegerList___")]
+ public static extern void Feature_SetFieldIntegerList(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, int[] jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_SetFieldDoubleList___")]
+ public static extern void Feature_SetFieldDoubleList(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, double[] jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_SetFieldStringList___")]
+ public static extern void Feature_SetFieldStringList(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, IntPtr[] jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_SetFieldBinaryFromHexString__SWIG_0___")]
+ public static extern void Feature_SetFieldBinaryFromHexString__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, string jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_SetFieldBinaryFromHexString__SWIG_1___")]
+ public static extern void Feature_SetFieldBinaryFromHexString__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_SetFrom___")]
+ public static extern int Feature_SetFrom(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_SetFromWithMap___")]
+ public static extern int Feature_SetFromWithMap(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3, int jarg4, int[] jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_GetStyleString___")]
+ public static extern string Feature_GetStyleString(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_SetStyleString___")]
+ public static extern void Feature_SetStyleString(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_GetFieldType__SWIG_0___")]
+ public static extern int Feature_GetFieldType__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_GetFieldType__SWIG_1___")]
+ public static extern int Feature_GetFieldType__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_Validate___")]
+ public static extern int Feature_Validate(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_FillUnsetWithDefault___")]
+ public static extern void Feature_FillUnsetWithDefault(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, IntPtr[] jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_GetNativeData___")]
+ public static extern string Feature_GetNativeData(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_GetNativeMediaType___")]
+ public static extern string Feature_GetNativeMediaType(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_SetNativeData___")]
+ public static extern void Feature_SetNativeData(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Feature_SetNativeMediaType___")]
+ public static extern void Feature_SetNativeMediaType(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_delete_FeatureDefn___")]
+ public static extern void delete_FeatureDefn(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_new_FeatureDefn___")]
+ public static extern global::System.IntPtr new_FeatureDefn(string jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FeatureDefn_GetName___")]
+ public static extern string FeatureDefn_GetName(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FeatureDefn_GetFieldCount___")]
+ public static extern int FeatureDefn_GetFieldCount(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FeatureDefn_GetFieldDefn___")]
+ public static extern global::System.IntPtr FeatureDefn_GetFieldDefn(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FeatureDefn_GetFieldIndex___")]
+ public static extern int FeatureDefn_GetFieldIndex(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FeatureDefn_AddFieldDefn___")]
+ public static extern void FeatureDefn_AddFieldDefn(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FeatureDefn_GetGeomFieldCount___")]
+ public static extern int FeatureDefn_GetGeomFieldCount(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FeatureDefn_GetGeomFieldDefn___")]
+ public static extern global::System.IntPtr FeatureDefn_GetGeomFieldDefn(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FeatureDefn_GetGeomFieldIndex___")]
+ public static extern int FeatureDefn_GetGeomFieldIndex(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FeatureDefn_AddGeomFieldDefn___")]
+ public static extern void FeatureDefn_AddGeomFieldDefn(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FeatureDefn_DeleteGeomFieldDefn___")]
+ public static extern int FeatureDefn_DeleteGeomFieldDefn(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FeatureDefn_GetGeomType___")]
+ public static extern int FeatureDefn_GetGeomType(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FeatureDefn_SetGeomType___")]
+ public static extern void FeatureDefn_SetGeomType(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FeatureDefn_GetReferenceCount___")]
+ public static extern int FeatureDefn_GetReferenceCount(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FeatureDefn_IsGeometryIgnored___")]
+ public static extern int FeatureDefn_IsGeometryIgnored(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FeatureDefn_SetGeometryIgnored___")]
+ public static extern void FeatureDefn_SetGeometryIgnored(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FeatureDefn_IsStyleIgnored___")]
+ public static extern int FeatureDefn_IsStyleIgnored(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FeatureDefn_SetStyleIgnored___")]
+ public static extern void FeatureDefn_SetStyleIgnored(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FeatureDefn_IsSame___")]
+ public static extern int FeatureDefn_IsSame(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_delete_FieldDefn___")]
+ public static extern void delete_FieldDefn(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_new_FieldDefn___")]
+ public static extern global::System.IntPtr new_FieldDefn(string jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDefn_GetName___")]
+ public static extern string FieldDefn_GetName(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDefn_GetNameRef___")]
+ public static extern string FieldDefn_GetNameRef(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDefn_SetName___")]
+ public static extern void FieldDefn_SetName(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDefn_GetAlternativeName___")]
+ public static extern string FieldDefn_GetAlternativeName(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDefn_GetAlternativeNameRef___")]
+ public static extern string FieldDefn_GetAlternativeNameRef(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDefn_SetAlternativeName___")]
+ public static extern void FieldDefn_SetAlternativeName(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDefn_GetFieldType___")]
+ public static extern int FieldDefn_GetFieldType(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDefn_SetType___")]
+ public static extern void FieldDefn_SetType(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDefn_GetSubType___")]
+ public static extern int FieldDefn_GetSubType(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDefn_SetSubType___")]
+ public static extern void FieldDefn_SetSubType(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDefn_GetJustify___")]
+ public static extern int FieldDefn_GetJustify(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDefn_SetJustify___")]
+ public static extern void FieldDefn_SetJustify(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDefn_GetWidth___")]
+ public static extern int FieldDefn_GetWidth(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDefn_SetWidth___")]
+ public static extern void FieldDefn_SetWidth(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDefn_GetPrecision___")]
+ public static extern int FieldDefn_GetPrecision(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDefn_SetPrecision___")]
+ public static extern void FieldDefn_SetPrecision(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDefn_GetTZFlag___")]
+ public static extern int FieldDefn_GetTZFlag(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDefn_SetTZFlag___")]
+ public static extern void FieldDefn_SetTZFlag(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDefn_GetTypeName___")]
+ public static extern string FieldDefn_GetTypeName(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDefn_GetFieldTypeName___")]
+ public static extern string FieldDefn_GetFieldTypeName(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDefn_IsIgnored___")]
+ public static extern int FieldDefn_IsIgnored(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDefn_SetIgnored___")]
+ public static extern void FieldDefn_SetIgnored(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDefn_IsNullable___")]
+ public static extern int FieldDefn_IsNullable(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDefn_SetNullable___")]
+ public static extern void FieldDefn_SetNullable(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDefn_IsUnique___")]
+ public static extern int FieldDefn_IsUnique(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDefn_SetUnique___")]
+ public static extern void FieldDefn_SetUnique(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDefn_GetDefault___")]
+ public static extern string FieldDefn_GetDefault(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDefn_SetDefault___")]
+ public static extern void FieldDefn_SetDefault(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDefn_IsDefaultDriverSpecific___")]
+ public static extern int FieldDefn_IsDefaultDriverSpecific(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDefn_GetDomainName___")]
+ public static extern string FieldDefn_GetDomainName(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDefn_SetDomainName___")]
+ public static extern void FieldDefn_SetDomainName(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDefn_GetComment___")]
+ public static extern string FieldDefn_GetComment(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDefn_SetComment___")]
+ public static extern void FieldDefn_SetComment(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_delete_GeomFieldDefn___")]
+ public static extern void delete_GeomFieldDefn(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_new_GeomFieldDefn___")]
+ public static extern global::System.IntPtr new_GeomFieldDefn(string jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GeomFieldDefn_GetName___")]
+ public static extern string GeomFieldDefn_GetName(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GeomFieldDefn_GetNameRef___")]
+ public static extern string GeomFieldDefn_GetNameRef(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GeomFieldDefn_SetName___")]
+ public static extern void GeomFieldDefn_SetName(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GeomFieldDefn_GetFieldType___")]
+ public static extern int GeomFieldDefn_GetFieldType(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GeomFieldDefn_SetType___")]
+ public static extern void GeomFieldDefn_SetType(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GeomFieldDefn_GetSpatialRef___")]
+ public static extern global::System.IntPtr GeomFieldDefn_GetSpatialRef(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GeomFieldDefn_SetSpatialRef___")]
+ public static extern void GeomFieldDefn_SetSpatialRef(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GeomFieldDefn_IsIgnored___")]
+ public static extern int GeomFieldDefn_IsIgnored(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GeomFieldDefn_SetIgnored___")]
+ public static extern void GeomFieldDefn_SetIgnored(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GeomFieldDefn_IsNullable___")]
+ public static extern int GeomFieldDefn_IsNullable(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GeomFieldDefn_SetNullable___")]
+ public static extern void GeomFieldDefn_SetNullable(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GeomFieldDefn_GetCoordinatePrecision___")]
+ public static extern global::System.IntPtr GeomFieldDefn_GetCoordinatePrecision(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GeomFieldDefn_SetCoordinatePrecision___")]
+ public static extern void GeomFieldDefn_SetCoordinatePrecision(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_CreateGeometryFromWkb___")]
+ public static extern global::System.IntPtr CreateGeometryFromWkb(uint jarg1, IntPtr jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_CreateGeometryFromWkt___")]
+ public static extern global::System.IntPtr CreateGeometryFromWkt(ref string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_CreateGeometryFromGML___")]
+ public static extern global::System.IntPtr CreateGeometryFromGML(string jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_CreateGeometryFromJson___")]
+ public static extern global::System.IntPtr CreateGeometryFromJson(string jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_CreateGeometryFromEsriJson___")]
+ public static extern global::System.IntPtr CreateGeometryFromEsriJson(string jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_BuildPolygonFromEdges___")]
+ public static extern global::System.IntPtr BuildPolygonFromEdges(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, double jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_ApproximateArcAngles___")]
+ public static extern global::System.IntPtr ApproximateArcAngles(double jarg1, double jarg2, double jarg3, double jarg4, double jarg5, double jarg6, double jarg7, double jarg8, double jarg9);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_ForceToPolygon___")]
+ public static extern global::System.IntPtr ForceToPolygon(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_ForceToLineString___")]
+ public static extern global::System.IntPtr ForceToLineString(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_ForceToMultiPolygon___")]
+ public static extern global::System.IntPtr ForceToMultiPolygon(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_ForceToMultiPoint___")]
+ public static extern global::System.IntPtr ForceToMultiPoint(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_ForceToMultiLineString___")]
+ public static extern global::System.IntPtr ForceToMultiLineString(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_ForceTo___")]
+ public static extern global::System.IntPtr ForceTo(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, IntPtr[] jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_delete_Geometry___")]
+ public static extern void delete_Geometry(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_new_Geometry___")]
+ public static extern global::System.IntPtr new_Geometry(int jarg1, string jarg2, int jarg3, IntPtr jarg4, string jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_ExportToWkt___")]
+ public static extern int Geometry_ExportToWkt(global::System.Runtime.InteropServices.HandleRef jarg1, out string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_ExportToIsoWkt___")]
+ public static extern int Geometry_ExportToIsoWkt(global::System.Runtime.InteropServices.HandleRef jarg1, out string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_ExportToGML__SWIG_0___")]
+ public static extern string Geometry_ExportToGML__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_ExportToGML__SWIG_1___")]
+ public static extern string Geometry_ExportToGML__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_ExportToKML___")]
+ public static extern string Geometry_ExportToKML(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_ExportToJson___")]
+ public static extern string Geometry_ExportToJson(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_AddPoint___")]
+ public static extern void Geometry_AddPoint(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_AddPointM___")]
+ public static extern void Geometry_AddPointM(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_AddPointZM___")]
+ public static extern void Geometry_AddPointZM(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_AddPoint_2D___")]
+ public static extern void Geometry_AddPoint_2D(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_AddGeometryDirectly___")]
+ public static extern int Geometry_AddGeometryDirectly(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_AddGeometry___")]
+ public static extern int Geometry_AddGeometry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_RemoveGeometry___")]
+ public static extern int Geometry_RemoveGeometry(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_Clone___")]
+ public static extern global::System.IntPtr Geometry_Clone(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_GetGeometryType___")]
+ public static extern int Geometry_GetGeometryType(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_GetGeometryName___")]
+ public static extern string Geometry_GetGeometryName(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_Length___")]
+ public static extern double Geometry_Length(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_Area___")]
+ public static extern double Geometry_Area(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_GeodesicArea___")]
+ public static extern double Geometry_GeodesicArea(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_IsClockwise___")]
+ public static extern bool Geometry_IsClockwise(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_GetArea___")]
+ public static extern double Geometry_GetArea(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_GetPointCount___")]
+ public static extern int Geometry_GetPointCount(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_GetX___")]
+ public static extern double Geometry_GetX(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_GetY___")]
+ public static extern double Geometry_GetY(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_GetZ___")]
+ public static extern double Geometry_GetZ(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_GetM___")]
+ public static extern double Geometry_GetM(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_GetPoint___")]
+ public static extern void Geometry_GetPoint(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, double[] jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_GetPointZM___")]
+ public static extern void Geometry_GetPointZM(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, double[] jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_GetPoint_2D___")]
+ public static extern void Geometry_GetPoint_2D(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, double[] jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_GetGeometryCount___")]
+ public static extern int Geometry_GetGeometryCount(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_SetPoint___")]
+ public static extern void Geometry_SetPoint(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, double jarg3, double jarg4, double jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_SetPointM___")]
+ public static extern void Geometry_SetPointM(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, double jarg3, double jarg4, double jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_SetPointZM___")]
+ public static extern void Geometry_SetPointZM(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, double jarg3, double jarg4, double jarg5, double jarg6);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_SetPoint_2D___")]
+ public static extern void Geometry_SetPoint_2D(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, double jarg3, double jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_SwapXY___")]
+ public static extern void Geometry_SwapXY(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_GetGeometryRef___")]
+ public static extern global::System.IntPtr Geometry_GetGeometryRef(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_Simplify___")]
+ public static extern global::System.IntPtr Geometry_Simplify(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_SimplifyPreserveTopology___")]
+ public static extern global::System.IntPtr Geometry_SimplifyPreserveTopology(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_DelaunayTriangulation___")]
+ public static extern global::System.IntPtr Geometry_DelaunayTriangulation(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_Polygonize___")]
+ public static extern global::System.IntPtr Geometry_Polygonize(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_Boundary___")]
+ public static extern global::System.IntPtr Geometry_Boundary(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_GetBoundary___")]
+ public static extern global::System.IntPtr Geometry_GetBoundary(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_ConvexHull___")]
+ public static extern global::System.IntPtr Geometry_ConvexHull(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_ConcaveHull___")]
+ public static extern global::System.IntPtr Geometry_ConcaveHull(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, bool jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_MakeValid___")]
+ public static extern global::System.IntPtr Geometry_MakeValid(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_SetPrecision___")]
+ public static extern global::System.IntPtr Geometry_SetPrecision(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_Normalize___")]
+ public static extern global::System.IntPtr Geometry_Normalize(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_RemoveLowerDimensionSubGeoms___")]
+ public static extern global::System.IntPtr Geometry_RemoveLowerDimensionSubGeoms(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_Buffer___")]
+ public static extern global::System.IntPtr Geometry_Buffer(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_Intersection___")]
+ public static extern global::System.IntPtr Geometry_Intersection(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_Union___")]
+ public static extern global::System.IntPtr Geometry_Union(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_UnionCascaded___")]
+ public static extern global::System.IntPtr Geometry_UnionCascaded(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_UnaryUnion___")]
+ public static extern global::System.IntPtr Geometry_UnaryUnion(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_Difference___")]
+ public static extern global::System.IntPtr Geometry_Difference(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_SymDifference___")]
+ public static extern global::System.IntPtr Geometry_SymDifference(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_SymmetricDifference___")]
+ public static extern global::System.IntPtr Geometry_SymmetricDifference(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_Distance___")]
+ public static extern double Geometry_Distance(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_Distance3D___")]
+ public static extern double Geometry_Distance3D(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_Empty___")]
+ public static extern void Geometry_Empty(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_IsEmpty___")]
+ public static extern bool Geometry_IsEmpty(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_IsValid___")]
+ public static extern bool Geometry_IsValid(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_IsSimple___")]
+ public static extern bool Geometry_IsSimple(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_IsRing___")]
+ public static extern bool Geometry_IsRing(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_Intersects___")]
+ public static extern bool Geometry_Intersects(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_Intersect___")]
+ public static extern bool Geometry_Intersect(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_Equals___")]
+ public static extern bool Geometry_Equals(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_Equal___")]
+ public static extern bool Geometry_Equal(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_Disjoint___")]
+ public static extern bool Geometry_Disjoint(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_Touches___")]
+ public static extern bool Geometry_Touches(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_Crosses___")]
+ public static extern bool Geometry_Crosses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_Within___")]
+ public static extern bool Geometry_Within(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_Contains___")]
+ public static extern bool Geometry_Contains(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_Overlaps___")]
+ public static extern bool Geometry_Overlaps(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_TransformTo___")]
+ public static extern int Geometry_TransformTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_Transform__SWIG_0___")]
+ public static extern int Geometry_Transform__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_GetSpatialReference___")]
+ public static extern global::System.IntPtr Geometry_GetSpatialReference(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_AssignSpatialReference___")]
+ public static extern void Geometry_AssignSpatialReference(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_CloseRings___")]
+ public static extern void Geometry_CloseRings(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_FlattenTo2D___")]
+ public static extern void Geometry_FlattenTo2D(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_Segmentize___")]
+ public static extern void Geometry_Segmentize(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_GetEnvelope___")]
+ public static extern void Geometry_GetEnvelope(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_GetEnvelope3D___")]
+ public static extern void Geometry_GetEnvelope3D(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_Centroid___")]
+ public static extern global::System.IntPtr Geometry_Centroid(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_PointOnSurface___")]
+ public static extern global::System.IntPtr Geometry_PointOnSurface(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_WkbSize___")]
+ public static extern uint Geometry_WkbSize(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_GetCoordinateDimension___")]
+ public static extern int Geometry_GetCoordinateDimension(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_CoordinateDimension___")]
+ public static extern int Geometry_CoordinateDimension(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_Is3D___")]
+ public static extern int Geometry_Is3D(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_IsMeasured___")]
+ public static extern int Geometry_IsMeasured(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_SetCoordinateDimension___")]
+ public static extern void Geometry_SetCoordinateDimension(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_Set3D___")]
+ public static extern void Geometry_Set3D(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_SetMeasured___")]
+ public static extern void Geometry_SetMeasured(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_GetDimension___")]
+ public static extern int Geometry_GetDimension(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_HasCurveGeometry___")]
+ public static extern int Geometry_HasCurveGeometry(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_GetLinearGeometry___")]
+ public static extern global::System.IntPtr Geometry_GetLinearGeometry(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, IntPtr[] jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_GetCurveGeometry___")]
+ public static extern global::System.IntPtr Geometry_GetCurveGeometry(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_Value___")]
+ public static extern global::System.IntPtr Geometry_Value(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_Transform__SWIG_1___")]
+ public static extern global::System.IntPtr Geometry_Transform__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_CreatePreparedGeometry___")]
+ public static extern global::System.IntPtr Geometry_CreatePreparedGeometry(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Geometry_ExportToWkb___")]
+ public static extern int Geometry_ExportToWkb(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, IntPtr jarg3, int jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_delete_PreparedGeometry___")]
+ public static extern void delete_PreparedGeometry(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_PreparedGeometry_Intersects___")]
+ public static extern bool PreparedGeometry_Intersects(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_PreparedGeometry_Contains___")]
+ public static extern bool PreparedGeometry_Contains(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_new_GeomTransformer___")]
+ public static extern global::System.IntPtr new_GeomTransformer(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_delete_GeomTransformer___")]
+ public static extern void delete_GeomTransformer(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GeomTransformer_Transform___")]
+ public static extern global::System.IntPtr GeomTransformer_Transform(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_delete_FieldDomain___")]
+ public static extern void delete_FieldDomain(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDomain_GetName___")]
+ public static extern string FieldDomain_GetName(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDomain_GetDescription___")]
+ public static extern string FieldDomain_GetDescription(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDomain_GetFieldType___")]
+ public static extern int FieldDomain_GetFieldType(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDomain_GetFieldSubType___")]
+ public static extern int FieldDomain_GetFieldSubType(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDomain_GetDomainType___")]
+ public static extern int FieldDomain_GetDomainType(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDomain_GetSplitPolicy___")]
+ public static extern int FieldDomain_GetSplitPolicy(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDomain_SetSplitPolicy___")]
+ public static extern void FieldDomain_SetSplitPolicy(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDomain_GetMergePolicy___")]
+ public static extern int FieldDomain_GetMergePolicy(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDomain_SetMergePolicy___")]
+ public static extern void FieldDomain_SetMergePolicy(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDomain_GetMinAsDouble___")]
+ public static extern double FieldDomain_GetMinAsDouble(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDomain_GetMinAsString___")]
+ public static extern string FieldDomain_GetMinAsString(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDomain_IsMinInclusive___")]
+ public static extern bool FieldDomain_IsMinInclusive(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDomain_GetMaxAsDouble___")]
+ public static extern double FieldDomain_GetMaxAsDouble(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDomain_GetMaxAsString___")]
+ public static extern string FieldDomain_GetMaxAsString(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDomain_IsMaxInclusive___")]
+ public static extern bool FieldDomain_IsMaxInclusive(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_FieldDomain_GetGlob___")]
+ public static extern string FieldDomain_GetGlob(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_CreateRangeFieldDomain___")]
+ public static extern global::System.IntPtr CreateRangeFieldDomain(string jarg1, string jarg2, int jarg3, int jarg4, double jarg5, bool jarg6, double jarg7, double jarg8);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_CreateRangeFieldDomainDateTime___")]
+ public static extern global::System.IntPtr CreateRangeFieldDomainDateTime(string jarg1, string jarg2, string jarg3, bool jarg4, string jarg5, double jarg6);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_CreateGlobFieldDomain___")]
+ public static extern global::System.IntPtr CreateGlobFieldDomain(string jarg1, string jarg2, int jarg3, int jarg4, string jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_delete_GeomCoordinatePrecision___")]
+ public static extern void delete_GeomCoordinatePrecision(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GeomCoordinatePrecision_Set___")]
+ public static extern void GeomCoordinatePrecision_Set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GeomCoordinatePrecision_SetFromMeter___")]
+ public static extern void GeomCoordinatePrecision_SetFromMeter(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3, double jarg4, double jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GeomCoordinatePrecision_GetXYResolution___")]
+ public static extern double GeomCoordinatePrecision_GetXYResolution(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GeomCoordinatePrecision_GetZResolution___")]
+ public static extern double GeomCoordinatePrecision_GetZResolution(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GeomCoordinatePrecision_GetMResolution___")]
+ public static extern double GeomCoordinatePrecision_GetMResolution(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GeomCoordinatePrecision_GetFormats___")]
+ public static extern IntPtr GeomCoordinatePrecision_GetFormats(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GeomCoordinatePrecision_GetFormatSpecificOptions___")]
+ public static extern IntPtr GeomCoordinatePrecision_GetFormatSpecificOptions(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GeomCoordinatePrecision_SetFormatSpecificOptions___")]
+ public static extern void GeomCoordinatePrecision_SetFormatSpecificOptions(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, IntPtr[] jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_CreateGeomCoordinatePrecision___")]
+ public static extern global::System.IntPtr CreateGeomCoordinatePrecision();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GetDriverCount___")]
+ public static extern int GetDriverCount();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GetOpenDSCount___")]
+ public static extern int GetOpenDSCount();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_SetGenerate_DB2_V72_BYTE_ORDER___")]
+ public static extern int SetGenerate_DB2_V72_BYTE_ORDER(int jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_RegisterAll___")]
+ public static extern void RegisterAll();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GeometryTypeToName___")]
+ public static extern string GeometryTypeToName(int jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GetFieldTypeName___")]
+ public static extern string GetFieldTypeName(int jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GetFieldSubTypeName___")]
+ public static extern string GetFieldSubTypeName(int jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GT_Flatten___")]
+ public static extern int GT_Flatten(int jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GT_SetZ___")]
+ public static extern int GT_SetZ(int jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GT_SetM___")]
+ public static extern int GT_SetM(int jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GT_SetModifier___")]
+ public static extern int GT_SetModifier(int jarg1, int jarg2, int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GT_HasZ___")]
+ public static extern int GT_HasZ(int jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GT_HasM___")]
+ public static extern int GT_HasM(int jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GT_IsSubClassOf___")]
+ public static extern int GT_IsSubClassOf(int jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GT_IsCurve___")]
+ public static extern int GT_IsCurve(int jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GT_IsSurface___")]
+ public static extern int GT_IsSurface(int jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GT_IsNonLinear___")]
+ public static extern int GT_IsNonLinear(int jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GT_GetCollection___")]
+ public static extern int GT_GetCollection(int jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GT_GetCurve___")]
+ public static extern int GT_GetCurve(int jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GT_GetLinear___")]
+ public static extern int GT_GetLinear(int jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_SetNonLinearGeometriesEnabledFlag___")]
+ public static extern void SetNonLinearGeometriesEnabledFlag(int jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GetNonLinearGeometriesEnabledFlag___")]
+ public static extern int GetNonLinearGeometriesEnabledFlag();
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GetOpenDS___")]
+ public static extern global::System.IntPtr GetOpenDS(int jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_Open___")]
+ public static extern global::System.IntPtr Open(byte[] jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_OpenShared___")]
+ public static extern global::System.IntPtr OpenShared(byte[] jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GetDriverByName___")]
+ public static extern global::System.IntPtr GetDriverByName(string jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GetDriver___")]
+ public static extern global::System.IntPtr GetDriver(int jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("ogr_wrap", EntryPoint="CSharp_OSGeofOGR_GeneralCmdLineProcessor___")]
+ public static extern IntPtr GeneralCmdLineProcessor(IntPtr[] jarg1, int jarg2);
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OGR/PreparedGeometry.cs b/Geospatial/GDAL-Bindings/OGR/PreparedGeometry.cs
new file mode 100644
index 0000000..627151f
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OGR/PreparedGeometry.cs
@@ -0,0 +1,88 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OGR {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class PreparedGeometry : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public PreparedGeometry(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(PreparedGeometry obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(PreparedGeometry obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(PreparedGeometry obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~PreparedGeometry() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ OgrPINVOKE.delete_PreparedGeometry(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public bool Intersects(Geometry otherGeom) {
+ bool ret = OgrPINVOKE.PreparedGeometry_Intersects(swigCPtr, Geometry.getCPtr(otherGeom));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool Contains(Geometry otherGeom) {
+ bool ret = OgrPINVOKE.PreparedGeometry_Contains(swigCPtr, Geometry.getCPtr(otherGeom));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OGR/SWIGTYPE_p_CPLErr.cs b/Geospatial/GDAL-Bindings/OGR/SWIGTYPE_p_CPLErr.cs
new file mode 100644
index 0000000..87e63d0
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OGR/SWIGTYPE_p_CPLErr.cs
@@ -0,0 +1,32 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OGR {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class SWIGTYPE_p_CPLErr {
+ private HandleRef swigCPtr;
+
+ public SWIGTYPE_p_CPLErr(IntPtr cPtr, bool futureUse, object parent) {
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ protected SWIGTYPE_p_CPLErr() {
+ swigCPtr = new HandleRef(null, IntPtr.Zero);
+ }
+
+ public static HandleRef getCPtr(SWIGTYPE_p_CPLErr obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OGR/SWIGTYPE_p_int.cs b/Geospatial/GDAL-Bindings/OGR/SWIGTYPE_p_int.cs
new file mode 100644
index 0000000..69372eb
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OGR/SWIGTYPE_p_int.cs
@@ -0,0 +1,32 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OGR {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class SWIGTYPE_p_int {
+ private HandleRef swigCPtr;
+
+ public SWIGTYPE_p_int(IntPtr cPtr, bool futureUse, object parent) {
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ protected SWIGTYPE_p_int() {
+ swigCPtr = new HandleRef(null, IntPtr.Zero);
+ }
+
+ public static HandleRef getCPtr(SWIGTYPE_p_int obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OGR/StyleTable.cs b/Geospatial/GDAL-Bindings/OGR/StyleTable.cs
new file mode 100644
index 0000000..cfff603
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OGR/StyleTable.cs
@@ -0,0 +1,121 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OGR {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class StyleTable : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public StyleTable(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(StyleTable obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(StyleTable obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(StyleTable obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~StyleTable() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ OgrPINVOKE.delete_StyleTable(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public StyleTable() : this(OgrPINVOKE.new_StyleTable(), true, null) {
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public int AddStyle(string pszName, string pszStyleString) {
+ int ret = OgrPINVOKE.StyleTable_AddStyle(swigCPtr, pszName, pszStyleString);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int LoadStyleTable(string utf8_path) {
+ int ret = OgrPINVOKE.StyleTable_LoadStyleTable(swigCPtr, Ogr.StringToUtf8Bytes(utf8_path));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SaveStyleTable(string utf8_path) {
+ int ret = OgrPINVOKE.StyleTable_SaveStyleTable(swigCPtr, Ogr.StringToUtf8Bytes(utf8_path));
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string Find(string pszName) {
+ string ret = OgrPINVOKE.StyleTable_Find(swigCPtr, pszName);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void ResetStyleStringReading() {
+ OgrPINVOKE.StyleTable_ResetStyleStringReading(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public string GetNextStyle() {
+ string ret = OgrPINVOKE.StyleTable_GetNextStyle(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetLastStyleName() {
+ string ret = OgrPINVOKE.StyleTable_GetLastStyleName(swigCPtr);
+ if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OGR/wkbByteOrder.cs b/Geospatial/GDAL-Bindings/OGR/wkbByteOrder.cs
new file mode 100644
index 0000000..add0f10
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OGR/wkbByteOrder.cs
@@ -0,0 +1,18 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OGR {
+
+public enum wkbByteOrder {
+ wkbXDR = 0,
+ wkbNDR = 1
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OGR/wkbGeometryType.cs b/Geospatial/GDAL-Bindings/OGR/wkbGeometryType.cs
new file mode 100644
index 0000000..787eea1
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OGR/wkbGeometryType.cs
@@ -0,0 +1,87 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OGR {
+
+public enum wkbGeometryType {
+ wkbUnknown = 0,
+ wkbPoint = 1,
+ wkbLineString = 2,
+ wkbPolygon = 3,
+ wkbMultiPoint = 4,
+ wkbMultiLineString = 5,
+ wkbMultiPolygon = 6,
+ wkbGeometryCollection = 7,
+ wkbCircularString = 8,
+ wkbCompoundCurve = 9,
+ wkbCurvePolygon = 10,
+ wkbMultiCurve = 11,
+ wkbMultiSurface = 12,
+ wkbCurve = 13,
+ wkbSurface = 14,
+ wkbPolyhedralSurface = 15,
+ wkbTIN = 16,
+ wkbTriangle = 17,
+ wkbNone = 100,
+ wkbLinearRing = 101,
+ wkbCircularStringZ = 1008,
+ wkbCompoundCurveZ = 1009,
+ wkbCurvePolygonZ = 1010,
+ wkbMultiCurveZ = 1011,
+ wkbMultiSurfaceZ = 1012,
+ wkbCurveZ = 1013,
+ wkbSurfaceZ = 1014,
+ wkbPolyhedralSurfaceZ = 1015,
+ wkbTINZ = 1016,
+ wkbTriangleZ = 1017,
+ wkbPointM = 2001,
+ wkbLineStringM = 2002,
+ wkbPolygonM = 2003,
+ wkbMultiPointM = 2004,
+ wkbMultiLineStringM = 2005,
+ wkbMultiPolygonM = 2006,
+ wkbGeometryCollectionM = 2007,
+ wkbCircularStringM = 2008,
+ wkbCompoundCurveM = 2009,
+ wkbCurvePolygonM = 2010,
+ wkbMultiCurveM = 2011,
+ wkbMultiSurfaceM = 2012,
+ wkbCurveM = 2013,
+ wkbSurfaceM = 2014,
+ wkbPolyhedralSurfaceM = 2015,
+ wkbTINM = 2016,
+ wkbTriangleM = 2017,
+ wkbPointZM = 3001,
+ wkbLineStringZM = 3002,
+ wkbPolygonZM = 3003,
+ wkbMultiPointZM = 3004,
+ wkbMultiLineStringZM = 3005,
+ wkbMultiPolygonZM = 3006,
+ wkbGeometryCollectionZM = 3007,
+ wkbCircularStringZM = 3008,
+ wkbCompoundCurveZM = 3009,
+ wkbCurvePolygonZM = 3010,
+ wkbMultiCurveZM = 3011,
+ wkbMultiSurfaceZM = 3012,
+ wkbCurveZM = 3013,
+ wkbSurfaceZM = 3014,
+ wkbPolyhedralSurfaceZM = 3015,
+ wkbTINZM = 3016,
+ wkbTriangleZM = 3017,
+ wkbPoint25D = -2147483647,
+ wkbLineString25D = -2147483646,
+ wkbPolygon25D = -2147483645,
+ wkbMultiPoint25D = -2147483644,
+ wkbMultiLineString25D = -2147483643,
+ wkbMultiPolygon25D = -2147483642,
+ wkbGeometryCollection25D = -2147483641
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OSR/AreaOfUse.cs b/Geospatial/GDAL-Bindings/OSR/AreaOfUse.cs
new file mode 100644
index 0000000..1018ec9
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OSR/AreaOfUse.cs
@@ -0,0 +1,120 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OSR {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class AreaOfUse : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public AreaOfUse(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(AreaOfUse obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(AreaOfUse obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(AreaOfUse obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~AreaOfUse() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ OsrPINVOKE.delete_AreaOfUse(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public double west_lon_degree {
+ get {
+ double ret = OsrPINVOKE.AreaOfUse_west_lon_degree_get(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public double south_lat_degree {
+ get {
+ double ret = OsrPINVOKE.AreaOfUse_south_lat_degree_get(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public double east_lon_degree {
+ get {
+ double ret = OsrPINVOKE.AreaOfUse_east_lon_degree_get(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public double north_lat_degree {
+ get {
+ double ret = OsrPINVOKE.AreaOfUse_north_lat_degree_get(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public string name {
+ get {
+ string ret = OsrPINVOKE.AreaOfUse_name_get(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ 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();
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OSR/AxisMappingStrategy.cs b/Geospatial/GDAL-Bindings/OSR/AxisMappingStrategy.cs
new file mode 100644
index 0000000..695417a
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OSR/AxisMappingStrategy.cs
@@ -0,0 +1,19 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OSR {
+
+public enum AxisMappingStrategy {
+ OAMS_TRADITIONAL_GIS_ORDER,
+ OAMS_AUTHORITY_COMPLIANT,
+ OAMS_CUSTOM
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OSR/AxisOrientation.cs b/Geospatial/GDAL-Bindings/OSR/AxisOrientation.cs
new file mode 100644
index 0000000..ba54b91
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OSR/AxisOrientation.cs
@@ -0,0 +1,23 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OSR {
+
+public enum AxisOrientation {
+ OAO_Other = 0,
+ OAO_North = 1,
+ OAO_South = 2,
+ OAO_East = 3,
+ OAO_West = 4,
+ OAO_Up = 5,
+ OAO_Down = 6
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OSR/CRSInfo.cs b/Geospatial/GDAL-Bindings/OSR/CRSInfo.cs
new file mode 100644
index 0000000..c21b34b
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OSR/CRSInfo.cs
@@ -0,0 +1,176 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OSR {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class CRSInfo : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public CRSInfo(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(CRSInfo obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(CRSInfo obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(CRSInfo obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~CRSInfo() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ OsrPINVOKE.delete_CRSInfo(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public string auth_name {
+ get {
+ string ret = OsrPINVOKE.CRSInfo_auth_name_get(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public string code {
+ get {
+ string ret = OsrPINVOKE.CRSInfo_code_get(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public string name {
+ get {
+ string ret = OsrPINVOKE.CRSInfo_name_get(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public CRSType type {
+ get {
+ CRSType ret = (CRSType)OsrPINVOKE.CRSInfo_type_get(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public bool deprecated {
+ get {
+ bool ret = OsrPINVOKE.CRSInfo_deprecated_get(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public bool bbox_valid {
+ get {
+ bool ret = OsrPINVOKE.CRSInfo_bbox_valid_get(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public double west_lon_degree {
+ get {
+ double ret = OsrPINVOKE.CRSInfo_west_lon_degree_get(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public double south_lat_degree {
+ get {
+ double ret = OsrPINVOKE.CRSInfo_south_lat_degree_get(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public double east_lon_degree {
+ get {
+ double ret = OsrPINVOKE.CRSInfo_east_lon_degree_get(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public double north_lat_degree {
+ get {
+ double ret = OsrPINVOKE.CRSInfo_north_lat_degree_get(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public string area_name {
+ get {
+ string ret = OsrPINVOKE.CRSInfo_area_name_get(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ public string projection_method {
+ get {
+ string ret = OsrPINVOKE.CRSInfo_projection_method_get(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
+ 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();
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OSR/CRSInfoList.cs b/Geospatial/GDAL-Bindings/OSR/CRSInfoList.cs
new file mode 100644
index 0000000..bff1a8a
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OSR/CRSInfoList.cs
@@ -0,0 +1,92 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OSR {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class CRSInfoList : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public CRSInfoList(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(CRSInfoList obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(CRSInfoList obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(CRSInfoList obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~CRSInfoList() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ OsrPINVOKE.delete_CRSInfoList(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public CRSInfo this[int i]
+ {
+ get { return get(i); }
+ }
+
+ 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 CRSInfoList() : this(OsrPINVOKE.new_CRSInfoList(), true, null) {
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OSR/CRSType.cs b/Geospatial/GDAL-Bindings/OSR/CRSType.cs
new file mode 100644
index 0000000..b3022ba
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OSR/CRSType.cs
@@ -0,0 +1,23 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OSR {
+
+public enum CRSType {
+ OSR_CRS_TYPE_GEOGRAPHIC_2D = 0,
+ OSR_CRS_TYPE_GEOGRAPHIC_3D = 1,
+ OSR_CRS_TYPE_GEOCENTRIC = 2,
+ OSR_CRS_TYPE_PROJECTED = 3,
+ OSR_CRS_TYPE_VERTICAL = 4,
+ OSR_CRS_TYPE_COMPOUND = 5,
+ OSR_CRS_TYPE_OTHER = 6
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OSR/CoordinateTransformation.cs b/Geospatial/GDAL-Bindings/OSR/CoordinateTransformation.cs
new file mode 100644
index 0000000..7b43d43
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OSR/CoordinateTransformation.cs
@@ -0,0 +1,139 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OSR {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class CoordinateTransformation : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public CoordinateTransformation(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(CoordinateTransformation obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(CoordinateTransformation obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(CoordinateTransformation obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~CoordinateTransformation() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ OsrPINVOKE.delete_CoordinateTransformation(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public CoordinateTransformation(SpatialReference src, SpatialReference dst) : this(OsrPINVOKE.new_CoordinateTransformation__SWIG_0(SpatialReference.getCPtr(src), SpatialReference.getCPtr(dst)), true, null) {
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ 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 CoordinateTransformation GetInverse() {
+ IntPtr cPtr = OsrPINVOKE.CoordinateTransformation_GetInverse(swigCPtr);
+ CoordinateTransformation ret = (cPtr == IntPtr.Zero) ? null : new CoordinateTransformation(cPtr, true, ThisOwn_true());
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void TransformPoint(double[] inout) {
+ OsrPINVOKE.CoordinateTransformation_TransformPoint__SWIG_0(swigCPtr, inout);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void TransformPoint(double[] argout, double x, double y, double z) {
+ OsrPINVOKE.CoordinateTransformation_TransformPoint__SWIG_2(swigCPtr, argout, x, y, z);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public void TransformPoint(double[] argout, double x, double y, double z, double t) {
+ OsrPINVOKE.CoordinateTransformation_TransformPoint__SWIG_3(swigCPtr, argout, x, y, z, t);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public int TransformPointWithErrorCode(double[] argout, double x, double y, double z, double t) {
+ int ret = OsrPINVOKE.CoordinateTransformation_TransformPointWithErrorCode(swigCPtr, argout, x, y, z, t);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void TransformPoints(int nCount, double[] x, double[] y, double[] z) {
+ OsrPINVOKE.CoordinateTransformation_TransformPoints(swigCPtr, nCount, x, y, z);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ // Kennedy added
+ public unsafe void TransformPoints(int nCount, double* x, double* y, double* z)
+ {
+ OsrPINVOKE.CoordinateTransformation_TransformPoints(swigCPtr, nCount, x, y, z);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ }
+ public unsafe Exception TransformPoints_DontThrowOnFailure(int nCount, double* x, double* y, double* z)
+ {
+ OsrPINVOKE.CoordinateTransformation_TransformPoints(swigCPtr, nCount, x, y, z);
+
+ // Need to consume the exception so the next person doesn't use it.
+ if (OsrPINVOKE.SWIGPendingException.Pending)
+ return OsrPINVOKE.SWIGPendingException.Retrieve();
+ else
+ return null;
+ }
+
+ public void TransformBounds(double[] argout, double minx, double miny, double maxx, double maxy, int densify_pts) {
+ OsrPINVOKE.CoordinateTransformation_TransformBounds(swigCPtr, argout, minx, miny, maxx, maxy, densify_pts);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OSR/CoordinateTransformationOptions.cs b/Geospatial/GDAL-Bindings/OSR/CoordinateTransformationOptions.cs
new file mode 100644
index 0000000..8207153
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OSR/CoordinateTransformationOptions.cs
@@ -0,0 +1,110 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OSR {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class CoordinateTransformationOptions : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public CoordinateTransformationOptions(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(CoordinateTransformationOptions obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(CoordinateTransformationOptions obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(CoordinateTransformationOptions obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~CoordinateTransformationOptions() {
+ Dispose();
+ }
+
+ public virtual void Dispose() {
+ lock(this) {
+ if (swigCPtr.Handle != global::System.IntPtr.Zero) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ OsrPINVOKE.delete_CoordinateTransformationOptions(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+ global::System.GC.SuppressFinalize(this);
+ }
+ }
+
+ public CoordinateTransformationOptions() : this(OsrPINVOKE.new_CoordinateTransformationOptions(), true, null) {
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ 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 SetOperation(string operation, bool inverseCT) {
+ bool ret = OsrPINVOKE.CoordinateTransformationOptions_SetOperation(swigCPtr, operation, inverseCT);
+ 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 bool SetBallparkAllowed(bool allowBallpark) {
+ bool ret = OsrPINVOKE.CoordinateTransformationOptions_SetBallparkAllowed(swigCPtr, allowBallpark);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool SetOnlyBest(bool onlyBest) {
+ bool ret = OsrPINVOKE.CoordinateTransformationOptions_SetOnlyBest(swigCPtr, onlyBest);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OSR/Osr.cs b/Geospatial/GDAL-Bindings/OSR/Osr.cs
new file mode 100644
index 0000000..5066cd5
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OSR/Osr.cs
@@ -0,0 +1,456 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OSR {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class Osr {
+
+ internal class OsrObject : IDisposable {
+ public virtual void Dispose() {
+
+ }
+ }
+ internal static OsrObject theOsrObject = new OsrObject();
+ protected static object ThisOwn_true() { return null; }
+ protected static object ThisOwn_false() { return theOsrObject; }
+
+ public static void UseExceptions() {
+ OsrPINVOKE.UseExceptions();
+ }
+
+ public static void DontUseExceptions() {
+ OsrPINVOKE.DontUseExceptions();
+ }
+
+
+ internal static byte[] StringToUtf8Bytes(string str)
+ {
+ if (str == null)
+ return null;
+
+ int bytecount = System.Text.Encoding.UTF8.GetMaxByteCount(str.Length);
+ byte[] bytes = new byte[bytecount + 1];
+ System.Text.Encoding.UTF8.GetBytes(str, 0, str.Length, bytes, 0);
+ return bytes;
+ }
+
+ internal unsafe static string Utf8BytesToString(IntPtr pNativeData)
+ {
+ if (pNativeData == IntPtr.Zero)
+ return null;
+
+ byte* pStringUtf8 = (byte*) pNativeData;
+ int len = 0;
+ while (pStringUtf8[len] != 0) len++;
+ return System.Text.Encoding.UTF8.GetString(pStringUtf8, len);
+ }
+
+ internal static void StringListDestroy(IntPtr buffer_ptr) {
+ OsrPINVOKE.StringListDestroy(buffer_ptr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+public delegate void GDALErrorHandlerDelegate(int eclass, int code, IntPtr msg);
+public delegate int GDALProgressFuncDelegate(double Complete, IntPtr Message, IntPtr Data);
+ 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 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 GetUserInputAsWKT(string name, out string argout) {
+ int ret = OsrPINVOKE.GetUserInputAsWKT(name, out argout);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static double OSRAreaOfUse_west_lon_degree_get(AreaOfUse area) {
+ double ret = OsrPINVOKE.OSRAreaOfUse_west_lon_degree_get(AreaOfUse.getCPtr(area));
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static double OSRAreaOfUse_south_lat_degree_get(AreaOfUse area) {
+ double ret = OsrPINVOKE.OSRAreaOfUse_south_lat_degree_get(AreaOfUse.getCPtr(area));
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static double OSRAreaOfUse_east_lon_degree_get(AreaOfUse area) {
+ double ret = OsrPINVOKE.OSRAreaOfUse_east_lon_degree_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 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 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 static string OSRCRSInfo_auth_name_get(CRSInfo crsInfo) {
+ string ret = OsrPINVOKE.OSRCRSInfo_auth_name_get(CRSInfo.getCPtr(crsInfo));
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static string OSRCRSInfo_code_get(CRSInfo crsInfo) {
+ string ret = OsrPINVOKE.OSRCRSInfo_code_get(CRSInfo.getCPtr(crsInfo));
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static string OSRCRSInfo_name_get(CRSInfo crsInfo) {
+ string ret = OsrPINVOKE.OSRCRSInfo_name_get(CRSInfo.getCPtr(crsInfo));
+ 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 bool OSRCRSInfo_deprecated_get(CRSInfo crsInfo) {
+ bool ret = OsrPINVOKE.OSRCRSInfo_deprecated_get(CRSInfo.getCPtr(crsInfo));
+ 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 static double OSRCRSInfo_west_lon_degree_get(CRSInfo crsInfo) {
+ double ret = OsrPINVOKE.OSRCRSInfo_west_lon_degree_get(CRSInfo.getCPtr(crsInfo));
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static double OSRCRSInfo_south_lat_degree_get(CRSInfo crsInfo) {
+ double ret = OsrPINVOKE.OSRCRSInfo_south_lat_degree_get(CRSInfo.getCPtr(crsInfo));
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static double OSRCRSInfo_east_lon_degree_get(CRSInfo crsInfo) {
+ double ret = OsrPINVOKE.OSRCRSInfo_east_lon_degree_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 OSRCRSInfo_area_name_get(CRSInfo crsInfo) {
+ string ret = OsrPINVOKE.OSRCRSInfo_area_name_get(CRSInfo.getCPtr(crsInfo));
+ 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 void SetPROJSearchPath(string utf8_path) {
+ OsrPINVOKE.SetPROJSearchPath(Osr.StringToUtf8Bytes(utf8_path));
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public static void SetPROJSearchPaths(string[] paths) {
+ OsrPINVOKE.SetPROJSearchPaths((paths != null)? new OsrPINVOKE.StringListMarshal(paths)._ar : null);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public static string[] GetPROJSearchPaths() {
+ /* %typemap(csout) char** CSL */
+ IntPtr cPtr = OsrPINVOKE.GetPROJSearchPaths();
+ IntPtr objPtr;
+ int count = 0;
+ if (cPtr != IntPtr.Zero) {
+ while (Marshal.ReadIntPtr(cPtr, count*IntPtr.Size) != IntPtr.Zero)
+ ++count;
+ }
+ string[] ret = new string[count];
+ if (count > 0) {
+ for(int cx = 0; cx < count; cx++) {
+ objPtr = System.Runtime.InteropServices.Marshal.ReadIntPtr(cPtr, cx * System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntPtr)));
+ ret[cx]= (objPtr == IntPtr.Zero) ? null : System.Runtime.InteropServices.Marshal.PtrToStringAnsi(objPtr);
+ }
+ }
+ if (cPtr != IntPtr.Zero)
+ OsrPINVOKE.StringListDestroy(cPtr);
+
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+}
+
+ public static int GetPROJVersionMajor() {
+ int ret = OsrPINVOKE.GetPROJVersionMajor();
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static int GetPROJVersionMinor() {
+ int ret = OsrPINVOKE.GetPROJVersionMinor();
+ 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 static bool GetPROJEnableNetwork() {
+ bool ret = OsrPINVOKE.GetPROJEnableNetwork();
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public static void SetPROJEnableNetwork(bool enabled) {
+ OsrPINVOKE.SetPROJEnableNetwork(enabled);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public static void SetPROJAuxDbPath(string utf8_path) {
+ OsrPINVOKE.SetPROJAuxDbPath(Osr.StringToUtf8Bytes(utf8_path));
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public static void SetPROJAuxDbPaths(string[] paths) {
+ OsrPINVOKE.SetPROJAuxDbPaths((paths != null)? new OsrPINVOKE.StringListMarshal(paths)._ar : null);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public static string[] GetPROJAuxDbPaths() {
+ /* %typemap(csout) char** CSL */
+ IntPtr cPtr = OsrPINVOKE.GetPROJAuxDbPaths();
+ IntPtr objPtr;
+ int count = 0;
+ if (cPtr != IntPtr.Zero) {
+ while (Marshal.ReadIntPtr(cPtr, count*IntPtr.Size) != IntPtr.Zero)
+ ++count;
+ }
+ string[] ret = new string[count];
+ if (count > 0) {
+ for(int cx = 0; cx < count; cx++) {
+ objPtr = System.Runtime.InteropServices.Marshal.ReadIntPtr(cPtr, cx * System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntPtr)));
+ ret[cx]= (objPtr == IntPtr.Zero) ? null : System.Runtime.InteropServices.Marshal.PtrToStringAnsi(objPtr);
+ }
+ }
+ if (cPtr != IntPtr.Zero)
+ OsrPINVOKE.StringListDestroy(cPtr);
+
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+}
+
+ public const string SRS_WKT_WGS84_LAT_LONG = "GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]],AXIS[\"Latitude\",NORTH],AXIS[\"Longitude\",EAST],AUTHORITY[\"EPSG\",\"4326\"]]";
+ public const string SRS_PT_ALBERS_CONIC_EQUAL_AREA = "Albers_Conic_Equal_Area";
+ public const string SRS_PT_AZIMUTHAL_EQUIDISTANT = "Azimuthal_Equidistant";
+ public const string SRS_PT_CASSINI_SOLDNER = "Cassini_Soldner";
+ public const string SRS_PT_CYLINDRICAL_EQUAL_AREA = "Cylindrical_Equal_Area";
+ public const string SRS_PT_BONNE = "Bonne";
+ public const string SRS_PT_ECKERT_I = "Eckert_I";
+ public const string SRS_PT_ECKERT_II = "Eckert_II";
+ public const string SRS_PT_ECKERT_III = "Eckert_III";
+ public const string SRS_PT_ECKERT_IV = "Eckert_IV";
+ public const string SRS_PT_ECKERT_V = "Eckert_V";
+ public const string SRS_PT_ECKERT_VI = "Eckert_VI";
+ public const string SRS_PT_EQUIDISTANT_CONIC = "Equidistant_Conic";
+ public const string SRS_PT_EQUIRECTANGULAR = "Equirectangular";
+ public const string SRS_PT_GALL_STEREOGRAPHIC = "Gall_Stereographic";
+ public const string SRS_PT_GAUSSSCHREIBERTMERCATOR = "Gauss_Schreiber_Transverse_Mercator";
+ public const string SRS_PT_GEOSTATIONARY_SATELLITE = "Geostationary_Satellite";
+ public const string SRS_PT_GOODE_HOMOLOSINE = "Goode_Homolosine";
+ public const string SRS_PT_IGH = "Interrupted_Goode_Homolosine";
+ public const string SRS_PT_GNOMONIC = "Gnomonic";
+ public const string SRS_PT_HOTINE_OBLIQUE_MERCATOR_AZIMUTH_CENTER = "Hotine_Oblique_Mercator_Azimuth_Center";
+ public const string SRS_PT_HOTINE_OBLIQUE_MERCATOR = "Hotine_Oblique_Mercator";
+ public const string SRS_PT_HOTINE_OBLIQUE_MERCATOR_TWO_POINT_NATURAL_ORIGIN = "Hotine_Oblique_Mercator_Two_Point_Natural_Origin";
+ public const string SRS_PT_LABORDE_OBLIQUE_MERCATOR = "Laborde_Oblique_Mercator";
+ public const string SRS_PT_LAMBERT_CONFORMAL_CONIC_1SP = "Lambert_Conformal_Conic_1SP";
+ public const string SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP = "Lambert_Conformal_Conic_2SP";
+ public const string SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP_BELGIUM = "Lambert_Conformal_Conic_2SP_Belgium";
+ public const string SRS_PT_LAMBERT_AZIMUTHAL_EQUAL_AREA = "Lambert_Azimuthal_Equal_Area";
+ public const string SRS_PT_MERCATOR_1SP = "Mercator_1SP";
+ public const string SRS_PT_MERCATOR_2SP = "Mercator_2SP";
+ public const string SRS_PT_MERCATOR_AUXILIARY_SPHERE = "Mercator_Auxiliary_Sphere";
+ public const string SRS_PT_MILLER_CYLINDRICAL = "Miller_Cylindrical";
+ public const string SRS_PT_MOLLWEIDE = "Mollweide";
+ public const string SRS_PT_NEW_ZEALAND_MAP_GRID = "New_Zealand_Map_Grid";
+ public const string SRS_PT_OBLIQUE_STEREOGRAPHIC = "Oblique_Stereographic";
+ public const string SRS_PT_ORTHOGRAPHIC = "Orthographic";
+ public const string SRS_PT_POLAR_STEREOGRAPHIC = "Polar_Stereographic";
+ public const string SRS_PT_POLYCONIC = "Polyconic";
+ public const string SRS_PT_ROBINSON = "Robinson";
+ public const string SRS_PT_SINUSOIDAL = "Sinusoidal";
+ public const string SRS_PT_STEREOGRAPHIC = "Stereographic";
+ public const string SRS_PT_SWISS_OBLIQUE_CYLINDRICAL = "Swiss_Oblique_Cylindrical";
+ public const string SRS_PT_TRANSVERSE_MERCATOR = "Transverse_Mercator";
+ public const string SRS_PT_TRANSVERSE_MERCATOR_SOUTH_ORIENTED = "Transverse_Mercator_South_Orientated";
+ public const string SRS_PT_TRANSVERSE_MERCATOR_MI_21 = "Transverse_Mercator_MapInfo_21";
+ public const string SRS_PT_TRANSVERSE_MERCATOR_MI_22 = "Transverse_Mercator_MapInfo_22";
+ public const string SRS_PT_TRANSVERSE_MERCATOR_MI_23 = "Transverse_Mercator_MapInfo_23";
+ public const string SRS_PT_TRANSVERSE_MERCATOR_MI_24 = "Transverse_Mercator_MapInfo_24";
+ public const string SRS_PT_TRANSVERSE_MERCATOR_MI_25 = "Transverse_Mercator_MapInfo_25";
+ public const string SRS_PT_TUNISIA_MINING_GRID = "Tunisia_Mining_Grid";
+ public const string SRS_PT_TWO_POINT_EQUIDISTANT = "Two_Point_Equidistant";
+ public const string SRS_PT_VANDERGRINTEN = "VanDerGrinten";
+ public const string SRS_PT_KROVAK = "Krovak";
+ public const string SRS_PT_IMW_POLYCONIC = "International_Map_of_the_World_Polyconic";
+ public const string SRS_PT_WAGNER_I = "Wagner_I";
+ public const string SRS_PT_WAGNER_II = "Wagner_II";
+ public const string SRS_PT_WAGNER_III = "Wagner_III";
+ public const string SRS_PT_WAGNER_IV = "Wagner_IV";
+ public const string SRS_PT_WAGNER_V = "Wagner_V";
+ public const string SRS_PT_WAGNER_VI = "Wagner_VI";
+ public const string SRS_PT_WAGNER_VII = "Wagner_VII";
+ public const string SRS_PT_QSC = "Quadrilateralized_Spherical_Cube";
+ public const string SRS_PT_AITOFF = "Aitoff";
+ public const string SRS_PT_WINKEL_I = "Winkel_I";
+ public const string SRS_PT_WINKEL_II = "Winkel_II";
+ public const string SRS_PT_WINKEL_TRIPEL = "Winkel_Tripel";
+ public const string SRS_PT_CRASTER_PARABOLIC = "Craster_Parabolic";
+ public const string SRS_PT_LOXIMUTHAL = "Loximuthal";
+ public const string SRS_PT_QUARTIC_AUTHALIC = "Quartic_Authalic";
+ public const string SRS_PT_SCH = "Spherical_Cross_Track_Height";
+ public const string SRS_PP_CENTRAL_MERIDIAN = "central_meridian";
+ public const string SRS_PP_SCALE_FACTOR = "scale_factor";
+ public const string SRS_PP_STANDARD_PARALLEL_1 = "standard_parallel_1";
+ public const string SRS_PP_STANDARD_PARALLEL_2 = "standard_parallel_2";
+ public const string SRS_PP_PSEUDO_STD_PARALLEL_1 = "pseudo_standard_parallel_1";
+ public const string SRS_PP_LONGITUDE_OF_CENTER = "longitude_of_center";
+ public const string SRS_PP_LATITUDE_OF_CENTER = "latitude_of_center";
+ public const string SRS_PP_LONGITUDE_OF_ORIGIN = "longitude_of_origin";
+ public const string SRS_PP_LATITUDE_OF_ORIGIN = "latitude_of_origin";
+ public const string SRS_PP_FALSE_EASTING = "false_easting";
+ public const string SRS_PP_FALSE_NORTHING = "false_northing";
+ public const string SRS_PP_AZIMUTH = "azimuth";
+ public const string SRS_PP_LONGITUDE_OF_POINT_1 = "longitude_of_point_1";
+ public const string SRS_PP_LATITUDE_OF_POINT_1 = "latitude_of_point_1";
+ public const string SRS_PP_LONGITUDE_OF_POINT_2 = "longitude_of_point_2";
+ public const string SRS_PP_LATITUDE_OF_POINT_2 = "latitude_of_point_2";
+ public const string SRS_PP_LONGITUDE_OF_POINT_3 = "longitude_of_point_3";
+ public const string SRS_PP_LATITUDE_OF_POINT_3 = "latitude_of_point_3";
+ public const string SRS_PP_RECTIFIED_GRID_ANGLE = "rectified_grid_angle";
+ public const string SRS_PP_LANDSAT_NUMBER = "landsat_number";
+ public const string SRS_PP_PATH_NUMBER = "path_number";
+ public const string SRS_PP_PERSPECTIVE_POINT_HEIGHT = "perspective_point_height";
+ public const string SRS_PP_SATELLITE_HEIGHT = "satellite_height";
+ public const string SRS_PP_FIPSZONE = "fipszone";
+ public const string SRS_PP_ZONE = "zone";
+ public const string SRS_PP_LATITUDE_OF_1ST_POINT = "Latitude_Of_1st_Point";
+ public const string SRS_PP_LONGITUDE_OF_1ST_POINT = "Longitude_Of_1st_Point";
+ public const string SRS_PP_LATITUDE_OF_2ND_POINT = "Latitude_Of_2nd_Point";
+ public const string SRS_PP_LONGITUDE_OF_2ND_POINT = "Longitude_Of_2nd_Point";
+ public const string SRS_PP_PEG_POINT_LATITUDE = "peg_point_latitude";
+ public const string SRS_PP_PEG_POINT_LONGITUDE = "peg_point_longitude";
+ public const string SRS_PP_PEG_POINT_HEADING = "peg_point_heading";
+ public const string SRS_PP_PEG_POINT_HEIGHT = "peg_point_height";
+ public const string SRS_UL_METER = "Meter";
+ public const string SRS_UL_FOOT = "Foot (International)";
+ public const string SRS_UL_FOOT_CONV = "0.3048";
+ public const string SRS_UL_US_FOOT = "Foot_US";
+ public const string SRS_UL_US_FOOT_CONV = "0.3048006096012192";
+ public const string SRS_UL_NAUTICAL_MILE = "Nautical Mile";
+ public const string SRS_UL_NAUTICAL_MILE_CONV = "1852.0";
+ public const string SRS_UL_LINK = "Link";
+ public const string SRS_UL_LINK_CONV = "0.20116684023368047";
+ public const string SRS_UL_CHAIN = "Chain";
+ public const string SRS_UL_CHAIN_CONV = "20.116684023368047";
+ public const string SRS_UL_ROD = "Rod";
+ public const string SRS_UL_ROD_CONV = "5.02921005842012";
+ public const string SRS_UL_LINK_Clarke = "Link_Clarke";
+ public const string SRS_UL_LINK_Clarke_CONV = "0.2011661949";
+ public const string SRS_UL_KILOMETER = "Kilometer";
+ public const string SRS_UL_KILOMETER_CONV = "1000.";
+ public const string SRS_UL_DECIMETER = "Decimeter";
+ public const string SRS_UL_DECIMETER_CONV = "0.1";
+ public const string SRS_UL_CENTIMETER = "Centimeter";
+ public const string SRS_UL_CENTIMETER_CONV = "0.01";
+ public const string SRS_UL_MILLIMETER = "Millimeter";
+ public const string SRS_UL_MILLIMETER_CONV = "0.001";
+ public const string SRS_UL_INTL_NAUT_MILE = "Nautical_Mile_International";
+ public const string SRS_UL_INTL_NAUT_MILE_CONV = "1852.0";
+ public const string SRS_UL_INTL_INCH = "Inch_International";
+ public const string SRS_UL_INTL_INCH_CONV = "0.0254";
+ public const string SRS_UL_INTL_FOOT = "Foot_International";
+ public const string SRS_UL_INTL_FOOT_CONV = "0.3048";
+ public const string SRS_UL_INTL_YARD = "Yard_International";
+ public const string SRS_UL_INTL_YARD_CONV = "0.9144";
+ public const string SRS_UL_INTL_STAT_MILE = "Statute_Mile_International";
+ public const string SRS_UL_INTL_STAT_MILE_CONV = "1609.344";
+ public const string SRS_UL_INTL_FATHOM = "Fathom_International";
+ public const string SRS_UL_INTL_FATHOM_CONV = "1.8288";
+ public const string SRS_UL_INTL_CHAIN = "Chain_International";
+ public const string SRS_UL_INTL_CHAIN_CONV = "20.1168";
+ public const string SRS_UL_INTL_LINK = "Link_International";
+ public const string SRS_UL_INTL_LINK_CONV = "0.201168";
+ public const string SRS_UL_US_INCH = "Inch_US_Surveyor";
+ public const string SRS_UL_US_INCH_CONV = "0.025400050800101603";
+ public const string SRS_UL_US_YARD = "Yard_US_Surveyor";
+ public const string SRS_UL_US_YARD_CONV = "0.914401828803658";
+ public const string SRS_UL_US_CHAIN = "Chain_US_Surveyor";
+ public const string SRS_UL_US_CHAIN_CONV = "20.11684023368047";
+ public const string SRS_UL_US_STAT_MILE = "Statute_Mile_US_Surveyor";
+ public const string SRS_UL_US_STAT_MILE_CONV = "1609.347218694437";
+ public const string SRS_UL_INDIAN_YARD = "Yard_Indian";
+ public const string SRS_UL_INDIAN_YARD_CONV = "0.91439523";
+ public const string SRS_UL_INDIAN_FOOT = "Foot_Indian";
+ public const string SRS_UL_INDIAN_FOOT_CONV = "0.30479841";
+ public const string SRS_UL_INDIAN_CHAIN = "Chain_Indian";
+ public const string SRS_UL_INDIAN_CHAIN_CONV = "20.11669506";
+ public const string SRS_UA_DEGREE = "degree";
+ public const string SRS_UA_DEGREE_CONV = "0.0174532925199433";
+ public const string SRS_UA_RADIAN = "radian";
+ public const string SRS_PM_GREENWICH = "Greenwich";
+ public const string SRS_DN_NAD27 = "North_American_Datum_1927";
+ public const string SRS_DN_NAD83 = "North_American_Datum_1983";
+ public const string SRS_DN_WGS72 = "WGS_1972";
+ public const string SRS_DN_WGS84 = "WGS_1984";
+ public const double SRS_WGS84_SEMIMAJOR = 6378137.0;
+ public const double SRS_WGS84_INVFLATTENING = 298.257223563;
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OSR/OsrPINVOKE.cs b/Geospatial/GDAL-Bindings/OSR/OsrPINVOKE.cs
new file mode 100644
index 0000000..8366f19
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OSR/OsrPINVOKE.cs
@@ -0,0 +1,882 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OSR {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+class OsrPINVOKE {
+
+ 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);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="SWIGRegisterExceptionCallbacks_Osr")]
+ public static extern void SWIGRegisterExceptionCallbacks_Osr(
+ ExceptionDelegate applicationDelegate,
+ ExceptionDelegate arithmeticDelegate,
+ ExceptionDelegate divideByZeroDelegate,
+ ExceptionDelegate indexOutOfRangeDelegate,
+ ExceptionDelegate invalidCastDelegate,
+ ExceptionDelegate invalidOperationDelegate,
+ ExceptionDelegate ioDelegate,
+ ExceptionDelegate nullReferenceDelegate,
+ ExceptionDelegate outOfMemoryDelegate,
+ ExceptionDelegate overflowDelegate,
+ ExceptionDelegate systemExceptionDelegate);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="SWIGRegisterExceptionArgumentCallbacks_Osr")]
+ public static extern void SWIGRegisterExceptionCallbacksArgument_Osr(
+ ExceptionArgumentDelegate argumentDelegate,
+ ExceptionArgumentDelegate argumentNullDelegate,
+ ExceptionArgumentDelegate argumentOutOfRangeDelegate);
+
+ static void SetPendingApplicationException(string message) {
+ SWIGPendingException.Set(new global::System.ApplicationException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingArithmeticException(string message) {
+ SWIGPendingException.Set(new global::System.ArithmeticException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingDivideByZeroException(string message) {
+ SWIGPendingException.Set(new global::System.DivideByZeroException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingIndexOutOfRangeException(string message) {
+ SWIGPendingException.Set(new global::System.IndexOutOfRangeException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingInvalidCastException(string message) {
+ SWIGPendingException.Set(new global::System.InvalidCastException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingInvalidOperationException(string message) {
+ SWIGPendingException.Set(new global::System.InvalidOperationException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingIOException(string message) {
+ SWIGPendingException.Set(new global::System.IO.IOException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingNullReferenceException(string message) {
+ SWIGPendingException.Set(new global::System.NullReferenceException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingOutOfMemoryException(string message) {
+ SWIGPendingException.Set(new global::System.OutOfMemoryException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingOverflowException(string message) {
+ SWIGPendingException.Set(new global::System.OverflowException(message, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingSystemException(string message) {
+ SWIGPendingException.Set(new global::System.SystemException(message, SWIGPendingException.Retrieve()));
+ }
+
+ static void SetPendingArgumentException(string message, string paramName) {
+ SWIGPendingException.Set(new global::System.ArgumentException(message, paramName, SWIGPendingException.Retrieve()));
+ }
+ static void SetPendingArgumentNullException(string message, string paramName) {
+ global::System.Exception e = SWIGPendingException.Retrieve();
+ if (e != null) message = message + " Inner Exception: " + e.Message;
+ SWIGPendingException.Set(new global::System.ArgumentNullException(paramName, message));
+ }
+ static void SetPendingArgumentOutOfRangeException(string message, string paramName) {
+ global::System.Exception e = SWIGPendingException.Retrieve();
+ if (e != null) message = message + " Inner Exception: " + e.Message;
+ SWIGPendingException.Set(new global::System.ArgumentOutOfRangeException(paramName, message));
+ }
+
+ static SWIGExceptionHelper() {
+ SWIGRegisterExceptionCallbacks_Osr(
+ applicationDelegate,
+ arithmeticDelegate,
+ divideByZeroDelegate,
+ indexOutOfRangeDelegate,
+ invalidCastDelegate,
+ invalidOperationDelegate,
+ ioDelegate,
+ nullReferenceDelegate,
+ outOfMemoryDelegate,
+ overflowDelegate,
+ systemDelegate);
+
+ SWIGRegisterExceptionCallbacksArgument_Osr(
+ argumentDelegate,
+ argumentNullDelegate,
+ argumentOutOfRangeDelegate);
+ }
+ }
+
+ protected static SWIGExceptionHelper swigExceptionHelper = new SWIGExceptionHelper();
+
+ public class SWIGPendingException {
+ [global::System.ThreadStatic]
+ private static global::System.Exception pendingException = null;
+ private static int numExceptionsPending = 0;
+ private static global::System.Object exceptionsLock = null;
+
+ public static bool Pending {
+ get {
+ bool pending = false;
+ if (numExceptionsPending > 0)
+ if (pendingException != null)
+ pending = true;
+ return pending;
+ }
+ }
+
+ public static void Set(global::System.Exception e) {
+ if (pendingException != null)
+ throw new global::System.ApplicationException("FATAL: An earlier pending exception from unmanaged code was missed and thus not thrown (" + pendingException.ToString() + ")", e);
+ pendingException = e;
+ lock(exceptionsLock) {
+ numExceptionsPending++;
+ }
+ }
+
+ public static global::System.Exception Retrieve() {
+ global::System.Exception e = null;
+ if (numExceptionsPending > 0) {
+ if (pendingException != null) {
+ e = pendingException;
+ pendingException = null;
+ lock(exceptionsLock) {
+ numExceptionsPending--;
+ }
+ }
+ }
+ return e;
+ }
+
+ static SWIGPendingException() {
+ exceptionsLock = new global::System.Object();
+ }
+ }
+
+
+ protected class SWIGStringHelper {
+
+ public delegate string SWIGStringDelegate(string message);
+ static SWIGStringDelegate stringDelegate = new SWIGStringDelegate(CreateString);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="SWIGRegisterStringCallback_Osr")]
+ public static extern void SWIGRegisterStringCallback_Osr(SWIGStringDelegate stringDelegate);
+
+ static string CreateString(string cString) {
+ return cString;
+ }
+
+ static SWIGStringHelper() {
+ SWIGRegisterStringCallback_Osr(stringDelegate);
+ }
+ }
+
+ static protected SWIGStringHelper swigStringHelper = new SWIGStringHelper();
+
+
+ static OsrPINVOKE() {
+ }
+
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_UseExceptions___")]
+ public static extern void UseExceptions();
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_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);
+ }
+ }
+
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_StringListDestroy___")]
+ public static extern void StringListDestroy(IntPtr jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_CRSInfoList_get___")]
+ public static extern global::System.IntPtr CRSInfoList_get(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_delete_CRSInfoList___")]
+ public static extern void delete_CRSInfoList(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_new_CRSInfoList___")]
+ public static extern global::System.IntPtr new_CRSInfoList();
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_GetCRSInfoListFromDatabase___")]
+ public static extern global::System.IntPtr GetCRSInfoListFromDatabase(string jarg1, out int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_GetWellKnownGeogCSAsWKT___")]
+ public static extern int GetWellKnownGeogCSAsWKT(string jarg1, out string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_GetUserInputAsWKT___")]
+ public static extern int GetUserInputAsWKT(string jarg1, out string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_AreaOfUse_west_lon_degree_get___")]
+ public static extern double AreaOfUse_west_lon_degree_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_AreaOfUse_south_lat_degree_get___")]
+ public static extern double AreaOfUse_south_lat_degree_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_AreaOfUse_east_lon_degree_get___")]
+ public static extern double AreaOfUse_east_lon_degree_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_AreaOfUse_north_lat_degree_get___")]
+ public static extern double AreaOfUse_north_lat_degree_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_AreaOfUse_name_get___")]
+ public static extern string AreaOfUse_name_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_new_AreaOfUse___")]
+ public static extern global::System.IntPtr new_AreaOfUse(double jarg1, double jarg2, double jarg3, double jarg4, string jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_delete_AreaOfUse___")]
+ public static extern void delete_AreaOfUse(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_OSRAreaOfUse_west_lon_degree_get___")]
+ public static extern double OSRAreaOfUse_west_lon_degree_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_OSRAreaOfUse_south_lat_degree_get___")]
+ public static extern double OSRAreaOfUse_south_lat_degree_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_OSRAreaOfUse_east_lon_degree_get___")]
+ public static extern double OSRAreaOfUse_east_lon_degree_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_OSRAreaOfUse_north_lat_degree_get___")]
+ public static extern double OSRAreaOfUse_north_lat_degree_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_OSRAreaOfUse_name_get___")]
+ public static extern string OSRAreaOfUse_name_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_new_SpatialReference___")]
+ public static extern global::System.IntPtr new_SpatialReference(string jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_delete_SpatialReference___")]
+ public static extern void delete_SpatialReference(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference___str_____")]
+ public static extern string SpatialReference___str__(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_GetName___")]
+ public static extern string SpatialReference_GetName(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_IsSame___")]
+ public static extern int SpatialReference_IsSame(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, IntPtr[] jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_IsSameGeogCS___")]
+ public static extern int SpatialReference_IsSameGeogCS(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_IsSameVertCS___")]
+ public static extern int SpatialReference_IsSameVertCS(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_IsGeographic___")]
+ public static extern int SpatialReference_IsGeographic(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_IsDerivedGeographic___")]
+ public static extern int SpatialReference_IsDerivedGeographic(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_IsProjected___")]
+ public static extern int SpatialReference_IsProjected(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_IsDerivedProjected___")]
+ public static extern int SpatialReference_IsDerivedProjected(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_IsCompound___")]
+ public static extern int SpatialReference_IsCompound(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_IsGeocentric___")]
+ public static extern int SpatialReference_IsGeocentric(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_IsLocal___")]
+ public static extern int SpatialReference_IsLocal(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_IsVertical___")]
+ public static extern int SpatialReference_IsVertical(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_IsDynamic___")]
+ public static extern bool SpatialReference_IsDynamic(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_HasPointMotionOperation___")]
+ public static extern bool SpatialReference_HasPointMotionOperation(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_GetCoordinateEpoch___")]
+ public static extern double SpatialReference_GetCoordinateEpoch(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetCoordinateEpoch___")]
+ public static extern void SpatialReference_SetCoordinateEpoch(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_EPSGTreatsAsLatLong___")]
+ public static extern int SpatialReference_EPSGTreatsAsLatLong(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_EPSGTreatsAsNorthingEasting___")]
+ public static extern int SpatialReference_EPSGTreatsAsNorthingEasting(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetAuthority___")]
+ public static extern int SpatialReference_SetAuthority(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3, int jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_GetAttrValue___")]
+ public static extern string SpatialReference_GetAttrValue(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetAttrValue___")]
+ public static extern int SpatialReference_SetAttrValue(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetAngularUnits___")]
+ public static extern int SpatialReference_SetAngularUnits(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, double jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_GetAngularUnits___")]
+ public static extern double SpatialReference_GetAngularUnits(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_GetAngularUnitsName___")]
+ public static extern string SpatialReference_GetAngularUnitsName(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetTargetLinearUnits___")]
+ public static extern int SpatialReference_SetTargetLinearUnits(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3, double jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetLinearUnits___")]
+ public static extern int SpatialReference_SetLinearUnits(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, double jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetLinearUnitsAndUpdateParameters___")]
+ public static extern int SpatialReference_SetLinearUnitsAndUpdateParameters(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, double jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_GetTargetLinearUnits___")]
+ public static extern double SpatialReference_GetTargetLinearUnits(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_GetLinearUnits___")]
+ public static extern double SpatialReference_GetLinearUnits(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_GetLinearUnitsName___")]
+ public static extern string SpatialReference_GetLinearUnitsName(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_GetAuthorityCode___")]
+ public static extern string SpatialReference_GetAuthorityCode(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_GetAuthorityName___")]
+ public static extern string SpatialReference_GetAuthorityName(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_GetAreaOfUse___")]
+ public static extern global::System.IntPtr SpatialReference_GetAreaOfUse(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_GetAxisName___")]
+ public static extern string SpatialReference_GetAxisName(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_GetAxesCount___")]
+ public static extern int SpatialReference_GetAxesCount(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_GetAxisOrientation___")]
+ public static extern int SpatialReference_GetAxisOrientation(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_GetAxisMappingStrategy___")]
+ public static extern int SpatialReference_GetAxisMappingStrategy(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetAxisMappingStrategy___")]
+ public static extern void SpatialReference_SetAxisMappingStrategy(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_GetDataAxisToSRSAxisMapping___")]
+ public static extern IntPtr SpatialReference_GetDataAxisToSRSAxisMapping(global::System.Runtime.InteropServices.HandleRef jarg1, out int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetDataAxisToSRSAxisMapping___")]
+ public static extern int SpatialReference_SetDataAxisToSRSAxisMapping(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int[] jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetUTM___")]
+ public static extern int SpatialReference_SetUTM(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_GetUTMZone___")]
+ public static extern int SpatialReference_GetUTMZone(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetStatePlane___")]
+ public static extern int SpatialReference_SetStatePlane(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, string jarg4, double jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_AutoIdentifyEPSG___")]
+ public static extern int SpatialReference_AutoIdentifyEPSG(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetProjection___")]
+ public static extern int SpatialReference_SetProjection(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetProjParm___")]
+ public static extern int SpatialReference_SetProjParm(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, double jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_GetProjParm___")]
+ public static extern double SpatialReference_GetProjParm(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, double jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetNormProjParm___")]
+ public static extern int SpatialReference_SetNormProjParm(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, double jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_GetNormProjParm___")]
+ public static extern double SpatialReference_GetNormProjParm(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, double jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_GetSemiMajor___")]
+ public static extern double SpatialReference_GetSemiMajor(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_GetSemiMinor___")]
+ public static extern double SpatialReference_GetSemiMinor(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_GetInvFlattening___")]
+ public static extern double SpatialReference_GetInvFlattening(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetACEA___")]
+ public static extern int SpatialReference_SetACEA(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5, double jarg6, double jarg7);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetAE___")]
+ public static extern int SpatialReference_SetAE(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetBonne___")]
+ public static extern int SpatialReference_SetBonne(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetCEA___")]
+ public static extern int SpatialReference_SetCEA(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetCS___")]
+ public static extern int SpatialReference_SetCS(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetEC___")]
+ public static extern int SpatialReference_SetEC(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5, double jarg6, double jarg7);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetEckertIV___")]
+ public static extern int SpatialReference_SetEckertIV(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetEckertVI___")]
+ public static extern int SpatialReference_SetEckertVI(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetEquirectangular___")]
+ public static extern int SpatialReference_SetEquirectangular(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetEquirectangular2___")]
+ public static extern int SpatialReference_SetEquirectangular2(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5, double jarg6);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetGaussSchreiberTMercator___")]
+ public static extern int SpatialReference_SetGaussSchreiberTMercator(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5, double jarg6);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetGS___")]
+ public static extern int SpatialReference_SetGS(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetGH___")]
+ public static extern int SpatialReference_SetGH(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetIGH___")]
+ public static extern int SpatialReference_SetIGH(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetGEOS___")]
+ public static extern int SpatialReference_SetGEOS(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetGnomonic___")]
+ public static extern int SpatialReference_SetGnomonic(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetHOM___")]
+ public static extern int SpatialReference_SetHOM(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5, double jarg6, double jarg7, double jarg8);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetHOM2PNO___")]
+ public static extern int SpatialReference_SetHOM2PNO(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5, double jarg6, double jarg7, double jarg8, double jarg9);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetKrovak___")]
+ public static extern int SpatialReference_SetKrovak(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5, double jarg6, double jarg7, double jarg8);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetLAEA___")]
+ public static extern int SpatialReference_SetLAEA(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetLCC___")]
+ public static extern int SpatialReference_SetLCC(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5, double jarg6, double jarg7);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetLCC1SP___")]
+ public static extern int SpatialReference_SetLCC1SP(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5, double jarg6);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetLCCB___")]
+ public static extern int SpatialReference_SetLCCB(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5, double jarg6, double jarg7);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetMC___")]
+ public static extern int SpatialReference_SetMC(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetMercator___")]
+ public static extern int SpatialReference_SetMercator(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5, double jarg6);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetMercator2SP___")]
+ public static extern int SpatialReference_SetMercator2SP(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5, double jarg6);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetMollweide___")]
+ public static extern int SpatialReference_SetMollweide(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetNZMG___")]
+ public static extern int SpatialReference_SetNZMG(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetOS___")]
+ public static extern int SpatialReference_SetOS(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5, double jarg6);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetOrthographic___")]
+ public static extern int SpatialReference_SetOrthographic(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetPolyconic___")]
+ public static extern int SpatialReference_SetPolyconic(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetPS___")]
+ public static extern int SpatialReference_SetPS(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5, double jarg6);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetRobinson___")]
+ public static extern int SpatialReference_SetRobinson(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetSinusoidal___")]
+ public static extern int SpatialReference_SetSinusoidal(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetStereographic___")]
+ public static extern int SpatialReference_SetStereographic(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5, double jarg6);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetSOC___")]
+ public static extern int SpatialReference_SetSOC(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetTM___")]
+ public static extern int SpatialReference_SetTM(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5, double jarg6);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetTMVariant___")]
+ public static extern int SpatialReference_SetTMVariant(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, double jarg3, double jarg4, double jarg5, double jarg6, double jarg7);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetTMG___")]
+ public static extern int SpatialReference_SetTMG(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetTMSO___")]
+ public static extern int SpatialReference_SetTMSO(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5, double jarg6);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetVDG___")]
+ public static extern int SpatialReference_SetVDG(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetVerticalPerspective___")]
+ public static extern int SpatialReference_SetVerticalPerspective(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5, double jarg6, double jarg7);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetWellKnownGeogCS___")]
+ public static extern int SpatialReference_SetWellKnownGeogCS(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetFromUserInput__SWIG_0___")]
+ public static extern int SpatialReference_SetFromUserInput__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetFromUserInput__SWIG_1___")]
+ public static extern int SpatialReference_SetFromUserInput__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, IntPtr[] jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_CopyGeogCSFrom___")]
+ public static extern int SpatialReference_CopyGeogCSFrom(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetTOWGS84___")]
+ public static extern int SpatialReference_SetTOWGS84(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5, double jarg6, double jarg7, double jarg8);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_HasTOWGS84___")]
+ public static extern bool SpatialReference_HasTOWGS84(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_GetTOWGS84___")]
+ public static extern int SpatialReference_GetTOWGS84(global::System.Runtime.InteropServices.HandleRef jarg1, double[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_AddGuessedTOWGS84___")]
+ public static extern int SpatialReference_AddGuessedTOWGS84(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetLocalCS___")]
+ public static extern int SpatialReference_SetLocalCS(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetGeogCS___")]
+ public static extern int SpatialReference_SetGeogCS(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3, string jarg4, double jarg5, double jarg6, string jarg7, double jarg8, string jarg9, double jarg10);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetProjCS___")]
+ public static extern int SpatialReference_SetProjCS(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetGeocCS___")]
+ public static extern int SpatialReference_SetGeocCS(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetVertCS___")]
+ public static extern int SpatialReference_SetVertCS(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3, int jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_SetCompoundCS___")]
+ public static extern int SpatialReference_SetCompoundCS(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_ImportFromWkt___")]
+ public static extern int SpatialReference_ImportFromWkt(global::System.Runtime.InteropServices.HandleRef jarg1, ref string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_ImportFromProj4___")]
+ public static extern int SpatialReference_ImportFromProj4(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_ImportFromUrl___")]
+ public static extern int SpatialReference_ImportFromUrl(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_ImportFromESRI___")]
+ public static extern int SpatialReference_ImportFromESRI(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_ImportFromEPSG___")]
+ public static extern int SpatialReference_ImportFromEPSG(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_ImportFromEPSGA___")]
+ public static extern int SpatialReference_ImportFromEPSGA(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_ImportFromPCI___")]
+ public static extern int SpatialReference_ImportFromPCI(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3, double[] jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_ImportFromUSGS___")]
+ public static extern int SpatialReference_ImportFromUSGS(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, double[] jarg4, int jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_ImportFromXML___")]
+ public static extern int SpatialReference_ImportFromXML(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_ImportFromERM___")]
+ public static extern int SpatialReference_ImportFromERM(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3, string jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_ImportFromMICoordSys___")]
+ public static extern int SpatialReference_ImportFromMICoordSys(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_ImportFromOzi___")]
+ public static extern int SpatialReference_ImportFromOzi(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_ImportFromCF1___")]
+ public static extern int SpatialReference_ImportFromCF1(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr[] jarg2, string jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_ExportToWkt___")]
+ public static extern int SpatialReference_ExportToWkt(global::System.Runtime.InteropServices.HandleRef jarg1, out string jarg2, IntPtr[] jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_ExportToPrettyWkt___")]
+ public static extern int SpatialReference_ExportToPrettyWkt(global::System.Runtime.InteropServices.HandleRef jarg1, out string jarg2, int jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_ExportToPROJJSON___")]
+ public static extern int SpatialReference_ExportToPROJJSON(global::System.Runtime.InteropServices.HandleRef jarg1, out string jarg2, IntPtr[] jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_ExportToProj4___")]
+ public static extern int SpatialReference_ExportToProj4(global::System.Runtime.InteropServices.HandleRef jarg1, out string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_ExportToPCI___")]
+ public static extern int SpatialReference_ExportToPCI(global::System.Runtime.InteropServices.HandleRef jarg1, out string jarg2, out string jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_ExportToUSGS___")]
+ public static extern int SpatialReference_ExportToUSGS(global::System.Runtime.InteropServices.HandleRef jarg1, out int jarg2, out int jarg3, out int jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_ExportToERM___")]
+ public static extern int SpatialReference_ExportToERM(global::System.Runtime.InteropServices.HandleRef jarg1, out string jarg2, out string jarg3, out string jarg4);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_ExportToXML___")]
+ public static extern int SpatialReference_ExportToXML(global::System.Runtime.InteropServices.HandleRef jarg1, out string jarg2, string jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_ExportToMICoordSys___")]
+ public static extern int SpatialReference_ExportToMICoordSys(global::System.Runtime.InteropServices.HandleRef jarg1, out string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_ExportToCF1___")]
+ public static extern global::System.IntPtr SpatialReference_ExportToCF1(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_ExportToCF1Units___")]
+ public static extern string SpatialReference_ExportToCF1Units(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_CloneGeogCS___")]
+ public static extern global::System.IntPtr SpatialReference_CloneGeogCS(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_Clone___")]
+ public static extern global::System.IntPtr SpatialReference_Clone(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_StripVertical___")]
+ public static extern int SpatialReference_StripVertical(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_Validate___")]
+ public static extern int SpatialReference_Validate(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_MorphToESRI___")]
+ public static extern int SpatialReference_MorphToESRI(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_MorphFromESRI___")]
+ public static extern int SpatialReference_MorphFromESRI(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_ConvertToOtherProjection___")]
+ public static extern global::System.IntPtr SpatialReference_ConvertToOtherProjection(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, IntPtr[] jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_PromoteTo3D___")]
+ public static extern int SpatialReference_PromoteTo3D(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SpatialReference_DemoteTo2D___")]
+ public static extern int SpatialReference_DemoteTo2D(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_new_CoordinateTransformationOptions___")]
+ public static extern global::System.IntPtr new_CoordinateTransformationOptions();
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_delete_CoordinateTransformationOptions___")]
+ public static extern void delete_CoordinateTransformationOptions(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_CoordinateTransformationOptions_SetAreaOfInterest___")]
+ public static extern bool CoordinateTransformationOptions_SetAreaOfInterest(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_CoordinateTransformationOptions_SetOperation___")]
+ public static extern bool CoordinateTransformationOptions_SetOperation(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, bool jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_CoordinateTransformationOptions_SetDesiredAccuracy___")]
+ public static extern bool CoordinateTransformationOptions_SetDesiredAccuracy(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_CoordinateTransformationOptions_SetBallparkAllowed___")]
+ public static extern bool CoordinateTransformationOptions_SetBallparkAllowed(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_CoordinateTransformationOptions_SetOnlyBest___")]
+ public static extern bool CoordinateTransformationOptions_SetOnlyBest(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_new_CoordinateTransformation__SWIG_0___")]
+ public static extern global::System.IntPtr new_CoordinateTransformation__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_new_CoordinateTransformation__SWIG_1___")]
+ public static extern global::System.IntPtr new_CoordinateTransformation__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_delete_CoordinateTransformation___")]
+ public static extern void delete_CoordinateTransformation(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_CoordinateTransformation_GetInverse___")]
+ public static extern global::System.IntPtr CoordinateTransformation_GetInverse(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_CoordinateTransformation_TransformPoint__SWIG_0___")]
+ public static extern void CoordinateTransformation_TransformPoint__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double[] jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_CoordinateTransformation_TransformPoint__SWIG_2___")]
+ public static extern void CoordinateTransformation_TransformPoint__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, double[] jarg2, double jarg3, double jarg4, double jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_CoordinateTransformation_TransformPoint__SWIG_3___")]
+ public static extern void CoordinateTransformation_TransformPoint__SWIG_3(global::System.Runtime.InteropServices.HandleRef jarg1, double[] jarg2, double jarg3, double jarg4, double jarg5, double jarg6);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_CoordinateTransformation_TransformPointWithErrorCode___")]
+ public static extern int CoordinateTransformation_TransformPointWithErrorCode(global::System.Runtime.InteropServices.HandleRef jarg1, double[] jarg2, double jarg3, double jarg4, double jarg5, double jarg6);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_CoordinateTransformation_TransformPoints___")]
+ public static extern void CoordinateTransformation_TransformPoints(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, double[] jarg3, double[] jarg4, double[] jarg5);
+
+ // Kennedy added.
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint = "CSharp_OSGeofOSR_CoordinateTransformation_TransformPoints___")]
+ public static unsafe extern void CoordinateTransformation_TransformPoints(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, double* jarg3, double* jarg4, double* jarg5);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_CoordinateTransformation_TransformBounds___")]
+ public static extern void CoordinateTransformation_TransformBounds(global::System.Runtime.InteropServices.HandleRef jarg1, double[] jarg2, double jarg3, double jarg4, double jarg5, double jarg6, int jarg7);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_CreateCoordinateTransformation___")]
+ public static extern global::System.IntPtr CreateCoordinateTransformation(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_CRSInfo_auth_name_get___")]
+ public static extern string CRSInfo_auth_name_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_CRSInfo_code_get___")]
+ public static extern string CRSInfo_code_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_CRSInfo_name_get___")]
+ public static extern string CRSInfo_name_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_CRSInfo_type_get___")]
+ public static extern int CRSInfo_type_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_CRSInfo_deprecated_get___")]
+ public static extern bool CRSInfo_deprecated_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_CRSInfo_bbox_valid_get___")]
+ public static extern bool CRSInfo_bbox_valid_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_CRSInfo_west_lon_degree_get___")]
+ public static extern double CRSInfo_west_lon_degree_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_CRSInfo_south_lat_degree_get___")]
+ public static extern double CRSInfo_south_lat_degree_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_CRSInfo_east_lon_degree_get___")]
+ public static extern double CRSInfo_east_lon_degree_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_CRSInfo_north_lat_degree_get___")]
+ public static extern double CRSInfo_north_lat_degree_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_CRSInfo_area_name_get___")]
+ public static extern string CRSInfo_area_name_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_CRSInfo_projection_method_get___")]
+ public static extern string CRSInfo_projection_method_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_new_CRSInfo___")]
+ public static extern global::System.IntPtr new_CRSInfo(string jarg1, string jarg2, string jarg3, int jarg4, bool jarg5, bool jarg6, double jarg7, double jarg8, double jarg9, double jarg10, string jarg11, string jarg12);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_delete_CRSInfo___")]
+ public static extern void delete_CRSInfo(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_OSRCRSInfo_auth_name_get___")]
+ public static extern string OSRCRSInfo_auth_name_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_OSRCRSInfo_code_get___")]
+ public static extern string OSRCRSInfo_code_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_OSRCRSInfo_name_get___")]
+ public static extern string OSRCRSInfo_name_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_OSRCRSInfo_type_get___")]
+ public static extern int OSRCRSInfo_type_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_OSRCRSInfo_deprecated_get___")]
+ public static extern bool OSRCRSInfo_deprecated_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_OSRCRSInfo_bbox_valid_get___")]
+ public static extern bool OSRCRSInfo_bbox_valid_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_OSRCRSInfo_west_lon_degree_get___")]
+ public static extern double OSRCRSInfo_west_lon_degree_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_OSRCRSInfo_south_lat_degree_get___")]
+ public static extern double OSRCRSInfo_south_lat_degree_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_OSRCRSInfo_east_lon_degree_get___")]
+ public static extern double OSRCRSInfo_east_lon_degree_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_OSRCRSInfo_north_lat_degree_get___")]
+ public static extern double OSRCRSInfo_north_lat_degree_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_OSRCRSInfo_area_name_get___")]
+ public static extern string OSRCRSInfo_area_name_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_OSRCRSInfo_projection_method_get___")]
+ public static extern string OSRCRSInfo_projection_method_get(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SetPROJSearchPath___")]
+ public static extern void SetPROJSearchPath(byte[] jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SetPROJSearchPaths___")]
+ public static extern void SetPROJSearchPaths(IntPtr[] jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_GetPROJSearchPaths___")]
+ public static extern IntPtr GetPROJSearchPaths();
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_GetPROJVersionMajor___")]
+ public static extern int GetPROJVersionMajor();
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_GetPROJVersionMinor___")]
+ public static extern int GetPROJVersionMinor();
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_GetPROJVersionMicro___")]
+ public static extern int GetPROJVersionMicro();
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_GetPROJEnableNetwork___")]
+ public static extern bool GetPROJEnableNetwork();
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SetPROJEnableNetwork___")]
+ public static extern void SetPROJEnableNetwork(bool jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SetPROJAuxDbPath___")]
+ public static extern void SetPROJAuxDbPath(byte[] jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_SetPROJAuxDbPaths___")]
+ public static extern void SetPROJAuxDbPaths(IntPtr[] jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("osr_wrap", EntryPoint="CSharp_OSGeofOSR_GetPROJAuxDbPaths___")]
+ public static extern IntPtr GetPROJAuxDbPaths();
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OSR/SWIGTYPE_p_p_char.cs b/Geospatial/GDAL-Bindings/OSR/SWIGTYPE_p_p_char.cs
new file mode 100644
index 0000000..c412c45
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OSR/SWIGTYPE_p_p_char.cs
@@ -0,0 +1,32 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OSR {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class SWIGTYPE_p_p_char {
+ private HandleRef swigCPtr;
+
+ public SWIGTYPE_p_p_char(IntPtr cPtr, bool futureUse, object parent) {
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ protected SWIGTYPE_p_p_char() {
+ swigCPtr = new HandleRef(null, IntPtr.Zero);
+ }
+
+ public static HandleRef getCPtr(SWIGTYPE_p_p_char obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+}
+
+}
diff --git a/Geospatial/GDAL-Bindings/OSR/SpatialReference.cs b/Geospatial/GDAL-Bindings/OSR/SpatialReference.cs
new file mode 100644
index 0000000..2732871
--- /dev/null
+++ b/Geospatial/GDAL-Bindings/OSR/SpatialReference.cs
@@ -0,0 +1,941 @@
+//------------------------------------------------------------------------------
+//
+//
+// This file was automatically generated by SWIG (https://www.swig.org).
+// Version 4.2.1
+//
+// Do not make changes to this file unless you know what you are doing - modify
+// the SWIG interface file instead.
+//------------------------------------------------------------------------------
+
+namespace OSGeo.OSR {
+
+using global::System;
+using global::System.Runtime.InteropServices;
+
+public class SpatialReference : global::System.IDisposable {
+ private HandleRef swigCPtr;
+ protected bool swigCMemOwn;
+ protected object swigParentRef;
+
+ protected static object ThisOwn_true() { return null; }
+ protected object ThisOwn_false() { return this; }
+
+ public SpatialReference(IntPtr cPtr, bool cMemoryOwn, object parent) {
+ swigCMemOwn = cMemoryOwn;
+ swigParentRef = parent;
+ swigCPtr = new HandleRef(this, cPtr);
+ }
+
+ public static HandleRef getCPtr(SpatialReference obj) {
+ return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
+ }
+ public static HandleRef getCPtrAndDisown(SpatialReference obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigCMemOwn = false;
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+ public static HandleRef getCPtrAndSetReference(SpatialReference obj, object parent) {
+ if (obj != null)
+ {
+ obj.swigParentRef = parent;
+ return obj.swigCPtr;
+ }
+ else
+ {
+ return new HandleRef(null, IntPtr.Zero);
+ }
+ }
+
+ ~SpatialReference() {
+ Dispose();
+ }
+
+ 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 SpatialReference(string wkt) : this(OsrPINVOKE.new_SpatialReference(wkt), true, null) {
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public string __str__() {
+ string ret = OsrPINVOKE.SpatialReference___str__(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetName() {
+ string ret = OsrPINVOKE.SpatialReference_GetName(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int IsSame(SpatialReference rhs, string[] options) {
+ int ret = OsrPINVOKE.SpatialReference_IsSame(swigCPtr, SpatialReference.getCPtr(rhs), (options != null)? new OsrPINVOKE.StringListMarshal(options)._ar : null);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int IsSameGeogCS(SpatialReference rhs) {
+ int ret = OsrPINVOKE.SpatialReference_IsSameGeogCS(swigCPtr, SpatialReference.getCPtr(rhs));
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int IsSameVertCS(SpatialReference rhs) {
+ int ret = OsrPINVOKE.SpatialReference_IsSameVertCS(swigCPtr, SpatialReference.getCPtr(rhs));
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int IsGeographic() {
+ int ret = OsrPINVOKE.SpatialReference_IsGeographic(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int IsDerivedGeographic() {
+ int ret = OsrPINVOKE.SpatialReference_IsDerivedGeographic(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int IsProjected() {
+ int ret = OsrPINVOKE.SpatialReference_IsProjected(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int IsDerivedProjected() {
+ int ret = OsrPINVOKE.SpatialReference_IsDerivedProjected(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int IsCompound() {
+ int ret = OsrPINVOKE.SpatialReference_IsCompound(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int IsGeocentric() {
+ int ret = OsrPINVOKE.SpatialReference_IsGeocentric(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int IsLocal() {
+ int ret = OsrPINVOKE.SpatialReference_IsLocal(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int IsVertical() {
+ int ret = OsrPINVOKE.SpatialReference_IsVertical(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool IsDynamic() {
+ bool ret = OsrPINVOKE.SpatialReference_IsDynamic(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool HasPointMotionOperation() {
+ bool ret = OsrPINVOKE.SpatialReference_HasPointMotionOperation(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public double GetCoordinateEpoch() {
+ double ret = OsrPINVOKE.SpatialReference_GetCoordinateEpoch(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetCoordinateEpoch(double coordinateEpoch) {
+ OsrPINVOKE.SpatialReference_SetCoordinateEpoch(swigCPtr, coordinateEpoch);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ public int EPSGTreatsAsLatLong() {
+ int ret = OsrPINVOKE.SpatialReference_EPSGTreatsAsLatLong(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int EPSGTreatsAsNorthingEasting() {
+ int ret = OsrPINVOKE.SpatialReference_EPSGTreatsAsNorthingEasting(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetAuthority(string pszTargetKey, string pszAuthority, int nCode) {
+ int ret = OsrPINVOKE.SpatialReference_SetAuthority(swigCPtr, pszTargetKey, pszAuthority, nCode);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetAttrValue(string name, int child) {
+ string ret = OsrPINVOKE.SpatialReference_GetAttrValue(swigCPtr, name, child);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetAttrValue(string name, string value) {
+ int ret = OsrPINVOKE.SpatialReference_SetAttrValue(swigCPtr, name, value);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetAngularUnits(string name, double to_radians) {
+ int ret = OsrPINVOKE.SpatialReference_SetAngularUnits(swigCPtr, name, to_radians);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public double GetAngularUnits() {
+ double ret = OsrPINVOKE.SpatialReference_GetAngularUnits(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetAngularUnitsName() {
+ string ret = OsrPINVOKE.SpatialReference_GetAngularUnitsName(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetTargetLinearUnits(string target, string name, double to_meters) {
+ int ret = OsrPINVOKE.SpatialReference_SetTargetLinearUnits(swigCPtr, target, name, to_meters);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetLinearUnits(string name, double to_meters) {
+ int ret = OsrPINVOKE.SpatialReference_SetLinearUnits(swigCPtr, name, to_meters);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetLinearUnitsAndUpdateParameters(string name, double to_meters) {
+ int ret = OsrPINVOKE.SpatialReference_SetLinearUnitsAndUpdateParameters(swigCPtr, name, to_meters);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public double GetTargetLinearUnits(string target_key) {
+ double ret = OsrPINVOKE.SpatialReference_GetTargetLinearUnits(swigCPtr, target_key);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public double GetLinearUnits() {
+ double ret = OsrPINVOKE.SpatialReference_GetLinearUnits(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetLinearUnitsName() {
+ string ret = OsrPINVOKE.SpatialReference_GetLinearUnitsName(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetAuthorityCode(string target_key) {
+ string ret = OsrPINVOKE.SpatialReference_GetAuthorityCode(swigCPtr, target_key);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string GetAuthorityName(string target_key) {
+ string ret = OsrPINVOKE.SpatialReference_GetAuthorityName(swigCPtr, target_key);
+ 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 string GetAxisName(string target_key, int iAxis) {
+ string ret = OsrPINVOKE.SpatialReference_GetAxisName(swigCPtr, target_key, iAxis);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int GetAxesCount() {
+ int ret = OsrPINVOKE.SpatialReference_GetAxesCount(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public AxisOrientation GetAxisOrientation(string target_key, int iAxis) {
+ AxisOrientation ret = (AxisOrientation)OsrPINVOKE.SpatialReference_GetAxisOrientation(swigCPtr, target_key, iAxis);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public AxisMappingStrategy GetAxisMappingStrategy() {
+ AxisMappingStrategy ret = (AxisMappingStrategy)OsrPINVOKE.SpatialReference_GetAxisMappingStrategy(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public void SetAxisMappingStrategy(AxisMappingStrategy strategy) {
+ OsrPINVOKE.SpatialReference_SetAxisMappingStrategy(swigCPtr, (int)strategy);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ 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 int SetDataAxisToSRSAxisMapping(int nList, int[] pList) {
+ int ret = OsrPINVOKE.SpatialReference_SetDataAxisToSRSAxisMapping(swigCPtr, nList, pList);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetUTM(int zone, int north) {
+ int ret = OsrPINVOKE.SpatialReference_SetUTM(swigCPtr, zone, north);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int GetUTMZone() {
+ int ret = OsrPINVOKE.SpatialReference_GetUTMZone(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetStatePlane(int zone, int is_nad83, string unitsname, double units) {
+ int ret = OsrPINVOKE.SpatialReference_SetStatePlane(swigCPtr, zone, is_nad83, unitsname, units);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int AutoIdentifyEPSG() {
+ int ret = OsrPINVOKE.SpatialReference_AutoIdentifyEPSG(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetProjection(string arg) {
+ int ret = OsrPINVOKE.SpatialReference_SetProjection(swigCPtr, arg);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetProjParm(string name, double val) {
+ int ret = OsrPINVOKE.SpatialReference_SetProjParm(swigCPtr, name, val);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public double GetProjParm(string name, double default_val) {
+ double ret = OsrPINVOKE.SpatialReference_GetProjParm(swigCPtr, name, default_val);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetNormProjParm(string name, double val) {
+ int ret = OsrPINVOKE.SpatialReference_SetNormProjParm(swigCPtr, name, val);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public double GetNormProjParm(string name, double default_val) {
+ double ret = OsrPINVOKE.SpatialReference_GetNormProjParm(swigCPtr, name, default_val);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public double GetSemiMajor() {
+ double ret = OsrPINVOKE.SpatialReference_GetSemiMajor(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public double GetSemiMinor() {
+ double ret = OsrPINVOKE.SpatialReference_GetSemiMinor(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public double GetInvFlattening() {
+ double ret = OsrPINVOKE.SpatialReference_GetInvFlattening(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetACEA(double stdp1, double stdp2, double clat, double clong, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetACEA(swigCPtr, stdp1, stdp2, clat, clong, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetAE(double clat, double clong, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetAE(swigCPtr, clat, clong, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetBonne(double stdp, double cm, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetBonne(swigCPtr, stdp, cm, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetCEA(double stdp1, double cm, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetCEA(swigCPtr, stdp1, cm, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetCS(double clat, double clong, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetCS(swigCPtr, clat, clong, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetEC(double stdp1, double stdp2, double clat, double clong, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetEC(swigCPtr, stdp1, stdp2, clat, clong, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetEckertIV(double cm, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetEckertIV(swigCPtr, cm, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetEckertVI(double cm, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetEckertVI(swigCPtr, cm, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetEquirectangular(double clat, double clong, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetEquirectangular(swigCPtr, clat, clong, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetEquirectangular2(double clat, double clong, double pseudostdparallellat, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetEquirectangular2(swigCPtr, clat, clong, pseudostdparallellat, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetGaussSchreiberTMercator(double clat, double clong, double sc, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetGaussSchreiberTMercator(swigCPtr, clat, clong, sc, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetGS(double cm, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetGS(swigCPtr, cm, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetGH(double cm, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetGH(swigCPtr, cm, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetIGH() {
+ int ret = OsrPINVOKE.SpatialReference_SetIGH(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetGEOS(double cm, double satelliteheight, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetGEOS(swigCPtr, cm, satelliteheight, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetGnomonic(double clat, double clong, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetGnomonic(swigCPtr, clat, clong, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetHOM(double clat, double clong, double azimuth, double recttoskew, double scale, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetHOM(swigCPtr, clat, clong, azimuth, recttoskew, scale, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetHOM2PNO(double clat, double dfLat1, double dfLong1, double dfLat2, double dfLong2, double scale, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetHOM2PNO(swigCPtr, clat, dfLat1, dfLong1, dfLat2, dfLong2, scale, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetKrovak(double clat, double clong, double azimuth, double pseudostdparallellat, double scale, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetKrovak(swigCPtr, clat, clong, azimuth, pseudostdparallellat, scale, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetLAEA(double clat, double clong, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetLAEA(swigCPtr, clat, clong, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetLCC(double stdp1, double stdp2, double clat, double clong, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetLCC(swigCPtr, stdp1, stdp2, clat, clong, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetLCC1SP(double clat, double clong, double scale, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetLCC1SP(swigCPtr, clat, clong, scale, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetLCCB(double stdp1, double stdp2, double clat, double clong, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetLCCB(swigCPtr, stdp1, stdp2, clat, clong, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetMC(double clat, double clong, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetMC(swigCPtr, clat, clong, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetMercator(double clat, double clong, double scale, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetMercator(swigCPtr, clat, clong, scale, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetMercator2SP(double stdp1, double clat, double clong, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetMercator2SP(swigCPtr, stdp1, clat, clong, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetMollweide(double cm, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetMollweide(swigCPtr, cm, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetNZMG(double clat, double clong, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetNZMG(swigCPtr, clat, clong, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetOS(double dfOriginLat, double dfCMeridian, double scale, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetOS(swigCPtr, dfOriginLat, dfCMeridian, scale, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetOrthographic(double clat, double clong, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetOrthographic(swigCPtr, clat, clong, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetPolyconic(double clat, double clong, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetPolyconic(swigCPtr, clat, clong, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetPS(double clat, double clong, double scale, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetPS(swigCPtr, clat, clong, scale, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetRobinson(double clong, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetRobinson(swigCPtr, clong, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetSinusoidal(double clong, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetSinusoidal(swigCPtr, clong, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetStereographic(double clat, double clong, double scale, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetStereographic(swigCPtr, clat, clong, scale, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetSOC(double latitudeoforigin, double cm, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetSOC(swigCPtr, latitudeoforigin, cm, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetTM(double clat, double clong, double scale, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetTM(swigCPtr, clat, clong, scale, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetTMVariant(string pszVariantName, double clat, double clong, double scale, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetTMVariant(swigCPtr, pszVariantName, clat, clong, scale, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetTMG(double clat, double clong, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetTMG(swigCPtr, clat, clong, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetTMSO(double clat, double clong, double scale, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetTMSO(swigCPtr, clat, clong, scale, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetVDG(double clong, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetVDG(swigCPtr, clong, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetVerticalPerspective(double topoOriginLat, double topoOriginLon, double topoOriginHeight, double viewPointHeight, double fe, double fn) {
+ int ret = OsrPINVOKE.SpatialReference_SetVerticalPerspective(swigCPtr, topoOriginLat, topoOriginLon, topoOriginHeight, viewPointHeight, fe, fn);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetWellKnownGeogCS(string name) {
+ int ret = OsrPINVOKE.SpatialReference_SetWellKnownGeogCS(swigCPtr, name);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetFromUserInput(string name) {
+ int ret = OsrPINVOKE.SpatialReference_SetFromUserInput__SWIG_0(swigCPtr, name);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetFromUserInput(string name, string[] options) {
+ int ret = OsrPINVOKE.SpatialReference_SetFromUserInput__SWIG_1(swigCPtr, name, (options != null)? new OsrPINVOKE.StringListMarshal(options)._ar : null);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int CopyGeogCSFrom(SpatialReference rhs) {
+ int ret = OsrPINVOKE.SpatialReference_CopyGeogCSFrom(swigCPtr, SpatialReference.getCPtr(rhs));
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetTOWGS84(double p1, double p2, double p3, double p4, double p5, double p6, double p7) {
+ int ret = OsrPINVOKE.SpatialReference_SetTOWGS84(swigCPtr, p1, p2, p3, p4, p5, p6, p7);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public bool HasTOWGS84() {
+ bool ret = OsrPINVOKE.SpatialReference_HasTOWGS84(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int GetTOWGS84(double[] argout) {
+ int ret = OsrPINVOKE.SpatialReference_GetTOWGS84(swigCPtr, argout);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int AddGuessedTOWGS84() {
+ int ret = OsrPINVOKE.SpatialReference_AddGuessedTOWGS84(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetLocalCS(string pszName) {
+ int ret = OsrPINVOKE.SpatialReference_SetLocalCS(swigCPtr, pszName);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetGeogCS(string pszGeogName, string pszDatumName, string pszEllipsoidName, double dfSemiMajor, double dfInvFlattening, string pszPMName, double dfPMOffset, string pszUnits, double dfConvertToRadians) {
+ int ret = OsrPINVOKE.SpatialReference_SetGeogCS(swigCPtr, pszGeogName, pszDatumName, pszEllipsoidName, dfSemiMajor, dfInvFlattening, pszPMName, dfPMOffset, pszUnits, dfConvertToRadians);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetProjCS(string name) {
+ int ret = OsrPINVOKE.SpatialReference_SetProjCS(swigCPtr, name);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetGeocCS(string name) {
+ int ret = OsrPINVOKE.SpatialReference_SetGeocCS(swigCPtr, name);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetVertCS(string VertCSName, string VertDatumName, int VertDatumType) {
+ int ret = OsrPINVOKE.SpatialReference_SetVertCS(swigCPtr, VertCSName, VertDatumName, VertDatumType);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int SetCompoundCS(string name, SpatialReference horizcs, SpatialReference vertcs) {
+ int ret = OsrPINVOKE.SpatialReference_SetCompoundCS(swigCPtr, name, SpatialReference.getCPtr(horizcs), SpatialReference.getCPtr(vertcs));
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int ImportFromWkt(ref string ppszInput) {
+ int ret = OsrPINVOKE.SpatialReference_ImportFromWkt(swigCPtr, ref ppszInput);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int ImportFromProj4(string ppszInput) {
+ int ret = OsrPINVOKE.SpatialReference_ImportFromProj4(swigCPtr, ppszInput);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int ImportFromUrl(string url) {
+ int ret = OsrPINVOKE.SpatialReference_ImportFromUrl(swigCPtr, url);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int ImportFromESRI(string[] ppszInput) {
+ int ret = OsrPINVOKE.SpatialReference_ImportFromESRI(swigCPtr, (ppszInput != null)? new OsrPINVOKE.StringListMarshal(ppszInput)._ar : null);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int ImportFromEPSG(int arg) {
+ int ret = OsrPINVOKE.SpatialReference_ImportFromEPSG(swigCPtr, arg);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int ImportFromEPSGA(int arg) {
+ int ret = OsrPINVOKE.SpatialReference_ImportFromEPSGA(swigCPtr, arg);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int ImportFromPCI(string proj, string units, double[] argin) {
+ int ret = OsrPINVOKE.SpatialReference_ImportFromPCI(swigCPtr, proj, units, argin);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int ImportFromUSGS(int proj_code, int zone, double[] argin, int datum_code) {
+ int ret = OsrPINVOKE.SpatialReference_ImportFromUSGS(swigCPtr, proj_code, zone, argin, datum_code);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int ImportFromXML(string xmlString) {
+ int ret = OsrPINVOKE.SpatialReference_ImportFromXML(swigCPtr, xmlString);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int ImportFromERM(string proj, string datum, string units) {
+ int ret = OsrPINVOKE.SpatialReference_ImportFromERM(swigCPtr, proj, datum, units);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int ImportFromMICoordSys(string pszCoordSys) {
+ int ret = OsrPINVOKE.SpatialReference_ImportFromMICoordSys(swigCPtr, pszCoordSys);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int ImportFromOzi(string[] papszLines) {
+ int ret = OsrPINVOKE.SpatialReference_ImportFromOzi(swigCPtr, (papszLines != null)? new OsrPINVOKE.StringListMarshal(papszLines)._ar : null);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int ImportFromCF1(string[] keyValues, string units) {
+ int ret = OsrPINVOKE.SpatialReference_ImportFromCF1(swigCPtr, (keyValues != null)? new OsrPINVOKE.StringListMarshal(keyValues)._ar : null, units);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int ExportToWkt(out string argout, string[] options) {
+ int ret = OsrPINVOKE.SpatialReference_ExportToWkt(swigCPtr, out argout, (options != null)? new OsrPINVOKE.StringListMarshal(options)._ar : null);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int ExportToPrettyWkt(out string argout, int simplify) {
+ int ret = OsrPINVOKE.SpatialReference_ExportToPrettyWkt(swigCPtr, out argout, simplify);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int ExportToPROJJSON(out string argout, string[] options) {
+ int ret = OsrPINVOKE.SpatialReference_ExportToPROJJSON(swigCPtr, out argout, (options != null)? new OsrPINVOKE.StringListMarshal(options)._ar : null);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int ExportToProj4(out string argout) {
+ int ret = OsrPINVOKE.SpatialReference_ExportToProj4(swigCPtr, out argout);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int ExportToPCI(out string proj, out string units) {
+ int ret = OsrPINVOKE.SpatialReference_ExportToPCI(swigCPtr, out proj, out units);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int ExportToUSGS(out int code, out int zone, out int datum) {
+ int ret = OsrPINVOKE.SpatialReference_ExportToUSGS(swigCPtr, out code, out zone, out datum);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int ExportToERM(out string proj, out string datum, out string units) {
+ int ret = OsrPINVOKE.SpatialReference_ExportToERM(swigCPtr, out proj, out datum, out units);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int ExportToXML(out string argout, string dialect) {
+ int ret = OsrPINVOKE.SpatialReference_ExportToXML(swigCPtr, out argout, dialect);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int ExportToMICoordSys(out string argout) {
+ int ret = OsrPINVOKE.SpatialReference_ExportToMICoordSys(swigCPtr, out argout);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public SWIGTYPE_p_p_char ExportToCF1(string[] options) {
+ IntPtr cPtr = OsrPINVOKE.SpatialReference_ExportToCF1(swigCPtr, (options != null)? new OsrPINVOKE.StringListMarshal(options)._ar : null);
+ SWIGTYPE_p_p_char ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_p_char(cPtr, false, ThisOwn_false());
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public string ExportToCF1Units(string[] options) {
+ string ret = OsrPINVOKE.SpatialReference_ExportToCF1Units(swigCPtr, (options != null)? new OsrPINVOKE.StringListMarshal(options)._ar : null);
+ 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 SpatialReference Clone() {
+ IntPtr cPtr = OsrPINVOKE.SpatialReference_Clone(swigCPtr);
+ SpatialReference ret = (cPtr == IntPtr.Zero) ? null : new SpatialReference(cPtr, true, ThisOwn_true());
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int StripVertical() {
+ int ret = OsrPINVOKE.SpatialReference_StripVertical(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int Validate() {
+ int ret = OsrPINVOKE.SpatialReference_Validate(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int MorphToESRI() {
+ int ret = OsrPINVOKE.SpatialReference_MorphToESRI(swigCPtr);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int MorphFromESRI() {
+ int ret = OsrPINVOKE.SpatialReference_MorphFromESRI(swigCPtr);
+ 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 int PromoteTo3D(string name) {
+ int ret = OsrPINVOKE.SpatialReference_PromoteTo3D(swigCPtr, name);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ public int DemoteTo2D(string name) {
+ int ret = OsrPINVOKE.SpatialReference_DemoteTo2D(swigCPtr, name);
+ if (OsrPINVOKE.SWIGPendingException.Pending) throw OsrPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+}
+
+}
diff --git a/Geospatial/GDAL-Helpers/Raster.cs b/Geospatial/GDAL-Helpers/Raster.cs
new file mode 100644
index 0000000..8e27b45
--- /dev/null
+++ b/Geospatial/GDAL-Helpers/Raster.cs
@@ -0,0 +1,30 @@
+using OSGeo.GDAL;
+using OSGeo.OSR;
+
+namespace Geospatial.GDALHelpers;
+public class Raster
+{
+ public string FileName { get; set; }
+ private readonly Dataset dataset;
+
+ public Raster(string fileName)
+ {
+ FileName = fileName;
+ dataset = Gdal.Open(fileName, Access.GA_ReadOnly);
+ Console.WriteLine(dataset.RasterCount);
+ }
+
+ public SpatialReference GetProjection()
+ {
+ string wkt = dataset.GetProjectionRef();
+ SpatialReference spatialRef = new(null);
+ int res = spatialRef.ImportFromWkt(ref wkt);
+ if (res == 0)
+ {
+ return spatialRef;
+ } else
+ {
+ throw new Exception("Failed to get spatial reference");
+ }
+ }
+}
diff --git a/Geospatial/GDAL-Helpers/Vector.cs b/Geospatial/GDAL-Helpers/Vector.cs
new file mode 100644
index 0000000..0e628bc
--- /dev/null
+++ b/Geospatial/GDAL-Helpers/Vector.cs
@@ -0,0 +1,41 @@
+using OSGeo.OGR;
+using OSGeo.OSR;
+using USACE.HEC.Geography;
+
+namespace Geospatial.GDALHelpers;
+public class Vector
+{
+ public string FileName { get; set; }
+ private readonly DataSource datasource;
+ private readonly Layer layer;
+
+ public Vector(string fileName)
+ {
+ FileName = fileName;
+ datasource = Ogr.Open(fileName, 0);
+ layer = datasource.GetLayerByIndex(0);
+ }
+
+ public SpatialReference GetProjection()
+ {
+ return layer.GetSpatialRef();
+ }
+
+ public Location[] ToPoints()
+ {
+ List points = new();
+ Feature feature;
+ while ((feature = layer.GetNextFeature()) != null)
+ {
+ Geometry geometry = feature.GetGeometryRef();
+ if (geometry.GetGeometryType() == wkbGeometryType.wkbPoint)
+ {
+ Location pt = new();
+ pt.X = geometry.GetX(0);
+ pt.Y = geometry.GetY(0);
+ points.Add(pt);
+ }
+ }
+ return points.ToArray();
+ }
+}
diff --git a/Geospatial/Geospatial.csproj b/Geospatial/Geospatial.csproj
index bd8d374..6543d3d 100644
--- a/Geospatial/Geospatial.csproj
+++ b/Geospatial/Geospatial.csproj
@@ -1,32 +1,16 @@
-
- net8.0
- enable
- enable
- Library
-
-
-
-
-
-
-
+
+ net9.0
+ enable
+ true
+ true
+ Library
+ true
+
-
-
-
-
-
-
-
-
-
+
+
+
diff --git a/Geospatial/SpatialProcessor.cs b/Geospatial/OGR/SpatialProcessor.cs
similarity index 73%
rename from Geospatial/SpatialProcessor.cs
rename to Geospatial/OGR/SpatialProcessor.cs
index d4f1671..3ecd9de 100644
--- a/Geospatial/SpatialProcessor.cs
+++ b/Geospatial/OGR/SpatialProcessor.cs
@@ -1,21 +1,24 @@
-using System.Reflection;
+using System.Diagnostics.CodeAnalysis;
+using System.Reflection;
using System.Text.Json.Serialization;
using OSGeo.OGR;
using USACE.HEC.Consequences;
-namespace Geospatial;
+namespace Geospatial.OGR;
// process an OGR driver into a stream of IConsequenceReceptors and apply a consequenceReceptorProcess to each
public class SpatialProcessor : IStreamingProcessor
{
private DataSource _dataSource;
private Layer _layer;
- public SpatialProcessor(string filePath)
+ public SpatialProcessor(string filePath, int layerIndex = 0)
{
_dataSource = Ogr.Open(filePath, 0) ?? throw new Exception("Failed to create datasource.");
- _layer = _dataSource.GetLayerByIndex(0) ?? throw new Exception("Failed to create layer.");
+ // only one layer in the files we are dealing with
+ _layer = _dataSource.GetLayerByIndex(layerIndex) ?? throw new Exception("Failed to create layer.");
}
- public void Process(Action consequenceReceptorProcess) where T : IConsequencesReceptor, new()
+
+ public void Process<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties)] T>(Action consequenceReceptorProcess) where T : IConsequencesReceptor, new()
{
Feature feature;
while ((feature = _layer.GetNextFeature()) != null)
@@ -28,7 +31,7 @@ public SpatialProcessor(string filePath)
{
// IConsequenceReceptors' properties must have the JsonPropertyName tag
// JsonPropertyNames must match the corresponding field names in the driver for a given property
- JsonPropertyNameAttribute? jsonPropertyAttribute = property.GetCustomAttribute();
+ JsonPropertyNameAttribute jsonPropertyAttribute = property.GetCustomAttribute();
string fieldName = jsonPropertyAttribute != null ? jsonPropertyAttribute.Name : property.Name;
// read values from the driver into their corresponding properties in the IConsequencesReceptor
@@ -36,7 +39,7 @@ public SpatialProcessor(string filePath)
property.SetValue(consequenceReceptor, feature.GetFieldAsInteger(fieldName));
else if (property.PropertyType == typeof(long))
property.SetValue(consequenceReceptor, feature.GetFieldAsInteger64(fieldName));
- else if (property.PropertyType == typeof(double))
+ else if (property.PropertyType == typeof(double))
property.SetValue(consequenceReceptor, feature.GetFieldAsDouble(fieldName));
else if (property.PropertyType == typeof(float))
property.SetValue(consequenceReceptor, (float)feature.GetFieldAsDouble(fieldName));
diff --git a/Geospatial/OGR/SpatialWriter.cs b/Geospatial/OGR/SpatialWriter.cs
new file mode 100644
index 0000000..cb01a1d
--- /dev/null
+++ b/Geospatial/OGR/SpatialWriter.cs
@@ -0,0 +1,133 @@
+using OSGeo.OGR;
+using OSGeo.OSR;
+using USACE.HEC.Results;
+
+namespace Geospatial.OGR;
+
+
+public class SpatialWriter : IResultsWriter
+{
+ private Layer _layer;
+ private DataSource _dataSource;
+ private SpatialReference _srs;
+ private SpatialReference _dst;
+ private bool _headersWritten;
+ private string _xField;
+ private string _yField;
+
+ ///
+ /// SpatialWriter writes spatial results data. X and Y Fields are the ResultItem names of the x and y coordinates. We demand the types for the coordinates to be doubles.
+ ///
+ public SpatialWriter(string outputPath, string driverName, int sourceEPSG, int projection, string xField, string yField)
+ {
+ _dataSource = Ogr.GetDriverByName(driverName).CreateDataSource(outputPath, null) ?? throw new Exception("Failed to create data source.");
+ _srs = new SpatialReference("");
+ _srs.ImportFromEPSG(sourceEPSG);
+ if (_srs == null) throw new Exception("Failed to create SpatialReference.");
+ _dst = new SpatialReference("");
+ _dst.ImportFromEPSG(projection);
+ if (_dst == null) throw new Exception("Failed to create SpatialReference.");
+
+ _layer = _dataSource.CreateLayer("layer_name", _dst, wkbGeometryType.wkbPoint, null) ?? throw new Exception("Failed to create layer.");
+
+ _headersWritten = false;
+
+ _xField = xField;
+ _yField = yField;
+ }
+
+ public void Write(Result res)
+ {
+ if (!_headersWritten)
+ {
+ InitializeFields(res);
+ _headersWritten = true;
+ }
+
+ using Feature feature = new Feature(_layer.GetLayerDefn());
+ using Geometry geometry = new Geometry(wkbGeometryType.wkbPoint);
+ // demand doubles for the coordinates
+ double x = (double)res.Fetch(_xField).ResultValue;
+ double y = (double)res.Fetch(_yField).ResultValue;
+ geometry.AddPoint(y, x, 0);
+ // transform the coordinates according to the specified projection
+ var ct = new CoordinateTransformation(_srs, _dst);
+ geometry.Transform(ct);
+ feature.SetGeometry(geometry);
+
+ for (int i = 0; i < _layer.GetLayerDefn().GetFieldCount(); i++)
+ {
+ string fieldName = _layer.GetLayerDefn().GetFieldDefn(i).GetName();
+ object val = res.Fetch(fieldName).ResultValue;
+ SetField(feature, fieldName, val);
+ }
+ _layer.CreateFeature(feature);
+ }
+
+
+ // create fields of the appropriate types
+ private void InitializeFields(Result res)
+ {
+ foreach (ResultItem item in res.ResultItems)
+ switch (item.ResultValue)
+ {
+ case int _:
+ _layer.CreateField(new FieldDefn(item.ResultName, FieldType.OFTInteger), 1);
+ break;
+ case long _:
+ _layer.CreateField(new FieldDefn(item.ResultName, FieldType.OFTInteger64), 1);
+ break;
+ case double _ or float _:
+ _layer.CreateField(new FieldDefn(item.ResultName, FieldType.OFTReal), 1);
+ break;
+ case string _:
+ _layer.CreateField(new FieldDefn(item.ResultName, FieldType.OFTString), 1);
+ break;
+ case DateOnly _:
+ _layer.CreateField(new FieldDefn(item.ResultName, FieldType.OFTDate), 1);
+ break;
+ case TimeOnly _:
+ _layer.CreateField(new FieldDefn(item.ResultName, FieldType.OFTTime), 1);
+ break;
+ case DateTime _:
+ _layer.CreateField(new FieldDefn(item.ResultName, FieldType.OFTDateTime), 1);
+ break;
+ default:
+ // for case of a null string
+ _layer.CreateField(new FieldDefn(item.ResultName, FieldType.OFTString), 1);
+ break;
+ }
+ }
+
+ private static void SetField(Feature feature, string fieldName, object val)
+ {
+ switch (val)
+ {
+ case int _:
+ feature.SetField(fieldName, (int)val);
+ break;
+ case long _:
+ feature.SetField(fieldName, (long)val);
+ break;
+ case double _:
+ feature.SetField(fieldName, (double)val);
+ break;
+ case float _:
+ feature.SetField(fieldName, (float)val);
+ break;
+ case string _:
+ feature.SetField(fieldName, (string)val);
+ break;
+ case null:
+ feature.SetField(fieldName, null);
+ break;
+ default:
+ throw new NotSupportedException($"{val.GetType()} not implemented");
+ }
+ }
+
+ public void Dispose()
+ {
+
+ }
+}
diff --git a/Geospatial/OGR/Utilities.cs b/Geospatial/OGR/Utilities.cs
new file mode 100644
index 0000000..2433424
--- /dev/null
+++ b/Geospatial/OGR/Utilities.cs
@@ -0,0 +1,27 @@
+using OSGeo.GDAL;
+using OSGeo.OGR;
+using OSGeo.OSR;
+
+namespace Geospatial.OGR;
+public class Utilities
+{
+ public static void InitializeGDAL()
+ {
+ Ogr.RegisterAll();
+ Gdal.AllRegister();
+ }
+
+ public static void InitializeGDAL(string path)
+ {
+ string paths = path + @"\bin64\;";
+ Environment.SetEnvironmentVariable("PATH", paths + Environment.GetEnvironmentVariable("PATH"));
+ string dataDir = path + @"\common\data\;";
+ Environment.SetEnvironmentVariable("GDAL_DATA", dataDir);
+ Gdal.SetConfigOption("GDAL_DATA", dataDir);
+ Environment.SetEnvironmentVariable("PROJ_LIB", dataDir);
+ Gdal.SetConfigOption("PROJ_LIB", dataDir);
+ Ogr.RegisterAll();
+ Gdal.AllRegister();
+ }
+}
+
diff --git a/Geospatial/SpatialWriter.cs b/Geospatial/SpatialWriter.cs
deleted file mode 100644
index 6f642ff..0000000
--- a/Geospatial/SpatialWriter.cs
+++ /dev/null
@@ -1,107 +0,0 @@
-using OSGeo.OGR;
-using OSGeo.OSR;
-using USACE.HEC.Results;
-
-namespace Geospatial;
-
-
-public class SpatialWriter : IResultsWriter
-{
- private Layer? _layer;
- private DataSource? _dataSource;
- private SpatialReference? _srs;
- private SpatialReference? _dst;
- private bool _headersWritten;
- public delegate void FieldTypeDelegate(Feature layer, string fieldName, object value);
- private FieldTypeDelegate? _fieldTypeDelegate;
-
- public SpatialWriter(string outputPath, string driverName, int projection, FieldTypeDelegate fieldTypeDelegate)
- {
- _dataSource = Ogr.GetDriverByName(driverName).CreateDataSource(outputPath, null) ?? throw new Exception("Failed to create data source.");
- _srs = new SpatialReference("");
- _srs.ImportFromEPSG(4326); // WGS84
- if (_srs == null) throw new Exception("Failed to create SpatialReference.");
- _dst = new SpatialReference("");
- _dst.ImportFromEPSG(projection);
- if (_dst == null) throw new Exception("Failed to create SpatialReference.");
-
- _layer = _dataSource.CreateLayer("layer_name", _dst, wkbGeometryType.wkbPoint, null) ?? throw new Exception("Failed to create layer.");
-
- _headersWritten = false;
- _fieldTypeDelegate = fieldTypeDelegate;
- }
-
- public void Write(Result res)
- {
- if (_layer == null || _fieldTypeDelegate == null)
- {
- return;
- }
- if (!_headersWritten)
- {
- InitializeFields(_layer, res);
- _headersWritten= true;
- }
-
- using Feature feature = new Feature(_layer.GetLayerDefn());
- using Geometry geometry = new Geometry(wkbGeometryType.wkbPoint);
- double x = (double)res.Fetch("x").Result;
- double y = (double)res.Fetch("y").Result;
- geometry.AddPoint(y, x, 0);
- // transform the coordinates according to the specified projection
- CoordinateTransformation ct = new CoordinateTransformation(_srs, _dst);
- geometry.Transform(ct);
- feature.SetGeometry(geometry);
-
- for (int i = 0; i < _layer.GetLayerDefn().GetFieldCount(); i++)
- {
- string fieldName = _layer.GetLayerDefn().GetFieldDefn(i).GetName();
- object val = res.Fetch(fieldName).Result;
- // assign value to field according to the result's field type mappings defined in _fieldTypeDelegate
- _fieldTypeDelegate(feature, fieldName, val);
- }
- _layer.CreateFeature(feature);
- }
-
-
- // create fields of the appropriate types
- private static void InitializeFields(Layer layer, Result res)
- {
- foreach (ResultItem item in res.ResultItems)
- {
- switch (item.Result)
- {
- case int _:
- layer.CreateField(new FieldDefn(item.ResultName, FieldType.OFTInteger), 1);
- break;
- case long _:
- layer.CreateField(new FieldDefn(item.ResultName, FieldType.OFTInteger64), 1);
- break;
- case double _ or float _:
- layer.CreateField(new FieldDefn(item.ResultName, FieldType.OFTReal), 1);
- break;
- case string _:
- layer.CreateField(new FieldDefn(item.ResultName, FieldType.OFTString), 1);
- break;
- case DateOnly _:
- layer.CreateField(new FieldDefn(item.ResultName, FieldType.OFTDate), 1);
- break;
- case TimeOnly _:
- layer.CreateField(new FieldDefn(item.ResultName, FieldType.OFTTime), 1);
- break;
- case DateTime _:
- layer.CreateField(new FieldDefn(item.ResultName, FieldType.OFTDateTime), 1);
- break;
- default:
- // for case of a null string
- layer.CreateField(new FieldDefn(item.ResultName, FieldType.OFTString), 1);
- break;
- }
- }
- }
-
- public void Dispose()
- {
-
- }
-}
diff --git a/Geospatial/Utilities.cs b/Geospatial/Utilities.cs
deleted file mode 100644
index 0de32b7..0000000
--- a/Geospatial/Utilities.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-using OSGeo.OGR;
-using OSGeo.OSR;
-
-namespace Geospatial;
-public class Utilities
-{
- public static void StructureFieldTypes(Feature feature, string fieldName, object value)
- {
- switch (fieldName)
- {
- case "fd_id" or "num_story" or "pop2pmo65" or "pop2pmu65" or "pop2amo65" or "pop2amu65":
- feature.SetField(fieldName, (int)value);
- break;
- case "x" or "y" or "ground_elv" or "val_struct" or "val_cont" or "found_ht":
- feature.SetField(fieldName, (double)value);
- break;
- case "st_damcat" or "cbfips" or "occtype" or "found_type" or "firmzone" or "bldgtype":
- feature.SetField(fieldName, (string)value);
- break;
- }
- }
-
- public static void InitializeGDAL()
- {
- GDALAssist.GDALSetup.InitializeMultiplatform();
- }
-}
-
diff --git a/ScratchPaper/Program.cs b/ScratchPaper/Program.cs
index 5c4acac..cc2d64b 100644
--- a/ScratchPaper/Program.cs
+++ b/ScratchPaper/Program.cs
@@ -1,41 +1,56 @@
using USACE.HEC.Consequences;
using USACE.HEC.Geography;
-using Geospatial;
using USACE.HEC.Results;
+using Geospatial.OGR;
+using Geospatial.GDALHelpers;
+using OSGeo.OSR;
-internal class Program
+internal class Program2
{
private async static Task Main(string[] args)
{
- Geospatial.Utilities.InitializeGDAL();
+ Geospatial.OGR.Utilities.InitializeGDAL(@"C:\Users\HEC\Downloads\jack_GDAL\GDAL");
+
+ Raster r = new("C:\\Users\\HEC\\Documents\\RAS Projects\\Berryessa 2025 Dambreak\\Terrains\\Terrain.Terrain.USGS_13_n39w122_20240313.tif");
+ SpatialReference s = r.GetProjection();
+ Vector v = new(@"C:\repos\consequences\EventTest\generated\layer_name.shp");
+ SpatialReference s2 = v.GetProjection();
+ CoordinateTransformation transformation = new CoordinateTransformation(s2, s);
+
+ double longitude = -153722.33;
+ double latitude = 62089.46;
+
+ // Reproject the point
+ double[] point = { longitude, latitude }; // {longitude, latitude, 0} (3rd value is z-coordinate)
+
+ // Transform the point
+ transformation.TransformPoint(point);
+ Console.WriteLine(point[0]);
+ Console.WriteLine(point[1]);
+
+
// city blocks in Sunset District, SF
Location upperLeft1 = new Location { X = -122.48, Y = 37.76 };
- Location lowerRight1 = new Location { X = -122.47, Y = 37.75 };
+ Location lowerRight1 = new Location { X = -122.479, Y = 37.759 };
BoundingBox boundingBox1 = new BoundingBox(upperLeft1, lowerRight1);
-
Location upperLeft2 = new Location { X = -121.74, Y = 38.58 };
Location lowerRight2 = new Location { X = -121.70, Y = 38.54 };
BoundingBox boundingBox2 = new BoundingBox(upperLeft2, lowerRight2);
NSIStreamingProcessor sp = new NSIStreamingProcessor();
- string filePath = @"C:\repos\consequences\ScratchPaper\generated";
-
- using SpatialWriter c = new SpatialWriter(filePath, "ESRI Shapefile", 3310, Geospatial.Utilities.StructureFieldTypes);
+ //string filePath = @"C:\repos\consequences\ScratchPaper\generated";
+ //using SpatialWriter c = new SpatialWriter(filePath, "ESRI Shapefile", 4326, 3310, "x", "y");
int count = 0;
-
- await sp.Process(boundingBox2, (IConsequencesReceptor s) => {
- //Console.WriteLine(((Structure)s).Name);
- Result res = USACE.HEC.Results.Utilities.ConsequenceReceptorToResult(s);
- c.Write(res);
+ await sp.Process(boundingBox1, (IConsequencesReceptor s) => {
+ Console.WriteLine(((Structure)s).Name);
+ //Result res = USACE.HEC.Results.Utilities.ConsequenceReceptorToResult(s);
+ //c.Write(res);
count++;
});
Console.WriteLine(count);
- Console.Read();
-
- //Read();
}
public static void Read()
diff --git a/ScratchPaper/ScratchPaper.csproj b/ScratchPaper/ScratchPaper.csproj
index f8e44dd..1d2af20 100644
--- a/ScratchPaper/ScratchPaper.csproj
+++ b/ScratchPaper/ScratchPaper.csproj
@@ -1,15 +1,15 @@
-
- Exe
- net8.0
- enable
- enable
-
+
+ Exe
+ net9.0
+ enable
+
-
-
-
-
+
+
+
+
+
diff --git a/ScratchPaper/generated/layer_name.dbf b/ScratchPaper/generated/layer_name.dbf
deleted file mode 100644
index 73ed1a1..0000000
Binary files a/ScratchPaper/generated/layer_name.dbf and /dev/null differ
diff --git a/ScratchPaper/generated/layer_name.prj b/ScratchPaper/generated/layer_name.prj
deleted file mode 100644
index 1ad08cd..0000000
--- a/ScratchPaper/generated/layer_name.prj
+++ /dev/null
@@ -1 +0,0 @@
-PROJCS["NAD_1983_California_Teale_Albers",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Albers"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",-4000000.0],PARAMETER["Central_Meridian",-120.0],PARAMETER["Standard_Parallel_1",34.0],PARAMETER["Standard_Parallel_2",40.5],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]
\ No newline at end of file
diff --git a/ScratchPaper/generated/layer_name.shp b/ScratchPaper/generated/layer_name.shp
deleted file mode 100644
index 223c4d2..0000000
Binary files a/ScratchPaper/generated/layer_name.shp and /dev/null differ
diff --git a/ScratchPaper/generated/layer_name.shx b/ScratchPaper/generated/layer_name.shx
deleted file mode 100644
index 64f0660..0000000
Binary files a/ScratchPaper/generated/layer_name.shx and /dev/null differ