OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimInfo.h>
Public Member Functions | |
ossimInfo () | |
default constructor More... | |
virtual | ~ossimInfo () |
virtual destructor More... | |
virtual void | setUsage (ossimArgumentParser &ap) |
Adds application arguments to the argument parser. More... | |
virtual bool | initialize (ossimArgumentParser &ap) |
Initial method. More... | |
virtual bool | execute () |
execute method. More... | |
virtual ossimString | getClassName () const |
ossim_uint32 | executeImageOptions (const ossimFilename &file) |
handles image options. More... | |
void | getImageInfo (const ossimFilename &file, bool dumpFlag, bool dnoFlag, bool imageGeomFlag, bool imageInfoFlag, bool metaDataFlag, bool paletteFlag, ossimKeywordlist &kwl) const |
getImageInfo Method to open image "file" and get image info in the form of a ossimKeywordlist. More... | |
bool | getImageInfo (const ossimFilename &file, ossim_uint32 entry, ossimKeywordlist &kwl) const |
getImageInfo Method to open image "file" and get image info for entry in the form of a ossimKeywordlist. More... | |
void | openImage (const ossimFilename &file) |
Opens image handler and stores in m_img data member. More... | |
void | openImageFromState (const ossimFilename &file) |
Opens image handler and stores in m_img data member. More... | |
void | closeImage () |
Closes image if open. More... | |
ossimRefPtr< ossimImageHandler > | getImageHandler () |
void | prettyPrint (const ossimFilename &file) const |
Dumps the image information from ossimInfoFactoryRegistry. More... | |
void | dumpImage (const ossimFilename &file, bool dnoFlag, ossimKeywordlist &kwl) const |
Dumps the image information from ossimInfoFactoryRegistry to keyword list. More... | |
void | printFactories (bool keywordListFlag) const |
Prints factories. More... | |
void | getImageMetadata (ossimKeywordlist &kwl) const |
Populates keyword list with metadata. More... | |
void | getImagePalette (ossimKeywordlist &kwl) |
Populates keyword list with palette data. More... | |
void | getImageInfo (ossimKeywordlist &kwl, bool dnoFlag) |
Populates keyword list with general image information. More... | |
bool | getImageInfo (ossim_uint32 entry, ossimKeywordlist &kwl, bool dnoFlag) |
Populates keyword list with general image information. More... | |
void | getImageGeometryInfo (ossimKeywordlist &kwl, bool dnoFlag) |
Populates keyword list with image geometry/projection information. More... | |
bool | getImageGeometryInfo (ossim_uint32 entry, ossimKeywordlist &kwl, bool dnoFlag) |
Populates keyword list with image geometry/projection information. More... | |
void | getCenterImage (ossimKeywordlist &kwl) |
Populates keyword list with image center point. More... | |
void | getImageBounds (ossimKeywordlist &kwl) |
Populates keyword list with edge to edge image bounds. More... | |
void | getCenterGround (ossimKeywordlist &kwl) |
Populates keyword list with image center ground point. More... | |
void | getImg2grd (ossimKeywordlist &kwl) |
Populates keyword list with ground point for image point. More... | |
void | getGrd2img (ossimKeywordlist &kwl) |
Populates keyword list with image point for grund point. More... | |
void | getUpIsUpAngle (ossimKeywordlist &kwl) |
Populates keyword list with up_is_up_angle. More... | |
void | getUpIsUpAngle (ossim_uint32 entry, ossimKeywordlist &kwl) |
Populates keyword list with up_is_up_angle. More... | |
void | getImageToGround (ossimKeywordlist &kwl) |
Populates keyword list with image_to_ground. More... | |
void | getImageToGround (ossim_uint32 entry, ossimKeywordlist &kwl) |
Populates keyword list with image_to_ground. More... | |
void | getNorthUpAngle (ossimKeywordlist &kwl) |
Populates keyword list with north_up_angle. More... | |
void | getNorthUpAngle (ossim_uint32 entry, ossimKeywordlist &kwl) |
Populates keyword list with north_up_angle. More... | |
void | getImageRect (ossimKeywordlist &kwl) |
Populates keyword list with image rectangle. More... | |
void | getImageRect (ossim_uint32 entry, ossimKeywordlist &kwl) |
Populates keyword list with image rectangle. More... | |
bool | isImageEntryOverview () const |
void | printConfiguration () const |
Dumps ossim preferences/configuration data. More... | |
std::ostream & | printConfiguration (std::ostream &out) const |
Dumps ossim preferences/configuration data. More... | |
void | printDatums () const |
Dumps datum list to stdout. More... | |
std::ostream & | printDatums (std::ostream &out) const |
Dumps datum list to stream. More... | |
void | printFonts () const |
Prints fonts list to stdout. More... | |
std::ostream & | printFonts (std::ostream &out) const |
Prints fonts list to stream. More... | |
void | deg2rad (const ossim_float64 °rees) const |
Converts degrees to radians and outputs to stdout. More... | |
std::ostream & | deg2rad (const ossim_float64 °rees, std::ostream &out) const |
Converts degrees to radians and outputs to stream. More... | |
std::ostream & | ecef2llh (const ossimEcefPoint &ecefPoint, std::ostream &out) const |
Converts ecef point to lat lon height. More... | |
void | rad2deg (const ossim_float64 &radians) const |
Converts radians to degrees and outputs to stdout. More... | |
std::ostream & | rad2deg (const ossim_float64 &radians, std::ostream &out) const |
Converts radians to degrees and outputs to stream. More... | |
void | ft2mtrs (const ossim_float64 &feet, bool us_survey) const |
Converts feet to meters and outputs to stdout. More... | |
std::ostream & | ft2mtrs (const ossim_float64 &feet, bool us_survey, std::ostream &out) const |
Converts feet to meters and outputs to stream. More... | |
void | mtrs2ft (const ossim_float64 &meters, bool us_survey) const |
Converts meters to feet and outputs to stdout. More... | |
std::ostream & | mtrs2ft (const ossim_float64 &meters, bool us_survey, std::ostream &out) const |
Converts meters to feet and outputs to stream. More... | |
void | mtrsPerDeg (const ossim_float64 &latitude) const |
Get meters per degree for a given latitude and outputs to stdout. More... | |
std::ostream & | mtrsPerDeg (const ossim_float64 &latitude, std::ostream &out) const |
Get meters per degree for a given latitude and outputs to stream. More... | |
void | outputHeight (const ossimGpt &gpt) const |
Gets the height for ground point (latitude, longitude). More... | |
std::ostream & | outputHeight (const ossimGpt &gpt, std::ostream &out) const |
Gets the height for ground point (latitude, longitude). More... | |
void | printExtensions () const |
Prints supported image file extensions to stdout. More... | |
std::ostream & | printExtensions (std::ostream &out) const |
Prints supported image file extensions to stream. More... | |
void | printPlugins () const |
Prints loaded plugins to stdout. More... | |
std::ostream & | printPlugins (std::ostream &out) const |
Prints loaded plugins to stream. More... | |
void | testPlugin (const ossimFilename &plugin) const |
Test a plugin load and outputs to stdout. More... | |
std::ostream & | testPlugin (const ossimFilename &plugin, std::ostream &out) const |
Test a plugin load outputs to stream. More... | |
void | printOverviewTypes () const |
Prints overview types to stdout. More... | |
std::ostream & | printOverviewTypes (std::ostream &out) const |
Prints overview types to stream. More... | |
void | printProjections () const |
Prints projections to stdout. More... | |
std::ostream & | printProjections (std::ostream &out) const |
Prints projections to stream. More... | |
void | printReaderProps () const |
Prints reader properties to stdout. More... | |
std::ostream & | printReaderProps (std::ostream &out) const |
Prints reader properties to stream. More... | |
void | printResamplerFilters () const |
Prints resampler filters to stdout. More... | |
std::ostream & | printResamplerFilters (std::ostream &out) const |
Prints resampler filters to stream. More... | |
void | printWriters () const |
Prints list of available writers to stdout. More... | |
std::ostream & | printWriters (std::ostream &out) const |
Prints list of available writers to stream. More... | |
void | printWriterProps () const |
Prints writer properties to stdout. More... | |
std::ostream & | printWriterProps (std::ostream &out) const |
Prints writer properties to stream. More... | |
void | printZoomLevelGsds () const |
Prints zoom levels to stdout. More... | |
std::ostream & | printZoomLevelGsds (std::ostream &out) const |
Prints zoom levels to stream. More... | |
void | getRadiometry (ossimScalarType scalar, std::string &s) const |
Gets the radiometry string, i.e. More... | |
void | getBuildDate (std::string &s) const |
Gets build date. More... | |
void | getRevisionNumber (std::string &s) const |
Gets revision number. More... | |
void | getVersion (std::string &s) const |
Gets version. More... | |
![]() | |
ossimTool () | |
virtual | ~ossimTool () |
virtual void | initialize (const ossimKeywordlist &kwl) |
Reads processing params from KWL and prepares for execute. More... | |
virtual void | loadJSON (const Json::Value &json_request) |
Reads processing params from JSON object provided. More... | |
virtual void | saveJSON (Json::Value &json) const |
Fetch product as JSON object when applicable Always returns true since using exception on error. More... | |
virtual const std::string & | getResponse () const |
Fetch product as string (typically JSON) when applicable, otherwise passes back empty string. More... | |
virtual void | clear () |
Disconnects and clears the DEM and image layers. More... | |
virtual void | abort () |
Kills current (asynchronous) process. More... | |
virtual void | getKwlTemplate (ossimKeywordlist &kwl) |
Assigns a template keywordlist to string for initializing derived classes. More... | |
void | getAPI (std::string &out) const |
Outputs a JSON representation of the Utility's API. More... | |
std::string | getAPI () const |
void | getBuildDate (std::string &s) const |
Gets build date. More... | |
void | getRevision (std::string &s) const |
Gets revision. More... | |
void | getVersion (std::string &s) const |
Gets version. More... | |
virtual bool | isChipProcessor () const |
Overrides base class implementation to indicate this class supports getChip() calls. More... | |
void | setOutputStream (std::ostream *os) |
Redirects any console output to the supplied stream for logging or JNI application. More... | |
bool | helpRequested () const |
Returns true when the initialization detects a "--help" option, so caller can avoid subsequent execute() call. More... | |
![]() | |
ossimObject () | |
virtual | ~ossimObject () |
virtual ossimObject * | dup () const |
virtual ossimString | getShortName () const |
virtual ossimString | getLongName () const |
virtual ossimString | getDescription () const |
virtual RTTItypeid | getType () const |
virtual bool | canCastTo (ossimObject *obj) const |
virtual bool | canCastTo (const RTTItypeid &id) const |
virtual bool | canCastTo (const ossimString &parentClassName) const |
virtual bool | saveState (ossimKeywordlist &kwl, const char *prefix=0) const |
virtual bool | loadState (const ossimKeywordlist &kwl, const char *prefix=0) |
virtual std::ostream & | print (std::ostream &out) const |
Generic print method. More... | |
virtual bool | isEqualTo (const ossimObject &obj, ossimCompareType compareType=OSSIM_COMPARE_FULL) const |
virtual void | accept (ossimVisitor &visitor) |
![]() | |
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 |
![]() | |
JsonInterface () | |
virtual | ~JsonInterface () |
Static Public Attributes | |
static const char * | DESCRIPTION |
Used by ossimUtilityFactory. More... | |
Private Member Functions | |
void | getImageMetadata (const ossimImageHandler *ih, ossimKeywordlist &kwl) const |
Populates keyword list with metadata. More... | |
void | getImagePalette (ossimImageHandler *ih, ossimKeywordlist &kwl) const |
Populates keyword list with palette data. More... | |
void | getImageInfo (ossimImageHandler *ih, ossimKeywordlist &kwl, bool dnoFlag) const |
Populates keyword list with general image information. More... | |
bool | getImageInfo (ossimImageHandler *ih, ossim_uint32 entry, ossimKeywordlist &kwl, bool dnoFlag) const |
Populates keyword list with general image information. More... | |
void | getImageGeometryInfo (ossimImageHandler *ih, ossimKeywordlist &kwl, bool dnoFlag) const |
Populates keyword list with image geometry/projection information. More... | |
bool | getImageGeometryInfo (ossimImageHandler *ih, ossim_uint32 entry, ossimKeywordlist &kwl, bool dnoFlag) const |
Populates keyword list with image geometry/projection information. More... | |
void | getCenterImage (ossimImageHandler *ih, ossimKeywordlist &kwl) const |
void | getCenterImage (ossimImageHandler *ih, ossim_uint32 entry, ossimKeywordlist &kwl) const |
void | getImageBounds (ossimImageHandler *ih, ossimKeywordlist &kwl) const |
void | getImageBounds (ossimImageHandler *ih, ossim_uint32 entry, ossimKeywordlist &kwl) const |
void | getCenterGround (ossimImageHandler *ih, ossimKeywordlist &kwl) const |
void | getCenterGround (ossimImageHandler *ih, ossim_uint32 entry, ossimKeywordlist &kwl) const |
void | getImg2grd (ossimImageHandler *ih, ossimKeywordlist &kwl) const |
Gets gound point from image point. More... | |
void | getImg2grd (ossimImageHandler *ih, ossim_uint32 entry, ossimKeywordlist &kwl) const |
Gets gound point from image point. More... | |
void | getGrd2img (ossimImageHandler *ih, ossimKeywordlist &kwl) const |
Gets gound point from image point. More... | |
void | getGrd2img (ossimImageHandler *ih, ossim_uint32 entry, ossimKeywordlist &kwl) const |
Gets gound point from image point. More... | |
void | getUpIsUpAngle (ossimImageHandler *ih, ossimKeywordlist &kwl) const |
Populates keyword list with up_is_up_angle. More... | |
void | getUpIsUpAngle (ossimImageHandler *ih, ossim_uint32 entry, ossimKeywordlist &kwl) const |
Populates keyword list with up_is_up_angle. More... | |
void | getNorthUpAngle (ossimImageHandler *ih, ossimKeywordlist &kwl) const |
Populates keyword list with north_up_angle. More... | |
void | getNorthUpAngle (ossimImageHandler *ih, ossim_uint32 entry, ossimKeywordlist &kwl) const |
Populates keyword list with north_up_angle. More... | |
void | getImageRect (ossimImageHandler *ih, ossimKeywordlist &kwl) const |
Populates keyword list with image rectangle. More... | |
void | getImageRect (ossimImageHandler *ih, ossim_uint32 entry, ossimKeywordlist &kwl) const |
Populates keyword list with image rectangle. More... | |
bool | getRgbBands (ossimImageHandler *ih, ossim_uint32 entry, ossimKeywordlist &kwl) const |
Populates keyword list with rgb bands if available. More... | |
bool | isImageEntryOverview (const ossimImageHandler *ih) const |
void | outputXml (const ossimKeywordlist &kwl) const |
Convert keyword list to xml then outputs to standard out. More... | |
void | outputXml (const ossimKeywordlist &kwl, const ossimFilename &file) const |
Convert keyword list to xml then outputs to file. More... | |
ossimRefPtr< ossimImageHandler > | openImageHandler (const ossimFilename &file) const |
Opens image. More... | |
bool | keyIsTrue (const std::string &key) const |
Private Attributes | |
ossimRefPtr< ossimImageHandler > | m_img |
Holds the open image. More... | |
Additional Inherited Members | |
![]() | |
virtual | ~ossimReferenced () |
![]() | |
ossimKeywordlist | m_kwl |
std::ostream * | m_consoleStream |
bool | m_helpRequested |
std::string | m_response |
ossimInfo class.
This is a utility class for getting information from the ossim library. This includes information from an image, general library queries, like loaded plugins, and just general stuff like height for point, conversions and so on that are easily obtained through the library.
Definition at line 36 of file ossimInfo.h.
ossimInfo::ossimInfo | ( | ) |
default constructor
Definition at line 117 of file ossimInfo.cpp.
|
virtual |
void ossimInfo::closeImage | ( | ) |
Closes image if open.
Definition at line 1664 of file ossimInfo.cpp.
References m_img.
void ossimInfo::deg2rad | ( | const ossim_float64 & | degrees | ) | const |
Converts degrees to radians and outputs to stdout.
Definition at line 2818 of file ossimInfo.cpp.
References ossimNotify(), and ossimNotifyLevel_INFO.
std::ostream & ossimInfo::deg2rad | ( | const ossim_float64 & | degrees, |
std::ostream & | out | ||
) | const |
Converts degrees to radians and outputs to stream.
out | Output to write to. |
Definition at line 2823 of file ossimInfo.cpp.
References RAD_PER_DEG.
void ossimInfo::dumpImage | ( | const ossimFilename & | file, |
bool | dnoFlag, | ||
ossimKeywordlist & | kwl | ||
) | const |
Dumps the image information from ossimInfoFactoryRegistry to keyword list.
file | Image to dump. |
dnoFlag | Dump no overviews. If true do not dump overviews. |
kwl | Initialized by this method. |
Definition at line 1702 of file ossimInfo.cpp.
References ossimString::c_str(), ossimInfoFactoryRegistry::create(), ossimInfoFactoryRegistry::instance(), ossimNotify(), and ossimNotifyLevel_INFO.
Referenced by getImageInfo().
std::ostream & ossimInfo::ecef2llh | ( | const ossimEcefPoint & | ecefPoint, |
std::ostream & | out | ||
) | const |
Converts ecef point to lat lon height.
out | Output to write to. |
Definition at line 2840 of file ossimInfo.cpp.
References ossimEcefPoint::toString(), and ossimGpt::toString().
|
virtual |
execute method.
Performs the actual dump of information. This executes any options set including image operations, i.e. -i -p –dno and so on.
Implements ossimTool.
Definition at line 827 of file ossimInfo.cpp.
References ossimKeywordlist::getSize(), and ossimTool::m_kwl.
ossim_uint32 ossimInfo::executeImageOptions | ( | const ossimFilename & | file | ) |
handles image options.
Handles image type info opions, i.e. -i -p –dno and so on.
Definition at line 1127 of file ossimInfo.cpp.
void ossimInfo::ft2mtrs | ( | const ossim_float64 & | feet, |
bool | us_survey | ||
) | const |
Converts feet to meters and outputs to stdout.
Definition at line 2870 of file ossimInfo.cpp.
References ossimNotify(), and ossimNotifyLevel_INFO.
std::ostream & ossimInfo::ft2mtrs | ( | const ossim_float64 & | feet, |
bool | us_survey, | ||
std::ostream & | out | ||
) | const |
Converts feet to meters and outputs to stream.
out | Output to write to out. |
Definition at line 2875 of file ossimInfo.cpp.
References MTRS_PER_FT, and US_METERS_PER_FT.
void ossimInfo::getBuildDate | ( | std::string & | s | ) | const |
Gets build date.
s | String to initialize. |
Definition at line 3373 of file ossimInfo.cpp.
References OSSIM_BUILD_DATE.
void ossimInfo::getCenterGround | ( | ossimKeywordlist & | kwl | ) |
Populates keyword list with image center ground point.
kwl | Keyword list to populate. |
Definition at line 2156 of file ossimInfo.cpp.
References ossimRefPtr< T >::get(), m_img, and ossimRefPtr< T >::valid().
Referenced by getCenterGround().
|
private |
Definition at line 2164 of file ossimInfo.cpp.
References getCenterGround(), and ossimImageHandler::getEntryList().
|
private |
Definition at line 2180 of file ossimInfo.cpp.
References ossimKeywordlist::add(), ossimString::c_str(), ossimImageGeometry::getBoundingRect(), ossimImageHandler::getFilename(), ossimImageHandler::getImageGeometry(), ossimDrect::hasNans(), ossimImageGeometry::localToWorld(), ossimDrect::midPoint(), ossimNotify(), ossimNotifyLevel_WARN, ossimImageHandler::setCurrentEntry(), ossimGpt::toString(), ossimString::toString(), and ossimRefPtr< T >::valid().
void ossimInfo::getCenterImage | ( | ossimKeywordlist & | kwl | ) |
Populates keyword list with image center point.
kwl | Keyword list to populate. |
Definition at line 2104 of file ossimInfo.cpp.
References ossimRefPtr< T >::get(), m_img, and ossimRefPtr< T >::valid().
Referenced by getCenterImage().
|
private |
Definition at line 2112 of file ossimInfo.cpp.
References getCenterImage(), and ossimImageHandler::getEntryList().
|
private |
Definition at line 2128 of file ossimInfo.cpp.
References ossimKeywordlist::add(), ossimString::c_str(), ossimImageHandler::getBoundingRect(), ossimImageHandler::getFilename(), ossimDrect::hasNans(), ossimDrect::midPoint(), ossimNotify(), ossimNotifyLevel_WARN, ossimImageHandler::setCurrentEntry(), ossimDpt::toString(), and ossimString::toString().
|
inlinevirtual |
void ossimInfo::getGrd2img | ( | ossimKeywordlist & | kwl | ) |
Populates keyword list with image point for grund point.
Associated input key values: "grd2img: (lat,lon,hgt,datum)" Output key: image0.image_point: (x, y)
kwl | Keyword list to populate. |
Definition at line 2367 of file ossimInfo.cpp.
References ossimRefPtr< T >::get(), m_img, and ossimRefPtr< T >::valid().
Referenced by getGrd2img().
|
private |
Gets gound point from image point.
Input key:value "img2grd: <x> <y>"
Pointer | to an image handler. |
kwl | Keyword list to populate. |
Definition at line 2375 of file ossimInfo.cpp.
References ossimImageHandler::getEntryList(), and getGrd2img().
|
private |
Gets gound point from image point.
Input key:value "img2grd: <x> <y>"
Pointer | to an image handler. |
entry | Entry number to select. Note this is the entry number from the getEntryList call not a simple zero based entry index. |
kwl | Keyword list to populate. |
Definition at line 2391 of file ossimInfo.cpp.
References ossimKeywordlist::findKey(), ossimImageHandler::getImageGeometry(), ossimTool::m_kwl, ossimImageHandler::setCurrentEntry(), ossimString::toString(), and ossimRefPtr< T >::valid().
void ossimInfo::getImageBounds | ( | ossimKeywordlist & | kwl | ) |
Populates keyword list with edge to edge image bounds.
kwl | Keyword list to populate. |
Definition at line 2216 of file ossimInfo.cpp.
References ossimRefPtr< T >::get(), m_img, and ossimRefPtr< T >::valid().
Referenced by getImageBounds().
|
private |
Definition at line 2224 of file ossimInfo.cpp.
References ossimImageHandler::getEntryList(), and getImageBounds().
|
private |
Definition at line 2240 of file ossimInfo.cpp.
References ossimKeywordlist::add(), ossimString::c_str(), ossimDrect::expand(), ossimImageGeometry::getBoundingRect(), ossimImageHandler::getFilename(), ossimImageHandler::getImageGeometry(), ossimDrect::hasNans(), ossimDrect::ll(), ossimImageGeometry::localToWorld(), ossimDrect::lr(), ossimNotify(), ossimNotifyLevel_WARN, ossimImageHandler::setCurrentEntry(), ossimGpt::toString(), ossimString::toString(), ossimDrect::ul(), ossimDrect::ur(), and ossimRefPtr< T >::valid().
void ossimInfo::getImageGeometryInfo | ( | ossimKeywordlist & | kwl, |
bool | dnoFlag | ||
) |
Populates keyword list with image geometry/projection information.
This requires open image.
kwl | Keyword list to populate. |
dnoFlag | If true no entries flaged as overviews will be output. |
Definition at line 1949 of file ossimInfo.cpp.
References ossimRefPtr< T >::get(), m_img, and ossimRefPtr< T >::valid().
Referenced by getImageGeometryInfo(), and getImageInfo().
bool ossimInfo::getImageGeometryInfo | ( | ossim_uint32 | entry, |
ossimKeywordlist & | kwl, | ||
bool | dnoFlag | ||
) |
Populates keyword list with image geometry/projection information.
entry | Entry number to select. Note this is the entry number from the getEntryList call not a simple zero based entry index. |
kwl | Keyword list to populate. |
dnoFlag | If true no entries flaged as overviews will be output. |
This requires open image.
Definition at line 1980 of file ossimInfo.cpp.
References ossimRefPtr< T >::get(), getImageGeometryInfo(), m_img, and ossimRefPtr< T >::valid().
|
private |
Populates keyword list with image geometry/projection information.
ih | Pointer to an image handler. |
kwl | Keyword list to populate. |
dnoFlag | If true no entries flaged as overviews will be output. |
Definition at line 1957 of file ossimInfo.cpp.
References ossimKeywordlist::add(), ossimImageHandler::getEntryList(), getImageGeometryInfo(), and ossimKeywordNames::NUMBER_ENTRIES_KW.
|
private |
Populates keyword list with image geometry/projection information.
ih | Pointer to an image handler. |
entry | Entry number to select. Note this is the entry number from the getEntryList call not a simple zero based entry index. |
kwl | Keyword list to populate. |
dnoFlag | If true no entries flaged as overviews will be output. |
Definition at line 1990 of file ossimInfo.cpp.
References ossimKeywordlist::add(), DBL_EPSILON, ossimKeywordNames::DECIMAL_DEGREES_PER_PIXEL_LAT, ossimKeywordNames::DECIMAL_DEGREES_PER_PIXEL_LON, ossimKeywordlist::find(), ossimImageHandler::getBoundingRect(), ossimImageHandler::getFilename(), ossimImageHandler::getImageGeometry(), ossimImageGeometry::getMetersPerPixel(), ossimDrect::height(), ossimSupportFilesList::instance(), isImageEntryOverview(), ossimGpt::latd(), ossimDrect::ll(), ossimImageGeometry::localToWorld(), ossimGpt::lon, ossimGpt::lond(), ossimDrect::lr(), ossimKeywordNames::METERS_PER_PIXEL_X_KW, ossimKeywordNames::METERS_PER_PIXEL_Y_KW, ossimNotify(), ossimNotifyLevel_WARN, ossimSupportFilesList::save(), ossimImageGeometry::saveState(), ossimImageHandler::setCurrentEntry(), ossimKeywordNames::TIE_POINT_LAT_KW, ossimKeywordNames::TIE_POINT_LON_KW, ossimString::toString(), ossimDrect::ul(), ossimDrect::ur(), ossimRefPtr< T >::valid(), ossimDrect::width(), ossimDpt::x, and ossimDpt::y.
ossimRefPtr< ossimImageHandler > ossimInfo::getImageHandler | ( | ) |
Definition at line 1669 of file ossimInfo.cpp.
References m_img.
void ossimInfo::getImageInfo | ( | const ossimFilename & | file, |
bool | dumpFlag, | ||
bool | dnoFlag, | ||
bool | imageGeomFlag, | ||
bool | imageInfoFlag, | ||
bool | metaDataFlag, | ||
bool | paletteFlag, | ||
ossimKeywordlist & | kwl | ||
) | const |
getImageInfo Method to open image "file" and get image info in the form of a ossimKeywordlist.
Flags turn on various pieces of info. These equate to options in ossim-info for image information.
file | Image file to get information for. |
dumpFlag | ossim-info -d |
dnoFlag | ossim-info –dno |
imageGeomFlag | ossim-info -p |
imageInfoFlag | ossim-info -i |
metaDataFlag | ossim-info -m |
paletteFlag | ossim-info –palette |
kwl | Initialized by this method. |
Definition at line 1532 of file ossimInfo.cpp.
References dumpImage(), ossimRefPtr< T >::get(), getImageGeometryInfo(), getImageMetadata(), getImagePalette(), openImageHandler(), and ossimRefPtr< T >::valid().
Referenced by getImageInfo().
bool ossimInfo::getImageInfo | ( | const ossimFilename & | file, |
ossim_uint32 | entry, | ||
ossimKeywordlist & | kwl | ||
) | const |
getImageInfo Method to open image "file" and get image info for entry in the form of a ossimKeywordlist.
Equivalent of ossim-info -i -p <image> for entry.
Throws ossimException on error if file cannot be opened or entry is invalid.
file | Image file to get information for. |
entry | Entry index to open. |
Definition at line 1573 of file ossimInfo.cpp.
References ossimRefPtr< T >::get(), getImageGeometryInfo(), getImageInfo(), openImageHandler(), ossimImageHandler::setCurrentEntry(), and ossimRefPtr< T >::valid().
void ossimInfo::getImageInfo | ( | ossimKeywordlist & | kwl, |
bool | dnoFlag | ||
) |
Populates keyword list with general image information.
This requires open image.
kwl | Keyword list to populate. |
dnoFlag | If true no entries flaged as overviews will be output. |
Definition at line 1809 of file ossimInfo.cpp.
References ossimRefPtr< T >::get(), getImageInfo(), m_img, and ossimRefPtr< T >::valid().
bool ossimInfo::getImageInfo | ( | ossim_uint32 | entry, |
ossimKeywordlist & | kwl, | ||
bool | dnoFlag | ||
) |
Populates keyword list with general image information.
entry | Entry number to select. Note this is the entry number from the getEntryList call not a simple zero based entry index. |
kwl | Keyword list to populate. |
dnoFlag | If true no entries flaged as overviews will be output. |
This requires open image.
Definition at line 1841 of file ossimInfo.cpp.
References ossimRefPtr< T >::get(), getImageInfo(), m_img, and ossimRefPtr< T >::valid().
|
private |
Populates keyword list with general image information.
ih | Pointer to an image handler. |
kwl | Keyword list to populate. |
dnoFlag | If true no entries flaged as overviews will be output. |
Definition at line 1817 of file ossimInfo.cpp.
References ossimKeywordlist::add(), ossimImageHandler::getEntryList(), getImageInfo(), and ossimKeywordNames::NUMBER_ENTRIES_KW.
|
private |
Populates keyword list with general image information.
ih | Pointer to an image handler. |
entry | Entry number to select. Note this is the entry number from the getEntryList call not a simple zero based entry index. |
kwl | Keyword list to populate. |
dnoFlag | If true no entries flaged as overviews will be output. |
Definition at line 1851 of file ossimInfo.cpp.
References ossimKeywordlist::add(), ossimString::c_str(), ossimKeywordNames::ENTRY_KW, ossimImageHandler::getBoundingRect(), ossimObject::getClassName(), ossimImageHandler::getEntryName(), ossimImageHandler::getMaxPixelValue(), ossimImageHandler::getMinPixelValue(), ossimImageHandler::getNullPixelValue(), ossimImageHandler::getNumberOfDecimationLevels(), ossimImageSource::getNumberOfInputBands(), ossimImageSource::getNumberOfOutputBands(), ossimImageSource::getOutputScalarType(), ossimImageHandler::getOverview(), getRadiometry(), getRgbBands(), ossimObject::getShortName(), ossimDrect::height(), isImageEntryOverview(), ossimDrect::lr(), ossimKeywordNames::LR_X_KW, ossimKeywordNames::LR_Y_KW, ossimKeywordNames::NUMBER_INPUT_BANDS_KW, ossimKeywordNames::NUMBER_LINES_KW, ossimKeywordNames::NUMBER_OUTPUT_BANDS_KW, ossimKeywordNames::NUMBER_SAMPLES_KW, ossimImageHandler::setCurrentEntry(), ossimString::toString(), ossimDrect::ul(), ossimKeywordNames::UL_X_KW, ossimKeywordNames::UL_Y_KW, ossimDrect::width(), ossimDpt::x, and ossimDpt::y.
void ossimInfo::getImageMetadata | ( | ossimKeywordlist & | kwl | ) | const |
Populates keyword list with metadata.
This requires open image.
kwl | Keyword list to populate. |
Definition at line 1722 of file ossimInfo.cpp.
References ossimRefPtr< T >::get(), m_img, and ossimRefPtr< T >::valid().
Referenced by getImageInfo().
|
private |
Populates keyword list with metadata.
ih | Pointer to an image handler. |
kwl | Keyword list to populate. |
Definition at line 1730 of file ossimInfo.cpp.
References ossimKeywordlist::add(), ossimString::c_str(), ossimPropertyInterface::getPropertyList(), ossimContainerProperty::getPropertyList(), and PTR_CAST.
void ossimInfo::getImagePalette | ( | ossimKeywordlist & | kwl | ) |
Populates keyword list with palette data.
This requires open image.
kwl | Keyword list to populate. |
Definition at line 1777 of file ossimInfo.cpp.
References ossimRefPtr< T >::get(), m_img, and ossimRefPtr< T >::valid().
Referenced by getImageInfo().
|
private |
Populates keyword list with palette data.
ih | Pointer to an image handler. |
kwl | Keyword list to populate. |
Definition at line 1785 of file ossimInfo.cpp.
References ossimImageHandler::getEntryList(), ossimImageHandler::getLut(), ossimImageHandler::getNumberOfEntries(), ossimNBandLutDataObject::saveState(), ossimImageHandler::setCurrentEntry(), ossimString::toString(), and ossimRefPtr< T >::valid().
void ossimInfo::getImageRect | ( | ossimKeywordlist & | kwl | ) |
Populates keyword list with image rectangle.
This requires open image.
kwl | Keyword list to populate. |
Definition at line 2584 of file ossimInfo.cpp.
References ossimRefPtr< T >::get(), m_img, and ossimRefPtr< T >::valid().
Referenced by getImageRect().
void ossimInfo::getImageRect | ( | ossim_uint32 | entry, |
ossimKeywordlist & | kwl | ||
) |
Populates keyword list with image rectangle.
entry | Entry number to select. Note this is the entry number from the getEntryList call not a simple zero based entry index. |
kwl | Keyword list to populate. |
This requires open image.
Definition at line 2632 of file ossimInfo.cpp.
References ossimRefPtr< T >::get(), getImageRect(), m_img, and ossimRefPtr< T >::valid().
|
private |
Populates keyword list with image rectangle.
kwl | Keyword list to populate. |
Definition at line 2592 of file ossimInfo.cpp.
References ossimImageHandler::getEntryList(), and getImageRect().
|
private |
Populates keyword list with image rectangle.
entry | Entry number to select. Note this is the entry number from the getEntryList call not a simple zero based entry index. |
kwl | Keyword list to populate. |
Definition at line 2640 of file ossimInfo.cpp.
References ossimKeywordlist::add(), ossimString::c_str(), ossimImageHandler::getBoundingRect(), ossimImageHandler::getFilename(), ossimNotify(), ossimNotifyLevel_WARN, ossimImageHandler::setCurrentEntry(), ossimIrect::toString(), and ossimString::toString().
void ossimInfo::getImageToGround | ( | ossimKeywordlist & | kwl | ) |
Populates keyword list with image_to_ground.
It will outoput image_point and ground_point
kwl | Keyword list to populate. |
This requires open image.
void ossimInfo::getImageToGround | ( | ossim_uint32 | entry, |
ossimKeywordlist & | kwl | ||
) |
Populates keyword list with image_to_ground.
It will outoput image_point and ground_point
entry | Entry number to select. Note this is the entry number from the getEntryList call not a simple zero based entry index. |
kwl | Keyword list to populate. |
This requires open image.
void ossimInfo::getImg2grd | ( | ossimKeywordlist & | kwl | ) |
Populates keyword list with ground point for image point.
Associated input key values: "img2grd: <x> <y>" Output key: image0.ground_point: (lat,lon,hgt,datum)
kwl | Keyword list to populate. |
Definition at line 2288 of file ossimInfo.cpp.
References ossimRefPtr< T >::get(), m_img, and ossimRefPtr< T >::valid().
Referenced by getImg2grd().
|
private |
Gets gound point from image point.
Input key:value "img2grd: <x> <y>"
Pointer | to an image handler. |
kwl | Keyword list to populate. |
Definition at line 2296 of file ossimInfo.cpp.
References ossimImageHandler::getEntryList(), and getImg2grd().
|
private |
Gets gound point from image point.
Input key:value "img2grd: <x> <y>"
Pointer | to an image handler. |
entry | Entry number to select. Note this is the entry number from the getEntryList call not a simple zero based entry index. |
kwl | Keyword list to populate. |
Definition at line 2312 of file ossimInfo.cpp.
References ossimDrect::expand(), ossimKeywordlist::findKey(), ossimImageGeometry::getBoundingRect(), ossimImageHandler::getImageGeometry(), ossimDrect::hasNans(), ossimTool::m_kwl, ossimImageHandler::setCurrentEntry(), ossimString::toString(), and ossimRefPtr< T >::valid().
void ossimInfo::getNorthUpAngle | ( | ossimKeywordlist & | kwl | ) |
Populates keyword list with north_up_angle.
kwl | Keyword list to populate. |
This requires open image.
Definition at line 2519 of file ossimInfo.cpp.
References ossimRefPtr< T >::get(), m_img, and ossimRefPtr< T >::valid().
Referenced by getNorthUpAngle().
void ossimInfo::getNorthUpAngle | ( | ossim_uint32 | entry, |
ossimKeywordlist & | kwl | ||
) |
Populates keyword list with north_up_angle.
entry | Entry number to select. Note this is the entry number from the getEntryList call not a simple zero based entry index. |
kwl | Keyword list to populate. |
dnoFlag | If true no entries flaged as overviews will be output. |
This requires open image.
Definition at line 2543 of file ossimInfo.cpp.
References ossimRefPtr< T >::get(), getNorthUpAngle(), m_img, and ossimRefPtr< T >::valid().
|
private |
Populates keyword list with north_up_angle.
kwl | Keyword list to populate. |
Definition at line 2527 of file ossimInfo.cpp.
References ossimImageHandler::getEntryList(), and getNorthUpAngle().
|
private |
Populates keyword list with north_up_angle.
entry | Entry number to select. Note this is the entry number from the getEntryList call not a simple zero based entry index. |
kwl | Keyword list to populate. |
Definition at line 2551 of file ossimInfo.cpp.
References ossimKeywordlist::add(), ossimImageHandler::getImageGeometry(), ossimImageGeometry::northUpAngle(), ossimImageHandler::setCurrentEntry(), ossimString::toString(), and ossimRefPtr< T >::valid().
void ossimInfo::getRadiometry | ( | ossimScalarType | scalar, |
std::string & | s | ||
) | const |
Gets the radiometry string, i.e.
"8-bit" and so on, from scalar.
scalar | Scalar type. |
s | String to initialize. |
Definition at line 3290 of file ossimInfo.cpp.
References OSSIM_DOUBLE, OSSIM_FLOAT32, OSSIM_NORMALIZED_DOUBLE, OSSIM_NORMALIZED_FLOAT, OSSIM_SINT16, OSSIM_SINT32, OSSIM_UINT16, OSSIM_UINT32, OSSIM_UINT8, OSSIM_USHORT11, OSSIM_USHORT12, OSSIM_USHORT13, OSSIM_USHORT14, and OSSIM_USHORT15.
Referenced by getImageInfo().
void ossimInfo::getRevisionNumber | ( | std::string & | s | ) | const |
Gets revision number.
s | String to initialize. |
Definition at line 3382 of file ossimInfo.cpp.
References OSSIM_REVISION.
|
private |
Populates keyword list with rgb bands if available.
This is image handler specific and within image handler specific to internal metadata, e.g. NITF IREPBAND keys.
Example of key:value: rgb_bands:(2,1,0)
ih | Pointer to image handler. |
entry | Current entry of image handler. |
kwl | Keyword list to populate. |
Definition at line 2608 of file ossimInfo.cpp.
References ossimKeywordlist::add(), ossimString::c_str(), ossimImageHandler::getRgbBandList(), and ossimString::toString().
Referenced by getImageInfo().
void ossimInfo::getUpIsUpAngle | ( | ossimKeywordlist & | kwl | ) |
Populates keyword list with up_is_up_angle.
kwl | Keyword list to populate. |
This requires open image.
Definition at line 2427 of file ossimInfo.cpp.
References ossimRefPtr< T >::get(), m_img, and ossimRefPtr< T >::valid().
Referenced by getUpIsUpAngle().
void ossimInfo::getUpIsUpAngle | ( | ossim_uint32 | entry, |
ossimKeywordlist & | kwl | ||
) |
Populates keyword list with up_is_up_angle.
entry | Entry number to select. Note this is the entry number from the getEntryList call not a simple zero based entry index. |
kwl | Keyword list to populate. |
dnoFlag | If true no entries flaged as overviews will be output. |
This requires open image.
Definition at line 2451 of file ossimInfo.cpp.
References ossimRefPtr< T >::get(), getUpIsUpAngle(), m_img, and ossimRefPtr< T >::valid().
|
private |
Populates keyword list with up_is_up_angle.
kwl | Keyword list to populate. |
Definition at line 2435 of file ossimInfo.cpp.
References ossimImageHandler::getEntryList(), and getUpIsUpAngle().
|
private |
Populates keyword list with up_is_up_angle.
entry | Entry number to select. Note this is the entry number from the getEntryList call not a simple zero based entry index. |
kwl | Keyword list to populate. |
Definition at line 2459 of file ossimInfo.cpp.
References ossimKeywordlist::find(), ossimImageHandler::getImageGeometry(), ossimImageGeometry::isAffectedByElevation(), ossimTool::m_kwl, ossimDpt::makeNan(), ossimImageHandler::setCurrentEntry(), ossimString::toString(), and ossimRefPtr< T >::valid().
void ossimInfo::getVersion | ( | std::string & | s | ) | const |
Gets version.
s | String to initialize. |
Definition at line 3391 of file ossimInfo.cpp.
References OSSIM_VERSION.
|
virtual |
Initial method.
Typically called from application prior to execute. This parses all options and put in keyword list m_kwl.
ap | Arg parser to initialize from. |
Reimplemented from ossimTool.
Definition at line 269 of file ossimInfo.cpp.
bool ossimInfo::isImageEntryOverview | ( | ) | const |
Definition at line 2665 of file ossimInfo.cpp.
References ossimRefPtr< T >::get(), m_img, and ossimRefPtr< T >::valid().
Referenced by getImageGeometryInfo(), and getImageInfo().
|
private |
Definition at line 2675 of file ossimInfo.cpp.
References ossimImageHandler::getProperty(), ossimString::toFloat32(), ossimRefPtr< T >::valid(), and ossimProperty::valueToString().
|
private |
Definition at line 3414 of file ossimInfo.cpp.
References ossimKeywordlist::findKey(), ossimTool::m_kwl, and ossimString::toBool().
void ossimInfo::mtrs2ft | ( | const ossim_float64 & | meters, |
bool | us_survey | ||
) | const |
Converts meters to feet and outputs to stdout.
Definition at line 2905 of file ossimInfo.cpp.
References ossimNotify(), and ossimNotifyLevel_INFO.
std::ostream & ossimInfo::mtrs2ft | ( | const ossim_float64 & | meters, |
bool | us_survey, | ||
std::ostream & | out | ||
) | const |
Converts meters to feet and outputs to stream.
out | Output to write to out. |
Definition at line 2910 of file ossimInfo.cpp.
References MTRS_PER_FT, and US_METERS_PER_FT.
void ossimInfo::mtrsPerDeg | ( | const ossim_float64 & | latitude | ) | const |
Get meters per degree for a given latitude and outputs to stdout.
latitude |
Definition at line 2941 of file ossimInfo.cpp.
References ossimNotify(), and ossimNotifyLevel_INFO.
std::ostream & ossimInfo::mtrsPerDeg | ( | const ossim_float64 & | latitude, |
std::ostream & | out | ||
) | const |
Get meters per degree for a given latitude and outputs to stream.
latitude | |
out | Output to write to out. |
Definition at line 2946 of file ossimInfo.cpp.
References ossimGpt::datum(), ossimDatum::ellipsoid(), ossimEllipsoid::geodeticRadius(), ossimGpt::metersPerDegree(), ossimDpt::x, and ossimDpt::y.
void ossimInfo::openImage | ( | const ossimFilename & | file | ) |
Opens image handler and stores in m_img data member.
Image | to open. |
Definition at line 1602 of file ossimInfo.cpp.
References ossimString::downcase(), ossimFilename::ext(), m_img, openImageFromState(), and openImageHandler().
void ossimInfo::openImageFromState | ( | const ossimFilename & | file | ) |
Opens image handler and stores in m_img data member.
Image | to open. |
Definition at line 1614 of file ossimInfo.cpp.
References ossimKeywordlist::addFile(), ossim::ImageHandlerStateRegistry::instance(), ossimImageHandlerRegistry::instance(), m_img, and ossimImageHandlerRegistry::open().
Referenced by openImage().
|
private |
Opens image.
Image | to open. |
Definition at line 1629 of file ossimInfo.cpp.
References ossimKeywordlist::addFile(), ossimString::downcase(), ossimFilename::ext(), ossimKeywordlist::find(), ossim::ImageHandlerStateRegistry::instance(), ossimImageHandlerRegistry::instance(), ossimTool::m_kwl, ossimImageHandlerRegistry::open(), ossimString::string(), ossimString::toBool(), and ossimRefPtr< T >::valid().
Referenced by getImageInfo(), and openImage().
void ossimInfo::outputHeight | ( | const ossimGpt & | gpt | ) | const |
Gets the height for ground point (latitude, longitude).
Outputs to stdout.
gpt | Ground point. |
Definition at line 2969 of file ossimInfo.cpp.
References ossimNotify(), and ossimNotifyLevel_INFO.
std::ostream & ossimInfo::outputHeight | ( | const ossimGpt & | gpt, |
std::ostream & | out | ||
) | const |
Gets the height for ground point (latitude, longitude).
Outputs to out.
out | Output to write to out. |
Definition at line 2974 of file ossimInfo.cpp.
References ossimElevManager::getHeightAboveEllipsoid(), ossimElevManager::getHeightAboveMSL(), ossimElevManager::getOpenCellList(), ossimGeoidManager::instance(), ossimElevManager::instance(), ossim::isnan(), ossim::nan(), ossimGeoidManager::offsetFromEllipsoid(), and ossimGpt::wrap().
|
private |
Convert keyword list to xml then outputs to standard out.
kwl | Keyword list to output. |
Definition at line 3400 of file ossimInfo.cpp.
References ossimXmlDocument::fromKwl(), ossimNotify(), and ossimNotifyLevel_INFO.
|
private |
Convert keyword list to xml then outputs to file.
kwl | Keyword list to output. |
file | Output file to write to. |
Definition at line 3407 of file ossimInfo.cpp.
References ossimXmlDocument::fromKwl(), and ossimXmlDocument::write().
void ossimInfo::prettyPrint | ( | const ossimFilename & | file | ) | const |
Dumps the image information from ossimInfoFactoryRegistry.
Definition at line 1674 of file ossimInfo.cpp.
References ossimString::c_str(), ossimInfoFactoryRegistry::create(), ossimInfoFactoryRegistry::instance(), ossimNotify(), and ossimNotifyLevel_INFO.
void ossimInfo::printConfiguration | ( | ) | const |
Dumps ossim preferences/configuration data.
Definition at line 2695 of file ossimInfo.cpp.
References ossimNotify(), and ossimNotifyLevel_INFO.
std::ostream & ossimInfo::printConfiguration | ( | std::ostream & | out | ) | const |
Dumps ossim preferences/configuration data.
out | Output to write to. |
Definition at line 2700 of file ossimInfo.cpp.
References ossimPreferences::getPreferencesFilename(), ossimPreferences::instance(), and ossimPreferences::preferencesKWL().
void ossimInfo::printDatums | ( | ) | const |
Dumps datum list to stdout.
Definition at line 2737 of file ossimInfo.cpp.
References ossimNotify(), and ossimNotifyLevel_INFO.
std::ostream & ossimInfo::printDatums | ( | std::ostream & | out | ) | const |
Dumps datum list to stream.
Definition at line 2742 of file ossimInfo.cpp.
References ossimString::c_str(), ossimDatum::code(), ossimDatumFactoryRegistry::create(), ossimDatum::ellipsoid(), ossimDatum::epsgCode(), ossimDatumFactoryRegistry::getList(), ossimDatumFactoryRegistry::instance(), ossimDatum::name(), and ossimEllipsoid::name().
void ossimInfo::printExtensions | ( | ) | const |
Prints supported image file extensions to stdout.
Definition at line 3054 of file ossimInfo.cpp.
References ossimNotify(), and ossimNotifyLevel_INFO.
std::ostream & ossimInfo::printExtensions | ( | std::ostream & | out | ) | const |
Prints supported image file extensions to stream.
out | Output to write to out. |
Definition at line 3059 of file ossimInfo.cpp.
References ossimImageHandlerFactoryBase::UniqueList< T >::getList(), ossimImageHandlerRegistry::getSupportedExtensions(), and ossimImageHandlerRegistry::instance().
void ossimInfo::printFactories | ( | bool | keywordListFlag | ) | const |
Prints factories.
keywordListFlag | If true the result of a saveState will be output for each factory. |
Definition at line 2710 of file ossimInfo.cpp.
References ossimObjectFactoryRegistry::createObject(), ossimObjectFactoryRegistry::getTypeNameList(), ossimObjectFactoryRegistry::instance(), and ossimObject::saveState().
void ossimInfo::printFonts | ( | ) | const |
Prints fonts list to stdout.
Definition at line 2790 of file ossimInfo.cpp.
References ossimNotify(), and ossimNotifyLevel_INFO.
std::ostream & ossimInfo::printFonts | ( | std::ostream & | out | ) | const |
Prints fonts list to stream.
Definition at line 2795 of file ossimInfo.cpp.
References ossimFontFactoryRegistry::getDefaultFont(), ossimFont::getFamilyName(), ossimFontFactoryRegistry::getFontInformation(), ossimFontFactoryRegistry::instance(), and ossimRefPtr< T >::valid().
void ossimInfo::printOverviewTypes | ( | ) | const |
Prints overview types to stdout.
Definition at line 3115 of file ossimInfo.cpp.
References ossimNotify(), and ossimNotifyLevel_INFO.
std::ostream & ossimInfo::printOverviewTypes | ( | std::ostream & | out | ) | const |
Prints overview types to stream.
Definition at line 3120 of file ossimInfo.cpp.
References ossimOverviewBuilderFactoryRegistry::getTypeNameList(), and ossimOverviewBuilderFactoryRegistry::instance().
void ossimInfo::printPlugins | ( | ) | const |
Prints loaded plugins to stdout.
Definition at line 3079 of file ossimInfo.cpp.
References ossimNotify(), and ossimNotifyLevel_INFO.
std::ostream & ossimInfo::printPlugins | ( | std::ostream & | out | ) | const |
Prints loaded plugins to stream.
out | Output to write to out. |
Definition at line 3084 of file ossimInfo.cpp.
References ossimSharedPluginRegistry::instance(), and ossimSharedPluginRegistry::printAllPluginInformation().
void ossimInfo::printProjections | ( | ) | const |
Prints projections to stdout.
Definition at line 3133 of file ossimInfo.cpp.
References ossimNotify(), and ossimNotifyLevel_INFO.
std::ostream & ossimInfo::printProjections | ( | std::ostream & | out | ) | const |
Prints projections to stream.
Definition at line 3138 of file ossimInfo.cpp.
References ossimProjectionFactoryRegistry::instance().
void ossimInfo::printReaderProps | ( | ) | const |
Prints reader properties to stdout.
Definition at line 3157 of file ossimInfo.cpp.
References ossimNotify(), and ossimNotifyLevel_INFO.
std::ostream & ossimInfo::printReaderProps | ( | std::ostream & | out | ) | const |
Prints reader properties to stream.
Definition at line 3162 of file ossimInfo.cpp.
References ossimImageHandlerRegistry::instance(), and ossimImageHandlerRegistry::printReaderProps().
void ossimInfo::printResamplerFilters | ( | ) | const |
Prints resampler filters to stdout.
Definition at line 3167 of file ossimInfo.cpp.
References ossimNotify(), and ossimNotifyLevel_INFO.
std::ostream & ossimInfo::printResamplerFilters | ( | std::ostream & | out | ) | const |
Prints resampler filters to stream.
Definition at line 3172 of file ossimInfo.cpp.
References ossimFilterResampler::getFilterTypes().
void ossimInfo::printWriterProps | ( | ) | const |
Prints writer properties to stdout.
Definition at line 3280 of file ossimInfo.cpp.
References ossimNotify(), and ossimNotifyLevel_INFO.
std::ostream & ossimInfo::printWriterProps | ( | std::ostream & | out | ) | const |
Prints writer properties to stream.
Definition at line 3285 of file ossimInfo.cpp.
References ossimImageWriterFactoryRegistry::instance(), and ossimImageWriterFactoryRegistry::printWriterProps().
void ossimInfo::printWriters | ( | ) | const |
Prints list of available writers to stdout.
Definition at line 3187 of file ossimInfo.cpp.
References ossimNotify(), and ossimNotifyLevel_INFO.
std::ostream & ossimInfo::printWriters | ( | std::ostream & | out | ) | const |
Prints list of available writers to stream.
Definition at line 3192 of file ossimInfo.cpp.
References ossimImageWriterFactoryRegistry::instance(), and ossimImageWriterFactoryRegistry::printImageTypeList().
void ossimInfo::printZoomLevelGsds | ( | ) | const |
Prints zoom levels to stdout.
Definition at line 3197 of file ossimInfo.cpp.
References ossimNotify(), and ossimNotifyLevel_INFO.
std::ostream & ossimInfo::printZoomLevelGsds | ( | std::ostream & | out | ) | const |
void ossimInfo::rad2deg | ( | const ossim_float64 & | radians | ) | const |
Converts radians to degrees and outputs to stdout.
Definition at line 2848 of file ossimInfo.cpp.
References ossimNotify(), and ossimNotifyLevel_INFO.
std::ostream & ossimInfo::rad2deg | ( | const ossim_float64 & | radians, |
std::ostream & | out | ||
) | const |
Converts radians to degrees and outputs to stream.
out | Output to write to. |
Definition at line 2853 of file ossimInfo.cpp.
References DEG_PER_RAD.
|
virtual |
Adds application arguments to the argument parser.
ap | Parser to add to. |
Reimplemented from ossimTool.
Definition at line 126 of file ossimInfo.cpp.
References ossimApplicationUsage::addCommandLineOption(), ossimInit::addOptions(), DESCRIPTION, ossimArgumentParser::getApplicationName(), ossimArgumentParser::getApplicationUsage(), ossimInit::instance(), ossimApplicationUsage::setCommandLineUsage(), and ossimApplicationUsage::setDescription().
void ossimInfo::testPlugin | ( | const ossimFilename & | plugin | ) | const |
Test a plugin load and outputs to stdout.
plugin | Plugin to test. |
Definition at line 3097 of file ossimInfo.cpp.
References ossimNotify(), and ossimNotifyLevel_INFO.
std::ostream & ossimInfo::testPlugin | ( | const ossimFilename & | plugin, |
std::ostream & | out | ||
) | const |
Test a plugin load outputs to stream.
plugin | Plugin to test. |
out | Stream to write to. |
stream |
Definition at line 3102 of file ossimInfo.cpp.
References ossimFilename::expand(), and ossimSharedPluginRegistry::instance().
|
static |
Used by ossimUtilityFactory.
Definition at line 40 of file ossimInfo.h.
Referenced by ossimToolFactory::getCapabilities(), and setUsage().
|
private |
Holds the open image.
Definition at line 805 of file ossimInfo.h.
Referenced by closeImage(), getCenterGround(), getCenterImage(), getGrd2img(), getImageBounds(), getImageGeometryInfo(), getImageHandler(), getImageInfo(), getImageMetadata(), getImagePalette(), getImageRect(), getImg2grd(), getNorthUpAngle(), getUpIsUpAngle(), isImageEntryOverview(), openImage(), and openImageFromState().