GRASS logo

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 the "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: Thursday Feb 03 09:32:35 2022 in commit: f17c792f5de56c64ecfbe63ec315307872cf9d5c


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

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