ASC to ASC: Difference between revisions
Content deleted Content added
Ellis Symons (talk | contribs) |
Ellis Symons (talk | contribs) |
||
Line 12:
The '''ASC_to_ASC-2023-03-AA''' release incorporates several new GIS formats - '''GeoTIFF''', '''GPKG''', '''NetCDF''' (note: NetCDF was previously supported but now has better integration with all operations). The commands are largely unchanged and now support input and output to a range of new formats.
The 2023-03-AA release also supports GPKG vector inputs e.g. for the <tt>"-brkline"</tt> operation.<br>
The 2023-09-AA release supports Cloud Optimised GeoTIFFs (COG) and overviews (pyramids) for GPKG rasters.
===New Switches===
Line 22 ⟶ 23:
|-
|"-tif"||Output to GeoTIFF format
|-
|"-cog"||Output to Cloud Optimised GeoTIFF format (available since 2023-09-AA)
|-
|"-gpkg"||Output to GeoPackage format
Line 34 ⟶ 37:
* -conv - The <tt>"-conv"</tt> switch now requires an output format to be specified (e.g. to convert from FLT to ASC use <tt>-conv -asc</tt>). Previously it would convert only between ASC and FLT and the output format was determined by the input format.
Another change in behaviour in the 2023
===GPKG and NetCDF===
Line 47 ⟶ 50:
===Creation Options===
The 2023
<pre>-co COMPRESS=DEFLATE</pre>
Multiple creation options can be used (each will require its own -co flag).<Br>
Line 58 ⟶ 61:
* NUM_THREADS=[N]/ALL_CPUS - Number of threads to use when processing GeoTIFFs. Default - ALL_CPUS
* BIGTIFF=YES/NO/IF_NEEDED - Controls whether the ouput file uses the BigTIFF format or classic TIFF. Default - IF_NEEDED.
* TILED=YES/NO - Controls whether the output GeoTIFF should use tiles or strips. Default - NO.
* OVERVIEWS=YES/NO - Controls whether overviews (also known as pyramids) should be created. The ASC_to_ASC tool only supports internal overviews and therefore this option is only supported for tiled GeoTIFFs. Default - NO.
====Cloud Optimised GeoTIFF (COG)====
Same options as GeoTIFF however will automatically use 'TILED=YES' and 'OVERVIEWS=YES' creation options.
====GeoPackage====
* COMPRESS=NONE/LZW - output compression. Default - LZW
* PREDICTOR=1/2 - Compression predictor. Supported options are none [1] and horizontal differencing [2]. Default - 2.
* OVERVIEWS=YES/NO - Controls whether overviews (also known as pyramids) should be created. Default - NO.
====NetCDF====
Line 81 ⟶ 90:
<li> <tt>asc_to_asc.exe -max -out "output_grids.gpkg >> maximum_h" *.flt</tt><br>
Runs a maximum operation on all FLT grids in a given location and outputs to a GeoPackage raster
<li> <tt>asc_to_asc.exe -conv -cog DEM_M01.tif -out DEM_M01_COG.tif</tt><br>
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><br>
| |||