[mapserver-users] RE: LABELS

Ludwig Kniprath ludwig at kni-online.de
Tue Nov 24 02:05:00 EST 2009


Hi,
you get a centered label which does not move around when panning with LABEL: POSITION cc and LAYER: PROCESSING "LABEL_NO_CLIP=ON", as for example:
---schnipp--------------------------------------------------
	LAYER
		NAME "Country"
		CONNECTIONTYPE postgis
		CONNECTION "..."
		DATA "..."
		PROCESSING "LABEL_NO_CLIP=ON"
		STATUS on
		TYPE POLYGON
		LABELCACHE on
		LABELITEM "name"
		LABELMAXSCALEDENOM 100000
		PROJECTION
			"init=epsg:31466"
		END
		CLASS
			STYLE
				OUTLINECOLOR 255 0 0
			END
			LABEL
				TYPE truetype
				FONT "arial"
				#wrap " "
				SIZE 10
				OUTLINECOLOR 255 255 255
				COLOR 255 0 0
				POSITION cc
				PARTIALS true
			END
		END
	END
---schnapp--------------------------------------------------

Regards 
Ludwig
>
>Message: 2
>Date: Mon, 23 Nov 2009 13:51:42 -0600
>From: Jose Antonio Arce <joseantonioarce at gmail.com>
>Subject: [mapserver-users] LABELS
>To: mapserver-users at lists.osgeo.org
>Message-ID: <4B0AE7CE.1060909 at gmail.com>
>Content-Type: text/plain; charset="iso-8859-1"
>
>Hi people, I hope you are doing well.
>
>How can I center a label in every country of the map.
>
>Thanks,
>
>JOSE ARCE
>from Costa Rica
>


More information about the mapserver-users mailing list