31 static const char* RPC00A_TAG =
"RPC00A";
32 static const char* RPC00B_TAG =
"RPC00B";
33 static const char* ICHIPB_TAG =
"ICHIPB";
34 static const char* PIAIMC_TAG =
"PIAIMC";
35 static const char* USE00A_TAG =
"USE00A";
125 if( nitfFilePtr->
parseFile( file ) == false )
153 bool useInternalRpcTags =
true;
156 useInternalRpcTags =
false;
195 if (useInternalRpcTags)
262 if (!tiff->
open(file))
304 if(!hdr.
open(rpcFile))
352 <<
"ossimQuickbirdRpcModel::parseMetaData WARNING:" 353 <<
"\nCould not open IMD file. Sensor ID unknown." << std::endl;
375 if(!tileHdr.
open(tileFile))
451 <<
"ossimQuickbirdRpcModel::finishConstruction -- caught exception:\n" 452 << e.
what() << std::endl;
458 const char* prefix)
const
PolynomialType thePolyType
ossimString getLineScale() const
double theSampNumCoef[20]
bool parseTileData(const ossimFilename &file)
Reads the TIL file for pertinent info. Returns TRUE if successful.
ossimRefPtr< ossimQuickbirdMetaData > theSupportData
RTTI_DEF1(ossimQuickbirdRpcModel, "ossimQuickbirdRpcModel", ossimRpcModel)
void finishConstruction()
Collects common code among all parsers.
bool parseMetaData(const ossimFilename &file)
Initializes the support data member with metadata file info. Returns TRUE if successful.
static ossimString upcase(const ossimString &aString)
ossimString getGeodeticHeightScale() const
ossim_float64 width() const
ossimNitfImageHeader * getNewImageHeader(ossim_uint32 imageNumber) const
ossimString getLineDenominatorCoeff(ossim_uint32 idx) const
bool open(const ossimFilename tileFile)
Represents serializable keyword/value map.
virtual std::string getRegisterTagName() const
This will return the name of the registered tag for this user defined header.
double nan()
Method to return ieee floating point double precision NAN.
const ossimDpt & ul() const
ossimString getSampleOffset() const
virtual ossimIrect getImageRectangle(ossim_uint32 resLevel=0) const
Returns overall bounding rect in image space.
virtual void updateModel()
ossim_float64 hgt
Height in meters above the ellipsiod.
~ossimQuickbirdRpcModel()
ossimString getSampleDenominatorCoeff(ossim_uint32 idx) const
double theSampDenCoef[20]
ossimString getLineOffset() const
double theLineNumCoef[20]
bool parseRpcData(const ossimFilename &file)
Given some base name for the image data, parses the associated RPC data file.
ossimString replaceAllThatMatch(const char *regularExpressionPattern, const char *value="") const
void computeGsd()
This method computes the ground sample distance(gsd) and sets class attributes theGSD and theMeanGSD ...
ossimString getGeodeticHeightOffset() const
bool findSupportFile(ossimFilename &file) const
Given an initial filename with case-agnostic extension, this method searches first for an image-speci...
bool getInfo(ossimQuickbirdTileInfo &result, const ossimFilename &filename) const
virtual void clearErrorStatus() const
virtual const ossimFilename & getFilename() const
Returns the filename.
bool parseNitfFile(const ossimFilename &file)
Parses a NITF image file for RPC info. Returns TRUE if successful.
virtual const char * what() const
Returns the error message.
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
saveState Fulfills ossimObject base-class pure virtuals.
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
saveState Fulfills ossimObject base-class pure virtuals.
unsigned int ossim_uint32
bool parseTiffFile(const ossimFilename &file)
Parses a tagged TIFF image file for RPC info. Returns TRUE if successful.
ossimPolygon theBoundGndPolygon
ossim_float64 toFloat64() const
virtual void lineSampleHeightToWorld(const ossimDpt &image_point, const double &heightEllipsoid, ossimGpt &worldPoint) const
virtual ossimObject * dup() const
dup() Returns pointer to a new instance, copy of this.
static ossimString downcase(const ossimString &aString)
virtual ossimIrect getImageRectangle(ossim_uint32 resLevel=0) const
Returns zero-based bounding rectangle of the image.
void setImageOffset(const ossimDpt &offset_to_chip_ul)
Allows setting an offset to a subimage while using the coefficients of a full-image model...
ossim_float64 height() const
ossimString getLineNumeratorCoeff(ossim_uint32 idx) const
ossimDrect theImageClipRect
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
loadState Fulfills ossimObject base-class pure virtuals.
ossimString getSampleNumeratorCoeff(ossim_uint32 idx) const
ossimDpt midPoint() const
ossimString getGeodeticLatScale() const
virtual void setErrorStatus() const
const ossimDpt & ur() const
ossimFilename fileNoExtension() const
virtual bool open(const ossimFilename &image_file)
Returns true if the image_file can be opened and is a valid tiff file.
Image handler used for tiled Quickbird imagery.
ossimFilename file() const
ossimString getGeodeticLonOffset() const
bool parseFile(const ossimFilename &file)
ossim_float64 getMeanGsdInMeters() const
const ossimDpt & ll() const
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
loadState Fulfills ossimObject base-class pure virtuals.
ossimString getSampleScale() const
double theLineDenCoef[20]
ossimString getGeodeticLatOffset() const
ossimFilename & setExtension(const ossimString &e)
Sets the extension of a file name.
const ossimDpt & lr() const
ossimString getGeodeticLonScale() const
ossim_float64 getMeanGsdInMeters() const
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
virtual bool parseFile(const ossimFilename &file)
Public method for parsing generic image file.
bool isnan(const float &v)
isnan Test for floating point Not A Number (NAN) value.