Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#28 closed defect (invalid)

v.out.ogr exports only attribute data in CSV format

Reported by: marisn Owned by: grass-dev@…
Priority: major Milestone: 6.4.0
Component: Default Version: 6.3.0 RCs
Keywords: Cc:
CPU: Unspecified Platform: Unspecified


Exporting vector data with v.out.ogr to CSV file will export only attribute data without coordinate information. Coordinate information also should be included in exported CSV file.

Spearfish example: v.out.ogr input=bugsites@PERMANENT type=point dsn=/tmp/bugsites olayer=bugsites layer=1 format=CSV

Gentoo ~x86

Change History (2)

comment:1 by neteler, 15 years ago

Resolution: invalid
Status: newclosed

I don't think that this is a GRASS problem but moreover an OGR problem:

# list available data
ogrinfo -so /home/neteler/grassdata/spearfish60/PERMANENT/vector/bugsites/head
Warning 1: GRASS warning: GISBASE enviroment variable was not set, using:
INFO: Open of `/home/neteler/grassdata/spearfish60/PERMANENT/vector/bugsites/head'
      using driver `GRASS' successful.
1: 1 (Point)

#generate CSV file:
ogr2ogr -f CSV bugsites.csv /home/neteler/grassdata/spearfish60/PERMANENT/vector/bugsites/head
head bugsites.csv/1.csv
1,Beetle site
2,Beetle site
3,Beetle site
4,Beetle site

Better to report this here:


comment:2 by neteler, 14 years ago

CPU: Unspecified
Platform: Unspecified

For the record: Support for geometry export was added in

Note: See TracTickets for help on using tickets.