|
NAMEv.import - Imports vector data into a GRASS vector map using OGR library and reprojects on the fly. KEYWORDSvector, import, projection SYNOPSISv.import
Flags:
Parameters:
DESCRIPTIONv.import imports vector data from files and database connections supported by the OGR library into the current project (previously called location) and mapset. If the coordinate reference system (CRS) of the input does not match the CRS of the project, the input is reprojected into the current project. In case that the CRS of the input map does match the CRS of the project, the input is imported directly. Supported Vector Formatsv.import 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 v.import. The list of actually supported formats can be printed by -f flag. NOTESv.import checks the CRS metadata of the dataset to be
imported against that of the current project. If not identical a related
error message is shown.
Topology cleaningWhen importing polygons, non-topological polygons are converted to topological areas. If the input polygons contain errors (unexpected overlapping areas, small gaps between polygons, or warnings about being unable to calculate centroids), the import might need to be repeated using a snap value as suggested in the output messages. The default value of snap=-1 means that no snapping will be done. The snap threshold defines the maximal distance from one to another vertex in map units (for latitude-longitude projects in degrees). If there is no other vertex within snap distance, no snapping will be done. Note that a too large value can severely damage area topology, beyond repair. Post-processing: Snapped boundaries may need to be cleaned with v.clean, using its tools break,rmdupl,rmsa. For details, refer to the v.clean manual page. EXAMPLE# import SHAPE file at full extent and reproject to current project CRS v.import input=research_area.shp output=research_area extent=input SEE ALSOv.clean, v.in.lines, v.in.ogr, v.proj AUTHORSMarkus Metz
SOURCE CODEAvailable at: v.import source code (history) Latest change: Tuesday Dec 17 20:17:20 2024 in commit: d962e90c026708a4815ea2b9f46c0e84c17de22d Main index | Vector index | Topics index | Keywords index | Graphical index | Full index © 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual
|