27 "ossimLandsatTileSource",
30 static ossimTrace traceDebug(
"ossimLandsatTileSource:debug");
68 static const char MODULE[] =
"ossimLandsatTileSource::open";
72 CLOG <<
" Entered..." << std::endl
92 vector<ossimFilename> fileList;
135 CLOG <<
"\nAdding file: " << f2 << std::endl;
147 CLOG <<
"\nCould not find: " << f2 << std::endl;
153 if(fileList.size() == 0)
168 if(fileList.size() == 1)
192 if (traceDebug())
CLOG <<
" Exited..." << std::endl;
196 if (traceDebug())
CLOG <<
" Exited..." << std::endl;
217 else if (hdr.
contains(
"header.dat"))
247 <<
"ossimLandsatTileSource::openHeader DEBUG:" 248 <<
"\nNot a standard landsat 7 file name: " << hdr << std::endl;
254 const char* f = hdr.
c_str();
255 strncpy(substr, (f+22), 3);
264 else if (s1 ==
"b61" || s1 ==
"b62")
268 else if (s1 ==
"b10" || s1 ==
"b20" || s1 ==
"b30" ||
269 s1 ==
"b40" || s1 ==
"b50" || s1 ==
"b70")
279 <<
"ossimLandsatTileSource::openHeader DEBUG:" 280 <<
"\nCould not derive header name from: " << file
288 if (substr[0] == 0x42)
393 if(name ==
"file_type")
409 if ( result.
valid() == false )
418 std::vector<ossimString>& propertyNames)
const 420 propertyNames.push_back(
"file_type");
485 filename = filename.
trim();
static ossimImageGeometryRegistry * instance()
ossimRefPtr< ossimImageGeometry > theGeometry
ossimString substitute(const ossimString &searchKey, const ossimString &replacementValue, bool replaceAll=false) const
Substitutes searchKey string with replacementValue and returns a string.
int getLinesPerBand() const
void setProjection(ossimProjection *projection)
Sets the projection to be used for local-to-world coordinate transformation.
static ossimString upcase(const ossimString &aString)
ossimFilename theImageFile
virtual bool open()
Pure virtual open.
Represents serializable keyword/value map.
static const ossimErrorCode OSSIM_OK
const char * find(const char *key) const
virtual unsigned int getBandCount() const
virtual ossimRefPtr< ossimProperty > getProperty(const ossimString &name) const
Gets a property for matching name.
int getPixelsPerLine() const
bool contains(char aChar) const
ossimString getSatelliteName() const
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
static const ossimErrorCode OSSIM_ERROR
virtual ossimString getShortName() const
virtual ossimRefPtr< ossimImageGeometry > getImageGeometry()
Returns the image geometry object associated with this tile source or NULL if non defined...
virtual ossimScalarType getOutputScalarType() const
Returns the output pixel type of the tile source.
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 double getNullPixelValue(ossim_uint32 band=0) const
Override base getXXXXPixValue methods since the null/min/max can be set to something different...
virtual bool extendGeometry(ossimImageHandler *handler) const
ossimFilename getBandFilename(ossim_uint32 idx) const
virtual void getPropertyNames(std::vector< ossimString > &propertyNames) const
Gets a list of property names available.
void push_back(char c)
Equivalent to insert(end(), c).
virtual void getPropertyNames(std::vector< ossimString > &propertyNames) const
#define RTTI_DEF1_INST(cls, name, b1)
virtual const ossimFilename & getFilename() const
Returns the filename.
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=NULL)
Method to the load (recreate) the state of an object from a keyword list.
std::string::size_type size() const
unsigned int ossim_uint32
ossimString trim(const ossimString &valueToTrim=ossimString(" \\)) const
this will strip lead and trailing character passed in.
ossimRefPtr< ossimFfL7 > theFfHdr
static ossimString downcase(const ossimString &aString)
ossimErrorCode theErrorStatus
void initImageParameters(ossimImageGeometry *geom) const
Convenience method to set things needed in the image geometry from the image handler.
virtual double getMaxPixelValue(ossim_uint32 band=0) const
Returns the max pixel of the band.
virtual void close()
Deletes the overview and clears the valid image vertices.
ossimFilename getBandFilename(ossim_uint32 idx) const
Container class that holds both 2D transform and 3D projection information for an image Only one inst...
bool getAcquisitionDate(ossimDate &date) const
virtual ossimRefPtr< ossimImageGeometry > getExternalImageGeometry() const
Returns the image geometry object associated with this tile source or NULL if non defined...
virtual ossimRefPtr< ossimProperty > getProperty(const ossimString &name) const
virtual void getPropertyNames(std::vector< ossimString > &propertyNames) const
Gets a list of property names available.
const ossimProjection * getProjection() const
Access methods for projection (may be NULL pointer).
virtual void completeOpen()
Will complete the opening process.
ossimImageMetaData theMetaData
ossimString getSatelliteName() const
virtual ossimErrorCode getErrorStatus() const
virtual ossimRefPtr< ossimProperty > getProperty(const ossimString &name) const
Gets a property for matching name.
virtual ossimString getLongName() const
ossimFilename dirCat(const ossimFilename &file) const
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string's contents...
ossimFilename file() const
ossimString getAcquisitionDate() const
virtual double getMinPixelValue(ossim_uint32 band=0) const
Retuns the min pixel value.
static const char * FILENAME_KW
virtual ~ossimLandsatTileSource()
ossimFilename path() const
ossimFilename drive() const
ossimGeneralRasterInfo m_rasterInfo
void openHeader(const ossimFilename &file)
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
virtual ossim_uint32 getNumberOfInputBands() const
Returns the number of bands in the image.