Public Function GetDSInstancePtr() As System.IntPtr
public System:.IntPtr GetDSInstancePtr();
This function is used for cross Library development. It returns a pointer to the current datasource that can passed to a "set" function in another Blue Marble Geographics geodetic processing library. If you are using the GeoTransform raster image library, or the GeoTranslate vector processing library, it is possible to share the same GeoCalc datasource. This allows you to manage and maintain coordinate systems from multiple application in one central repository.
Private Sub GeoCalcNET_DataSourceComponent()
Dim data1 As New GeoCalcNET.DataSourceComponent
Dim data2 As New GeoCalcNET.DataSourceComponent
data1.LoadFile("C:\bmg\GeoCalcNET\data\GeoData.xml")
data2.SetDSInstancePtr(data1.GetDSInstancePtr)
End Sub
private void GeoCalcNET_DataSourceComponent()
{
GeoCalcNET.DataSourceComponent data1 = new
GeoCalcNET.DataSourceComponent();
GeoCalcNET.DataSourceComponent data2 = new GeoCalcNET.DataSourceComponent();
data1.LoadFile("C:\bmg\GeoCalcNET\data\GeoData.xml");
data2.SetDSInstancePtr(data1.GetDSInstancePtr);
}