[GRASSLIST:4074] Re: dynamic modeling advice?
Radim Blazek
blazek at itc.it
Mon Jul 15 04:35:51 EDT 2002
On Friday 12 July 2002 10:29 pm, Alex Thorn wrote:
> I'm finding that much of the spatial manipulation
> that I need (for example, the direction to-nearest-
> object problem that I was asking about yesterday)
> to do could be done by the C program fairly easily
> without involving GRASS at all. It seems that it
> might even be possible only using GRASS to display the
> output. Meanwhile, it seems clear that every use
> of GRASS for a spatial calculation slows down the
> program runtime because of the necessity to create
> support files for the resulting coverages.
Depending on how stable environment you need, you could
consider to use grass51 for vectors (if you wait a moment
Bernhard will reply that nobody should use it, because it is
experimental). Building support in grass51 is very quick because:
1) categories are saved with geometry (no attaching)
2) spatial index is used for nodes
(i run test now: 8s/340000 lines; i think, it was about 3h in grass50)
You can run grass51 and grass50 at the same time in 2 shells.
Example for your direction to nearest (say that we want direction from
points in A vector to nearest point in B vector):
in_opt = G_define_standard_option(G_OPT_V_INPUT);
More information about the grass-user
mailing list