[GRASS-user] Re: [Freegis-list] change vector line direction

On Thu, Apr 27, 2006 at 10:15:38PM +0200, Maciek Sieczka wrote:

Hi!

I've been looking for a software which can change vector line
direction attribute. A thing that ArcInfo has been a long time
able to do...

OK, I decided to do it myself and I think I have it working well
enough to share it.

Please find attached a final version of Bash + Awk script for flipping
selected lines direction, and it's html man page.

I wrote it for Grass 6.1, should be fine for 6.0 propably too.

I'll appreciate any remarks.

Would like to put in Grass WIKI soon if nobody minds.

Best,
Maciek

--------------------
W polskim Internecie s? setki milion?w stron. My przekazujemy Tobie tylko najlepsze z nich!
http://katalog.panoramainternetu.pl/

(attachments)

v.flip_16 (5.71 KB)
v.flip.html (2.3 KB)

On Friday 02 June 2006 14:06, Maciek Sieczka wrote:

On Thu, Apr 27, 2006 at 10:15:38PM +0200, Maciek Sieczka wrote:
> Hi!
>
> I've been looking for a software which can change vector line
> direction attribute. A thing that ArcInfo has been a long time
> able to do...

OK, I decided to do it myself and I think I have it working well
enough to share it.

Please find attached a final version of Bash + Awk script for flipping
selected lines direction, and it's html man page.

I wrote it for Grass 6.1, should be fine for 6.0 propably too.

I'll appreciate any remarks.

Would like to put in Grass WIKI soon if nobody minds.

Best,
Maciek

--------------------
W polskim Internecie s? setki milion?w stron. My przekazujemy Tobie tylko
najlepsze z nich! http://katalog.panoramainternetu.pl/

Cool! This should be included in the main distribution -- I having been
wanting to flip line directions for some time now... Great!

--
Dylan Beaudette
Soils and Biogeochemistry Graduate Group
University of California at Davis
530.754.7341

On Fri, 2 Jun 2006 15:16:24 -0700
Dylan Beaudette <dylan.beaudette@gmail.com> wrote:

On Friday 02 June 2006 14:06, Maciek Sieczka wrote:
> Please find attached a final version of Bash + Awk script for
> flipping selected lines direction, and it's html man page.

Cool! This should be included in the main distribution -- I having
been wanting to flip line directions for some time now... Great!

Dylan,

Thanks for your feedback. If you could give it some testing and let me
know how it works for you I'd be very gratefull.

I have used it on some of my data and all looks ok. I'm wondering
tough how copying the table from input to output would behave in case
of vectors with table stored in Postgres or Mysql (I'm using only dbf
or sqlite). I did my best to make table copying possible for any DB
backend, but this needs to be checked in action.

I would be great if Grass maintainers find the script good enough to
be included in the main distr.

Best,
Maciek

P.S.
Regarding the v.digit replacement currently being worked on, I believe
that an *interactive* lines direction flipping would be a nice feauture.

--------------------
W polskim Internecie s? setki milion?w stron. My przekazujemy Tobie tylko najlepsze z nich!
http://katalog.panoramainternetu.pl/

On Sat, Jun 03, 2006 at 09:26:57AM +0200, Maciek Sieczka wrote:

[...]
P.S.
Regarding the v.digit replacement currently being worked on, I believe
that an *interactive* lines direction flipping would be a nice feauture.

You want to kill me :slight_smile:

Maciek, would you say, v.pydigit is *the* replacement for v.digit? Well
at least for the people, who do not have problem with GTK :wink:

Jachym

--
Jachym Cepicky
e-mail: jachym.cepicky@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@gdf-hannover.de
URL: http://gdf-hannover.de
Tel.: +49 511-39088507

Dylan:

Cool! This should be included in the main distribution -- I having
been wanting to flip line directions for some time now... Great!

Another long missing feature falls into place... :slight_smile:

Maciek:

Regarding the v.digit replacement currently being worked on, I believe
that an *interactive* lines direction flipping would be a nice
feauture.

For that it really needs to be written in C as part of the vector
library.

regards,
Hamish

On Sat, Jun 03, 2006 at 09:01:10PM +1200, Hamish wrote:

Dylan:
> Cool! This should be included in the main distribution -- I having
> been wanting to flip line directions for some time now... Great!

Another long missing feature falls into place... :slight_smile:

Maciek:
> Regarding the v.digit replacement currently being worked on, I believe
> that an *interactive* lines direction flipping would be a nice
> feauture.

For that it really needs to be written in C as part of the vector
library.

it should go to v.edit (?)

jachym

--
Jachym Cepicky
e-mail: jachym.cepicky@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@gdf-hannover.de
URL: http://gdf-hannover.de
Tel.: +49 511-39088507

On Sat, 3 Jun 2006 10:57:21 +0200
Jachym Cepicky <jachym.cepicky@centrum.cz> wrote:

On Sat, Jun 03, 2006 at 09:26:57AM +0200, Maciek Sieczka wrote:
> [...]
> P.S.
> Regarding the v.digit replacement currently being worked on, I
> believe that an *interactive* lines direction flipping would be a
> nice feauture.

You want to kill me :slight_smile:

Maciek, would you say, v.pydigit is *the* replacement for v.digit?

I haven't heard of any other being developed recently ;).

Well at least for the people, who do not have problem with GTK :wink:

Maciek

--------------------
W polskim Internecie s? setki milion?w stron. My przekazujemy Tobie tylko najlepsze z nich!
http://katalog.panoramainternetu.pl/

Things are going to be complicated. I'm working on database attributes
and so on..

actual screenshot:

    http://les-ejk.cz/tmp/vpydigit4.png

actual version:

    svn checkout https://subversion.gdf-hannover.de:8080/svn/pygrass/v.pydigit/

Jáchym

On Sun, Jun 04, 2006 at 04:18:32PM +0200, Maciek Sieczka wrote:

On Sat, 3 Jun 2006 10:57:21 +0200
Jachym Cepicky <jachym.cepicky@centrum.cz> wrote:

> On Sat, Jun 03, 2006 at 09:26:57AM +0200, Maciek Sieczka wrote:
> > [...]
> > P.S.
> > Regarding the v.digit replacement currently being worked on, I
> > believe that an *interactive* lines direction flipping would be a
> > nice feauture.
>
> You want to kill me :slight_smile:
>
> Maciek, would you say, v.pydigit is *the* replacement for v.digit?

I haven't heard of any other being developed recently ;).

> Well at least for the people, who do not have problem with GTK :wink:

Maciek

--------------------
W polskim Internecie s? setki milion?w stron. My przekazujemy Tobie tylko najlepsze z nich!
http://katalog.panoramainternetu.pl/

--
Jachym Cepicky
e-mail: jachym.cepicky@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@gdf-hannover.de
URL: http://gdf-hannover.de
Tel.: +49 511-39088507