28 : m_operation (LOWEST_DEM),
45 usageString +=
" [options] <point-cloud-file> <output-image>";
51 "Specifies output GSD in meters. Defaults to the same " 52 "resolution as input DEM.");
55 "Specifies the input DEM filename. If none provided, the elevation database is " 56 "referenced as specified in prefs file");
59 "Specifies the optional lookup table filename for " 60 "mapping the single-band output image to an RGB. The LUT provided must be " 61 "in the ossimIndexToRgbLutFilter format and must handle the three output " 62 "viewshed values (see --values option).");
65 "Specify the desired operation. Possible values are:\n" 66 " \"highest-dem\", \"lowest-dem\" (default), or \"highest-lowest\". \n" 67 "Alternatively can be specified in shorthand as \"h-d\", \"l-d\", or \"h-l\", " 71 "Causes applications API to be output as JSON to stdout." 72 " Accepts optional filename to store JSON output.");
75 "Number of threads. Defaults to use all available cores. " 76 "For engineering/debug purposes ");
91 <<
"\nPerforms specified processing on point-cloud.\n\n" 97 if ( (ap.
argc() == 1) || ap.
read(
"-h") || ap.
read(
"--help") )
106 if ( ap.
read(
"--dem", sp1) )
109 if ( ap.
read(
"--gsd", sp1) )
112 if ( ap.
read(
"--lut", sp1) )
115 if ( ap.
read(
"--method", sp1) )
123 if ( ap.
read(
"--pc", sp1) )
164 <<
"ossimPointCloudTool::initialize ERR: Cannot open PC file at <"<<
m_pcFile 183 <<
"ossimPointCloudTool::initialize ERR: Cannot open PC file at <"<<
m_pcFile 184 <<
">\n" << std::endl;
210 <<
"ossimViewshedUtil::initialize ERR: Cannot open DEM file at <"<<
m_demFile<<
">\n" 229 m_gsd = meters_per_pixel;
247 "file <"<<
m_lutFile<<
"> could not be read. Ignoring remap request.\n"<< std::endl;
254 last_source = lutSource.
get();
261 bool success =
false;
virtual void initialize()
void write(std::ostream &output, const UsageMap &um, unsigned int widthOfOutput=80)
std::string getApplicationName() const
return the application name, as specified by argv[0]
void addCommandLineOption(const ossimString &option, const ossimString &explanation)
Represents serializable keyword/value map.
bool addFile(const char *file)
void addOptions(ossimArgumentParser &parser)
void setUseGeoidIfNullFlag(bool flag)
const ossimMapProjection * getAsMapProjection() const
bool read(const std::string &str)
search for an occurance of a string in the argument list, on sucess remove that occurance from the li...
double nan()
Method to return ieee floating point double precision NAN.
bool contains(char aChar) const
Class used for rendering point cloud data into a raster tile.
static ossimImageWriterFactoryRegistry * instance()
bool setPointCloudHandler(ossimPointCloudHandler *pch)
Permits backdoor for setting the input point cloud handler object.
static ossimElevManager * instance()
METHOD: instance() Implements singelton pattern.
void setCommandLineUsage(const ossimString &explanation)
ossimApplicationUsage * getApplicationUsage()
virtual void setMetersPerPixel(const ossimDpt &gsd)
virtual ossimPointCloudHandler * open(const ossimFilename &fileName) const
ossimRefPtr< ossimImageGeometry > getImageGeometry() override
Returns the image geometry object associated with this tile source or NULL if non defined...
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=NULL)
Method to the load (recreate) the state of an object from a keyword list.
virtual ossim_int32 connectMyInputTo(ossimConnectableObject *inputObject, bool makeOutputConnection=true, bool createEventFlag=true)
Will try to connect this objects input to the passed in object.
static ossimPointCloudHandlerRegistry * instance()
void setDefaultHeightAboveEllipsoid(double meters)
static ossimInit * instance()
ossimImageFileWriter * createWriter(const ossimFilename &filename) const
virtual bool open(const ossimString &connectionString)
Open a connection to a database.
void addDatabase(ossimElevationDatabase *database, bool set_as_first=false)
Adds a new elevation database to the collection.
int & argc()
return the argument count.
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
virtual bool execute()
Calls: writeFile() writeMetaDataFiles()