Discussion:
[mapguide-users] Point label width
Peter Scigalla
2017-03-21 10:47:25 UTC
Permalink
Hello,

how to use different sizes (SizeX and SizeY) for labels? I insert texts
from PostGIS as point. In the databases are stored the text value,
rotation, text height and width factor and I hoped to use the label
property SizeX to compress the text.

Or is there a work around for setting the text width like in AutoCAD?

Thanks in advance!

Peter
--
Für Rückfragen oder weitergehende Informationen stehen wir Ihnen gerne zur Verfügung.

Mit freundlichen Grüßen

i. A. Dr.-Ing. Peter Scigalla

IBB INGENIEURBÜRO
B A T T E F E L D

Nöckerstr. 37c
D-44879 Bochum
Tel: 0234-94172-0
Fax:0234-94172-99

Brahestr. 17
D-04347 Leipzig
Tel.: 0341-2330465
Fax.: 0341-2330461

Geodaten und BricsCAD/AutoCAD in unserem Blog:
http://www.battefeld.com/category/bricscad_und_gis

Videotutorials rund um Bricscad und Spatial Manager auf YouTube:
http://www.youtube.com/user/psciga

Homepage:
http://www.battefeld.com

News auf Google+:
https://plus.google.com/112289446140335023241
Jackie Ng
2017-03-22 08:20:38 UTC
Permalink
You'll have to use Advanced Stylization to achieve most of this. I say most,
as unfortunately label width is not controllable.

Firstly, make a simple symbol definition

In this Symbol Definition, set up symbol parameters for
- Label (String)
- SizeY (Real)
- Any other style properties you may have

Add a Text Graphics element to this Symbol Definition and in its properties,
map whatever applicable settings to their respective symbol parameter (NOTE:
In Maestro, any field with a [...] button beside it denotes a symbol
property that can be mapped to a symbol parameter)

Then in your label Layer Definition, enable Composite Styles (remove
area/line/point styles if already specified), add a new Point Composite
Style. Replace the default symbolization component with a reference to your
new symbol definition. Then add your available symbol parameters and set
their values to FDO property expressions for your equivalent PostGIS columns
containing this information.

Now I said label width is not controllable, but you *may* be able to hack
around that by editing the symbol instance properties on that composite
style rule and setting the ScaleX to some FDO expression involving some
formula involving SizeY and string length of the label.

Hope that helps.

- Jackie



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Point-label-width-tp5313373p5313576.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

Continue reading on narkive:
Loading...