use LABEL POSITION=AUTO with SLD <TextSymbolizer>

Peter Freimuth pf at MAPMEDIA.DE
Sat Jan 14 08:44:35 EST 2006


Hi Mapserver Community,
has anybody an idea of how to use the advanced 
Label-Collision-Management of UMN through an SLD. There is a snippet how 
it works with degree mapserver.

<TextSymbolizer>
	<Geometry>
		<ogc:PropertyName>GEOM</ogc:PropertyName>
		</Geometry>
			<Label>
				<ogc:PropertyName>NAME</ogc:PropertyName>
			</Label>
			<Font>
				<CssParameter name="font-family">Arial</CssParameter>
				<CssParameter name="font-family">Sans-Serif</CssParameter>
				<CssParameter name="font-style">italic</CssParameter>
				<CssParameter name="font-size">10</CssParameter>
				<CssParameter name="font-color">#222222</CssParameter>
			</Font>
			<LabelPlacement>
				<PointPlacement auto="true"/>
			</LabelPlacement>
...
</TextSymbolizer>

The problem is that <PointPlacement auto="true"/> seems not to be part 
of sld definition. I can change the Code in mapogcsld.c in void 
ParseTextPointPlacement(CPLXMLNode *psRoot, classObj *psClass) to 
archieve the same behaviour, but maybe somebody out there has an more 
common idea of how to solve this.
Best regards,
Peter

-- 
Mit freundlichem Gruß

Peter Freimuth
MapMedia
Kartographie und raumbezogene Informationssysteme

Heilbronner Straße 10
D-10711 Berlin Charlottenburg

fon:  +49.(0)30.89 06 82 70
fax:  +49.(0)30.89 06 82 73
mail: pf at mapmedia.de
net:  www.mapmedia.de
pgp:  on demand
_________________________________________________



More information about the mapserver-users mailing list