What is currently being uses to parse these color brewer files?

Cory Horner wrote:
Here's the schema for the current implementation of the ColorBrewer xml files (they contain colour palette, sample, and suitability info).

Sample files are here:
http://svn.geotools.org/geotools/trunk/gt/ext/brewer/src/org/geotools/brewer/color/resources/

Comments?

Cheers,
Cory.


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

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
elementFormDefault="qualified">
        <xs:element name="colors" type="xs:string"/>
        <xs:element name="description" type="xs:string"/>
        <xs:element name="name" type="xs:string"/>
        <xs:complexType name="paletteType">
                <xs:sequence>
                        <xs:element ref="name"/>
                        <xs:element ref="description"/>
                        <xs:element ref="colors"/>
                        <xs:element name="suitability" type="suitabilityType"/>
                </xs:sequence>
        </xs:complexType>
        <xs:complexType name="palettesType">
                <xs:sequence>
                        <xs:element name="palette" type="paletteType"/>
                </xs:sequence>
        </xs:complexType>
        <xs:complexType name="sampleType" mixed="true">
                <xs:attribute name="size" type="xs:byte" use="required"/>
        </xs:complexType>
        <xs:complexType name="samplesType">
                <xs:sequence>
                        <xs:element name="sample" type="sampleType"/>
                </xs:sequence>
        </xs:complexType>
        <xs:complexType name="schemeType" mixed="true">
                <xs:attribute name="size" type="xs:byte" use="required"/>
        </xs:complexType>
        <xs:complexType name="suitabilityType">
                <xs:sequence>
                        <xs:element name="scheme" type="schemeType"/>
                </xs:sequence>
        </xs:complexType>
        <xs:element name="type">
                <xs:complexType>
                        <xs:sequence>
                                <xs:element ref="name"/>
                                <xs:element ref="description"/>
                                <xs:element name="samples" type="samplesType"/>
                                <xs:element name="palettes" 
type="palettesType"/>
                        </xs:sequence>
                </xs:complexType>
        </xs:element>
</xs:schema>


--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to