Opened 16 years ago

Closed 16 years ago

Last modified 15 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

Description

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

GRASS-6.3.0RC4
GDAL 1.4.2.0
Gentoo ~x86

Change History (2)

comment:1 by neteler, 16 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:
/home/neteler/grass63/dist.x86_64-unknown-linux-gnu
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
cat,str1
1,Beetle site
2,Beetle site
3,Beetle site
4,Beetle site
...

Better to report this here: http://trac.osgeo.org/gdal/wiki

Markus

comment:2 by neteler, 15 years ago

CPU: Unspecified
Platform: Unspecified

For the record: Support for geometry export was added in http://trac.osgeo.org/gdal/changeset/15684

Note: See TracTickets for help on using tickets.