[Mapserver-users] How to center labels in land parcels displayed by line layers?
Michael Schulz
mschulz at webgis.de
Wed Jul 7 03:47:35 PDT 2004
Hi,
automatic positioning of labels centered in a polygon works with mapserver for layers of type
polygon only. Mapserver won't position a line label centered in pseudo-polygon (other than by
chance). Why not change the layer type to polygon?
Actually, mapserver will by default label every line segment (cit. from docs: "Lines are labeled at
the middle of the longest arc in the visible portion of the line"), but by providing the MINDISTANCE
parameter, you can control the behaviour of duplicate labels.
BTW, is mapserver not drawing anything? Since the attached ms.gif was empty?
Cheers, Michael
Frieso ter Haseborg schrieb:
> Hi,
>
> I'm trying to annotate a layer showing land parcels. The layer is a shape of type LINE. How do I center the labels in line layers using MS?
>
> MS seems to center the label in the middle of the first line drawn, but not in the middle of the polygon created. What I receive is shown in the attached 'ms.gif'
>
> What I want to achieve is displayed in the 'esri-ae.gif' created with ESRI ArcExplorer (which does the centering by default).
>
> The label definition used:
> LABEL
> FORCE TRUE
> TYPE TRUETYPE
> FONT ARIAL
> SIZE 8
> BACKGROUNDCOLOR 255 255 231
> POSITION AUTO
> END
>
> Is there any way to achieve the same results with MS?
>
> Any hint would be appreciated.
>
> TIA,
>
> Frieso ter Haseborg
> - Software Development -
>
> --
>
> --------------------------------------------------
> S&F Datentechnik GmbH&Co.KG
> Reimersstr. 41b
> 26789 Leer, Germany
>
>
>
> ------------------------------------------------------------------------
>
>
> ------------------------------------------------------------------------
>
--
-----------------------------------------------------------
Michael Schulz in medias res
Dipl.-Geologe Gesellschaft für
Informationstechnologie mbH
In den Weihermatten 66
79108 Freiburg
0761 55695-95 (Fax 96)
mschulz at webgis.de www.webgis.de/www.zopecms.de
More information about the MapServer-users
mailing list