[Geoserver-users] sld file throwing an exception - The requested Style can not be used with this layer. The style specifies an attribute of GEOMETRY

hi,

Please help me resolve this issue..
I am using geoserver for first time, have no idea what is wrong with my sld
file. but geoserver is throwing this exception
"The requested Style can not be used with this layer. The style specifies
an attribute of GEOMETRY"
Please suggest me to resolve this

Thanks and Regards,
Tara

Hi Tara,
probably you are specifying a PropertyName with a GEOMETRY value somewhere in your SLD (can you share it with us?) and the layer you are applying the style has no attribute named GEOMETRY (maybe the geometry has a different like such as geometry or the_geom).

Regards,
Mauro

···

2014-04-01 8:41 GMT+02:00 Tara <taranmi@anonymised.com>:

hi,

Please help me resolve this issue…
I am using geoserver for first time, have no idea what is wrong with my sld
file. but geoserver is throwing this exception
“The requested Style can not be used with this layer. The style specifies
an attribute of GEOMETRY”
Please suggest me to resolve this

Thanks and Regards,
Tara



Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

On Tue, Apr 1, 2014 at 8:41 AM, Tara <taranmi@anonymised.com> wrote:

hi,

Please help me resolve this issue..
I am using geoserver for first time, have no idea what is wrong with my sld
file. but geoserver is throwing this exception
"The requested Style can not be used with this layer. The style specifies
an attribute of GEOMETRY"
Please suggest me to resolve this

Please check the archives before posting questions, the very same one was
asked yesterday
(or was it two days ago, I don't remember).

Anyways, it means your style is referring to an attribute GEOMETRY that is
not
part of your layer attributes (mind, names are case sensitive, if you have
"geometry"
it won't match).

Cheers
Andrea

--

Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------