[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [udig-devel] SLD Textsymbolizer not shown in 1.2M6 ?
|
Tony is this a bug? I have not run into this problem before ...
Jody
On Mon, Aug 31, 2009 at 5:30 PM, Tony Roth<tony.roth@xxxxxx> wrote:
> hi matthias,
>
> first time you create the layers of your map, be sure the map blackboard
> contains a LabelPainter. Otherwise your TextSymbolizer won't show up
> properly.
>
> try this before you create the layers:
> ILabelPainter lp = (ILabelPainter) map.getBlackboard.get("LABEL_PAINTER")
> if (lp == null)
> // create a new one and put it on the blackboard
>
> tony
>
>> -----Original Message-----
>> From: udig-devel-bounces@xxxxxxxxxxxxxxxxxxxxx [mailto:udig-devel-
>> bounces@xxxxxxxxxxxxxxxxxxxxx] On Behalf Of Matthias Lendholt
>> Sent: Monday, August 31, 2009 8:56 AM
>> To: User-friendly Desktop Internet GIS
>> Subject: Re: [udig-devel] SLD Textsymbolizer not shown in 1.2M6 ?
>>
>> From 1.1.1 SDK. I know that the GeoTools library has changed: I have
>> removed all references to @Deprecated methods/classes.
>>
>> Matthias
>>
>>
>> Jody Garnett schrieb:
>> > Quick question - are up migrating from uDig 1.1.x or an earlier copy of
>> > uDig 1.2.x?
>> > Jody
>> >
>> > On 29/08/2009, at 12:23 AM, Matthias Lendholt wrote:
>> >
>> >> Dear all,
>> >>
>> >> after migration to uDig 1.2M6 Textsymbolizers of my programmatically
>> >> generated SLD Style are not shown anymore.
>> >>
>> >> The Rules are working, the PolygonSymbilizers are fine and external
>> >> graphics out of the bundle are shown. But no text. I have checked the
>> >> SLD code and my java code twice but I cannot find the solution.
>> >>
>> >> Maybe anyone has a clue? The SLD XML is copied out of uDig's style
>> >> editor. The referenced attribute "LABEL" exists and is not empty.
>> >>
>> >> Thank you,
>> >> Matthias
>> >>
>> >>
>> >> <?xml version="1.0" encoding="UTF-8"?>
>> >> <sld:StyledLayerDescriptor xmlns="http://www.opengis.net/sld"
>> >> xmlns:sld="http://www.opengis.net/sld"
>> >> xmlns:ogc="http://www.opengis.net/ogc"
>> >> xmlns:gml="http://www.opengis.net/gml" version="1.0.0">
>> >> <sld:UserLayer>
>> >> <sld:LayerFeatureConstraints>
>> >> <sld:FeatureTypeConstraint/>
>> >> </sld:LayerFeatureConstraints>
>> >> <sld:UserStyle>
>> >> <sld:Name>Default Styler</sld:Name>
>> >> <sld:Title/>
>> >> <sld:FeatureTypeStyle>
>> >> <sld:Name>name</sld:Name>
>> >> <sld:FeatureTypeName>Feature</sld:FeatureTypeName>
>> >>
>> <sld:SemanticTypeIdentifier>SemanticType[ANY]</sld:SemanticTypeIdentifier>
>> >>
>> >> <sld:Rule>
>> >> <ogc:Filter>
>> >> <ogc:PropertyIsEqualTo>
>> >> <ogc:PropertyName>STATUS</ogc:PropertyName>
>> >> <ogc:Literal>0</ogc:Literal>
>> >> </ogc:PropertyIsEqualTo>
>> >> </ogc:Filter>
>> >>
>> <sld:MaxScaleDenominator>1.7976931348623157E308</sld:MaxScaleDenominator>
>> >> <sld:PolygonSymbolizer>
>> >> <sld:Fill>
>> >> <sld:GraphicFill>
>> >> <sld:Graphic>
>> >> <sld:ExternalGraphic>
>> >> <sld:OnlineResource
>> >> xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple"
>> >> xlink:href="bundleentry://65.fwk31564808/icons/0.png"/>
>> >>
>> <sld:Format>image/png</sld:Format>
>> >> </sld:ExternalGraphic>
>> >> <sld:Opacity>
>> >> <ogc:Literal>1.0</ogc:Literal>
>> >> </sld:Opacity>
>> >> <sld:Size>
>> >> <ogc:Literal>10</ogc:Literal>
>> >> </sld:Size>
>> >> <sld:Rotation>
>> >> <ogc:Literal>0.0</ogc:Literal>
>> >> </sld:Rotation>
>> >> </sld:Graphic>
>> >> </sld:GraphicFill>
>> >> <sld:CssParameter name="fill">
>> >> <ogc:Literal>#808080</ogc:Literal>
>> >> </sld:CssParameter>
>> >> <sld:CssParameter name="fill-opacity">
>> >> <ogc:Literal>1.0</ogc:Literal>
>> >> </sld:CssParameter>
>> >> </sld:Fill>
>> >> <sld:Stroke>
>> >> <sld:CssParameter name="stroke">
>> >> <ogc:Literal>#66CCFF</ogc:Literal>
>> >> </sld:CssParameter>
>> >> <sld:CssParameter name="stroke-linecap">
>> >> <ogc:Literal>butt</ogc:Literal>
>> >> </sld:CssParameter>
>> >> <sld:CssParameter name="stroke-linejoin">
>> >> <ogc:Literal>miter</ogc:Literal>
>> >> </sld:CssParameter>
>> >> <sld:CssParameter name="stroke-opacity">
>> >> <ogc:Literal>1.0</ogc:Literal>
>> >> </sld:CssParameter>
>> >> <sld:CssParameter name="stroke-width">
>> >> <ogc:Literal>2.0</ogc:Literal>
>> >> </sld:CssParameter>
>> >> <sld:CssParameter name="stroke-dashoffset">
>> >> <ogc:Literal>0.0</ogc:Literal>
>> >> </sld:CssParameter>
>> >> </sld:Stroke>
>> >> </sld:PolygonSymbolizer>
>> >> <sld:TextSymbolizer>
>> >> <sld:Label>
>> >> <ogc:PropertyName>LABEL</ogc:PropertyName>
>> >> </sld:Label>
>> >> <sld:Font>
>> >> <sld:CssParameter name="font-family">
>> >> <ogc:Literal>Arial</ogc:Literal>
>> >> </sld:CssParameter>
>> >> <sld:CssParameter name="font-size">
>> >> <ogc:Literal>14.0</ogc:Literal>
>> >> </sld:CssParameter>
>> >> <sld:CssParameter name="font-style">
>> >> <ogc:Literal>normal</ogc:Literal>
>> >> </sld:CssParameter>
>> >> <sld:CssParameter name="font-weight">
>> >> <ogc:Literal>bold</ogc:Literal>
>> >> </sld:CssParameter>
>> >> </sld:Font>
>> >> <sld:LabelPlacement>
>> >> <sld:PointPlacement>
>> >> <sld:AnchorPoint>
>> >> <sld:AnchorPointX>
>> >> <ogc:Literal>0.0</ogc:Literal>
>> >> </sld:AnchorPointX>
>> >> <sld:AnchorPointY>
>> >> <ogc:Literal>0.0</ogc:Literal>
>> >> </sld:AnchorPointY>
>> >> </sld:AnchorPoint>
>> >> <sld:Displacement>
>> >> <sld:DisplacementX>
>> >> <ogc:Literal>-15.0</ogc:Literal>
>> >> </sld:DisplacementX>
>> >> <sld:DisplacementY>
>> >> <ogc:Literal>0.0</ogc:Literal>
>> >> </sld:DisplacementY>
>> >> </sld:Displacement>
>> >> <sld:Rotation>
>> >> <ogc:Literal>0.0</ogc:Literal>
>> >> </sld:Rotation>
>> >> </sld:PointPlacement>
>> >> </sld:LabelPlacement>
>> >> <sld:Halo>
>> >> <sld:Radius>
>> >> <ogc:Literal>5.0</ogc:Literal>
>> >> </sld:Radius>
>> >> <sld:Fill>
>> >> <sld:CssParameter name="fill">
>> >> <ogc:Literal>#FFFFFF</ogc:Literal>
>> >> </sld:CssParameter>
>> >> <sld:CssParameter name="fill-opacity">
>> >> <ogc:Literal>0.7</ogc:Literal>
>> >> </sld:CssParameter>
>> >> </sld:Fill>
>> >> </sld:Halo>
>> >> <sld:Fill>
>> >> <sld:CssParameter name="fill">
>> >> <ogc:Literal>#000000</ogc:Literal>
>> >> </sld:CssParameter>
>> >> <sld:CssParameter name="fill-opacity">
>> >> <ogc:Literal>0.5</ogc:Literal>
>> >> </sld:CssParameter>
>> >> </sld:Fill>
>> >> </sld:TextSymbolizer>
>> >> </sld:Rule>
>> >> <sld:Rule>
>> >> <ogc:Filter>
>> >> <ogc:PropertyIsEqualTo>
>> >> <ogc:PropertyName>STATUS</ogc:PropertyName>
>> >> <ogc:Literal>1</ogc:Literal>
>> >> </ogc:PropertyIsEqualTo>
>> >> </ogc:Filter>
>> >>
>> <sld:MaxScaleDenominator>1.7976931348623157E308</sld:MaxScaleDenominator>
>> >> <sld:PolygonSymbolizer>
>> >> <sld:Fill>
>> >> <sld:GraphicFill>
>> >> <sld:Graphic>
>> >> <sld:ExternalGraphic>
>> >> <sld:OnlineResource
>> >> xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple"
>> >> xlink:href="bundleentry://65.fwk31564808/icons/1.png"/>
>> >>
>> <sld:Format>image/png</sld:Format>
>> >> </sld:ExternalGraphic>
>> >> <sld:Opacity>
>> >> <ogc:Literal>1.0</ogc:Literal>
>> >> </sld:Opacity>
>> >> <sld:Size>
>> >> <ogc:Literal>8</ogc:Literal>
>> >> </sld:Size>
>> >> <sld:Rotation>
>> >> <ogc:Literal>0.0</ogc:Literal>
>> >> </sld:Rotation>
>> >> </sld:Graphic>
>> >> </sld:GraphicFill>
>> >> <sld:CssParameter name="fill">
>> >> <ogc:Literal>#808080</ogc:Literal>
>> >> </sld:CssParameter>
>> >> <sld:CssParameter name="fill-opacity">
>> >> <ogc:Literal>1.0</ogc:Literal>
>> >> </sld:CssParameter>
>> >> </sld:Fill>
>> >> <sld:Stroke>
>> >> <sld:CssParameter name="stroke">
>> >> <ogc:Literal>#FFFF00</ogc:Literal>
>> >> </sld:CssParameter>
>> >> <sld:CssParameter name="stroke-linecap">
>> >> <ogc:Literal>butt</ogc:Literal>
>> >> </sld:CssParameter>
>> >> <sld:CssParameter name="stroke-linejoin">
>> >> <ogc:Literal>miter</µêÚÍ<ÓÍ?¢×«j