Opened 16 years ago

Closed 16 years ago

#327 closed defect (worksforme)

v.out.ogr does not export features when 'dsn' AND 'layer' options are given

Reported by: dylan Owned by: grass-dev@…
Priority: major Milestone: 6.4.0
Component: Vector Version: svn-develbranch6
Keywords: v.out.ogr Cc:
CPU: x86-32 Platform: Linux

Description

# does not export any features, # complaining that they don't have categories v.out.ogr -c in=bugsites dsn=some_folder layer=new_shpfile

# exported expected features v.out.ogr -c in=bugsites dsn=new_shpfile

This must be related to some magic associated with flag/option parsing.

Change History (1)

comment:1 by mlennert, 16 years ago

Resolution: worksforme
Status: newclosed

As defined in the man page:

layer=integer
    Layer number
    A single vector map can be connected to multiple database tables. This number determines which table to use.
    Default: 1

So your use of layer is incorrect.

Also, note that the default of type= is 'line,boundary', so if you are trying to export areas, you will have to explicitly set type=area.

Closing this bug.

Moritz

Note: See TracTickets for help on using tickets.