/usr/include/ossim/util/ossimInfo.h is in libossim-dev 2.2.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 | //---
// File: ossimInfo.h
//
// License: MIT
//
// Author: David Burken
//
// Description: ossimInfo class declaration
//
// See class doxygen descriptions below for more.
//
//---
// $Id$
#ifndef ossimInfo_HEADER
#define ossimInfo_HEADER 1
#include <ossim/base/ossimConstants.h>
#include <ossim/base/ossimKeywordlist.h>
#include <ossim/base/ossimReferenced.h>
#include <ossim/base/ossimRefPtr.h>
#include <ossim/imaging/ossimImageHandler.h>
#include <ossim/util/ossimTool.h>
#include <ostream>
class ossimGpt;
/**
* @brief 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.
*/
class OSSIM_DLL ossimInfo : public ossimTool
{
public:
/** Used by ossimUtilityFactory */
static const char* DESCRIPTION;
/** default constructor */
ossimInfo();
/** virtual destructor */
virtual ~ossimInfo();
/**
* @brief Adds application arguments to the argument parser.
* @param ap Parser to add to.
*/
virtual void setUsage(ossimArgumentParser& ap);
/**
* @brief Initial method.
*
* Typically called from application prior to execute. This parses
* all options and put in keyword list m_kwl.
*
* @param ap Arg parser to initialize from.
*
* @return true, indicating process should continue with execute.
*/
virtual bool initialize(ossimArgumentParser& ap);
/**
* @brief execute method.
*
* Performs the actual dump of information. This executes any options
* set including image operations, i.e. -i -p --dno and so on.
*
* @note Throws ossimException on error.
*/
virtual bool execute();
virtual ossimString getClassName() const { return "ossimInfo"; }
/**
* @brief handles image options.
*
* Handles image type info opions, i.e. -i -p --dno and so on.
*
* @return Number of consumed options.
*/
ossim_uint32 executeImageOptions(const ossimFilename& file);
/**
* @brief 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.
*
* @param file Image file to get information for.
* @param dumpFlag ossim-info -d
* @param dnoFlag ossim-info --dno
* @param imageGeomFlag ossim-info -p
* @param imageInfoFlag ossim-info -i
* @param metaDataFlag ossim-info -m
* @param paletteFlag ossim-info --palette
* @param kwl Initialized by this method.
*/
void getImageInfo( const ossimFilename& file,
bool dumpFlag,
bool dnoFlag,
bool imageGeomFlag,
bool imageInfoFlag,
bool metaDataFlag,
bool paletteFlag,
ossimKeywordlist& kwl ) const;
/**
* @brief 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.
*
* @param file Image file to get information for.
* @param entry Entry index to open.
* @return true on success, false on error.
*/
bool getImageInfo( const ossimFilename& file,
ossim_uint32 entry,
ossimKeywordlist& kwl ) const;
/**
* @brief Opens image handler and stores in m_img data member.
* @param Image to open.
* @note Throws ossimException if image cannot be opened.
*/
void openImage(const ossimFilename& file);
/**
* @brief Opens image handler and stores in m_img data member.
* @param Image to open.
* @note Throws ossimException if image cannot be opened.
*/
void openImageFromState(const ossimFilename& file);
/** @brief Closes image if open. */
void closeImage();
/**
* @return Ref pointer to the image handler. Can be null if an image is
* not open.
*/
ossimRefPtr<ossimImageHandler> getImageHandler();
/** @brief Dumps the image information from ossimInfoFactoryRegistry */
void prettyPrint(const ossimFilename& file) const;
/**
* @brief Dumps the image information from ossimInfoFactoryRegistry to
* keyword list.
* @param file Image to dump.
* @param dnoFlag Dump no overviews. If true do not dump overviews.
* @param kwl Initialized by this method.
*/
void dumpImage(const ossimFilename& file,
bool dnoFlag,
ossimKeywordlist& kwl) const;
/**
* @brief Prints factories.
* @param keywordListFlag If true the result of a saveState will be output
* for each factory.
* */
void printFactories(bool keywordListFlag) const;
/**
* @brief Populates keyword list with metadata.
* This requires open image.
*
* @param kwl Keyword list to populate.
*/
void getImageMetadata(ossimKeywordlist& kwl) const;
/**
* @brief Populates keyword list with palette data.
* This requires open image.
*
* @param kwl Keyword list to populate.
*/
void getImagePalette(ossimKeywordlist& kwl);
/**
* @brief Populates keyword list with general image information.
*
* This requires open image.
*
* @param kwl Keyword list to populate.
* @param dnoFlag If true no entries flaged as overviews will be output.
*/
void getImageInfo(ossimKeywordlist& kwl, bool dnoFlag);
/**
* @brief Populates keyword list with general image information.
*
* @param entry Entry number to select. Note this is the entry number from
* the getEntryList call not a simple zero based entry index.
*
* @param kwl Keyword list to populate.
*
* @param dnoFlag If true no entries flaged as overviews will be output.
*
* This requires open image.
*
* @return true if entry info was saved to keyword list false if not.
*/
bool getImageInfo(ossim_uint32 entry, ossimKeywordlist& kwl, bool dnoFlag);
/**
* @brief Populates keyword list with image geometry/projection information.
*
* This requires open image.
*
* @param kwl Keyword list to populate.
* @param dnoFlag If true no entries flaged as overviews will be output.
*/
void getImageGeometryInfo(ossimKeywordlist& kwl, bool dnoFlag);
/**
* @brief Populates keyword list with image geometry/projection information.
*
* @param entry Entry number to select. Note this is the entry number
* from the getEntryList call not a simple zero based entry index.
*
* @param kwl Keyword list to populate.
*
* @param dnoFlag If true no entries flaged as overviews will be output.
*
* This requires open image.
*
* @return true if entry info was saved to keyword list false if not.
*/
bool getImageGeometryInfo( ossim_uint32 entry,
ossimKeywordlist& kwl,
bool dnoFlag );
/**
* @brief Populates keyword list with image center point..
* @param kwl Keyword list to populate.
*/
void getCenterImage(ossimKeywordlist& kwl);
/**
* @brief Populates keyword list with edge to edge image bounds.
* @param kwl Keyword list to populate.
*/
void getImageBounds(ossimKeywordlist& kwl);
/**
* @brief Populates keyword list with image center ground point..
* @param kwl Keyword list to populate.
*/
void getCenterGround(ossimKeywordlist& kwl);
/**
* @brief 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)
*
* @param kwl Keyword list to populate.
*/
void getImg2grd(ossimKeywordlist& kwl);
/**
* @brief 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)
*
* @param kwl Keyword list to populate.
*/
void getGrd2img(ossimKeywordlist& kwl);
/**
* @brief Populates keyword list with up_is_up_angle.
*
* @param kwl Keyword list to populate.
*
* This requires open image.
*/
void getUpIsUpAngle(ossimKeywordlist& kwl);
/**
* @brief Populates keyword list with up_is_up_angle.
*
* @param entry Entry number to select. Note this is the entry number
* from the getEntryList call not a simple zero based entry index.
*
* @param kwl Keyword list to populate.
*
* @param dnoFlag If true no entries flaged as overviews will be output.
*
* This requires open image.
*/
void getUpIsUpAngle(ossim_uint32 entry, ossimKeywordlist& kwl);
/**
* @brief Populates keyword list with image_to_ground. It will outoput image_point and ground_point
*
* @param kwl Keyword list to populate.
*
* This requires open image.
*/
void getImageToGround(ossimKeywordlist& kwl);
/**
* @brief Populates keyword list with image_to_ground. It will outoput image_point and ground_point
*
* @param entry Entry number to select. Note this is the entry number
* from the getEntryList call not a simple zero based entry index.
*
* @param kwl Keyword list to populate.
*
* This requires open image.
*/
void getImageToGround(ossim_uint32 entry, ossimKeywordlist& kwl);
/**
* @brief Populates keyword list with north_up_angle.
*
* @param kwl Keyword list to populate.
*
* This requires open image.
*/
void getNorthUpAngle(ossimKeywordlist& kwl);
/**
* @brief Populates keyword list with north_up_angle.
*
* @param entry Entry number to select. Note this is the entry number
* from the getEntryList call not a simple zero based entry index.
*
* @param kwl Keyword list to populate.
*
* @param dnoFlag If true no entries flaged as overviews will be output.
*
* This requires open image.
*/
void getNorthUpAngle(ossim_uint32 entry, ossimKeywordlist& kwl);
/**
* @brief Populates keyword list with image rectangle.
*
* This requires open image.
*
* @param kwl Keyword list to populate.
*/
void getImageRect(ossimKeywordlist& kwl);
/**
* @brief Populates keyword list with image rectangle.
*
* @param entry Entry number to select. Note this is the entry number from
* the getEntryList call not a simple zero based entry index.
*
* @param kwl Keyword list to populate.
*
* This requires open image.
*/
void getImageRect(ossim_uint32 entry, ossimKeywordlist& kwl);
/**
* @return true if current open image entry is an overview.
*/
bool isImageEntryOverview() const;
/** @brief Dumps ossim preferences/configuration data. */
void printConfiguration() const;
/**
* @brief Dumps ossim preferences/configuration data.
* @param out Output to write to.
* @return stream
*/
std::ostream& printConfiguration(std::ostream& out) const;
/** @brief Dumps datum list to stdout. */
void printDatums() const;
/** @brief Dumps datum list to stream. */
std::ostream& printDatums(std::ostream& out) const;
/** @brief Prints fonts list to stdout. */
void printFonts() const;
/** @brief Prints fonts list to stream. */
std::ostream& printFonts(std::ostream& out) const;
/** @brief Converts degrees to radians and outputs to stdout. */
void deg2rad(const ossim_float64& degrees) const;
/**
* @brief Converts degrees to radians and outputs to stream.
* @param out Output to write to.
* @return stream
*/
std::ostream& deg2rad(const ossim_float64& degrees, std::ostream& out) const;
/**
* @brief Converts ecef point to lat lon height.
* @param out Output to write to.
* @return stream
*/
std::ostream& ecef2llh(const ossimEcefPoint& ecefPoint, std::ostream& out) const;
/** @brief Converts radians to degrees and outputs to stdout. */
void rad2deg(const ossim_float64& radians) const;
/**
* @brief Converts radians to degrees and outputs to stream.
* @param out Output to write to.
* @return stream
*/
std::ostream& rad2deg(const ossim_float64& radians, std::ostream& out) const;
/** @brief Converts feet to meters and outputs to stdout. */
void ft2mtrs(const ossim_float64& feet, bool us_survey) const;
/**
* @brief Converts feet to meters and outputs to stream.
* @param out Output to write to out.
* @return stream
*/
std::ostream& ft2mtrs(const ossim_float64& feet, bool us_survey, std::ostream& out) const;
/** @brief Converts meters to feet and outputs to stdout. */
void mtrs2ft(const ossim_float64& meters, bool us_survey) const;
/**
* @brief Converts meters to feet and outputs to stream.
* @param out Output to write to out.
* @return stream
*/
std::ostream& mtrs2ft(const ossim_float64& meters, bool us_survey, std::ostream& out) const;
/**
* @brief Get meters per degree for a given latitude and outputs to stdout.
* @param latitude
*/
void mtrsPerDeg(const ossim_float64& latitude) const;
/**
* @brief Get meters per degree for a given latitude and outputs to stream.
* @param latitude
* @param out Output to write to out.
* @return stream
*/
std::ostream& mtrsPerDeg(const ossim_float64& latitude, std::ostream& out) const;
/**
* @brief Gets the height for ground point (latitude, longitude). Outputs
* to stdout.
* @param gpt Ground point.
*/
void outputHeight(const ossimGpt& gpt) const;
/**
* @brief Gets the height for ground point (latitude, longitude). Outputs
* to out.
* @param out Output to write to out.
* @return stream
*/
std::ostream& outputHeight(const ossimGpt& gpt, std::ostream& out) const;
/** @brief Prints loaded plugins to stdout. */
void printPlugins() const;
/**
* @brief Prints loaded plugins to stream.
* @param out Output to write to out.
* @return stream
*/
std::ostream& printPlugins(std::ostream& out) const;
/**
* @brief Test a plugin load and outputs to stdout.
*
* @param plugin Plugin to test.
*/
void testPlugin(const ossimFilename& plugin) const;
/**
* @brief Test a plugin load outputs to stream.
*
* @param plugin Plugin to test.
* @param out Stream to write to.
* @param stream
*/
std::ostream& testPlugin(const ossimFilename& plugin, std::ostream& out) const;
/** @brief Prints overview types to stdout. */
void printOverviewTypes() const;
/** @brief Prints overview types to stream. */
std::ostream& printOverviewTypes(std::ostream& out) const;
/** @breif Prints projections to stdout. */
void printProjections() const;
/** @breif Prints projections to stream. */
std::ostream& printProjections(std::ostream& out) const;
/** @brief Prints reader properties to stdout. */
void printReaderProps() const;
/** @brief Prints reader properties to stream. */
std::ostream& printReaderProps(std::ostream& out) const;
/** @brief Prints resampler filters to stdout. */
void printResamplerFilters() const;
/** @brief Prints resampler filters to stream. */
std::ostream& printResamplerFilters(std::ostream& out) const;
/** @brief Prints list of available writers to stdout. */
void printWriters() const;
/** @brief Prints list of available writers to stream. */
std::ostream& printWriters(std::ostream& out) const;
/** @brief Prints writer properties to stdout. */
void printWriterProps() const;
/** @brief Prints writer properties to stream. */
std::ostream& printWriterProps(std::ostream& out) const;
/** @brief Prints zoom levels to stdout. */
void printZoomLevelGsds() const;
/** @brief Prints zoom levels to stream. */
std::ostream& printZoomLevelGsds(std::ostream& out) const;
/**
* @brief Gets the radiometry string, i.e. "8-bit" and so on, from scalar.
* @param scalar Scalar type.
* @param s String to initialize.
*/
void getRadiometry(ossimScalarType scalar, std::string& s) const;
/**
* @brief Gets build date.
* @param s String to initialize.
*/
void getBuildDate(std::string& s) const;
/**
* @brief Gets revision number.
* @param s String to initialize.
*/
void getRevisionNumber(std::string& s) const;
/**
* @brief Gets version.
* @param s String to initialize.
*/
void getVersion(std::string& s) const;
private:
/**
* @brief Populates keyword list with metadata.
* @param ih Pointer to an image handler.
* @param kwl Keyword list to populate.
*/
void getImageMetadata( const ossimImageHandler* ih,
ossimKeywordlist& kwl ) const;
/**
* @brief Populates keyword list with palette data.
* @param ih Pointer to an image handler.
* @param kwl Keyword list to populate.
*/
void getImagePalette( ossimImageHandler* ih,
ossimKeywordlist& kwl ) const;
/**
* @brief Populates keyword list with general image information.
* @param ih Pointer to an image handler.
* @param kwl Keyword list to populate.
* @param dnoFlag If true no entries flaged as overviews will be output.
*/
void getImageInfo( ossimImageHandler* ih,
ossimKeywordlist& kwl,
bool dnoFlag ) const;
/**
* @brief Populates keyword list with general image information.
* @param ih Pointer to an image handler.
* @param entry Entry number to select. Note this is the entry number from
* the getEntryList call not a simple zero based entry index.
* @param kwl Keyword list to populate.
* @param dnoFlag If true no entries flaged as overviews will be output.
* @return true if entry info was saved to keyword list false if not.
*/
bool getImageInfo( ossimImageHandler* ih,
ossim_uint32 entry,
ossimKeywordlist& kwl,
bool dnoFlag ) const;
/**
* @brief Populates keyword list with image geometry/projection information.
* @param ih Pointer to an image handler.
* @param kwl Keyword list to populate.
* @param dnoFlag If true no entries flaged as overviews will be output.
*/
void getImageGeometryInfo( ossimImageHandler* ih,
ossimKeywordlist& kwl,
bool dnoFlag ) const;
/**
* @brief Populates keyword list with image geometry/projection information.
* @param ih Pointer to an image handler.
* @param entry Entry number to select. Note this is the entry number
* from the getEntryList call not a simple zero based entry index.
* @param kwl Keyword list to populate.
* @param dnoFlag If true no entries flaged as overviews will be output.
* @return true if entry info was saved to keyword list false if not.
*/
bool getImageGeometryInfo( ossimImageHandler* ih,
ossim_uint32 entry,
ossimKeywordlist& kwl,
bool dnoFlag ) const;
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;
/**
* @brief Gets gound point from image point.
*
* Input key:value "img2grd: <x> <y>"
*
* @param Pointer to an image handler.
* @param kwl Keyword list to populate.
*/
void getImg2grd( ossimImageHandler* ih,
ossimKeywordlist& kwl ) const;
/**
* @brief Gets gound point from image point.
*
* Input key:value "img2grd: <x> <y>"
*
* @param Pointer to an image handler.
* @param entry Entry number to select. Note this is the entry number
* from the getEntryList call not a simple zero based entry index.
* @param kwl Keyword list to populate.
*/
void getImg2grd( ossimImageHandler* ih,
ossim_uint32 entry,
ossimKeywordlist& kwl ) const;
/**
* @brief Gets gound point from image point.
*
* Input key:value "img2grd: <x> <y>"
*
* @param Pointer to an image handler.
* @param kwl Keyword list to populate.
*/
void getGrd2img( ossimImageHandler* ih,
ossimKeywordlist& kwl ) const;
/**
* @brief Gets gound point from image point.
*
* Input key:value "img2grd: <x> <y>"
*
* @param Pointer to an image handler.
* @param entry Entry number to select. Note this is the entry number
* from the getEntryList call not a simple zero based entry index.
* @param kwl Keyword list to populate.
*/
void getGrd2img( ossimImageHandler* ih,
ossim_uint32 entry,
ossimKeywordlist& kwl ) const;
/**
* @brief Populates keyword list with up_is_up_angle.
* @param kwl Keyword list to populate.
*/
void getUpIsUpAngle( ossimImageHandler* ih,
ossimKeywordlist& kwl ) const;
/**
* @brief Populates keyword list with up_is_up_angle.
* @param entry Entry number to select. Note this is the entry number from
* the getEntryList call not a simple zero based entry index.
* @param kwl Keyword list to populate.
*/
void getUpIsUpAngle( ossimImageHandler* ih,
ossim_uint32 entry,
ossimKeywordlist& kwl ) const;
/**
* @brief Populates keyword list with north_up_angle.
* @param kwl Keyword list to populate.
*/
void getNorthUpAngle( ossimImageHandler* ih,
ossimKeywordlist& kwl ) const;
/**
* @brief Populates keyword list with north_up_angle.
* @param entry Entry number to select. Note this is the entry number from
* the getEntryList call not a simple zero based entry index.
* @param kwl Keyword list to populate.
*/
void getNorthUpAngle( ossimImageHandler* ih,
ossim_uint32 entry,
ossimKeywordlist& kwl ) const;
/**
* @brief Populates keyword list with image rectangle.
*
* @param kwl Keyword list to populate.
*/
void getImageRect( ossimImageHandler* ih,
ossimKeywordlist& kwl ) const;
/**
* @brief Populates keyword list with image rectangle.
* @param entry Entry number to select. Note this is the entry number from
* the getEntryList call not a simple zero based entry index.
* @param kwl Keyword list to populate.
*/
void getImageRect( ossimImageHandler* ih,
ossim_uint32 entry,
ossimKeywordlist& kwl ) const;
/**
* @brief 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)
*
* @param ih Pointer to image handler.
* @param entry Current entry of image handler.
* @param kwl Keyword list to populate.
* @return true on success; false, on error.
*/
bool getRgbBands( ossimImageHandler* ih,
ossim_uint32 entry,
ossimKeywordlist& kwl ) const;
/** @return true if current open image entry is an overview. */
bool isImageEntryOverview( const ossimImageHandler* ih ) const;
/**
* @brief Convert keyword list to xml then outputs to standard out.
* @param kwl Keyword list to output.
*/
void outputXml( const ossimKeywordlist& kwl ) const;
/**
* @brief Convert keyword list to xml then outputs to file.
* @param kwl Keyword list to output.
* @param file Output file to write to.
*/
void outputXml( const ossimKeywordlist& kwl, const ossimFilename& file ) const;
/**
* @brief Opens image.
* @param Image to open.
* @return ossimRefPtr with image handler.
* @note Throws ossimException if image cannot be opened.
*/
ossimRefPtr<ossimImageHandler> openImageHandler(const ossimFilename& file) const;
/** @return true if key is set to true; false, if not. */
bool keyIsTrue( const std::string& key ) const;
/** Holds the open image. */
ossimRefPtr<ossimImageHandler> m_img;
};
#endif /* #ifndef ossimInfo_HEADER */
|