[GRASSLIST:9274] draw line from (x,y) point and bearing

Greetings,

does anyone know of a module (d.*, v.*, r.* ??) that will accept a point and a
bearing, and draw the line on the active monitor?

if not, where would I start in writing my own module to do this?

thanks in advance!

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

On 12/2/05, Dylan Beaudette <dylan.beaudette@gmail.com> wrote:

Greetings,

does anyone know of a module (d.*, v.*, r.* ??) that will accept a point and a
bearing, and draw the line on the active monitor?

if not, where would I start in writing my own module to do this?

thanks in advance!
--
Dylan Beaudette
Soils and Biogeochemistry Graduate Group
University of California at Davis
530.754.7341

m.cogo Coordinate Geomotry

--
Richard Greenwood
richard.greenwood@gmail.com
www.greenwoodmap.com

On Friday 02 December 2005 02:06 pm, Dylan Beaudette wrote:

Greetings,

does anyone know of a module (d.*, v.*, r.* ??) that will accept a point
and a bearing, and draw the line on the active monitor?

if not, where would I start in writing my own module to do this?

thanks in advance!

Looks like necessity is the mother of invention. Solved this problem with a
shiny new module d.bearing:

The new module solves the problem I had (plot a transect from x,y along
bearing theta, to given radius) and will optionally save the result as a new
vector.

if anyone is interested i will post the source it for general consumption.

Here is the manpage from my local sources:
http://169.237.35.250/~dylan/temp/d.bearing.html

Cheers!

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

On sob, 2005-12-03 at 19:15 -0800, Dylan Beaudette wrote:

Looks like necessity is the mother of invention. Solved this problem with a
shiny new module d.bearing:

The new module solves the problem I had (plot a transect from x,y along
bearing theta, to given radius) and will optionally save the result as a new
vector.

if anyone is interested i will post the source it for general consumption.

I bet there will be folks interested. Could you put it on the Grass wiki
to be available at will? Or maybe it could go to 6.1 permanently?

If neither is possible please post it over to me. It is really cool. Currently I won't need it but I recall I was looking for such a functionality in the past. Congrats and thanks!

Cheers,
Maciek

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

On 12/4/05, Maciek Sieczka <werchowyna@epf.pl> wrote:

On sob, 2005-12-03 at 19:15 -0800, Dylan Beaudette wrote:
> Looks like necessity is the mother of invention. Solved this problem with
a
> shiny new module d.bearing:
>
> The new module solves the problem I had (plot a transect from x,y along
> bearing theta, to given radius) and will optionally save the result as a
new
> vector.
>
> if anyone is interested i will post the source it for general
consumption.

I bet there will be folks interested. Could you put it on the Grass wiki
to be available at will? Or maybe it could go to 6.1 permanently?

If neither is possible please post it over to me. It is really cool.
Currently I won't need it but I recall I was looking for such a
functionality in the past. Congrats and thanks!

Cheers,
Maciek

Sure. I have posted it to my website for the time being, pending
thoughts from markus and pals on inclusion in 6.1.

http://casoilresource.lawr.ucdavis.edu/drupal/node/127

Cheers,

Dylan

> does anyone know of a module (d.*, v.*, r.* ??) that will accept a
> point and a bearing, and draw the line on the active monitor?

..

Looks like necessity is the mother of invention. Solved this problem
with a shiny new module d.bearing:

The new module solves the problem I had (plot a transect from x,y
along bearing theta, to given radius) and will optionally save the
result as a new vector.

It's quite nice when you can make modules to do exactly what you need
done... but fyi, see also:

d.geodesic
d.rhumbline
r.profile
r.transect
d.mapgraph (hopefully merged into d.graph soon)
v.in.ascii format=standard

(and as mentioned m.cogo from GRASS 5)

Hamish

On Dec 4, 2005, at 8:01 PM, Hamish wrote:

does anyone know of a module (d.*, v.*, r.* ??) that will accept a
point and a bearing, and draw the line on the active monitor?

..

Looks like necessity is the mother of invention. Solved this problem
with a shiny new module d.bearing:

The new module solves the problem I had (plot a transect from x,y
along bearing theta, to given radius) and will optionally save the
result as a new vector.

It's quite nice when you can make modules to do exactly what you need
done... but fyi, see also:

d.geodesic
d.rhumbline
r.profile
r.transect
d.mapgraph (hopefully merged into d.graph soon)
v.in.ascii format=standard

(and as mentioned m.cogo from GRASS 5)

Hamish

Thanks for the head up on this. I had researched using v.out.ascii, d.mapgraph , awk, and finally v.in.ascii all wrapped in a BASH script... but it seemed a little cumbersome for the work I am doing. If d.bearing is has too much overlap with other modules, then I will post it on the GRASS Wiki for curious users. Or perhaps, some additional functionality or consolidation of functionality would be best.

Cheers,

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

Maybe a better idea is to make this function a flag of r.transect. Or even
better, merge r.transect and r.profile, and make the vector output line a
flag. What do you think?

Michael
______________________________
Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

From: Maciek Sieczka <werchowyna@epf.pl>
Date: Sun, 04 Dec 2005 09:20:05 +0100
To: <dylan.beaudette@gmail.com>
Cc: <GRASSLIST@baylor.edu>, Markus Neteler <neteler@itc.it>
Subject: [GRASSLIST:9285] Re: draw line from (x,y) point and bearing [solved:
new module]

On sob, 2005-12-03 at 19:15 -0800, Dylan Beaudette wrote:

Looks like necessity is the mother of invention. Solved this problem with a
shiny new module d.bearing:

The new module solves the problem I had (plot a transect from x,y along
bearing theta, to given radius) and will optionally save the result as a new
vector.

if anyone is interested i will post the source it for general consumption.

I bet there will be folks interested. Could you put it on the Grass wiki
to be available at will? Or maybe it could go to 6.1 permanently?

If neither is possible please post it over to me. It is really cool. Currently
I won't need it but I recall I was looking for such a functionality in the
past. Congrats and thanks!

Cheers,
Maciek

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

Maybe a better idea is to make this function a flag of r.transect. Or
even better, merge r.transect and r.profile, and make the vector
output line a flag. What do you think?

fyi, r.transect is already just a simple frontend to r.profile.

You can use the -g flag to get geographic coordinates (which can be fed
into v.in.ascii, either as points or form a line from the verticies*),
and the -c flag to get a GRASSRGB column for filling color (or other
thematic use).

[*] see v.in.garmin script

Make the segment distance longer than your line length, and you get end
point coordinates from a dist,azimuth. (?)

Hamish

From: Hamish <hamish_nospam@yahoo.com>
Date: Tue, 06 Dec 2005 13:27:33 +1300
To: Michael Barton <michael.barton@asu.edu>
Cc: <werchowyna@epf.pl>, <dylan.beaudette@gmail.com>, <GRASSLIST@baylor.edu>,
<neteler@itc.it>
Subject: Re: [GRASSLIST:9305] Re: draw line from (x,y) point and bearing
[solved: new module]

Maybe a better idea is to make this function a flag of r.transect. Or
even better, merge r.transect and r.profile, and make the vector
output line a flag. What do you think?

fyi, r.transect is already just a simple frontend to r.profile.

Right. This is why I suggested that they might be merged.

You can use the -g flag to get geographic coordinates (which can be fed
into v.in.ascii, either as points or form a line from the verticies*),
and the -c flag to get a GRASSRGB column for filling color (or other
thematic use).

[*] see v.in.garmin script

Make the segment distance longer than your line length, and you get end
point coordinates from a dist,azimuth. (?)

Wouldn't it make sense to put all this together into a module rather than
having several partly overlapping ones? Seems it would be more functional in
that case too. I don't know how much work it would be though.

Michael

Hamish

__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

Hi GRASS users:

In your opinion and experience, which hardware configuration
is the best to run GRASS over LINUX ?

With "best" I mean best performance,
and also cheapest. (about U$ 2.000 the whole basic system:
mother board+CPUs+RAM+HD)

By the way, which LINUX distribution is the best to
run GRASS with huge data base?
and in combination with what kind of (cheap) hardware?

Thank you very much for your help.

Kenneth

Happy Holydays!!

(attachments)

krcabrer.8218DEFANGED-vcf (194 Bytes)

For the most part GIS is IO-bound. So, you get the most bang for the
buck by going with lots of ram and fast disks. CPU is less important
(except for 3-D in which case a nice video card is a must).

I've got a brand new AMD64 2800 with 2 gb ram (running in 32-bit mode)
and an old Pentium IV (?) 1800 Mhz with 1.5 gb ram. I didn't notice
much of a speed increase going to the AMD chip in GRASS. Though I
haven't tried compiling grass in 64-bit yet. Maybe that would have
some impact?

David

On 12/5/05, Kenneth Cabrera <krcabrer@epm.net.co> wrote:

Hi GRASS users:

In your opinion and experience, which hardware configuration
is the best to run GRASS over LINUX ?

With "best" I mean best performance,
and also cheapest. (about U$ 2.000 the whole basic system:
mother board+CPUs+RAM+HD)

By the way, which LINUX distribution is the best to
run GRASS with huge data base?
and in combination with what kind of (cheap) hardware?

Thank you very much for your help.

Kenneth

Happy Holydays!!

--
David Finlayson
Marine Geology & Geophysics
School of Oceanography
Box 357940
University of Washington
Seattle, WA 98195-7940
USA

Office: Marine Sciences Building, Room 112
Phone: (206) 616-9407
Web: http://students.washington.edu/dfinlays

Hi Kenneth,

I am running GRASS on two boxes: One has an AMD-64 2800 processor with 2GB of RAM and a HD of 160 GB; the other one is a laptop with a P-4 @ 1.7 with 560 MB of RAM. I did compile GRASS on 64 bit mode as well as other GRASS related software (e.g. R, PostgreSQL, etc) and I’ve noticed a big difference when analyzing data. I assume you’re considering building your own which I also think is the best way to go.

HTH,

Jaime

Kenneth Cabrera krcabrer@epm.net.co escribió:

Hi GRASS users:

In your opinion and experience, which hardware configuration
is the best to run GRASS over LINUX ?

With “best” I mean best performance,
and also cheapest. (about U$ 2.000 the whole basic system:
mother board+CPUs+RAM+HD)

By the way, which LINUX distribution is th! e best to
run GRASS with huge data base?
and in combination with what kind of (cheap) hardware?

Thank you very much for your help.

Kenneth

Happy Holydays!!

begin:vcard
fn:Kenneth Cabrera
n:Cabrera;Kenneth
adr;quoted-printable:;;;Medell=C3=ADn;Antioquia;00000;Colombia
email;internet:krcabrer@epm.net.co
tel;cell:315 504 9339
version:2.1
end:vcard


Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
Regístrate ya - http://correo.espanol.yahoo.com/