Hi
In the AtlasStyler SLD editor i use SLDTransformer to export SLD XML.
> final SLDTransformer aTransformer = new SLDTransformer();
> if (charset != null) {
> aTransformer.setEncoding( charset );
> }
> aTransformer.setIndentation(2);
> final String xml = aTransformer.transform(style);
> w = new FileWriter(exportFile);
> w.write(xml); w.close();
A user has reported, that he created SLD files with the AtlasStyler and wanted
to use them with Geoserver 1.6.3.
Geoserver is based on geotools, so that should not be a hard test, but:
Geosrver fails when validating the SLD:
>Invalid content was found starting with element 'sld:PropertyName'. One
of ... ogc: Propertyname is expected.
When replacing
> <sld:PropertyName>the_geom</sld:PropertyName> löst das Problem.
with
><ogc:PropertyName>the_geom</ogc:PropertyName>
Geoserver validates sucessfully.
Does anybody have any idea? Is geotools the problem or is geoserver wrong?
which of the two is the correct namespace?
greetings
steve
--
wiki² - Softwareentwicklung
Stefan Krüger
Straßburger Weg 26
53113 Bonn
email [EMAIL PROTECTED]
mobile 0151 50543949
webpage wikisquare.de
skype alfonx
reclaim your net - http://tor.eff.org
enforce privacy - http://www.pgpi.org
pgp key id: 51B576FD - http://pgp.mit.edu
Please note that according to the German law on data retention,
information on every electronic information exchange with me is
retained for a period of six months.
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users