.TH r.in.poly 1grass "" "GRASS 6.4.4" "Grass User's Manual" .SH NAME \fI\fBr.in.poly\fR\fR - Creates raster maps from ASCII polygon/line/point data files. .SH KEYWORDS raster, import .SH SYNOPSIS \fBr.in.poly\fR .br \fBr.in.poly help\fR .br \fBr.in.poly input\fR=\fIname\fR \fBoutput\fR=\fIname\fR [\fBtitle\fR=\fI"phrase"\fR] [\fBrows\fR=\fIinteger\fR] [\-\-\fBoverwrite\fR] [\-\-\fBverbose\fR] [\-\-\fBquiet\fR] .SS Flags: .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 "\fBinput\fR=\fIname\fR" 4m .br Name of input file; or "-" to read from stdin .IP "\fBoutput\fR=\fIname\fR" 4m .br Name for output raster map .IP "\fBtitle\fR=\fI"phrase"\fR" 4m .br Title for resultant raster map .IP "\fBrows\fR=\fIinteger\fR" 4m .br Number of rows to hold in memory .br Default: \fI4096\fR .PP .SH DESCRIPTION \fIr.in.poly\fR allows the creation of GRASS binary raster maps from ASCII files in the current directory containing polygon, linear, and point features. .PP The \fBinput\fR file is an ASCII text file containing the polygon, linear, and point feature definitions. The format of this file is described in the \fIINPUT FORMAT\fR section below. .PP The number of raster \fBrows\fR to hold in memory is per default 4096. This parameter allows users with less memory (or more) on their system to control how much memory \fIr.in.poly\fR uses. Usually the default value is fine. .SH NOTES .PP The data will be imported using the current region settings to set the new raster map's bounds and resolution. Any features falling outside the current region will be cropped. The region settings are contolled with the \fIg.region\fR module. .PP The format is a simplified version of the standard GRASS vector ASCII format used by \fIv.in.ascii\fR. .PP Polygons are filled, i.e. they define an area. .SS Input Format The input format for the \fBinput\fR file consists of sections describing either polygonal areas, linear features, or point features. The basic format is: \fC .DS .br A .br easting northing .br . .br . .br . .br = cat# label .br L .br easting northing .br . .br . .br . .br = cat# label .br P .br easting northing .br = cat# label .br .DE \fR The A signals the beginning of a filled polygon. It must appear in the first column. The L signals the beginning of a linear feature. It also must appear in the first column. The P signals the beginning of a single cell point feature. Again, it must appear in the first column. The coordinates of the vertices of the polygon, or the coordinates defining the linear or point feature follow and must have a space in the first column and at least one space between the \fIeasting\fR and the \fInorthing.\fR To give meaning to the features, the \(dq=" indicates that the feature currently being processed has category value \fIcat#\fR (which must be an integer) and a \fIlabel\fR (which may be more than one word, or which may be omitted). .SH EXAMPLE An area described by four points: \fC .DS .br A .br 591316.80 4926455.50 .br 591410.25 4926482.40 .br 591434.60 4926393.60 .br 591341.20 4926368.70 .br = 42 stadium .br .DE \fR .SH SEE ALSO \fI r.digit\fR (for interactive on-screen polygon/line digitizing for raster maps) .br \fIr.colors\fR (for raster map color table creation) .br \fId.rast.edit .br g.region .br r.in.xyz .br r.patch .br v.in.ascii .br v.digit .br \fR .SH AUTHOR Michael Shapiro, U.S.Army Construction Engineering Research Laboratory .PP \fILast changed: $Date: 2008-05-21 20:40:03 +0200 (Wed, 21 May 2008) $\fR .PP Full index .PP © 2003-2014 GRASS Development Team