GRASS logo

Note: This document is for an older version of GRASS GIS that will be discontinued soon. You should upgrade, and read the current manual page.

Note: This addon document is for an older version of GRASS GIS that will be discontinued soon. You should upgrade your GRASS GIS installation, and read the current addon manual page.

NAME

v.in.csv - Import a CSV file using pyproj for CRS transformation

KEYWORDS

vector, import, projection, transformation, point, ASCII, CSV

SYNOPSIS

v.in.csv
v.in.csv --help
v.in.csv input=name output=name separator=character latitude=string longitude=string crs=string [limit=integer] [int_columns=string[,string,...]] [real_columns=string[,string,...]] [--overwrite] [--help] [--verbose] [--quiet] [--ui]

Flags:

--overwrite
Allow output files to overwrite existing files
--help
Print usage summary
--verbose
Verbose module output
--quiet
Quiet module output
--ui
Force launching GUI dialog

Parameters:

input=name [required]
Name of input file
output=name [required]
Name for output vector map
separator=character [required]
Field separator
Special characters: pipe, comma, space, tab, newline
Default: comma
latitude=string [required]
Name of column used as latitude
longitude=string [required]
Name of column used as longitude
crs=string [required]
Coordinate reference system (CRS) of the coordinates
EPSG code (e.g. 4326 or EPSG:4326), WKT string, and PROJ string are recognized
Default: EPSG:4326
limit=integer
Limit number of lines processed
Options: 1-
int_columns=string[,string,...]
Names of columns which are integers
real_columns=string[,string,...]
Names of columns which are double floating point numbers (floats)

Table of contents

DESCRIPTION

v.in.csv imports rows from a CSV (Comma Separated Value) file into a vector map as points with attributes. The separator for CSV is comma (,) by default, but it can be set to any single character such as semicolon (;), pipe (|), or tabulator.

NOTES

The module requires on pyproj Python package to work.

EXAMPLES

The following imports CSV file called latest_sites.csv in the current directory into the current mapset as point vector map named sampling_sites using the default coordinate transformation from WGS84. Latitude and longitude are in columns Site_Lat and Site_Long.
v.in.csv input=latest_sites.csv output=sampling_sites latitude=Site_Lat longitude=Site_Long

SEE ALSO

AUTHOR

Vaclav Petras, NCSU Center for Geospatial Analytics

SOURCE CODE

Available at: v.in.csv source code (history)

Latest change: Monday Jun 28 07:54:09 2021 in commit: 1cfc0af029a35a5d6c7dae5ca7204d0eb85dbc55


Note: This document is for an older version of GRASS GIS that will be discontinued soon. You should upgrade, and read the current manual page.

Note: This addon document is for an older version of GRASS GIS that will be discontinued soon. You should upgrade your GRASS GIS installation, and read the current addon manual page.

Main index | Vector index | Topics index | Keywords index | Graphical index | Full index

© 2003-2023 GRASS Development Team, GRASS GIS 7.8.9dev Reference Manual