Dissolve — A simple polygon dissolve utility
ca.spatial.gis.vector.Dissolve {in} {out} {select} {dissolveItem}
Name | Type | Default |
---|---|---|
in | name of a coverage or shape file | None |
out | name of a polygon shape file | None |
select | Criteria of selecting polygons to be split | None |
dissolveItem | an expression to be used as a dissolve criteria | None |
The Dissolve program will copy the specified coverage or shape file and dissolve those polygons that meet the selection criteria. Any polygons that do not meet the selection criteria will be ignored.
in
The name of a polygon coverage or shapefile to be dissolved.
out
The name of the shape file to which the polygons will be written. Do not specify the ".shp" extension
select
An expression to describe the polygons that are to be included in the dissolve process. Polygons that do not match the expression are excluded. This expression may be blank, in which case all polygons will be selected.
dissolveItem
The expression to be used as a dissolve criteria.
When run from the comand line, selection arguments must be enclosed by quotations (" ").
java -jar patchworks.jar ca.spatial.gis.vector.Dissolve fragments.shp gamma.shp "CLUSTER ne 0" "CLUSTER"
In this example the fragments.shp file will be dissolved using common values from the field named "CLUSTER". Polygons that do not pass the criteria "CLUSTER ne 0" will be dropped. The output of the dissolve process will be written to the output file named "gamma.shp"