57 int main(
int argc,
char *argv[])
67 cout<<
"\nUsage: "<<argv[0]<<
"<image-A> <image-B>\n"<<endl;
77 rootJson[
"algorithm"] =
"omg";
78 rootJson[
"method"] =
"generate";
79 rootJson[
"filename"] =
"dem-test-output.tif";
80 rootJson[
"postSpacing"] = 1.0;
81 rootJson[
"postSpacingUnits"] =
"meters";
83 Json::Value imagesJson;
84 Json::Value imageAJson;
85 imageAJson[
"filename"] = imageA.
string();
86 imagesJson[0] = imageAJson;
87 Json::Value imageBJson;
88 imageBJson[
"filename"] = imageB.
string();
89 imagesJson[1] = imageBJson;
92 pbJson[
"images"] = imagesJson;
93 rootJson[
"photoblock"] = pbJson;
95 cout<<
"Input JSON:\n"<<rootJson<<endl;
110 << argv[0] <<
" caught unhandled exception!" << std::endl;
int main(int argc, char *argv[])
void initialize(int &argc, char **argv)
void addOptions(ossimArgumentParser &parser)
virtual const char * what() const
Returns the error message.
static ossimInit * instance()
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
const std::string & string() const