[GRASSLIST:4739] RE: Categories in v.in.dxf

Markus Neteler neteler at itc.it
Mon Oct 14 13:05:21 EDT 2002


On Fri, Oct 11, 2002 at 06:56:00PM +0000, Miha STAUT wrote:
> Hi Markus,
> 
> I did actually look in the help. I understood the "lines"
> parameter and I also successfully imported a .dxf file in Grass, "no data" 
> categories. As far as I understood the "labels" parameter it only imports 
> text layers into Grass (am I wrong?). Anyway, my intention was to measure 
> the length of all lines in this file. I bulk labelled the lines in v.digit 
> (what seems to append the categories too). The problem was that even after 
> that, the "v.report" showed 0m length for all the lines.

... yes, because the length calculation of "v.report" was nonsense the last
years since last week. Now it is fixed in CVS and will appear in 5.0.1.

Try:
v.to.db -p vectormap ty=line option=length table=somename

it will calculate the correct length.

Markus
 
> Miha Staut
> 
> >From: Markus Neteler <neteler at itc.it>
> >To: GRASSLIST <grasslist at baylor.edu>
> >Subject: [GRASSLIST:4703] RE: Categories in v.in.dxf
> >Date: Fri, 11 Oct 2002 10:42:57 +0200
> >
> >
> >Hi,
> >
> >a good trick is to use the 'help' parameter:
> >v.in.dxf help
> >
> >... there is no "category" but "lines" and "labels":
> >    lines   DXF layers with line data
> >   labels   DXF layers with label data
> >
> >Markus
> >



More information about the grass-user mailing list