26 "ossimEnviTileSource",
29 static ossimTrace traceDebug(
"ossimEnviTileSource:debug");
44 static const char MODULE[] =
"ossimEnviTileSource::open";
48 << MODULE <<
" entered..." 49 <<
"\nimage file: " << theImageFile << std::endl;
75 if ( m_enviHdr.open( hdr ) )
77 if ( m_rasterInfo.initializeFromEnviHdr( m_enviHdr ) )
80 m_rasterInfo.setImageFile( theImageFile );
99 m_rasterInfo.getImageMetaData().updateMetaData( kwl, std::string(
"") );
102 theMetaData = m_rasterInfo.getImageMetaData();
104 result = initializeHandler();
114 setDefaultBandList();
123 << MODULE <<
" Exit status: " << (result?
"true":
"false") << std::endl;
138 theGeometry = getExternalImageGeometry();
143 theGeometry = getInternalImageGeometry();
155 if ( theGeometry.valid()&&!theGeometry->getProjection() )
163 initImageParameters( theGeometry.get() );
171 static const char MODULE[] =
"ossimEnviTileSource::getInternalImageGeometry";
186 if (supData->
isHSI())
213 const char* prefix)
const 227 if(name ==
"file_type")
236 std::vector<ossimString>& propertyNames)
const 239 propertyNames.push_back(
"file_type");
259 result = m_enviHdr.getDefaultBands( bandList );
261 if ( !result && ( getNumberOfInputBands() > 2 ) )
271 if ( bandList.size() != 3 )
281 if ( isBandSelector() )
283 std::vector<ossim_uint32> bandList;
284 if ( getRgbBandList( bandList ) )
286 if ( bandList.size() )
293 if ( m_outputBandList.empty() )
virtual bool readSupportFiles(const ossimFilename &hdrFile)
static ossimImageGeometryRegistry * instance()
void setProjection(ossimProjection *projection)
Sets the projection to be used for local-to-world coordinate transformation.
virtual ossimString getLongName() const
Represents serializable keyword/value map.
void setDefaultBandList()
Sets default output band list if we are a band selector and "default bands" is found in the header fi...
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=NULL)
Method to the load (recreate) the state of an object from a keyword list.
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save the state of an object to a keyword list.
virtual void getPropertyNames(std::vector< ossimString > &propertyNames) const
Adds property names to array.
virtual ossimRefPtr< ossimImageGeometry > getImageGeometry()
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of an object from a keyword list.
virtual bool extendGeometry(ossimImageHandler *handler) const
virtual ossimRefPtr< ossimProperty > getProperty(const ossimString &name) const
Gets a property.
virtual void getPropertyNames(std::vector< ossimString > &propertyNames) const
virtual void getOutputBandList(std::vector< ossim_uint32 > &bandList) const
Initializes bandList.
bool getRgbBands(std::vector< ossim_uint32 > &bands) const
Gets rgb bands if "wavelength" keyword is present.
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save the state of an object to a keyword list.
ossimEnviTileSource()
default constructor
virtual bool open()
open method.
Container class that holds both 2D transform and 3D projection information for an image Only one inst...
virtual bool initialize(const ossimAlphaSensorSupportData &supData)
Initializes model from support data and calls update Model on success.
virtual ossimRefPtr< ossimProperty > getProperty(const ossimString &name) const
virtual ~ossimEnviTileSource()
Hidden from use destructor.
ossimRefPtr< ossimImageGeometry > getInternalImageGeometry() const
Creates geometry from known support data, i.e.
virtual ossimString getShortName() const
virtual bool initialize(const ossimAlphaSensorSupportData &supData)
Initializes model from support data and calls update Model on success.
#define RTTI_DEF1(cls, name, b1)
ossimFilename & setExtension(const ossimString &e)
Sets the extension of a file name.
virtual bool setOutputBandList(const std::vector< ossim_uint32 > &band_list)
If the image handler "isBandSeletor()" then the band selection of the output chip can be controlled...
virtual bool getRgbBandList(std::vector< ossim_uint32 > &bandList) const
Get the zero based rgb output band list from envi header.
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
const std::string & string() const
bool initialize(const ossimEnviHeader &hdr)
Initializes map from ENVI header class.