[GRASS-dev] Re: [GRASS GIS] #1438: g.remove cannot remove vector map because of space in DB layer name (was: g.remove cannot remove vector map)

GRASS GIS trac at osgeo.org
Tue Jan 17 07:26:43 EST 2012


#1438: g.remove cannot remove vector map because of space in DB layer name
--------------------------+-------------------------------------------------
  Reporter:  arencambre   |       Owner:  grass-dev@…               
      Type:  defect       |      Status:  reopened                  
  Priority:  normal       |   Milestone:                            
 Component:  Database     |     Version:  6.4.1                     
Resolution:               |    Keywords:  dbln, g.remove, layer name
  Platform:  MSWindows 7  |         Cpu:  Unspecified               
--------------------------+-------------------------------------------------
Changes (by hamish):

  * keywords:  => dbln, g.remove, layer name
  * component:  Vector => Database


Comment:

 Hi,

 your vector/pointdata/dbln file looks like this:

 {{{
 1/raw.TxDOT crash pointdata cat $GISDBASE/$LOCATION_NAME/$MAPSET/dbf/ dbf
 }}}

 the layer name (raw.TxDOT crash) is not allowed to have a space in it with
 GRASS 6. In GRASS 7 the separator becomes a "|" instead of a space so they
 are allowed there. GRASS 6 can read dbln files with "|" as the fields
 separator, so you might try to edit it by hand to:

 {{{
 1/raw.TxDOT crash|pointdata|cat|$GISDBASE/$LOCATION_NAME/$MAPSET/dbf/|dbf
 }}}


 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/1438#comment:3>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list