[GRASS-dev] PROPOSAL: v.edit WAS: d.* commands
Jachym Cepicky
jachym.cepicky at centrum.cz
Thu May 25 02:37:13 EDT 2006
Hi,
On Thu, May 25, 2006 at 12:49:38AM +0300, Wolf Bergenheim wrote:
>
> How about making a v.edit that would work a bit like this:
>
> v.edit task=[add,del,move,etc..] what=[point,line,centroid]
> db=[an SQL statement for UPDATE
> args=[task and what specific]
>
> so for example to add a new point one could call
>
> v.edit task=add what=point db='name="survey location 73" depth=34'
> args=x=25.242424,y=34.45634
>
> and to add a line one could call
>
> v.edit task=add what=line db='name="road #73" speed=70'
> args=25.242424:34.45634,25.34343:34.34353,25.6754:34.6453
>
> delete is trivial
>
> v.edit task=del what=line args=345
> ^This is the cat ID.
>
> Just as an idea. If you like this I can start working on defining the
> syntax so that one can edit all sorts of shapes. Another possibility would
> be that it would read commands from a file (or stdin). Which would you
> guys prefer?
>
> If reading from a file then the syntax can be more complex (even XML if we
> want it to).
This sounds great! I would suggest, that v.edit should be able to work
with both - command line arguments for easy editing, file (stdin) for
more complex ones.
I also thing, that XML is the way, GRASS should follow.
Jachym
--
Jachym Cepicky
e-mail: jachym.cepicky at centrum.cz
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/gnupg_public_key/jachym_cepicky-gpg_public_key.asc
-----------------------------------------
OFFICE:
GDF-Hannover
Mengendamm 16d
30177 Hannover
Germany
e-mail: cepicky at gdf-hannover.de
URL: http://gdf-hannover.de
Tel.: +49 511-39088507
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20060525/517214ff/attachment.bin
More information about the grass-dev
mailing list