.TH v.overlay 1grass "" "GRASS 6.4.2" "Grass User's Manual" .SH NAME \fI\fBv.overlay\fR\fR - Overlays two vector maps. .SH KEYWORDS vector, geometry .SH SYNOPSIS \fBv.overlay\fR .br \fBv.overlay help\fR .br \fBv.overlay\fR [-\fBt\fR] \fBainput\fR=\fIname\fR [\fBatype\fR=\fIstring\fR[,\fIstring\fR,...]] [\fBalayer\fR=\fIinteger\fR] \fBbinput\fR=\fIname\fR [\fBbtype\fR=\fIstring\fR[,\fIstring\fR,...]] [\fBblayer\fR=\fIinteger\fR] \fBoutput\fR=\fIname\fR [\fBoperator\fR=\fIstring\fR] [\fBolayer\fR=\fIinteger\fR[,\fIinteger\fR,...]] [--\fBoverwrite\fR] [--\fBverbose\fR] [--\fBquiet\fR] .SS Flags: .IP "\fB-t\fR" 4m .br Do not create attribute table .IP "\fB--overwrite\fR" 4m .br Allow output files to overwrite existing files .IP "\fB--verbose\fR" 4m .br Verbose module output .IP "\fB--quiet\fR" 4m .br Quiet module output .PP .SS Parameters: .IP "\fBainput\fR=\fIname\fR" 4m .br Name of input vector map (A) .IP "\fBatype\fR=\fIstring[,\fIstring\fR,...]\fR" 4m .br Feature type (vector map A) .br Feature type .br Options: \fIline,area\fR .br Default: \fIarea\fR .IP "\fBalayer\fR=\fIinteger\fR" 4m .br Layer number (vector map A) .br A single vector map can be connected to multiple database tables. This number determines which table to use. .br Default: \fI1\fR .IP "\fBbinput\fR=\fIname\fR" 4m .br Name of input vector map (B) .IP "\fBbtype\fR=\fIstring[,\fIstring\fR,...]\fR" 4m .br Feature type (vector map B) .br Feature type .br Options: \fIarea\fR .br Default: \fIarea\fR .IP "\fBblayer\fR=\fIinteger\fR" 4m .br Layer number (vector map B) .br A single vector map can be connected to multiple database tables. This number determines which table to use. .br Default: \fI1\fR .IP "\fBoutput\fR=\fIname\fR" 4m .br Name for output vector map .IP "\fBoperator\fR=\fIstring\fR" 4m .br Operator defines features written to output vector map .br Feature is written to output if the result of operation 'ainput operator binput' is true. Input feature is considered to be true, if category of given layer is defined. .br Options: \fIand,or,not,xor\fR .br Default: \fIor\fR .br \fBand\fR: also known as 'intersection' in GIS .br \fBor\fR: also known as 'union' in GIS (only for atype=area) .br \fBnot\fR: features from ainput not overlayed by features from binput .br \fBxor\fR: features from either ainput or binput but not those from ainput overlayed by binput (only for atype=area) .IP "\fBolayer\fR=\fIinteger[,\fIinteger\fR,...]\fR" 4m .br Output layer for new category, ainput and binput .br If 0 or not given, the category is not written .br Default: \fI1,0,0\fR .PP .SH DESCRIPTION \fIv.overlay\fR allows the user to overlay two vector area maps. The resulting output map has a merged attribute-table. The origin column-names have a prefix (\fIa_\fR and \fIb_\fR) which results from the ainput- and binput-map. .SH NOTES Currently only areas are supported for the operators \fIor\fR and \fIxor\fR! See also v.select. The operator defines what kind of operation will be done. Features are written to output, if the result of an operation 'ainput operator binput' is true. .PP Attributes of the tables from ainput and binput are joined into a new table linked to the output maps new cat-column. .br .br .br .br .SH EXAMPLE POLYGON TO POLYGON UNION \fC .DS .br v.overlay ainput=lake binput=province output=lakeXprovince operator=or .br .DE \fR .SH EXAMPLE LINE TO POLYGON CLIPPING Using the North Carolina sample dataset, we clip the roads map to the area of city of Raleigh: \fC .DS .br g.region vect=zipcodes_wake .br .br # extract Raleigh city .br v.extract in=zipcodes_wake out=raleigh \(rs .br where="ZIPNAME = 'RALEIGH'" .br .br # clip road network to city polygon: .br v.overlay ainput=roadsmajor atype=line binput=raleigh \(rs .br out=roadsmajor_raleigh operator=and .br .DE \fR .br | \fIv.overlay: Line to polygon clipping\fR .SH SEE ALSO \fI v.db.connect, v.select, g.copy\fR .SH AUTHORS Radim Blazek, ITC-Irst, Trento, Italy .PP \fILast changed: $Date: 2011-11-08 12:29:50 +0100 (Tue, 08 Nov 2011) $\fR .PP Full index .PP © 2003-2011 GRASS Development Team