[GRASS-dev] v.to.db option=slope

Markus Neteler neteler at itc.it
Mon Dec 11 15:40:42 EST 2006


On Mon, Dec 11, 2006 at 09:34:02PM +0100, Markus Neteler wrote:
> On Mon, Dec 11, 2006 at 07:05:01PM +0100, Jachym Cepicky wrote:
> > On Mon, Dec 11, 2006 at 06:58:36PM +0100, Markus Neteler wrote:
> > > On Mon, Dec 11, 2006 at 06:53:57PM +0100, Jachym Cepicky wrote:
> > > > since nobody really complained, I commited the patch. v.to.db has new
> > > > option "slope" now
> > > 
> > > does it now work for LatLong? I guess I overlooked some email.
> > > 
> > yes, I was writing about this:
> > 
> > no, it does not :-( it does not even work with option=length, because of

In fact it works with length:

GRASS 6.3.cvs (latlong):~ > v.to.db  -p polbnda_italy_state  op=length un=k col=dummy type=boundary
cat|length
-1|8630.5217187381
1|0
2 categories read from map
0 records selected from table
0 categories read from map exist in selection from table
0 categories read from map don't exist in selection from table
0 records updated/inserted
0 update/insert errors

We fixed that one year ago:

2005-11-30 16:26  markus
        * areas.c, description.html: Wolf Bergenheim: use geodetic length
        for perimeter in LatLong; prettified areas.c with indent

to verify exactly the coastline length for Italy which is given incorrectly in
the ASPRS Grid & datums paper on Italy.

Markus

> > 
> > 
> > Vect_cidx_get_num_unique_cats_by_index ( &Map,
> > Vect_cidx_get_field_index(&Map, options.field ) );
> > 
> > in main.c returns 1634887471 of unique cats by index and v.to.db ends up
> > with G_calloc error: could not allocat memory.
> > 
> > I have no clue, how to fix this bug.
> 
> Hi Jachym,
> 
> I don't think that we should knowingly introduce bugs in
> GRASS. It would be good to get that resolved soon.
> As Paul said - I also assumed that you would consider the
> patch as non-ready, so I didn't further comment.
> 
> Best,
> Markus




More information about the grass-dev mailing list