29 static const char PRODUCT_XML_FILE_KW[] =
"product_xml_filename";
34 "ossimRadarSat2TiffReader",
38 #ifdef OSSIM_ID_ENABLED 39 static const char OSSIM_ID[] =
"$Id$";
42 static ossimTrace traceDebug(
"ossimRadarSat2TiffReader:degug");
51 <<
"ossimplugins::ossimRadarSat2TiffReader::ossimRadarSat2TiffReader entered...\n";
52 #ifdef OSSIM_ID_ENABLED 54 <<
"OSSIM_ID: " << OSSIM_ID << std::endl;
66 static const char MODULE[] =
"ossimplugins::ossimRadarSat2TiffReader::saveState";
71 << MODULE <<
" entered...\n";
75 kwl.
add(prefix, PRODUCT_XML_FILE_KW, theProductXmlFile.c_str());
84 static const char MODULE[] =
"ossimplugins::ossimRadarSat2TiffReader::loadState";
89 << MODULE <<
" entered...\n";
95 const char* lookup = kwl.
find(prefix, PRODUCT_XML_FILE_KW);
98 theProductXmlFile = lookup;
99 if ( isRadarSat2ProductFile(theProductXmlFile) )
111 theProductXmlFile.clear();
117 << MODULE <<
" exit status = " << (result?
"true":
"false\n")
131 return ossimString(
"ossim RadarSAT-2 tiff reader");
136 static const char MODULE[] =
"ossimplugins::ossimRadarSat2TiffReader::open";
141 << MODULE <<
" entered...\n" 142 <<
"file: " << file <<
"\n";
159 if ( isRadarSat2ProductFile(xdoc) )
167 imageFile = imageFile.
dirCat(s);
169 setFilename(imageFile);
174 theProductXmlFile = file;
188 << MODULE <<
" exit status = " << (result?
"true":
"false\n")
197 theProductXmlFile.clear();
208 theGeometry = getExternalImageGeometry();
213 theGeometry = getInternalImageGeometry();
225 if ( !theGeometry->getProjection() )
233 initImageParameters( theGeometry.get() );
242 static const char MODULE[] =
"ossimplugins::ossimRadarSat2TiffReader::getInternalImageGeometry";
251 if ( xdoc->
openFile(theProductXmlFile) )
255 if ( model->
open(theProductXmlFile) )
292 result = isRadarSat2ProductFile(xdoc);
static ossimImageGeometryRegistry * instance()
virtual void close()
Close method.
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save the state of an object to a keyword list.
bool open(const ossimFilename &file)
Method to intantial model from a file.
void setProjection(ossimProjection *projection)
Sets the projection to be used for local-to-world coordinate transformation.
bool open()
Returns true if no errors initializing object.
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of an object from a keyword list.
RTTI_DEF1(ossimAlosPalsarModel, "ossimAlosPalsarModel", ossimGeometricSarSensorModel)
Represents serializable keyword/value map.
const char * find(const char *key) const
ossimFilename expand() const
Method to do file name expansion.
Class to encapsulate parsing RadarSat2 product.xml file.
virtual ossimString getShortName() const
bool getImageFile(const ossimXmlDocument *xdoc, ossimString &s) const
ossimRadarSat2TiffReader()
default constructor
virtual bool extendGeometry(ossimImageHandler *handler) const
void add(const char *prefix, const ossimKeywordlist &kwl, bool overwrite=true)
bool isRadarSat2(const ossimXmlDocument *xdoc) const
Checks for node /product/sourceAttributes/satellite containing RADARSAT-2.
bool openFile(const ossimFilename &filename)
bool isRadarSat2ProductFile(const ossimFilename &file) const
Method to check file to see if it's a RS2 product xml file.
static ossimString downcase(const ossimString &aString)
virtual void close()
Deletes the overview and clears the valid image vertices.
Container class that holds both 2D transform and 3D projection information for an image Only one inst...
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of an object from a keyword list.
This class allows for direct localisation and indirect localisation using the RadarSat2 sensor model...
ossimFilename dirCat(const ossimFilename &file) const
virtual ossimRefPtr< ossimImageGeometry > getInternalImageGeometry() const
virtual ossimRefPtr< ossimImageGeometry > getImageGeometry()
Returns the image geometry object associated with this tile source or NULL if non defined...
ossimFilename path() const
virtual ~ossimRadarSat2TiffReader()
virtual destructor
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
virtual ossimString getLongName() const
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save the state of an object to a keyword list.