43 std::shared_ptr<ossim::TiffHandlerState> state = std::make_shared<ossim::TiffHandlerState>();
44 if(state->loadDefaults(filename))
48 if(geotiff.
readTags(state, entryIdx))
87 std::shared_ptr<ossim::TiffHandlerState> state = std::dynamic_pointer_cast<ossim::TiffHandlerState>(tiff->
getState());
88 bool addGeometry =
false;
91 addGeometry = geotiff.
readTags(state,
114 const char* prefix)
const 126 unsigned char header[2];
128 in.open( filename.
c_str(), ios::in|ios::binary);
132 in.read( (
char*)header, 2);
134 if( (header[0] !=
'M' || header[1] !=
'M')
135 && (header[0] !=
'I' || header[1] !=
'I') )
bool isTiff(const ossimFilename &filename) const
static ossimTiffProjectionFactory * instance()
static ossimTiffProjectionFactory * theInstance
bool addImageGeometry(ossimKeywordlist &kwl, const char *prefix=0) const
Add geometry info from tags to keword list.
Represents serializable keyword/value map.
std::basic_ifstream< char > ifstream
Class for char input file streams.
std::shared_ptr< ossim::ImageHandlerState > getState()
virtual ossimObject * createObject(const ossimString &typeName) const
ossimProjection * createProjection(const ossimFilename &filename, ossim_uint32 entryIdx) const
virtual ossimProjection * createProjection(const ossimFilename &filename, ossim_uint32 entryIdx) const
takes a filename.
unsigned int ossim_uint32
virtual ossim_uint32 getCurrentEntry() const
static ossimProjectionFactoryRegistry * instance()
This class defines an abstract Handler which all image handlers(loaders) should derive from...
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string's contents...
ossimTiffProjectionFactory()
bool readTags(const ossimFilename &file, ossim_uint32 entryIdx=0)
Reads tags.
virtual void getTypeNameList(std::vector< ossimString > &typeList) const