[GRASS-user] Using db.out.ogr to export attributes to a csv file

דור פרידמן dof1985 at gmail.com
Mon Apr 1 08:08:22 PDT 2013


Hi all,

I'm trying to use db.out.ogr to export an attributes table to a csv format
for excel. I am using GRASS 7, but not sure what to put in the "dsn="
syntax.

This is the command I have used and the error that has appeared. Further
when the file will be created, where can I find it?

db.out.ogr input=distance1
> dsn=/home/dof1985/Grass_projects/Waste/Israel/CD-waste/sqlite/sqlite.db
> format=CSV table=shortest_distance
> WARNING: 4695 line(s) found, but not requested to be exported. Verify
> 'type' parameter.
> ERROR 1: It seems a file system object called
> '/home/dof1985/Grass_projects/Waste/Israel/CD-
> waste/sqlite/sqlite.db' already exists.
> ERROR: Unable to open OGR data source
> '/home/dof1985/Grass_projects/Waste/Israel/CD-waste/sqlite/sqlite.db'
> (Mon Apr  1 18:06:48 2013) Command finished (0
> sec)
>
>
Thanks a lot

Dor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20130401/6377bb7f/attachment-0001.html>


More information about the grass-user mailing list