set_DSInstancePtr Method

WRAPPER_API void set_DSInstancePtr(void *value)

 

Description

This function is used for cross Library development. It takes a pointer to an already created Datasource object.  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

         BCoordSysRepository::Instance()->Load(dataSourceFile);

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

        pbwDS->set_DSInstancePtr(BCoordSysRepository::Instance()->GetDSInstancePtr());