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)
 
 
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.
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.
v.in.csv input=latest_sites.csv output=sampling_sites latitude=Site_Lat longitude=Site_Long
 
    - 
        v.in.ascii
        for the underlying module with finer control (but not coordinate transformation),
    
 
    - 
        v.in.ogr
        for an alternative CSV import using GDAL/OGR.
    
 
Vaclav Petras, 
NCSU Center for Geospatial Analytics
SOURCE CODE
  Available at:
  v.in.csv source code
  (history)
  Latest change: Friday Feb 21 10:10:05 2025 in commit: 7d78fe34868674c3b6050ba1924e1c5675d155c9
Main index |
Vector index |
Topics index |
Keywords index |
Graphical index |
Full index
© 2003-2025
GRASS Development Team,
GRASS GIS 8.4.2dev Reference Manual