GRID to GRID draft: Difference between revisions
Content deleted Content added
No edit summary |
|||
Line 70:
====ASC====
* DECIMAL_PRECISION=N - The number of decimal places in the output. This option is analogous to the <tt>"-decimal[N]"</tt> switch. Default - 3
*Runs a difference operation on GeoTIFF outputs.<br>▼
:<tt>grid_to_grid.exe -diff proposed.tif existing.tif</tt>▼
* Runs a difference operation on GPKG outputs. The layer name needed is assumed to be the same as the database name.<br>▼
:<tt>grid_to_grid.exe -diff proposed.gpkg existing.gpkg</tt>▼
* Runs a difference operation on GeoPackage outputs where the layer name is different than the database name.<br>▼
:<tt>grid_to_grid.exe -diff "proposed_grid_results.gpkg >> proposed_max_h" "existing_grid_results.gpkg >> existing_max_h"</tt>▼
* Converts an ASC grid to a GeoTIFF with an LZW compression and horizontal predictor.<br>▼
:<tt>grid_to_grid.exe -conv -tif DEM_M01.asc -co COMPRESS=LZW -co PREDICTOR=2</tt>▼
* Runs a maximum operation on all FLT grids in a given location and outputs to a GeoPackage raster.<br>▼
:<tt>grid_to_grid.exe -max -out "output_grids.gpkg >> maximum_h" *.flt</tt>▼
* Converts GeoTIFF to a Cloud Optimised GeoTIFF. Requires <tt>-out</tt> flag since the extension for COG is also '.tif' and therefore the default output file would be the same as the input file.<br>▼
:<tt>grid_to_grid.exe -conv -cog DEM_M01.tif -out DEM_M01_COG.tif</tt>▼
=Operations=
Line 94 ⟶ 80:
*Converts the file "DEM.asc" to.flt format.<br>
:<tt>grid_to_grid.exe -conv -flt DEM.asc</tt>
▲* Converts an ASC grid to a GeoTIFF with an LZW compression and horizontal predictor.<br>
▲:<tt>grid_to_grid.exe -conv -tif DEM_M01.asc -co COMPRESS=LZW -co PREDICTOR=2</tt>
▲* Converts GeoTIFF to a Cloud Optimised GeoTIFF. Requires <tt>-out</tt> flag since the extension for COG is also '.tif' and therefore the default output file would be the same as the input file.<br>
▲:<tt>grid_to_grid.exe -conv -cog DEM_M01.tif -out DEM_M01_COG.tif</tt>
==Maximum==
Line 107 ⟶ 97:
*Wildcard character "*" is supported in filenames.<br>
:<tt>grid_to_grid.exe -out Q100_Max_Levels.asc -max Q100_*min_h.asc</tt>
▲* Runs a maximum operation on all FLT grids in a given location and outputs to a GeoPackage raster.<br>
▲:<tt>grid_to_grid.exe -max -out "output_grids.gpkg >> maximum_h" *.flt</tt>
==Difference==
Line 117 ⟶ 109:
*Creates new grids comparing the differences in flood levels and extents for: "difference.asc" = "after_h.asc" - "before_h.asc"<br>
:<tt>grid_to_grid.exe -out difference.asc -dif after_h.asc before_h.asc</tt>
▲*Runs a difference operation on GeoTIFF outputs.<br>
▲* Runs a difference operation on GPKG outputs. The layer name needed is assumed to be the same as the database name.<br>
▲:<tt>grid_to_grid.exe -diff proposed.gpkg existing.gpkg</tt>
▲* Runs a difference operation on GeoPackage outputs where the layer name is different than the database name.<br>
▲:<tt>grid_to_grid.exe -diff "proposed_grid_results.gpkg >> proposed_max_h" "existing_grid_results.gpkg >> existing_max_h"</tt>
Secondary options (only one can be used):
|