[GRASS5] v.to.db 2 new features compactness and perimeter
Markus Neteler
neteler at itc.it
Fri Nov 4 12:10:39 EST 2005
Hi,
I have uploaded Wolfs additions to v.to.db into 6.1-CVS.
Thanks, Wolf!
Markus
On Thu, Nov 03, 2005 at 06:58:35PM +0200, Wolf Bergenheim wrote:
> I messed up the previous patch...
>
> Here is a new one!
>
> --Wolf
>
> On 03/11/05 18:27, Wolf Bergenheim wrote:
> > Hi!
> >
> > I fixed my fix for supporting compactness in v.to.db. I also added
> > support for perimeter option which calculates the perimeter of an area.
> > Compactness is calculated by doing:
> >
> > compactness = perimeter / 2 * sqrt(M_PI * area)
> >
> > which gives a circle the value 1 and all other shapes have a larger value.
> >
> > Please have a look at my patch, and LMK if you think something is
> > strange or out right wrong. I have tested these new options a bit, but I
> > haven't really tested them on weird / broken material. I have also not
> > tried to calculate the perimeter or compactness of lines. (;
> >
> > --Wolf
> >
>
> --
>
> <:3 )---- Wolf Bergenheim ----( 8:>
>
--
Markus Neteler <neteler itc it> http://mpa.itc.it
ITC-irst - Centro per la Ricerca Scientifica e Tecnologica
MPBA - Predictive Models for Biol. & Environ. Data Analysis
Via Sommarive, 18 - 38050 Povo (Trento), Italy
More information about the grass-dev
mailing list