[GRASS-dev] [GRASS GIS] #790: update files
    GRASS GIS 
    trac at osgeo.org
       
    Fri Oct 16 04:27:12 EDT 2009
    
    
  
#790: update files
-------------------------------+--------------------------------------------
 Reporter:  martinl            |       Owner:  grass-dev at lists.osgeo.org
     Type:  task               |      Status:  new                      
 Priority:  normal             |   Milestone:  7.0.0                    
Component:  default            |     Version:  svn-trunk                
 Keywords:  update files/maps  |    Platform:  Unspecified              
      Cpu:  Unspecified        |  
-------------------------------+--------------------------------------------
 see http://lists.osgeo.org/pipermail/grass-dev/2009-October/046747.html
 I am thinking how to implement direct write access to OGR datasources
 from the user point of view. One approach would be to implement global
 flag '--u' for updating existing vector map (i.e. OGR datasource).
 E.g.
 {{{
 v.out.ogr input=test dsn=. type=point -n
 v.external dsn=. layer=test output=test
 v.random out=test n=1000 --u
 }}}
 this could work also for native format
 {{{
 v.edit map=test tool=create
 v.random out=test n=1000 --u
 v.info test -t | grep points
 points=1000
 v.random out=test n=1000 --u
 v.info test -t | grep points
 points=2000
 }}}
 Or to add new parameters 'dns/format' which would be used only for OGR
 format, not for the native one.
 {{{
 v.random out=test n=1000 format=ESRI_Shapefile dns=.
 }}}
 Any ideas?
 Martin
 PS: Patch which implements '--u' flag (currently works only for vector
 maps: Vect_open_new() -> Vect_open_update()) available for testing.
-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/790>
GRASS GIS <http://grass.osgeo.org>
    
    
More information about the grass-dev
mailing list