From 9b0a9703bf5eecc81aea9808722b297a98d99c13 Mon Sep 17 00:00:00 2001 From: Jared Erickson Date: Mon, 25 Sep 2023 20:32:39 -0700 Subject: [PATCH] Add default style raster recipe. --- src/main/docs/raster.adoc | 16 ++++++++++++++++ .../groovy/org/geocommands/doc/RasterTest.groovy | 8 ++++++++ 2 files changed, 24 insertions(+) diff --git a/src/main/docs/raster.adoc b/src/main/docs/raster.adoc index 0f92f6ac..fa3ad6e1 100644 --- a/src/main/docs/raster.adoc +++ b/src/main/docs/raster.adoc @@ -428,6 +428,22 @@ include::output/geoc_raster_reclassify_command.txt[] [.thumb] image::geoc_raster_reclassify_command.png[] +=== Style Default + +Create a default Style for a Raster. + +include::output/geoc_raster_style_default_options.txt[] + +[source,bash] +---- +include::output/geoc_raster_style_default_command.txt[] +---- + +[source,xml] +---- +include::output/geoc_raster_style_default_command_output.txt[] +---- + === World File Create a Raster world file diff --git a/src/test/groovy/org/geocommands/doc/RasterTest.groovy b/src/test/groovy/org/geocommands/doc/RasterTest.groovy index 113b7e89..b1be0ad9 100644 --- a/src/test/groovy/org/geocommands/doc/RasterTest.groovy +++ b/src/test/groovy/org/geocommands/doc/RasterTest.groovy @@ -407,6 +407,14 @@ class RasterTest extends DocTest { draw("geoc_raster_reclassify_command", [raster]) } + @Test + void styleDefault() { + String command = "geoc raster style default" + String result = runApp(command, "") + writeTextFile("geoc_raster_style_default_command", command) + writeTextFile("geoc_raster_style_default_command_output", result) + } + @Test void wordFile() { String command = "geoc raster worldfile -b 10,11,20,21 -s 800,751"