[GRASS-dev] [GRASS GIS] #246: can't overwrite vector map if it's name is fully qualified (i.e. contains @mapset)

#246: can't overwrite vector map if it's name is fully qualified (i.e. contains
@mapset)
----------------------+-----------------------------------------------------
Reporter: msieczka | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Keywords: | Platform: All
      Cpu: All |
----------------------+-----------------------------------------------------
GRASS can't overwrite a vector map output if the output name is given with
@mapset. This is not strictly a wxGUI issue, but as wxGUI uses a fully
qulified name for output, it manifests itself there. Examples:

C module:

{{{
v.random out=tmp@PERMANENT n=1 --o

Illegal filename. Character <@> not allowed.
ERROR: <tmp@PERMANENT> is an illegal file name
}}}

Shell script:

{{{
v.in.geonames in=PL.txt out=tmp@PERMANENT --o

WARNING: Vector map <tmp@PERMANENT> already exists and will be
          overwritten
WARNING: Unable to open directory
          '/home/grassdata/wgs84/PERMANENT/vector/tmp@PERMANENT'
ERROR: Unable to delete vector map <tmp@PERMANENT>
}}}

Note that for raster it works:

{{{
v.to.rast in=tmp out=tmp@PERMANENT use=cat --o

Converted areas: 0 of 0
Converted points/lines: 1 of 1
}}}

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

#246: can't overwrite vector map if it's name is fully qualified (i.e. contains
@mapset)
-----------------------+----------------------------------------------------
  Reporter: msieczka | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords:
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Comment (by glynn):

Replying to [ticket:246 msieczka]:
> GRASS can't overwrite a vector map output if the output name is given
with @mapset. This is not strictly a wxGUI issue, but as wxGUI uses a
fully qulified name for output, it manifests itself there. Examples:
>
> {{{ v.random out=tmp@PERMANENT n=1 --o }}}
> [[BR]]
> {{{ Illegal filename. Character <@> not allowed. }}}

This is a bug in v.random. However, Vect_open_new() didn't allow fully
qualified names. Both are fixed in SVN trunk.

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

#246: can't overwrite vector map if it's name is fully qualified (i.e. contains
@mapset)
-----------------------+----------------------------------------------------
  Reporter: msieczka | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: closed
  Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Resolution: fixed | Keywords:
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Changes (by martinl):

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

Comment:

Already backported to devbr6, closing the ticket.

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