40 static ossimTrace traceDebug(
"ossimAdrgTileSource:debug");
186 ulTilePt.
x = tileOrigin.
x;
211 int seek_position = (tileOffset - 1) * 49152 + 2048;
215 m_FileStr.seekg(seek_position, ios::beg);
216 for (band=0; band<3; band++)
288 static const char MODULE[] =
"ossimAdrgTileSource::open";
293 << MODULE <<
"Entered..."<<std::endl;
313 << MODULE <<
" Error in ossimAdrg header detected." << std::endl;
321 ios::in | ios::binary);
372 const char* prefix)
const 447 degPerPixelY ) - ( degPerPixelY * 0.5 ) );
450 degPerPixelX ) + ( degPerPixelX * 0.5 ) );
454 const char* prefix = 0;
457 "ossimEquDistCylProjection",
481 ossimDpt(ul_lon, ul_lat).toString().c_str(),
502 ossimDpt(degPerPixelX, degPerPixelY).toString().c_str(),
549 <<
"\nfull image lines: " << lines
550 <<
"\nfull image samples: " << samples
639 if(name ==
"file_type")
650 propertyNames.push_back(
"file_type");
virtual void loadBand(const void *src, const ossimIrect &src_rect, ossim_uint32 band)
virtual ossim_uint32 getWidth() const
virtual bool isSourceEnabled() const
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of an object from a keyword list.
ossimRefPtr< ossimImageGeometry > theGeometry
virtual ossimRefPtr< ossimImageGeometry > getImageGeometry()
Returns the image geometry object associated with this tile source or NULL if non defined...
ossimRefPtr< ossimImageData > m_Tile
void setProjection(ossimProjection *projection)
Sets the projection to be used for local-to-world coordinate transformation.
virtual ossimRefPtr< ossimImageData > getTile(const ossimIrect &rect, ossim_uint32 resLevel=0)
Returns a pointer to a tile given an origin representing the upper left corner of the tile to grab fr...
virtual ossim_uint32 getNumberOfBands() const
static const char * DATUM_KW
ossimFilename theImageFile
virtual void setImageRectangle(const ossimIrect &rect)
static const char * CENTRAL_MERIDIAN_KW
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save the state of an object to a keyword list.
Represents serializable keyword/value map.
virtual ossimString getShortName() const
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of an object from a keyword list.
virtual ossim_uint32 getNumberOfLines(ossim_uint32 resLevel=0) const =0
Pure virtual, derived classes must implement.
static const char * NUMBER_LINES_KW
static const char * TIE_POINT_LON_KW
virtual ossim_uint32 getImageTileWidth() const
Returns the tile width of the image or 0 if the image is not tiled.
static const char * NUMBER_INPUT_BANDS_KW
const ossimIpt & ul() const
virtual ossimDataObjectStatus getDataObjectStatus() const
virtual ossim_uint32 getHeight() const
static const ossimErrorCode OSSIM_ERROR
ossim_uint8 * m_TileBuffer
virtual ossim_uint32 getNumberOfSamples(ossim_uint32 reduced_res_level=0) const
Returns the number of samples in the image.
bool intersects(const ossimIrect &rect) const
static const char * TYPE_KW
virtual void initialize()
Initialize the data buffer.
void ref() const
increment the reference count by one, indicating that this object has another pointer which is refere...
virtual ossim_uint32 getNumberOfDecimationLevels() const
This returns the total number of decimation levels.
virtual bool isValidRLevel(ossim_uint32 resLevel) const
Determines if the passed in reslution level is valid.
virtual ossim_uint32 getImageTileHeight() const
Returns the tile width of the image or 0 if the image is not tiled.
static const char * PIXEL_SCALE_XY_KW
virtual void getPropertyNames(std::vector< ossimString > &propertyNames) const
void add(const char *prefix, const ossimKeywordlist &kwl, bool overwrite=true)
virtual bool getOverviewTile(ossim_uint32 resLevel, ossimImageData *result)
Method to get an overview tile.
static ossimImageDataFactory * instance()
virtual ossim_uint32 getTileHeight() const
Returns the height of the output tile.
ossimProjection * createProjection(const ossimFilename &filename, ossim_uint32 entryIdx) const
virtual ossimRefPtr< ossimProperty > getProperty(const ossimString &name) const
Gets a property for matching name.
virtual ossimDataObjectStatus validate() const
static const char * TIE_POINT_XY_KW
bool fillBuffer(const ossimIrect &tile_rect, const ossimIrect &clip_rect, ossimImageData *tile)
Returns true on success, false on error.
unsigned int ossim_uint32
static const char * NUMBER_OUTPUT_BANDS_KW
void adjustToStartOfTile(ossimIpt &pt) const
Adjust point to even 128 boundary.
virtual ossimIrect getImageRectangle() const
const ossimIpt & lr() const
virtual ossimRefPtr< ossimImageData > create(ossimSource *owner, ossimScalarType scalar, ossim_uint32 bands=1) const
ossimErrorCode theErrorStatus
void initImageParameters(ossimImageGeometry *geom) const
Convenience method to set things needed in the image geometry from the image handler.
ossimIrect clipToRect(const ossimIrect &rect) const
Container class that holds both 2D transform and 3D projection information for an image Only one inst...
void unref() const
decrement the reference count by one, indicating that a pointer to this object is referencing it...
virtual ossim_uint32 getNumberOfOutputBands() const
Returns the number of bands in a tile returned from this TileSource.
static ossimProjectionFactoryRegistry * instance()
virtual ossimScalarType getOutputScalarType() const
Returns the output pixel type of the tile source.
static const char * ORIGIN_LATITUDE_KW
virtual ossimRefPtr< ossimImageGeometry > getExternalImageGeometry() const
Returns the image geometry object associated with this tile source or NULL if non defined...
virtual ossimRefPtr< ossimProperty > getProperty(const ossimString &name) const
virtual ossimString getLongName() const
virtual ossim_uint32 getNumberOfInputBands() const
Returns the number of bands in the image.
virtual void makeBlank()
Initializes data to null pixel values.
virtual void completeOpen()
Will complete the opening process.
virtual void close()
Deletes the overview and clears the valid image vertices.
ossimRefPtr< ossimImageHandler > theOverview
This class defines an abstract Handler which all image handlers(loaders) should derive from...
virtual bool isOpen() const
Derived classes must implement this method to be concrete.
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string's contents...
virtual ~ossimAdrgTileSource()
virtual ossim_uint32 getNumberOfSamples(ossim_uint32 resLevel=0) const =0
Pure virtual, derived classes must implement.
virtual void getPropertyNames(std::vector< ossimString > &propertyNames) const
Gets a list of property names available.
static const char * TIE_POINT_LAT_KW
#define RTTI_DEF1(cls, name, b1)
static const char * NUMBER_REDUCED_RES_SETS_KW
virtual ossimIrect getImageRectangle(ossim_uint32 reduced_res_level=0) const
Returns the zero based image rectangle for the reduced resolution data set (rrds) passed in...
ossimAdrgHeader * m_AdrgHeader
static ossimUnitTypeLut * instance()
Returns the static instance of an ossimUnitTypeLut object.
virtual ossim_uint32 getTileWidth() const
Returns the width of the output tile.
static const char * NUMBER_SAMPLES_KW
unsigned char ossim_uint8
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save the state of an object to a keyword list.
static const char * PIXEL_SCALE_UNITS_KW
static const char * TIE_POINT_UNITS_KW
virtual ossim_uint32 getNumberOfLines(ossim_uint32 reduced_res_level=0) const
Returns the number of lines in the image.