GRID to GRID draft: Difference between revisions

Content deleted Content added
Line 26:
|}
 
=2023-03-AAGPKG (and later)NetCDF=
GeoPackage and NetCDF are database formats and are able to contain multiple layers in a single file. When passing in an input or output reference to a GeoPackage or NetCDF file the layer name is assumed to be the same as the database name unless otherwise specified. To give the layer a different name than the database, use the following syntax <tt>"database.ext >> layer"</tt> can be used:<Br>
===GPKG and NetCDF===
GeoPackage and NetCDF are database formats and are able to contain multiple layers in a single file. When passing in an input or output reference to a GeoPackage or NetCDF file the layer name is assumed to be the same as the database name unless otherwise specified. To give the layer a different name than the database, use the following syntax <tt>"database.ext >> layer"</tt>:<Br>
<pre>grid_to_grid.exe -dif "database.gpkg >> raster1" "database.gpkg >> raster2"</pre>
Notes:
''<b>Note:</b>''
* ''quotesQuotes will always be required when using this syntax''.
* GPKG output paths can be either a new or existing database i.e. the utility supports writing new layers into an existing database. NetCDF outputs do not support this yet and will overwrite any existing NetCDF file
* ''wildcard expansion (i.e. * or ?) is not supported yet when using this syntax''
* NetCDF outputs will overwrite any existing NetCDF file.
More notes on behaviour:
* Typically outputs to the GPKG or NetCDF format will be grouped together into a single output file.
* GPKG output paths can be either a new or existing database i.e. the utility supports writing new layers into an existing database. NetCDF outputs do not support this yet and will overwrite any existing NetCDF file
* Typically outputs to the GPKG or NetCDF format will be grouped together into a single output file
 
===Creation Options===
The 2023 releasegrid_to_grid.exe supports GDAL style creation options. Creation options can be passed in using the <tt>"-co"</tt> flag then the name of the creation option and the value:<Br>
<pre>-co COMPRESS=DEFLATE</pre>
Multiple creation options can be used (each will require its own -co flag).<Br>