18 #include "base/data_types/ossimFilename.h" 19 #include "base/data_types/ossimString.h" 20 #include "imaging/factory/ossimImageHandlerRegistry.h" 21 #include "imaging/formats/ossimImageHandler.h" 22 #include "imaging/formats/ossimImageFileWriter.h" 23 #include "imaging/factory/ossimImageWriterFactoryRegistry.h" 27 #include "base/data_types/ossimGpt.h" 30 #include "projections/ossimProjection.h" 33 #include "projections/map_projections/ossimUtmProjection.h" 36 #include "projections/factory/ossimProjectionFactoryRegistry.h" 40 #include "imaging/tile_sources/ossimImageRenderer.h" 53 int main(
int argc,
char* argv[])
74 cout <<
"Unable to open input image: "<< argv[2] << endl;
79 cout <<
"Unable to create writer of type: " << argv[1] << endl;
93 cout <<
"the input image has no input projection and can't be reprojected" << endl;
145 cout <<
"repoject <output_type> <input filename> <output filename>" << endl
146 <<
"where output types are: " << endl;
152 std::vector<ossimString> outputType;
155 std::copy(outputType.begin(),
157 std::ostream_iterator<ossimString>(std::cout,
"\n"));
166 double averageGsd = (metersPerPixel.
x + metersPerPixel.
y)*.5;
void initialize(int &argc, char **argv)
virtual ossimImageHandler * open(const ossimFilename &fileName, bool trySuffixFirst=true, bool openOverview=true) const
open that takes a filename.
Represents serializable keyword/value map.
static ossimImageWriterFactoryRegistry * instance()
Pure virtual base class for image file writers.
virtual void setMetersPerPixel(const ossimDpt &gsd)
ossimProjection * newUtmView(const ossimGpt ¢erGround, const ossimDpt &metersPerPixel)
ossimProjection * createProjection(const ossimFilename &filename, ossim_uint32 entryIdx) const
virtual ossimRefPtr< ossimImageGeometry > getImageGeometry()
Returns the image geometry object associated with this tile source or NULL if non defined...
ossimIpt midPoint() const
virtual ossimDpt getMetersPerPixel() const =0
virtual ossim_int32 connectMyInputTo(ossimConnectableObject *inputObject, bool makeOutputConnection=true, bool createEventFlag=true)
Will try to connect this objects input to the passed in object.
void setZone(const ossimGpt &ground)
static ossimProjectionFactoryRegistry * instance()
virtual void setFilename(const ossimFilename &file)
This class defines an abstract Handler which all image handlers(loaders) should derive from...
static ossimInit * instance()
ossimImageFileWriter * createWriter(const ossimFilename &filename) const
static ossimImageHandlerRegistry * instance()
virtual ossimIrect getBoundingRect(ossim_uint32 resLevel=0) const
Returns zero-based bounding rectangle of the image.
virtual void lineSampleToWorld(const ossimDpt &lineSampPt, ossimGpt &worldPt) const =0
virtual bool setView(ossimObject *baseObject)
virtual bool execute()
Calls: writeFile() writeMetaDataFiles()
int main(int argc, char *argv[])
virtual void getImageTypeList(std::vector< ossimString > &imageTypeList) const
getImageTypeList.