MCPcopy Create free account
hub / github.com/PDAL/PDAL / addArgs

Method addArgs

io/GDALWriter.cpp:63–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61
62
63void GDALWriter::addArgs(ProgramArgs& args)
64{
65 args.add("resolution", "Cell edge size, in units of X/Y",
66 m_edgeLength).setPositional();
67 m_radiusArg = &args.add("radius", "Radius from cell center to use to locate"
68 " influencing points", m_radius);
69 args.add("power", "Power parameter for weighting points when using IDW",
70 m_power, 1.0);
71 args.add("gdaldriver", "GDAL writer driver name", m_drivername, "GTiff");
72 args.add("gdalopts", "GDAL driver options (name=value,name=value...)",
73 m_options);
74 args.add("output_type", "Statistics produced ('min', 'max', 'mean', "
75 "'idw', 'count', 'stdev', 'p<percentile>' or 'all')", m_outputTypeString, {"all"} );
76 args.add("data_type", "Data type for output grid ('int8', 'uint64', "
77 "'float', etc.)", m_dataType, Dimension::Type::Double);
78 args.add("window_size", "Cell distance for fallback interpolation",
79 m_windowSize);
80 // Nan is a sentinal value to say that no value was set for nodata.
81 args.add("nodata", "No data value", m_noData,
82 std::numeric_limits<double>::quiet_NaN());
83 args.add("dimension", "Dimension to use", m_interpDimString, "Z");
84 args.add("bounds", "Bounds of data. [deprecated]", m_bounds);
85 m_xOriginArg = &args.add("origin_x", "X origin for grid.", m_xOrigin);
86 m_yOriginArg = &args.add("origin_y", "Y origin for grid.", m_yOrigin);
87 m_widthArg = &args.add("width", "Number of cells in the X direction.",
88 m_width);
89 m_heightArg = &args.add("height", "Number of cells in the Y direction.",
90 m_height);
91
92 args.add("override_srs", "Spatial reference to apply to data",
93 m_overrideSrs);
94 args.addSynonym("override_srs", "spatialreference");
95
96 args.add("default_srs", "Spatial reference to apply to data if one cannot be inferred",
97 m_defaultSrs);
98 args.add("metadata", "GDAL metadata to set on the raster, in the form 'NAME=VALUE,NAME2=VALUE2,NAME3=VALUE3'",
99 m_GDAL_metadata);
100 args.add("pdal_metadata", "Write PDAL metadata as to GDAL PAM XML Metadata?",
101 m_writePDALMetadata, decltype(m_writePDALMetadata)(false));
102 args.add("binmode", "Use binning mode for computing statistics and ignore distance and neighborhood",
103 m_binMode, false);
104 args.add("allow_empty", "Allow writing GDAL output that do not have any pixel values (no points)",
105 m_allowEmpty, false);
106}
107
108
109

Callers

nothing calls this directly

Calls 2

addSynonymMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected