[GRASSLIST:587] Re: v.in.dxf updated

Huidae Cho grass4u at gmail.com
Wed Apr 5 15:49:31 EDT 2006


On Fri, Mar 31, 2006 at 12:19:06PM +0200, Radim Blazek wrote:
> On 3/31/06, Huidae Cho <grass4u at gmail.com> wrote:
> > Hi,
> >
> > I have updated v.in.dxf to support LWPOLYLINE and TEXT objects.  LWPOLYLINE was
> > introduced after DXF R10, so the chance is good that newer DXF files will be
> > imported.
> >
> > One problem with TEXT is that the module actually creates points and attaches
> > text labels through the "label" field in the linked table.  Created tables will
> > have two fields: cat (integer), label (varchar(256)) and TEXT will be stored in
> > the label field.  Since the label is actually not a graphic object in this
> > case, rotation of text and the label box (cannot determine the dimension of
> > label) are not supported.
> >
> > Linking labels and objects is not implemented.
> 
> It could be useful to have all the properties of elements imported to the table
> You can look into the v.in.dwg for example, it creates table with
> 
>  cat integer,
>  entity_name varchar(20),
>  color int,
>  weight int,
>  layer varchar(100),
>  block varchar(100),
>  txt varchar(100)

Could you explain each field name in detail?

cat: incremented by 1
entity_name?: is this POLYLINE, LINE, TEXT, etc?
color: you mean group 62 (color number)?
weight: group 38 (thickness)?
layer: layer name
block: block name (what is this for?)
txt: TEXT string

Thanks.
Huidae Cho

> 
> That is useful because many people use colors for example to distinguish
> layers.
> 
> Radim
> 




More information about the grass-user mailing list