Opened 12 years ago

Closed 12 years ago

Last modified 11 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 Changed 12 years ago by neteler

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 Changed 11 years ago by neteler

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.