[GRASS-dev] v.wedge

Hi,

while I was looking for a way to restrict r.viewshed results to angular
sectors, I noticed there was no easy way (or I missed it ?) to draw
these so called wedges. The idea was to write a draft addon the old
fashioned way (yes I'm daggy, still writing things in bash, handling
floats with bc!) to produce vector wedges, then convert them to masks.

Hoping it can be useful I attach the bash script, don't know if it's
worth making it an addon, I guess it would be better to write new addons
in python... perhaps someone can turn it into something more "trendy"?

Bye,
Vincent.

(attachments)

v.wedge.zip (1.75 KB)

On Tue, Oct 18, 2016 at 5:58 PM, Vincent Bain <bain@toraval.fr> wrote:

Hoping it can be useful I attach the bash script, don't know if it's
worth making it an addon, I guess it would be better to write new addons
in python... perhaps someone can turn it into something more "trendy"?

You can add it to GRASS Subversion sandbox (you need to get access unless
you already have it) or you can use some service like GitHub. This way, you
give a clear(er) way to contribute and a way to obtain latest version. If
you add makefile and doc, then it will be possible to install it with
g.extension (on Linux and Mac with G72).

Vaclav