OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
TIFF info class. More...
#include <ossimTiffInfo.h>
Public Types | |
enum | WordType { TWO_OR_EIGHT = 0, FOUR_OR_EIGHT = 1 } |
Public Member Functions | |
ossimTiffInfo () | |
default constructor More... | |
virtual | ~ossimTiffInfo () |
virtual destructor More... | |
virtual bool | open (const ossimFilename &file) |
open method. More... | |
virtual bool | open (std::shared_ptr< ossim::istream > &str, const std::string &connectionString) |
open method. More... | |
virtual std::ostream & | print (std::ostream &out) const |
Print method. More... | |
virtual std::ostream & | print (std::istream &inStr, std::ostream &outStr) const |
Print method. More... | |
bool | getImageGeometry (ossimKeywordlist &geomKwl, ossim_uint32 entryIndex) const |
Extracts geometry info to keyword list. More... | |
bool | getImageGeometry (std::istream &str, ossimKeywordlist &geomKwl, ossim_uint32 entryIndex) const |
Extracts geometry info from stream to keyword list. More... | |
bool | getImageGeometry (const ossimKeywordlist >iffKwl, ossimKeywordlist &geomKwl, ossim_uint32 entryIndex) const |
extracts geometry info from stream to keyword list. More... | |
void | getImageGeometry (ossim_uint64 geoKeyLength, ossim_uint16 *geoKeyBlock, ossim_uint64 geoDoubleLength, ossim_float64 *geoDoubleBlock, ossim_uint64 geoAsciiLength, ossim_int8 *geoAsciiBlock, ossimKeywordlist &geomKwl) const |
Extracts geometry info from geotiff keys to keyword list. More... | |
std::ostream & | printGeoKeys (std::ostream &out, const std::string &prefix, ossim_uint64 geoKeyLength, ossim_uint16 *geoKeyBlock, ossim_uint64 geoDoubleLength, ossim_float64 *geoDoubleBlock, ossim_uint64 geoAsciiLength, ossim_int8 *geoAsciiBlock) const |
Prints geo keys to stream. More... | |
std::ostream & | printRpcs (std::ostream &out, const std::string &prefix, ossim_uint16 type, ossim_uint64 count, ossim_uint8 *valueArray) const |
Prints tag 50844. More... | |
![]() | |
ossimInfoBase () | |
default constructor More... | |
void | setProcessOverviewFlag (bool flag) |
Sets the overview flag. More... | |
bool | getProcessOverviewFlag () const |
Method to get the overview flag. More... | |
virtual bool | getKeywordlist (ossimKeywordlist &kwl) const |
Method to dump info to a keyword list. More... | |
virtual bool | getKeywordlist (ossimKeywordlist &kwl, ossim_uint32 entryIndex) const |
Method to dump info to a keyword list. More... | |
![]() | |
ossimReferenced () | |
ossimReferenced (const ossimReferenced &) | |
ossimReferenced & | operator= (const ossimReferenced &) |
void | ref () const |
increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
void | unref () const |
decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
void | unref_nodelete () const |
decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
int | referenceCount () const |
Private Member Functions | |
void | readShort (ossim_uint16 &s, std::istream &str) const |
Initializes s reference. More... | |
void | readLong (ossim_uint32 &l, std::istream &str) const |
Initializes l reference. More... | |
void | readLongLong (ossim_uint64 &l, std::istream &str) const |
Initializes l reference. More... | |
void | parsePcsCode (int code) |
Attempts to parse the pcs code (3072). More... | |
void | parseProjGeoCode (int code) |
Attempts to parse the projection geo key (3074). More... | |
double | convert2meters (double d) const |
Converts double passed in to meters if needed. More... | |
bool | getOffset (std::streamoff &offset, std::istream &str, ossim_uint16 version) const |
This will read either 4 or 8 bytes depending on the version and initialize offset. More... | |
bool | getValue (ossim_uint64 &val, std::istream &str, WordType type, ossim_uint16 version) const |
This will read either 2 , 4 or 8 bytes depending on the version and WORD_TYPE. More... | |
ossim_uint64 | getArraySizeInBytes (ossim_uint64 length, ossim_uint16 type) const |
ossim_uint16 | getTypeByteSize (ossim_uint16 type) const |
void | eatValue (std::istream &str, ossim_uint16 version) const |
Eats the value field. More... | |
void | swapBytes (ossim_uint8 *v, ossim_uint16 type, ossim_uint64 count) const |
template<class T > | |
void | getArrayValue (T &v, ossim_uint8 *array, ossim_uint64 position) const |
Initializes v. More... | |
std::ostream & | print (std::ostream &out, const std::string &prefix, ossim_uint64 tagIdx, ossim_uint16 tag, ossim_uint16 type, ossim_uint64 count, ossim_uint64 arraySizeInBytes, ossim_uint8 *valueArray) const |
std::ostream & | printValue (std::ostream &out, ossim_uint16 type, ossim_uint8 *valueArray) const |
std::ostream & | printArray (std::ostream &out, ossim_uint16 type, ossim_uint64 count, ossim_uint8 *valueArray) const |
std::ostream & | printGdalMetadata (std::ostream &out, const std::string &prefix, ossim_uint64 count, ossim_uint8 *valueArray) const |
std::ostream & | printXmpMetadata (std::ostream &out, const std::string &prefix, ossim_uint64 count, ossim_uint8 *valueArray) const |
Prints OTIFFTAG_XMLPACKET (700) More... | |
std::ostream & | printModelType (std::ostream &out, const std::string &prefix, ossim_uint16 code) const |
Prints key 1024. More... | |
std::ostream & | printRasterType (std::ostream &out, const std::string &prefix, ossim_uint16 code) const |
Prints key 1025. More... | |
std::ostream & | printAngularUnits (std::ostream &out, const std::string &prefix, ossim_uint16 code) const |
Prints key 2054. More... | |
std::ostream & | printCoordTrans (std::ostream &out, const std::string &prefix, ossim_uint16 code) const |
Prints key 3075. More... | |
std::ostream & | printLinearUnits (std::ostream &out, const std::string &prefix, const std::string &key, ossim_uint16 code) const |
Prints key from code from section 6.3.1.3. More... | |
std::ostream & | printOrientation (std::ostream &out, const std::string &prefix, ossim_uint16 code) const |
Prints tag 274. More... | |
void | getDirPrefix (ossim_int32 dirIndex, std::string &prefix) const |
adds imageN. More... | |
bool | getPixelScale (const ossimString >iffPrefix, const ossimKeywordlist >iffKwl, ossimDpt &scale) const |
Gets the required pixel scale from keyword list looking for the key model_pixel_scale. More... | |
bool | getTiePoint (const ossimString >iffPrefix, const ossimKeywordlist >iffKwl, std::vector< ossim_float64 > &ties) const |
Gets the model_tie_point array. More... | |
bool | getModelTransform (const ossimString >iffPrefix, const ossimKeywordlist >iffKwl, std::vector< ossim_float64 > &xfrm) const |
Gets the model_transform array. More... | |
bool | getFloats (const ossimString >iffPrefix, const ossimString &key, const ossimKeywordlist >iffKwl, std::vector< ossim_float64 > &floats) const |
Extracts float values from keyword list that match key. More... | |
bool | getFloats (const ossimString &line, std::vector< ossim_float64 > &floats) const |
Extracts float values from lookup line and puts in floats array. More... | |
bool | getDatumCode (const ossimString >iffPrefix, const ossimKeywordlist >iffKwl, ossimString &datumCode) const |
Gets the datum code matching code from the keyword list as a string. More... | |
bool | getDatumCode (ossim_int32 code, ossimString &datumCode) const |
Gets the datum code. More... | |
bool | getPcsCode (const ossimString >iffPrefix, const ossimKeywordlist >iffKwl, ossimString &pcsCode) const |
Gets the pcs code from the keyword list as a string. More... | |
bool | getUnits (const ossimString >iffPrefix, const ossimKeywordlist >iffKwl, ossimString &units) const |
Gets units from keyword list as a string. More... | |
bool | getLinearUnits (const ossimString >iffPrefix, const ossimKeywordlist >iffKwl, ossimString &linearUnits) const |
Gets the linear units from keyword list as a string. More... | |
bool | getVerticalUnits (const ossimString >iffPrefix, const ossimKeywordlist >iffKwl, ossimString &verticalUnits) const |
Gets the vertical units from keyword list as a string. More... | |
bool | getAngularUnits (const ossimString >iffPrefix, const ossimKeywordlist >iffKwl, ossimString &units) const |
Gets the units from keyword list as a string. More... | |
bool | getPixelType (const ossimString >iffPrefix, const ossimKeywordlist >iffKwl, ossimString &pixelType) const |
Gets the pixel type (point or area) from keyword list as a string. More... | |
bool | getModelType (const ossimString >iffPrefix, const ossimKeywordlist >iffKwl, ossimString &modeType) const |
Gets the model type from keyword list as a string. More... | |
bool | getOssimProjectionName (const ossimString >iffPrefix, const ossimKeywordlist >iffKwl, ossimString &ossimProj) const |
Gets the ossimProjection from keyword list as a string. More... | |
ossim_uint32 | getLines (const ossimString >iffPrefix, const ossimKeywordlist >iffKwl) const |
Gets the number of lines from keyword list. More... | |
ossim_uint32 | getSamples (const ossimString >iffPrefix, const ossimKeywordlist >iffKwl) const |
Gets the number of samples from keyword list. More... | |
bool | getStdParallelOne (const ossimString >iffPrefix, const ossimKeywordlist >iffKwl, ossimString &value) const |
Gets the first standard parallel from keyword list. More... | |
bool | getStdParallelTwo (const ossimString >iffPrefix, const ossimKeywordlist >iffKwl, ossimString &value) const |
Gets the second standard parallel from keyword list. More... | |
bool | getFalseEasting (const ossimString >iffPrefix, const ossimKeywordlist >iffKwl, ossimString &value) const |
Gets the false easting from keyword list. More... | |
bool | getFalseNorthing (const ossimString >iffPrefix, const ossimKeywordlist >iffKwl, ossimString &value) const |
Gets the false northing from keyword list. More... | |
bool | getFalseEastingNorthing (const ossimString >iffPrefix, const ossimKeywordlist >iffKwl, ossimDpt &eastingNorthing) const |
Gets the false easting/northing from keyword list. More... | |
bool | getScaleFactor (const ossimString >iffPrefix, const ossimKeywordlist >iffKwl, ossim_float64 &value) const |
Gets the scale factor from keyword list. More... | |
bool | getOriginLat (const ossimString >iffPrefix, const ossimKeywordlist >iffKwl, ossim_float64 &value) const |
Gets the origin of latitude from keyword list. More... | |
bool | getCentralMeridian (const ossimString >iffPrefix, const ossimKeywordlist >iffKwl, ossim_float64 &value) const |
Gets the central meridian from keyword list. More... | |
void | getTieSets (const std::vector< ossim_float64 > &ties, ossim_uint32 width, ossim_uint32 height, ossimTieGptSet &tieSet) const |
Split tie points into sets of six tie sets. More... | |
bool | hasOneBasedTiePoints (const std::vector< ossim_float64 > &ties, ossim_uint32 width, ossim_uint32 height) const |
Check tie points to see if they are zero base or one based. More... | |
Private Attributes | |
std::string | m_connectionString |
std::shared_ptr< ossim::istream > | m_inputStream |
ossimEndian * | m_endian |
Additional Inherited Members | |
![]() | |
virtual | ~ossimInfoBase () |
virtual destructor More... | |
![]() | |
virtual | ~ossimReferenced () |
![]() | |
bool | theOverviewFlag |
TIFF info class.
Encapsulates the listgeo functionality.
Definition at line 36 of file ossimTiffInfo.h.
Enumerator | |
---|---|
TWO_OR_EIGHT | |
FOUR_OR_EIGHT |
Definition at line 40 of file ossimTiffInfo.h.
ossimTiffInfo::ossimTiffInfo | ( | ) |
|
virtual |
|
private |
Converts double passed in to meters if needed.
The conversion is base on "theLiniarUnitsCode".
|
private |
Eats the value field.
Either 4 or 8 bytes depending on the version.
Definition at line 1569 of file ossimTiffInfo.cpp.
References readLong(), and readLongLong().
|
private |
Gets the units from keyword list as a string.
gtiffPrefix | Prefix for gtiffKwl. |
gtiffKwl | The keyword list with all tiff keywords. |
angularUnit | The string to initialize with units. |
Definition at line 3828 of file ossimTiffInfo.cpp.
References ossimString::c_str(), and ossimKeywordlist::find().
Referenced by getUnits().
|
private |
Definition at line 1507 of file ossimTiffInfo.cpp.
References getTypeByteSize().
|
private |
|
private |
Gets the central meridian from keyword list.
gtiffPrefix | Prefix for gtiffKwl. |
gtiffKwl | The keyword list with all tiff keywords. |
value | Initialized with result. |
Definition at line 4062 of file ossimTiffInfo.cpp.
References ossimString::c_str(), and ossimKeywordlist::find().
|
private |
Gets the datum code matching code from the keyword list as a string.
This checks for "geodetic_datum"(geotiff key 2050), then "gcs_code"(geotiff key 2048) if first lookup faild.
gtiffPrefix | Prefix for gtiffKwl. |
gtiffKwl | The keyword list with all tiff keywords. |
datumCode | The code to initialize. |
Definition at line 3622 of file ossimTiffInfo.cpp.
References ossimString::c_str(), and ossimKeywordlist::find().
|
private |
Gets the datum code.
code | Code from either "geodetic_datum"(geotiff key 2050), or "gcs_code"(geotiff key 2048). |
datumCode | The code to initialize. |
Definition at line 3653 of file ossimTiffInfo.cpp.
References ossimString::clear(), and ossimString::size().
|
private |
adds imageN.
to prefix where N is zero base directory index.
Definition at line 3533 of file ossimTiffInfo.cpp.
|
private |
Gets the false easting from keyword list.
gtiffPrefix | Prefix for gtiffKwl. |
gtiffKwl | The keyword list with all tiff keywords. |
value | Initialized with result. |
Definition at line 3945 of file ossimTiffInfo.cpp.
References ossimString::c_str(), ossimKeywordNames::FALSE_EASTING_KW, and ossimKeywordlist::find().
Referenced by getFalseEastingNorthing().
|
private |
Gets the false easting/northing from keyword list.
gtiffPrefix | Prefix for gtiffKwl. |
gtiffKwl | The keyword list with all tiff keywords. |
eastingNorthing | Initialized with result. |
Definition at line 3973 of file ossimTiffInfo.cpp.
References getFalseEasting(), getFalseNorthing(), ossimString::toFloat64(), ossimDpt::x, and ossimDpt::y.
|
private |
Gets the false northing from keyword list.
gtiffPrefix | Prefix for gtiffKwl. |
gtiffKwl | The keyword list with all tiff keywords. |
value | Initialized with result. |
Definition at line 3959 of file ossimTiffInfo.cpp.
References ossimString::c_str(), ossimKeywordNames::FALSE_NORTHING_KW, and ossimKeywordlist::find().
Referenced by getFalseEastingNorthing().
|
private |
Extracts float values from keyword list that match key.
gtiffPrefix | Prefix for gtiffKwl. |
key | to look for. |
gtiffKwl | The keyword list with all tiff keywords. |
floats | Array to stuff. Will have size of zero on failure. |
Definition at line 3577 of file ossimTiffInfo.cpp.
References ossimString::c_str(), and ossimKeywordlist::find().
Referenced by getModelTransform(), getPixelScale(), and getTiePoint().
|
private |
Extracts float values from lookup line and puts in floats array.
lookup | Line to parse like: "0.00138888888889 0.00138888888889, 0.0" |
floats | Array to stuff. Will have size of zero on failure. |
Definition at line 3594 of file ossimTiffInfo.cpp.
References ossimString::size().
bool ossimTiffInfo::getImageGeometry | ( | ossimKeywordlist & | geomKwl, |
ossim_uint32 | entryIndex | ||
) | const |
Extracts geometry info to keyword list.
This method assumes that open has been called and theFile is set.
Populates the keyword list with image geometry information. This method is used to relay projection/model information to users.
geomKwl | Keyword list that will be initialized with geometry info. Returns true if geometry info is present, false if not. |
entryIndex | Entry to get geometry from. |
Definition at line 1007 of file ossimTiffInfo.cpp.
Referenced by ossimKakaduJpipInfo::print().
bool ossimTiffInfo::getImageGeometry | ( | std::istream & | str, |
ossimKeywordlist & | geomKwl, | ||
ossim_uint32 | entryIndex | ||
) | const |
Extracts geometry info from stream to keyword list.
Populates the keyword list with image geometry information. This method is used to relay projection/model information to users.
str | Stream position at start of tiff image. |
geomKwl | Keyword list that will be initialized with geometry info. Returns true if geometry info is present, false if not. |
entryIndex | Entry to get geometry from. |
Definition at line 1040 of file ossimTiffInfo.cpp.
bool ossimTiffInfo::getImageGeometry | ( | const ossimKeywordlist & | gtiffKwl, |
ossimKeywordlist & | geomKwl, | ||
ossim_uint32 | entryIndex | ||
) | const |
extracts geometry info from stream to keyword list.
Populates geomKwl from gtiffKwl.
gtiffKwl | Raw keywordlist extracted from tiff/geotiff keys. |
geomKwl | Keyword list that will be initialized with geometry info. Returns true if geometry info is present, false if not. |
entryIndex | Entry to get geometry from. |
Definition at line 1115 of file ossimTiffInfo.cpp.
void ossimTiffInfo::getImageGeometry | ( | ossim_uint64 | geoKeyLength, |
ossim_uint16 * | geoKeyBlock, | ||
ossim_uint64 | geoDoubleLength, | ||
ossim_float64 * | geoDoubleBlock, | ||
ossim_uint64 | geoAsciiLength, | ||
ossim_int8 * | geoAsciiBlock, | ||
ossimKeywordlist & | geomKwl | ||
) | const |
Extracts geometry info from geotiff keys to keyword list.
Helper method used to extract keywords from geotiff keys embedded in files, e.g. LAS data. Because this is just the geotiff keys, the output will be missing the image part, i.e. line, samples, radiometry...
This output is intended to be usable to get a projection from a call to ossimProjectionFactoryRegistry::createProjection(kwl).
Internally calls printGeoKeys and then the private getImageGeometry.
geoKeyLength | Length of geoKeyBlock. |
geoKeyBlock | Pointer to array of keys. |
geoDoubleLength | Length of geoDoubleBlock. |
geoDoubleBlock | Pointer to array of double values. |
geoAsciiLength | Length of geoAsciiBlock. |
geoAsciiBlock | Pointer to array of ascii values. |
projKwl | The keyword list to initialize. |
Definition at line 1077 of file ossimTiffInfo.cpp.
|
private |
Gets the linear units from keyword list as a string.
gtiffPrefix | Prefix for gtiffKwl. |
gtiffKwl | The keyword list with all tiff keywords. |
linearUnits | The string to initialize with units. |
Definition at line 3800 of file ossimTiffInfo.cpp.
References ossimString::c_str(), and ossimKeywordlist::find().
Referenced by getUnits().
|
private |
Gets the number of lines from keyword list.
gtiffPrefix | Prefix for gtiffKwl. |
gtiffKwl | The keyword list with all tiff keywords. |
Definition at line 3893 of file ossimTiffInfo.cpp.
References ossimString::c_str(), and ossimKeywordlist::find().
|
private |
Gets the model_transform array.
gtiffPrefix | Prefix for gtiffKwl. |
gtiffKwl | The keyword list with all tiff keywords. |
ties | The array to initialize. |
Definition at line 3570 of file ossimTiffInfo.cpp.
References getFloats().
|
private |
Gets the model type from keyword list as a string.
gtiffPrefix | Prefix for gtiffKwl. |
gtiffKwl | The keyword list with all tiff keywords. |
modelType | The string to initialize with pixel type. |
Definition at line 3856 of file ossimTiffInfo.cpp.
References ossimString::c_str(), and ossimKeywordlist::find().
Referenced by getUnits().
|
private |
This will read either 4 or 8 bytes depending on the version and initialize offset.
Definition at line 1450 of file ossimTiffInfo.cpp.
References readLong(), readLongLong(), and status.
|
private |
Gets the origin of latitude from keyword list.
gtiffPrefix | Prefix for gtiffKwl. |
gtiffKwl | The keyword list with all tiff keywords. |
value | Initialized with result. |
Definition at line 4010 of file ossimTiffInfo.cpp.
References ossimString::c_str(), and ossimKeywordlist::find().
|
private |
Gets the ossimProjection from keyword list as a string.
gtiffPrefix | Prefix for gtiffKwl. |
gtiffKwl | The keyword list with all tiff keywords. |
ossimProj | The string to initialize with pixel type. |
Definition at line 3870 of file ossimTiffInfo.cpp.
References ossimString::c_str(), ossimString::clear(), and ossimKeywordlist::find().
|
private |
Gets the pcs code from the keyword list as a string.
If the lookup of "pcs_code" returns false then the "pcs_citation" is then checked.
gtiffPrefix | Prefix for gtiffKwl. |
gtiffKwl | The keyword list with all tiff keywords. |
pcsCode | The code to initialize. |
Definition at line 3693 of file ossimTiffInfo.cpp.
References ossimString::c_str(), ossimEpsgProjectionFactory::createProjection(), ossimKeywordlist::find(), ossimRefPtr< T >::get(), ossimMapProjection::getPcsCode(), ossimEpsgProjectionFactory::instance(), ossimKeywordNames::PCS_CODE_KW, ossimString::toString(), ossimString::toUInt32(), ossimString::trim(), and ossimRefPtr< T >::valid().
|
private |
Gets the required pixel scale from keyword list looking for the key model_pixel_scale.
gtiffPrefix | Prefix for gtiffKwl. |
gtiffKwl | The keyword list with all tiff keywords. |
scale | The point to initialize. |
Definition at line 3543 of file ossimTiffInfo.cpp.
References getFloats().
|
private |
Gets the pixel type (point or area) from keyword list as a string.
gtiffPrefix | Prefix for gtiffKwl. |
gtiffKwl | The keyword list with all tiff keywords. |
unit | The string to initialize with pixel type. |
Definition at line 3842 of file ossimTiffInfo.cpp.
References ossimString::c_str(), and ossimKeywordlist::find().
|
private |
Gets the number of samples from keyword list.
gtiffPrefix | Prefix for gtiffKwl. |
gtiffKwl | The keyword list with all tiff keywords. |
Definition at line 3905 of file ossimTiffInfo.cpp.
References ossimString::c_str(), and ossimKeywordlist::find().
|
private |
Gets the scale factor from keyword list.
gtiffPrefix | Prefix for gtiffKwl. |
gtiffKwl | The keyword list with all tiff keywords. |
value | Initialized with result. |
Definition at line 3992 of file ossimTiffInfo.cpp.
References ossimString::c_str(), ossimKeywordlist::find(), ossimKeywordNames::SCALE_FACTOR_KW, and ossimString::toFloat64().
|
private |
Gets the first standard parallel from keyword list.
gtiffPrefix | Prefix for gtiffKwl. |
gtiffKwl | The keyword list with all tiff keywords. |
value | Initialized with result. |
Definition at line 3917 of file ossimTiffInfo.cpp.
References ossimString::c_str(), ossimKeywordlist::find(), and ossimKeywordNames::STD_PARALLEL_1_KW.
|
private |
Gets the second standard parallel from keyword list.
gtiffPrefix | Prefix for gtiffKwl. |
gtiffKwl | The keyword list with all tiff keywords. |
value | Initialized with result. |
Definition at line 3931 of file ossimTiffInfo.cpp.
References ossimString::c_str(), ossimKeywordlist::find(), and ossimKeywordNames::STD_PARALLEL_2_KW.
|
private |
Gets the model_tie_point array.
gtiffPrefix | Prefix for gtiffKwl. |
gtiffKwl | The keyword list with all tiff keywords. |
ties | The array to initialize. |
Definition at line 3563 of file ossimTiffInfo.cpp.
References getFloats().
|
private |
Split tie points into sets of six tie sets.
tie | points. |
width | Image width. |
height | Image height. |
tieSet | Initialized with result. |
Definition at line 4114 of file ossimTiffInfo.cpp.
References ossimTieGptSet::addTiePoint(), and hasOneBasedTiePoints().
|
private |
Definition at line 1513 of file ossimTiffInfo.cpp.
References ossim::OTIFF_ASCII, ossim::OTIFF_BYTE, ossim::OTIFF_DOUBLE, ossim::OTIFF_FLOAT, ossim::OTIFF_IFD, ossim::OTIFF_LONG, ossim::OTIFF_RATIONAL, ossim::OTIFF_SBYTE, ossim::OTIFF_SHORT, ossim::OTIFF_SLONG, ossim::OTIFF_SRATIONAL, ossim::OTIFF_SSHORT, and ossim::OTIFF_UNDEFINED.
Referenced by getArraySizeInBytes(), and swapBytes().
|
private |
Gets units from keyword list as a string.
This will be angular or linear base on the model type. The default is meters if not found.
gtiffPrefix | Prefix for gtiffKwl. |
gtiffKwl | The keyword list with all tiff keywords. |
linearUnits | The string to initialize with units. |
Definition at line 3754 of file ossimTiffInfo.cpp.
References getAngularUnits(), getLinearUnits(), getModelType(), and ossimString::size().
|
private |
This will read either 2 , 4 or 8 bytes depending on the version and WORD_TYPE.
Definition at line 1473 of file ossimTiffInfo.cpp.
References readLong(), readLongLong(), readShort(), status, and TWO_OR_EIGHT.
|
private |
Gets the vertical units from keyword list as a string.
gtiffPrefix | Prefix for gtiffKwl. |
gtiffKwl | The keyword list with all tiff keywords. |
linearUnits | The string to initialize with units. |
Definition at line 3814 of file ossimTiffInfo.cpp.
References ossimString::c_str(), and ossimKeywordlist::find().
|
private |
Check tie points to see if they are zero base or one based.
tie | points. |
width | Image width. |
height | Image height. |
Definition at line 4139 of file ossimTiffInfo.cpp.
Referenced by getTieSets().
|
virtual |
open method.
file | File name to open. |
Reimplemented from ossimInfoBase.
Definition at line 92 of file ossimTiffInfo.cpp.
References ossimString::c_str(), ossim::StreamFactoryRegistry::createIstream(), and ossim::StreamFactoryRegistry::instance().
|
virtual |
open method.
str | File name to open. |
Reimplemented from ossimInfoBase.
Definition at line 99 of file ossimTiffInfo.cpp.
References ossim::byteOrder(), m_connectionString, m_endian, m_inputStream, OSSIM_BIG_ENDIAN, OSSIM_LITTLE_ENDIAN, and readShort().
|
private |
Attempts to parse the pcs code (3072).
|
private |
Attempts to parse the projection geo key (3074).
|
virtual |
Print method.
out | Stream to print to. |
Implements ossimInfoBase.
Definition at line 167 of file ossimTiffInfo.cpp.
Referenced by ossimTiffTileSource::validateMinMaxNull().
|
virtual |
Print method.
Print method that takes a stream that should be positions at the start of tiff stream. This was added to see embedded information on embedded geotiff's in a geojp2 file.
out | Stream to print to. |
Definition at line 598 of file ossimTiffInfo.cpp.
|
private |
Definition at line 1616 of file ossimTiffInfo.cpp.
References ossim::OTIFFTAG_IMAGEWIDTH, ossim::OTIFFTAG_SUBFILETYPE, and printValue().
|
private |
|
private |
Definition at line 2229 of file ossimTiffInfo.cpp.
References ossim::OTIFF_ASCII, ossim::OTIFF_BYTE, ossim::OTIFF_DOUBLE, ossim::OTIFF_LONG, ossim::OTIFF_LONG8, and ossim::OTIFF_SHORT.
|
private |
|
private |
Definition at line 2324 of file ossimTiffInfo.cpp.
References ossimString::downcase(), ossimXmlNode::getChildNodes(), and ossimXmlNode::read().
std::ostream & ossimTiffInfo::printGeoKeys | ( | std::ostream & | out, |
const std::string & | prefix, | ||
ossim_uint64 | geoKeyLength, | ||
ossim_uint16 * | geoKeyBlock, | ||
ossim_uint64 | geoDoubleLength, | ||
ossim_float64 * | geoDoubleBlock, | ||
ossim_uint64 | geoAsciiLength, | ||
ossim_int8 * | geoAsciiBlock | ||
) | const |
Prints geo keys to stream.
Helper method used to extract keywords from geotiff keys embedded in files, e.g. LAS data. Because this is just the geotiff keys, the output will be missing the image part, i.e. line, samples, radiometry...
This output is the raw tiff tags/geotiff keys not necessarily useable to construct a projection from.
out | Stream to dump to. |
prefix | if any. This will be added to the keys, e.g. tiff0.coord_trans where "tiff0." is the prefix and "coord_trans" the key. |
geoKeyLength | Length of geoKeyBlock. |
geoKeyBlock | Pointer to array of keys. |
geoDoubleLength | Length of geoDoubleBlock. |
geoDoubleBlock | Pointer to array of double values. |
geoAsciiLength | Length of geoAsciiBlock. |
geoAsciiBlock | Pointer to array of ascii values. |
Definition at line 2488 of file ossimTiffInfo.cpp.
|
private |
|
private |
|
private |
|
private |
std::ostream & ossimTiffInfo::printRpcs | ( | std::ostream & | out, |
const std::string & | prefix, | ||
ossim_uint16 | type, | ||
ossim_uint64 | count, | ||
ossim_uint8 * | valueArray | ||
) | const |
Prints tag 50844.
Note: This is in RPC00B polynomial format.
http://geotiff.maptools.org/rpc_prop.html
Definition at line 3050 of file ossimTiffInfo.cpp.
References ossim::OTIFF_DOUBLE.
|
private |
Definition at line 2145 of file ossimTiffInfo.cpp.
References getArrayValue(), ossim::OTIFF_BYTE, ossim::OTIFF_DOUBLE, ossim::OTIFF_FLOAT, ossim::OTIFF_LONG, ossim::OTIFF_RATIONAL, ossim::OTIFF_SHORT, ossim::OTIFF_SLONG, and ossim::OTIFF_SSHORT.
Referenced by print().
|
private |
Prints OTIFFTAG_XMLPACKET (700)
Definition at line 2347 of file ossimTiffInfo.cpp.
References ossimString::clear(), ossimXmlDocument::findNodes(), ossimXmlDocument::read(), and ossimString::size().
|
private |
Initializes l reference.
Does byte swapping as needed.
Definition at line 1430 of file ossimTiffInfo.cpp.
References m_endian, and ossimEndian::swap().
Referenced by eatValue(), getOffset(), and getValue().
|
private |
Initializes l reference.
Does byte swapping as needed.
Definition at line 1439 of file ossimTiffInfo.cpp.
References m_endian, and ossimEndian::swap().
Referenced by eatValue(), getOffset(), and getValue().
|
private |
Initializes s reference.
Does byte swapping as needed.
Definition at line 1421 of file ossimTiffInfo.cpp.
References m_endian, and ossimEndian::swap().
Referenced by getValue(), and open().
|
private |
Definition at line 1583 of file ossimTiffInfo.cpp.
References getTypeByteSize(), m_endian, ossimEndian::swapEightBytes(), ossimEndian::swapFourBytes(), and ossimEndian::swapTwoBytes().
|
private |
Definition at line 632 of file ossimTiffInfo.h.
Referenced by open().
|
mutableprivate |
Definition at line 635 of file ossimTiffInfo.h.
Referenced by open(), readLong(), readLongLong(), readShort(), swapBytes(), and ~ossimTiffInfo().
|
mutableprivate |
Definition at line 633 of file ossimTiffInfo.h.
Referenced by open().