54 return factoryInstance;
60 static const char MODULE[] =
"ossimPluginProjectionFactory::createProjection(ossimFilename& filename)";
67 << MODULE <<
" DEBUG: testing ossimRadarSat2Model" << std::endl;
73 if ( model->open(filename) )
76 projection = model->getReplacementOcgModel().
get();
77 if (projection.
valid())
80 projection = model.
get();
91 << MODULE <<
" DEBUG: testing ossimPleiadesModel" << std::endl;
98 if ( model->open(filename) )
100 projection = model.
get();
111 << MODULE <<
" DEBUG: testing ossimTerraSarModel" << std::endl;
118 if ( model->open(filename) )
121 projection = model->getReplacementOcgModel().
get();
122 if (projection.
valid())
125 projection = model.
get();
136 << MODULE <<
" DEBUG: testing ossimErsSarModel" << std::endl;
142 if ( model->open(filename) )
144 projection = model.
get();
155 << MODULE <<
" DEBUG: testing ossimEnvisatSarModel" << std::endl;
161 if (model->open(filename))
163 projection = model.
get();
174 << MODULE <<
" DEBUG: testing ossimRadarSatModel" << std::endl;
180 if (model->open(filename))
182 projection = model.
get();
193 << MODULE <<
" DEBUG: testing ossimAlosPalsarModel" << std::endl;
199 if (model->open(filename))
201 projection = model.
get();
212 << MODULE <<
" DEBUG: testing ossimFormosatModel" << std::endl;
217 if(!formosatTest.
exists())
219 formosatTest = filename.
path();
221 if (formosatTest.
exists() ==
false)
223 formosatTest = filename.
path();
236 if ( (baseName !=
"icon.jpg" ) && ( baseName !=
"preview.jpg" ) )
243 if(!model->getErrorStatus())
245 projection = model.
get();
256 << MODULE <<
" DEBUG: testing ossimTileMapModel" << std::endl;
262 if (model->open(filename))
264 projection = model.
get();
275 << MODULE <<
" DEBUG: testing ossimSpot6Model" << std::endl;
282 if ( model->open(filename) )
284 projection = model.
get();
321 static const char MODULE[] =
"ossimPluginProjectionFactory::createProjection(ossimString& name)";
326 << MODULE <<
" DEBUG: Entering ...." << std::endl;
384 << MODULE <<
" DEBUG: Leaving ...." << std::endl;
394 static const char MODULE[] =
"ossimPluginProjectionFactory::createProjection(ossimKeywordlist& kwl)";
399 << MODULE <<
" DEBUG: Start ...." << std::endl;
407 if (type ==
"ossimRadarSat2Model")
415 else if (type ==
"ossimTerraSarModel")
423 else if (type ==
"ossimErsSarModel")
431 else if (type ==
"ossimEnvisatAsarModel")
439 else if (type ==
"ossimRadarSatModel")
447 else if (type ==
"ossimAlosPalsarModel")
455 else if (type ==
"ossimFormosatModel")
463 else if (type ==
"ossimTileMapModel")
471 else if (type ==
"ossimPleiadesModel")
479 else if (type ==
"ossimSpot6Model")
505 << MODULE <<
" DEBUG: End ...." << std::endl;
551 if(temp.
ext()==
"otb")
555 else if(os ==
"http")
This class is able to direct localisation and indirect localisation using the AlosPalsar sensor model...
virtual void getTypeNameList(std::vector< ossimString > &typeList) const
Represents serializable keyword/value map.
const char * find(const char *key) const
This class is able to direct localisation and indirect localisation using the RadarSat sensor model...
This class allows for direct localisation and indirect localisation using the TerraSar sensor model...
bool isTileMap(const ossimFilename &filename) const
static const char * TYPE_KW
#define STATIC_TYPE_NAME(T)
ossimPluginProjectionFactory()
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
static ossimPluginProjectionFactory * instance()
unsigned int ossim_uint32
static ossimString downcase(const ossimString &aString)
virtual ossimProjection * createProjection(const ossimFilename &filename, ossim_uint32 entryIdx) const
takes a filename.
This class is able to direct localisation and indirect localisation using the EnvisatAsar sensor mode...
This class allows for direct localisation and indirect localisation using the RadarSat2 sensor model...
ossimFilename dirCat(const ossimFilename &file) const
ossimString beforePos(std::string::size_type pos) const
virtual ossimObject * createObject(const ossimString &typeName) const
ossimFilename file() const
ossimFilename & setExtension(const ossimString &e)
Sets the extension of a file name.
ossimFilename path() const
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)