.TH v.import 1grass "" "GRASS 7.2.0" "Grass User's Manual" .SH NAME \fI\fBv.import\fR\fR \- Imports vector data into a GRASS vector map using OGR library and reprojects on the fly. .SH KEYWORDS vector, import, projection .SH SYNOPSIS \fBv.import\fR .br \fBv.import \-\-help\fR .br \fBv.import\fR [\-\fBflo\fR] \fBinput\fR=\fIstring\fR [\fBlayer\fR=\fIstring\fR[,\fIstring\fR,...]] [\fBoutput\fR=\fIname\fR] [\fBextent\fR=\fIstring\fR] [\fBencoding\fR=\fIstring\fR] [\fBsnap\fR=\fIfloat\fR] [\fBepsg\fR=\fIinteger\fR] [\fBdatum_trans\fR=\fIinteger\fR] [\-\-\fBoverwrite\fR] [\-\-\fBhelp\fR] [\-\-\fBverbose\fR] [\-\-\fBquiet\fR] [\-\-\fBui\fR] .SS Flags: .IP "\fB\-f\fR" 4m .br List supported OGR formats and exit .IP "\fB\-l\fR" 4m .br List available OGR layers in data source and exit .IP "\fB\-o\fR" 4m .br Override projection check (use current location\(cqs projection) .br Assume that the dataset has the same projection as the current location .IP "\fB\-\-overwrite\fR" 4m .br Allow output files to overwrite existing files .IP "\fB\-\-help\fR" 4m .br Print usage summary .IP "\fB\-\-verbose\fR" 4m .br Verbose module output .IP "\fB\-\-quiet\fR" 4m .br Quiet module output .IP "\fB\-\-ui\fR" 4m .br Force launching GUI dialog .SS Parameters: .IP "\fBinput\fR=\fIstring\fR \fB[required]\fR" 4m .br Name of OGR datasource to be imported .IP "\fBlayer\fR=\fIstring[,\fIstring\fR,...]\fR" 4m .br OGR layer name. If not given, all available layers are imported .IP "\fBoutput\fR=\fIname\fR" 4m .br Name for output vector map (default: input) .IP "\fBextent\fR=\fIstring\fR" 4m .br Output vector map extent .br Options: \fIinput, region\fR .br Default: \fIinput\fR .br \fBinput\fR: extent of input map .br \fBregion\fR: extent of current region .IP "\fBencoding\fR=\fIstring\fR" 4m .br Encoding value for attribute data .IP "\fBsnap\fR=\fIfloat\fR" 4m .br Snapping threshold for boundaries (map units) .br \(cq\-1\(cq for no snap .br Default: \fI1e\-13\fR .IP "\fBepsg\fR=\fIinteger\fR" 4m .br EPSG projection code .br Options: \fI1\-1000000\fR .IP "\fBdatum_trans\fR=\fIinteger\fR" 4m .br Index number of datum transform parameters .br \-1 to list available datum transform parameters .br Options: \fI\-1\-100\fR .SH DESCRIPTION \fIv.import\fR imports vector data from files and database connections supported by the OGR library) into the current location and mapset. If the projection of the input does not match the projection of the location, the input is reprojected into the current location. In case that the projection of the input map does match the projection of the location, the input is imported directly. .SS Supported Vector Formats \fIv.import\fR uses the OGR library which supports various vector data formats including ESRI Shapefile, Mapinfo File, UK .NTF, SDTS, TIGER, IHO S\-57 (ENC), DGN, GML, GPX, AVCBin, REC, Memory, OGDI, and PostgreSQL, depending on the local OGR installation. For details see the OGR web site. The OGR (Simple Features Library) is part of the GDAL library, hence GDAL needs to be installed to use \fIv.in.ogr\fR. .PP The list of actually supported formats can be printed by \fB\-f\fR flag. .SH NOTES .SS Topology cleaning When importing polygons, non\-topological polygons are converted to topological areas. By default, a very small snapping threshold is applied (1e\-13 map units) to avoid topological errors caused by numerical inaccuracy of the input data format. If the original polygons contain errors (unexpected overlapping areas or small gaps between polygons), the import might need to be repeated using a larger \fIsnap\fR value. .PP The \fIsnap\fR threshold defines the maximal distance from one to another vertex in map units (for latitude\-longitude locations in degree). If there is no other vertex within \fIsnap\fR distance, no snapping will be done. Note that a too large value can severely damage area topology, beyond repair. .PP \fIPost\-processing:\fR Snapped boundaries may need to be cleaned with \fIv.clean\fR, using its tools \fIbreak,rmdupl,rmsa\fR. For details, refer to the \fIv.clean\fR manual page. .SH EXAMPLE .br .nf \fC # import SHAPE file at full extent and reproject to current location projection v.import input=research_area.shp output=research_area extent=input \fR .fi .SH SEE ALSO \fI v.clean, v.in.ogr, v.proj \fR .SH AUTHORS Markus Metz .br Improvements: Martin Landa, Anna Petrasova .PP \fILast changed: $Date: 2016\-08\-06 18:34:49 +0200 (Sat, 06 Aug 2016) $\fR .SH SOURCE CODE .PP Available at: v.import source code (history) .PP Main index | Vector index | Topics index | Keywords index | Graphical index | Full index .PP © 2003\-2016 GRASS Development Team, GRASS GIS 7.2.0 Reference Manual