M.S.Bachler wrote:

I have attached the shapefile and sld in a zip.

Anyone have any ideas?

<<border-heron1.zip>>

Hi Michelle,

The attached shapefile seems to have zero features.
I have tried adding a TextSymbolizer rule to my SLD and now it is broken.
I have checked it by eye and from reading the 'Styled Layer Descriptor Implementation Specification'.
But can't see where I am going wrong.
When I try validating it with the uDig XML validation button in the Style Editor, it runs for ages but never seems to finish and I have to crash out.

I'll add some proper feedback to this right now... it hasn't crashed, it just doesn't tell you the xml validation passed.

Basically I want to draw a label under my icons (points).
The only bit of the TextSymbolizer I was unsure of was:

        <sld:Label>
                <ogc:PropertyName>ID</ogc:PropertyName>
        </sld:Label>

Is this PropertyName, the name of an attribute in my shapefile?
That is what I assumed.
Each of my Points has an attribute called 'ID'

This is correct -- PropertyName is the attribute type. The "Simple" page in the Style Editor will also generate this for you, under "Label".

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

Reply via email to