Skip to content

Commit

Permalink
Add default style raster recipe.
Browse files Browse the repository at this point in the history
  • Loading branch information
jericks committed Sep 26, 2023
1 parent 294e0a1 commit 9b0a970
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/main/docs/raster.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions src/test/groovy/org/geocommands/doc/RasterTest.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 9b0a970

Please sign in to comment.