26int main(
int argc,
char* argv[])
29 "Create a raster of specified size at specified origin where every "
30 "pixel has the value zero.\n\n"
31 "OpenGeoSys-6 software, version " +
34 "Copyright (c) 2012-2025, OpenGeoSys Community "
35 "(http://www.opengeosys.org)",
38 cmd.setOutput(&tclapOutput);
40 TCLAP::ValueArg<std::string> output_arg(
"o",
"output",
41 "Output (.asc). Name of the output"
43 true,
"",
"OUTPUT_FILE");
45 TCLAP::ValueArg<std::size_t> n_rows(
"r",
"n_rows",
"number of rows",
false,
48 TCLAP::ValueArg<std::size_t> n_cols(
"c",
"n_cols",
"number of columns",
49 false, 1000,
"NUM_COLS");
51 TCLAP::ValueArg<double> cell_size(
"s",
"cell_size",
54 false, 10.0,
"CELL_SIZE");
56 TCLAP::ValueArg<double> ll_y_arg(
59 "y coordinate of lower left point of axis aligned rectangular region",
64 TCLAP::ValueArg<double> ll_x_arg(
67 "x coordinate of lower left point of axis aligned rectangular region",
74 cmd.add(log_level_arg);
75 cmd.parse(argc, argv);
87 std::vector<double> raster_data(header.n_cols * header.n_rows, 0.0);
91 output_arg.getValue());