Opened 15 years ago

Last modified 6 years ago

#790 new task

update files

Reported by: martinl Owned by: grass-dev@…
Priority: normal Milestone: 8.0.0
Component: Default Version: svn-trunk
Keywords: update files/maps Cc:
CPU: Unspecified Platform: Unspecified

Description

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.

Attachments (1)

update.diff (5.2 KB ) - added by martinl 15 years ago.
update files

Download all attachments as: .zip

Change History (12)

by martinl, 15 years ago

Attachment: update.diff added

update files

comment:1 by martinl, 9 years ago

Milestone: 7.0.07.1.0

comment:2 by neteler, 9 years ago

Milestone: 7.1.07.2.0

Milestone renamed

comment:3 by neteler, 8 years ago

Milestone: 7.2.07.2.1

Ticket retargeted after milestone closed

comment:4 by martinl, 8 years ago

Milestone: 7.2.17.2.2

comment:5 by martinl, 7 years ago

Milestone: 7.2.27.4.0

comment:6 by neteler, 7 years ago

Milestone: 7.4.07.4.1

Ticket retargeted after milestone closed

comment:7 by neteler, 6 years ago

Milestone: 7.4.17.4.2

comment:8 by martinl, 6 years ago

Milestone: 7.4.27.6.0

comment:9 by martinl, 6 years ago

Milestone: 7.6.07.6.1

Ticket retargeted after milestone closed

comment:10 by martinl, 6 years ago

Milestone: 7.6.17.6.2

Ticket retargeted after milestone closed

comment:11 by martinl, 6 years ago

Milestone: 7.6.28.0.0
Note: See TracTickets for help on using tickets.