get_DSInstancePtr Method

WRAPPER_API void *get_DSInstancePtr() const {return m_Inner;}

 

Description

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.

 

Example

        GeoCalcPBW::GeoBase* pbwBase = new GeoCalcPBW::GeoBase();
        GeoCalcPBW::DataSource* pbwDS = new GeoCalcPBW::DataSource();

        pbwDS->LoadFile("c:\\bmg\\geocalcpbw\\data\\geocalc.xml"); 
      
        BCoordSysRepository::Instance()->SetDSInstancePtr(pbwDS->GetDSInstancePtr());