Seite 1 von 1

AnotherDXF2Shape: number of a parcel

Verfasst: 19. November 2016, 11:48
von Pierre
Dear Sir,
I use QGIS version 2.18 in french.
I use your new converter Another DXF Input/DXF2Shape converter. It is better than the old DXFShape converter .
I have this problem: If I have a layer text , all the labels text ( by example he number of a parcel) are preceded by a marker of style like \farial| i0| b0 ; 41A . 41A is the number.
I use system for text.
When I load a layer text in shape, the text is good , just by example the number of a parcel.

Can you help me.

Thanks

Re: layer text in shape

Verfasst: 19. November 2016, 11:59
von Mike
Hi Pierre,
a DXF uses different formatting for texts. These formats are not
converted by the plugin.
This has to be set manually in QGIS.

For example, if the text is

Code: Alles auswählen

{\ fArial | b0 | i0 | c0 | p34;theText}
You can filter the real text using the following code:

Code: Alles auswählen

substr(Text,strpos(Text,';')+1,length(Text)-strpos(Text,';')-1)
Greatings Mike

Re: AnotherDXF2Shape: text attributs

Verfasst: 21. Dezember 2016, 09:37
von Mike
Hi @all ;) ,
the current version V0.5 (20.12.16) support the complet text attributs.
The labels will be render with correct:
  • -angle (rotation)
    - font
    - text-alignment (from OGR 2.1)
    - bold (on/off)
    - italic (on/off)
    - color
The plugin also support many of text fomating codes:
examples:

Code: Alles auswählen

{\fVerdana|b0|i1|c0|p34;Ein Text}
\fArial|b1|i0|c0|p34;\Lunterstrichen
%%u1106