[GRASS-dev] [GRASS GIS] #327: v.out.ogr does not export features when 'dsn' AND 'layer' options are given

#327: v.out.ogr does not export features when 'dsn' AND 'layer' options are given
-----------------------+----------------------------------------------------
Reporter: dylan | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: Vector | Version: svn-develbranch6
Keywords: v.out.ogr | Platform: Linux
      Cpu: x86-32 |
-----------------------+----------------------------------------------------
# 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.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/327&gt;
GRASS GIS <http://grass.osgeo.org>

#327: v.out.ogr does not export features when 'dsn' AND 'layer' options are given
-------------------------+--------------------------------------------------
  Reporter: dylan | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: closed
  Priority: major | Milestone: 6.4.0
Component: Vector | Version: svn-develbranch6
Resolution: worksforme | Keywords: v.out.ogr
  Platform: Linux | Cpu: x86-32
-------------------------+--------------------------------------------------
Changes (by mlennert):

  * status: new => closed
  * resolution: => worksforme

Comment:

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

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/327#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

On Wednesday 22 October 2008, GRASS GIS wrote:

#327: v.out.ogr does not export features when 'dsn' AND 'layer' options are
given
-------------------------+-------------------------------------------------
- Reporter: dylan | Owner: grass-dev@lists.osgeo.org Type:
defect | Status: closed
  Priority: major | Milestone: 6.4.0
Component: Vector | Version: svn-develbranch6
Resolution: worksforme | Keywords: v.out.ogr
  Platform: Linux | Cpu: x86-32
-------------------------+-------------------------------------------------
- Changes (by mlennert):

  * status: new => closed
  * resolution: => worksforme

Comment:

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

OK-- that was my mistake

thanks,
Dylan

--
Dylan Beaudette
Soil Resource Laboratory
http://casoilresource.lawr.ucdavis.edu/
University of California at Davis
530.754.7341