Ticket #327 (closed defect: worksforme)

Opened 5 years ago

Last modified 5 years ago

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:
Platform: Linux CPU: x86-32

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

Changed 5 years ago by mlennert

  • status changed from new to closed
  • resolution set to worksforme

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.