On Sun, Jul 17, 2011 at 11:59 PM, Adam Ratcliffe <[email protected]> wrote: > I added an <IsDefault>true</IsDefault> element to the UserStyle I wish to use > for the requested layer. This made no difference unfortunately.
That would be the wrong value, the spec says <isDefault>1</isDefault> (odd, I know, but read the spec snipped I pasted previously in the topic). Either with or without the IsDefault element the correct UserStyle is applied for the layer and all styles work correctly except for the TextSymbolizer - it will render a literal character string fine but doesn't work with a property name. If I specify a non-existent property name I receive an error message which suggests that GeoServer is attempting to apply the TextSymbolizer: > > The requested Style can not be used with this layer. The style specifies an > attribute of <non-existent property> and the layer is: gis_geosmart:Test2 But everything else works? That's odd indeed, do you have a reproducable test case for me? Data + request + style? Cheers Andrea -- ------------------------------------------------------- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ------------------------------------------------------- ------------------------------------------------------------------------------ AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
