/usr/include/ossim/projection/ossimProjectionFactoryBase.h is in libossim-dev 1.7.21-3ubuntu2.
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 | //*******************************************************************
//
// License: See top level LICENSE.txt file.
//
// Author: Garrett Potts
//*******************************************************************
// $Id: ossimProjectionFactoryBase.h 12081 2007-11-26 21:44:18Z dburken $
#ifndef ossimProjectionFactoryBase_HEADER
#define ossimProjectionFactoryBase_HEADER
#include <list>
#include <ossim/base/ossimString.h>
#include <ossim/base/ossimKeywordlist.h>
#include <ossim/base/ossimObjectFactory.h>
class ossimProjection;
class OSSIM_DLL ossimProjectionFactoryBase : public ossimObjectFactory
{
public:
/**
* takes a filename. This filename can be an image file or
* it can also be a ossim .geom file. It could be other
* forms of geom files as well. The factories job will be to
* determine what parser to use and return a projection if
* successful.
*/
virtual ossimProjection* createProjection(const ossimFilename& filename,
ossim_uint32 entryIdx)const=0;
/**
* Take a projection type name.
*/
virtual ossimProjection* createProjection(const ossimString& name)const=0;
/**
* Take a keywordlist.
*/
virtual ossimProjection* createProjection(const ossimKeywordlist& kwl,
const char* prefix)const=0;
protected:
/**
* This method takes the filename and tries to find an external ".geom"
* file.
*
* If the "entryIndx" is 0 and the "imageFile" is foo.ntf this will
* look for "foo.geom". If that fails it will look for foo_e0.geom.
*
* If the "entryIndx" is 5 and the "imageFile" is foo.ntf this will
* look for foo_e5.geom.
*
* @param imageFile Image file that needs a projection.
*
* @param entryIdx For image files that support multiple images this is
* the zero base index to that image. Images that don't support multiple
* indexes should just pass 0.
*
* @return An ossimProjection* on success or NULL on failure.
*/
ossimProjection*
createProjectionFromGeometryFile(const ossimFilename& imageFile,
ossim_uint32 entryIdx)const;
TYPE_DATA
};
#endif
|