<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="mapfile-xslt-0.0.4.xsl"?>

<!-- xmlns="http://mapserver.gis.umn.edu/mapserver" -->
<LayerSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mapserver.gis.umn.edu/mapserver file:///W:/projects/mapgears/xml-mapfile/mapfile-0.0.6.xsd" xsi:noNamespaceSchemaLocation="file:///W:/projects/mapgears/xml-mapfile/mapfile-schema-0.0.6.xsd">
  <Layer name="layer1" type="CHART" status="DEFAULT">
    <Class name="class1Layer1" status="ON">
      <backgroundColor red="244" green="43" blue="22"/>
      <color red="244" green="43" blue="22"/>
      <debug>ON</debug>
      <expression>(length('[NAME_E]') &lt; 8)</expression>
      <group>group1</group>
      <keyImage>/home/myusername/layer1.png</keyImage>
      <Label type="TRUETYPE">
        <align>LEFT</align>
        <angle>12</angle>
        <antialias>TRUE</antialias>
        <backgroundColor red="244" green="43" blue="22"/>
        <backgroundShadowColor red="244" green="43" blue="22"/>
        <backgroundShadowSize x="2" y="2"/>
        <buffer>2</buffer>
        <colorAttribute>[myColor]</colorAttribute>
        <encoding>ISO 8859-1</encoding>
        <font>serif</font>
        <force>TRUE</force>
        <maxLength>244</maxLength>
        <maxSize>244</maxSize>
        <minDistance>24</minDistance>
        <minFeatureSize>AUTO</minFeatureSize>
        <minSize>6</minSize>
        <offset x="12" y="33"/>
        <outlineColor red="-1" green="-1" blue="-1"/>
        <outlineWidth>13</outlineWidth>
        <partials>TRUE</partials>
        <position>AUTO</position>
        <priority>5</priority>
        <repeatDistance>80</repeatDistance>
        <shadowColor red="244" green="43" blue="22"/>
        <shadowSize x="15" y="14"/>
        <size>TINY</size>
        <wrap>\n</wrap>
      </Label>
      <maxScaleDenom>24000</maxScaleDenom>
      <maxSize>50</maxSize>
      <minScaleDenom>1000000</minScaleDenom>
      <minSize>10</minSize>
      <outlineColor red="33" green="44" blue="55"/>
      <size>12</size>
      <Style>
        <angle>434</angle>
        <antialias>TRUE</antialias>
        <backgroundColor red="244" green="43" blue="22"/>
        <color red="244" green="43" blue="22"/>
        <geomTransform>VERTICES</geomTransform>
        <maxSize>244</maxSize>
        <minSize>6</minSize>
        <minWidth>24</minWidth>
        <offset x="12" y="33"/>
        <opacity>1253</opacity>
        <outlineColorAttribute>[myOulineColorAttribute]</outlineColorAttribute>
        <size>[mySize]</size>
        <symbol>star.gif</symbol>
        <width>[myWidth]</width>
      </Style>
      <symbol>261</symbol>
      <template>http://mapgears.com/templates/myTemplates1.html</template>
      <text>myText1</text>
    </Class>
    <classGroup>group1</classGroup>
    <classItem>population</classItem>
    <connection>user=nobody password=****** dbname=dbname host=localhost port=5432</connection>
    <connectionType>SDE</connectionType>
    <data>../data</data>
    <debug>1</debug>
    <dump>FALSE</dump>
    <extent>-180.0 -90.0 180.0 90.0</extent>
    <Feature>
      <wkt>POINT(2000 2500)</wkt>
    </Feature>
    <filter>type=’road’ and size &lt; 2</filter>
    <filterItem>pop</filterItem>
    <footer>http://mapgears.com/templates/myfooter1.html</footer>
    <Grid>
      <labelFormat>DDMMSS</labelFormat>
      <maxArcs>5.0</maxArcs>
      <maxInterval>0.5</maxInterval>
      <maxSubdivide>0.07</maxSubdivide>
      <minArcs>1.0</minArcs>
      <minInterval>0.05</minInterval>
      <minSubdivide>0.01</minSubdivide>
    </Grid>
    <group>group1</group>
    <header>http://mapgears.com/templates/myHeader1.html</header>
    <Join name="myJoin1" type="ONE-TO-MANY">
      <connection>user=nobody password=****** dbname=dbname host=localhost port=5432</connection>
      <connectionType>OGR</connectionType>
      <from>ID</from>
      <table>./data/lookup.dbf</table>
      <template>http://mapgears.com/templates/myJoin1.html</template>
      <to>IDENT</to>
    </Join>
    <labelCache>ON</labelCache>
    <labelItem>myLabel1</labelItem>
    <labelMaxScaleDenom>2334342</labelMaxScaleDenom>
    <labelMinScaleDenom>100000</labelMinScaleDenom>
    <labelRequires>![orthoquads]</labelRequires>
    <maxFeatures>250000</maxFeatures>
    <maxScaleDenom>300000</maxScaleDenom>
    <Metadata>
      <item name="description">Cities</item>
      <item name="title">The Cities</item>
      <item name="author">Norm</item>
    </Metadata>
    <minScaleDenom>120000</minScaleDenom>
    <offsite red="244" green="43" blue="22"/>
    <opacity>ALPHA</opacity>
    <plugin>myPlugin.lib</plugin>
    <postLabelCache>TRUE</postLabelCache>
    <processing>CLOSE_CONNECTION=DEFER</processing>
    <processing>CLOSE_CONNECTION=DEFER</processing>
    <projection>init=epsg:4326 ellps=WGS84 datum=WGS84</projection>
    <requires>[orthoquads]</requires>
    <sizeUnits>METERS</sizeUnits>
    <styleItem>Go</styleItem>
    <symbolScaleDenom>24000</symbolScaleDenom>
    <template>myLayer1.html</template>
    <tileIndex>tiger/index.shp</tileIndex>
    <tileItem>LOCATION</tileItem>
    <tolerance>5</tolerance>
    <toleranceUnits>DD</toleranceUnits>
    <transform>TRUE</transform>
    <units>METERS</units>
    <Validation>
      <item name="firstname">^[a-zA-Z\-]+$</item>
      <item name="taxid">^[A-Z]{2}[0-9]{6}$</item>
    </Validation>
  </Layer>
</LayerSet>


