## NAME

v.extract - Selects vector objects from an existing vector map and creates a new map containing only the selected objects.
(SCS GRASS Vector Program)

## SYNOPSIS

v.extract
v.extract help
v.extract[ -d] type=name input=name output=name new=value [list=range] [file=name]

## DESCRIPTION

v.extract allows a user to create a new vector map layer from an existing vector map layer. User provides the program with category numbers, input vector file name, an output vector file name, and the type of input object. There is an option (d) to dissolve common boundaries between adjoining map areas in the same category list. The user may specify a file containing category numbers or labels.

Note:

  The dissolve option will work on only those areas which are in the given category list. If a map area is inside (island) a listed category area and is NOT in the given category list, its boundaries are output to the resultant map.

  ## COMMAND LINE OPTIONS

  ### Flags:

-d
  Dissolve common boundaries (default is no).

  ### Parameters:

type=name
  Select area, area edge, line, or site.
  Options: area, edge, line, site
input=name
  Input vector map name.
output=name
  Output vector map name.
new=value
  Enter 0 (keep original category) or a desired NEW category number.
list=range
  Category ranges.
  For example: 1, 3-8, 13
  For example: Abc, Def2, XyZ
file=name
  Text file name for category range/list .

  ## EXAMPLE

  v.extract -d list=1,2,3,4 input=soils output=soil_groupa type=area new=1

  Produces a new vector area file soil_groupa containing 'area' boundaries from soils with area category numbers of 1 thru 4; any common boundaries are dissolved, and all areas of the new map will be assigned category number 1.

  v.extract input=soils output=soil_groupa type=area new=1 file=sample

  Produces a new vector area file soil_groupa containing 'area' boundaries from soils. No common boundaries are dissolved, all areas of the new map will be assigned category number 1. The numbers can be found in the file sample of the current directory.

  The format for "sample" is:

  1
  33
  45
  56

  ## AUTHOR

  R.L. Glenn, USDA, SCS, NHQ-CGIS

  Last changed: $Date: 2003/08/20 08:10:13 $