Went to
Right Click on Layer
Click on [Change Style]
Select "XML"

Found </sld:Mark>

Where do I paste
http://udig.refractions.net//confluence/download/attachments/3/icon16.gif

We need to find the other email with the replacement for PointSymbolizer, attached the file again: The point symbolizer is as follows (you can have more then one w/ offsets and so on):


I detached the .sld file and tried to import it, I also did a cut and paste, I guess I am still missing something

And neither worked for you?

Some bugs are surfacing! I've fixed most except for the invalid XML/SLD bug concerning PointSymbolizers with the "WellKnownName" element.

Using the *latest* build and the uDig sample data, I successfully styled bc-pubs with uDig icons. Attached is the screenshot and the SLD -- within the "Change Style" dialog, both copy-pasting the SLD into the XML page and importing the SLD file worked well -- remember to hit "Apply".

Any luck? ...and if not, what feedback (errors) are you getting, and what are you connecting to? (it is a WFS, rather than a WMS?)

Cheers,
Cory.

GIF image

<?xml version="1.0" encoding="UTF-8"?>
<sld:StyledLayerDescriptor 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>Default Styler</sld:Title>
            <sld:Abstract></sld:Abstract>
            <sld:FeatureTypeStyle>
                <sld:Name>simple</sld:Name>
                <sld:Title>title</sld:Title>
                <sld:Abstract>abstract</sld:Abstract>
                <sld:FeatureTypeName>bc_pubs</sld:FeatureTypeName>
                <sld:SemanticTypeIdentifier>generic:geometry</sld:SemanticTypeIdentifier>
                <sld:SemanticTypeIdentifier>simple</sld:SemanticTypeIdentifier>
                <sld:Rule>
                    <sld:Name>name</sld:Name>
                    <sld:Title>title</sld:Title>
                    <sld:Abstract>Abstract</sld:Abstract>
                    <sld:MaxScaleDenominator>1.7976931348623157E308</sld:MaxScaleDenominator>
                    <sld:PointSymbolizer>
                        <sld:Graphic>
                            <sld:ExternalGraphic>
                                <sld:OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"; xlink:type="simple" xlink:href="http://udig.refractions.net/confluence/download/attachments/3/icon16.gif"/>
                                <sld:Format>image/png</sld:Format>
                            </sld:ExternalGraphic>
                            <sld:Opacity>
                                <ogc:Literal>1.0</ogc:Literal>
                            </sld:Opacity>
                            <sld:Size>
                                <ogc:Literal>16</ogc:Literal>
                            </sld:Size>
                            <sld:Rotation>
                                <ogc:Literal>0.0</ogc:Literal>
                            </sld:Rotation>
                        </sld:Graphic>
                    </sld:PointSymbolizer>
                </sld:Rule>
            </sld:FeatureTypeStyle>
        </sld:UserStyle>
    </sld:UserLayer>
</sld:StyledLayerDescriptor>

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to