GRASS logo

NAME - Import a CSV file using pyproj for CRS transformation


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

SYNOPSIS --help 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]


Allow output files to overwrite existing files
Print usage summary
Verbose module output
Quiet module output
Force launching GUI dialog


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 number of lines processed
Options: 1-
Names of columns which are integers
Names of columns which are double floating point numbers (floats)

Table of contents

DESCRIPTION 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.


The module requires the "pyproj" Python package to work.


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. input=latest_sites.csv output=sampling_sites latitude=Site_Lat longitude=Site_Long



Vaclav Petras, NCSU Center for Geospatial Analytics


Available at: 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-2024 GRASS Development Team, GRASS GIS 8.3.3dev Reference Manual