I believe you should include the prefix along with the name:
<Label>
<ogc:PropertyName>oso:katunumero</ogc:PropertyName>
</Label>
--
David Winslow
OpenGeo - http://opengeo.org/
On Tue, Dec 18, 2012 at 6:08 AM, obtin <jven...@hotmail.com> wrote:
> Hi all,
>
> I have problem with labeling - I can't figure out how to pick the right
> field to label!
>
> My data looks like this (from a wfs request):
>
> <http://osgeo-org.1560.n6.nabble.com/file/n5023729/quest.jpg>
>
> What I want to label is stored in the field named 'oso:katunumero' (1). As
> you can see, it is now stored under the field 'oso:osoite' (2).
>
> Seems like an easy issue, but I can't figure out how to pick that
> 'oso:katunumero' from there.
> Labeling it with <Label><ogc:PropertyName>katunumero</ ></ > gives an
> error:
> .... The style specifies an attribute of katunumero and the layer is:
> mtk:oso_Osoitepiste
>
>
>
> <TextSymbolizer>
> <Label>
> <ogc:PropertyName>??</ogc:PropertyName>
> ...
>
> regards,
> Jakob
>
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.n6.nabble.com/Labeling-in-SLD-label-the-right-field-tp5023729.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users