On Wed, Mar 2, 2011 at 9:21 PM, Chris Dobell <[email protected]> wrote:
> Hi all, > > The official Geoserver SLD examples do not validate against the official > SLD xsd because no attributes are allowed in the ColorMap element. > > For example, this element will not validate against the official SLD > schema: > > <ColorMap type="ramp" extended="true"> > > but this will > > <ColorMap> > > Installing GeoServer puts a different (extended) StyleLayerDescriptor.xsd > file here: > > http://localhost:8080/geoserver/schemas/sld/StyledLayerDescriptor.xsd > > which DOES define type and extended attributes for the ColorMap element. > > In other words, > > http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd > > != > > http://localhost:8080/geoserver/schemas/sld/StyledLayerDescriptor.xsd > > This should be clearly stated in the example documentation. > GeoServer has a large number of extensions compared to the base SLD 1.0 functionality, so it differs from it in a number of ways. All deviations are there to provide some functionality that is missing from the basic SLD, so if you need them there's normally no way out. Standard SLD 1.0 allows you to do basic maps, Our guide shows how to use the full set of capabilities GeoServer offsers, it's not a "standard SLD" primer. If you want to be sure you're writing simple interoperable SLD please refer to the SLD 1.0 specification itself, it is publicly available on the OGC site. If anybody has time to hunt down the differences (a diff between the two schemas should highlight them all) and feels it's very important to have them marked down in the docs, it's possible, and not hard, provide a patch for the documentation adding warnings about the extensions. The documentation itself resides in svn: http://svn.codehaus.org/geoserver/trunk/doc/en/user/ and you can get up to speed with it using the following guide: http://docs.geoserver.org/latest/en/docguide/ 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 mob: +39 333 8128928 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 -------------------------------------------------------
------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
