Esempio n. 1
0
ossimUtility* ossimUtilityFactory::createUtility(const std::string& argName) const
{
   ossimString utilName (argName);
   utilName.downcase();

   if ((utilName == "info") || (argName == "ossimInfo"))
      return new ossimInfo;

   if ((utilName == "hillshade") || (argName == "ossimHillshadeUtil"))
      return new ossimHillshadeUtil;

   if ((utilName == "viewshed") || (argName == "ossimViewshedUtil"))
      return new ossimViewshedUtil;

   if ((utilName == "slope") || (argName == "ossimSlopeUtil"))
      return new ossimSlopeUtil;

   if ((utilName == "hlz") || (argName == "ossimHlzUtil"))
      return new ossimHlzUtil;

   if ((utilName == "shoreline") || (argName == "ossimShorelineUtil"))
      return new ossimShorelineUtil;

   if ((utilName == "ortho") || (argName == "ossimOrthoUtil"))
      return new ossimOrthoUtil;

   if ((utilName == "vertices") || (argName == "ossimVerticesFinderUtil"))
      return new ossimVerticesFinderUtil;

   if ((utilName == "bandmerge") || (argName == "ossimBandMergeUtil"))
      return new ossimBandMergeUtil;

   return 0;
}
Esempio n. 2
0
ossimTool* ossimToolFactory::createUtility(const std::string& argName) const
{
   ossimString utilName (argName);
   utilName.downcase();

   if ((utilName == "info") || (argName == "ossimInfo"))
      return new ossimInfo;

   if ((utilName == "hillshade") || (argName == "ossimHillshadeTool"))
      return new ossimHillshadeTool;

   if ((utilName == "viewshed") || (argName == "ossimViewshedTool"))
      return new ossimViewshedTool;

   if ((utilName == "slope") || (argName == "ossimSlopeTool"))
      return new ossimSlopeTool;

   if ((utilName == "hlz") || (argName == "ossimHlzTool"))
      return new ossimHlzTool;

   if ((utilName == "shoreline") || (argName == "ossimShorelineTool"))
      return new ossimShorelineTool;

   if ((utilName == "ortho") || (argName == "ossimOrthoTool"))
      return new ossimOrthoTool;

   if ((utilName == "vertices") || (argName == "ossimVerticesFinderTool"))
      return new ossimVerticesFinderTool;

   if ((utilName == "bandmerge") || (argName == "ossimBandMergeTool"))
      return new ossimBandMergeTool;

#if OSSIM_HAS_HDF5
   if ((utilName == "hdf5") || (argName == "ossimHdf5Tool"))
      return new ossimHdf5Tool;
#endif

   return 0;
}