Ticket #246 (closed defect: fixed)
can't overwrite vector map if it's name is fully qualified (i.e. contains @mapset)
| Reported by: | msieczka | Owned by: | grass-dev@… |
|---|---|---|---|
| Priority: | major | Milestone: | 6.4.0 |
| Component: | wxGUI | Version: | svn-develbranch6 |
| Keywords: | Cc: | ||
| Platform: | All | CPU: | All |
Description
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
Change History
Note: See
TracTickets for help on using
tickets.
