Skip to content

v0.2.52..v0.2.53 changeset CommandLineExamples.asciidoc

Garret Voltz edited this page Feb 12, 2020 · 1 revision
diff --git a/docs/user/CommandLineExamples.asciidoc b/docs/user/CommandLineExamples.asciidoc
index 4399038..d1fb9df 100644
--- a/docs/user/CommandLineExamples.asciidoc
+++ b/docs/user/CommandLineExamples.asciidoc
@@ -191,6 +191,44 @@ See the User Guide for more details on command usage.
     hoot clean input.osm output.osm
 -----
 
+===== Clean erroneous data from two maps using Hooteanny's default cleaning operations plus JOSM's cleaning capabilities:
+
+-----
+    hoot clean -D map.cleaner.transforms++=hoot::JosmMapCleaner input.osm output.osm
+-----
+
+===== Clean erroneous data from two maps using Hooteanny's default cleaning operations plus a subset of JOSM's cleaning capabilities via exclusion:
+
+-----
+    hoot clean -D map.cleaner.transforms++=hoot::JosmMapCleaner \
+      -D josm.validators.exclude="UntaggedWay;DuplicatedWayNodes" input.osm output.osm
+-----
+
+===== Clean erroneous data from two maps using Hooteanny's default cleaning operations plus a subset of JOSM's cleaning capabilities via inclusion:
+
+-----
+    hoot clean -D map.cleaner.transforms++=hoot::JosmMapCleaner \
+      -D josm.validators.include="UntaggedWay;DuplicatedWayNodes" input.osm output.osm
+-----
+
+===== Run JOSM cleaning only on a map:
+
+-----
+    hoot convert -D convert.ops=hoot::JosmMapCleaner input.osm output.osm
+-----
+
+===== Run JOSM validation on a map:
+
+-----
+    hoot validate input.osm output.osm
+-----
+
+===== List the available JOSM validators:
+
+-----
+    hoot validate --available-validators
+-----
+
 ===== Prepend a cleaning operation to the existing set of cleaning operations:
 
 -----
@@ -490,10 +528,10 @@ See the User Guide for more details on command usage.
     hoot convert -D convert.ops="hoot::DuplicateNameRemover" input.osm output.osm
 -----
 
-===== Merge nodes that are near each other:
+===== Remove duplicate nodes:
 
 -----
-    hoot convert -D convert.ops="hoot::MergeNearbyNodes" input.osm output.osm
+    hoot convert -D convert.ops="hoot::DuplicateNodeRemover" input.osm output.osm
 -----
 
 ===== Remove elements that contain no useful information:
@@ -508,12 +546,6 @@ See the User Guide for more details on command usage.
     hoot convert -D convert.ops="hoot::UnionPolygonsOp" input.osm output.osm
 -----
 
-===== Combine like points together without using full-fledged conflation:
-
------
-    hoot convert -D convert.ops="hoot::MergeNearbyNodes" input.osm output.osm
------
-
 ===== Add the tag "error:circular=5.0" to all elements:
 
 -----
@@ -533,7 +565,7 @@ See the User Guide for more details on command usage.
 
 -----
     hoot convert -D convert.ops="hoot::RemoveTagsVisitor" \
-      -D remove.tags.visitor.element.criterion="hoot::WayCriterion" \
+      -D tag.filter.element.criterion="hoot::WayCriterion" \
       -D tag.filter.keys="source;error:circular" input.osm output.osm
 -----
 
@@ -548,7 +580,7 @@ See the User Guide for more details on command usage.
 
 -----
     hoot convert -D convert.ops=hoot::RemoveTagsVisitor -D tag.filter.keys="REF1;REF2" \
-      -D remove.tags.visitor.element.criterion=hoot::TagCriterion \
+      -D tag.filter.element.criterion=hoot::TagCriterion \
       -D tag.criterion.kvps="power=line" -D element.criterion.negate=true input.osm output.osm
 -----
 
@@ -557,7 +589,7 @@ See the User Guide for more details on command usage.
 -----
     hoot convert -D convert.ops=hoot::SetTagValueVisitor -D set.tag.value.visitor.keys=power \
       -D set.tag.value.visitor.values=minor_line \
-      -D set.tag.value.visitor.element.criterion=hoot::TagValueNumericRangeCriterion \
+      -D set.tag.value.visitor.element.criteria="hoot::TagValueNumericRangeCriterion" \
       -D tag.value.numeric.range.criterion.keys=voltage \
       -D tag.value.numeric.range.criterion.min=1 -D tag.value.numeric.range.criterion.max=45000 \
       input.osm output.osm
Clone this wiki locally