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

<Map name="xmlmapfile" status="ON" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3schools.com mapfile-schema-0.0.6.xsd" xsi:noNamespaceSchemaLocation="mapfile-schema-0.0.6.xsd">
	<angle>10</angle>
	<Config>
		<item name="CGI_CONTEXT_URL">http://mapgears.com/context/mapgears.xml</item>
		<item name="MS_ENCRYPTION_KEY">dfas2klaed2v 3384knkju3k23</item>
		<item name="MS_ERRORFILE">/tmp/ms_error.txt</item>
	</Config>
	<dataPattern>$#[a-e]?</dataPattern>
	<debug>2</debug>
	<defResolution>72</defResolution>
	<extent>-180.0 -90.0 180.0 90.0</extent>
	<fontSet>../etc/fonts.txt</fontSet>
	<imageColor red="0" green="255" blue="255"/>
	<imageType>png</imageType>
        <include>/tmp/myLayerSet.map</include>
	<Legend status="ON">
		<imageColor red="255" green="255" blue="255"/>
		<keySize x="20" y="10"/>
		<keySpacing x="5" y="5"/>
		<Label type="TRUETYPE">
			<align>CENTER</align>
			<angle>FOLLOW</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="244" green="43" blue="22"/>
			<outlineWidth>13</outlineWidth>
			<partials>TRUE</partials>
			<position>LL</position>
			<priority>5</priority>
			<shadowColor red="244" green="43" blue="22"/>
			<shadowSize x="15" y="14"/>
			<size>SMALL</size>
			<wrap>\n</wrap>
		</Label>
		<outlineColor red="244" green="43" blue="22"/>
		<position>LR</position>
		<postLabelCache>FALSE</postLabelCache>
		<template>ttt.html</template>
	</Legend>
	<maxSize>2048</maxSize>
        <OutputFormat name="GTiff">
          <driver>GDAL/GTIFF</driver>
          <extension>tiff</extension>
          <formatOption>TILED=YES</formatOption>
          <imageMode>FLOAT32</imageMode>
          <mimeType>image/tiff</mimeType>
          <transparent>OFF</transparent>
        </OutputFormat>
        <OutputFormat name="PNG">
          <driver>AGG/PNG</driver>
          <extension>png</extension>
          <formatOption>TILED=YES</formatOption>
          <imageMode>RGB</imageMode>
          <mimeType>image/png</mimeType>
          <transparent>ON</transparent>
        </OutputFormat>
	<projection>
        init=epsg:4326
        ellps=WGS84
        datum=WGS84
        </projection>
	<QueryMap status="ON">
		<color red="244" green="43" blue="22"/>
		<size x="600" y="400"/>
		<style>SELECTED</style>
	</QueryMap>
	<Reference status="ON">
		<color red="244" green="43" blue="22"/>
		<extent>-10.0 -9.0 10.0 9.0</extent>
		<image>/home/myusername/ref1.png</image>
		<marker>star</marker>
		<markerSize>3</markerSize>
		<maxBoxSize>24</maxBoxSize>
		<minBoxSize>4</minBoxSize>
		<outlineColor red="244" green="43" blue="22"/>
		<size x="6" y="4"/>
	</Reference>
	<resolution>72</resolution>
	<scaleDenom>24000</scaleDenom>
	<ScaleBar status="EMBED">
		<align>CENTER</align>
		<backgroundColor red="244" green="43" blue="22"/>
		<color red="244" green="43" blue="22"/>
		<imageColor red="0" green="255" blue="255"/>
		<intervals>5</intervals>
		<Label type="TRUETYPE">
			<align>CENTER</align>
			<angle>[myAngle]</angle>
			<antialias>FALSE</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="244" green="43" blue="22"/>
			<outlineWidth>13</outlineWidth>
			<partials>TRUE</partials>
			<position>LL</position>
			<priority>5</priority>
			<shadowColor red="244" green="43" blue="22"/>
			<shadowSize x="15" y="14"/>
			<size>SMALL</size>
			<wrap>\n</wrap>
		</Label>
		<outlineColor red="12" green="45" blue="12"/>
		<position>LR</position>
		<postLabelCache>TRUE</postLabelCache>
		<size x="90" y="8"/>
		<style>0</style>
                <transparent>ON</transparent>
		<units>METERS</units>
	</ScaleBar>
	<shapePath>../data</shapePath>
	<size x="600" y="400"/>
	<symbolSet>/tmp/mySymbolSet.sym</symbolSet>
	<Symbol name="mySymbol2-test2" type="CARTOLINE">
		<antialias>FALSE</antialias>
		<character>C</character>
		<filled>TRUE</filled>
		<font>serif</font>
		<gap>13</gap>
		<image>/tmp/test.gif</image>
		<lineCap>ROUND</lineCap>
		<lineJoin>BEVEL</lineJoin>
		<lineJoinMaxSize>3</lineJoinMaxSize>
		<pattern>2 3</pattern>
		<Points>
			<point x="2" y="-3"/>
		</Points>
		<transparent>123</transparent>
	</Symbol>
        <Symbol name="mySymbol222-test1" type="CARTOLINE">
          <antialias>FALSE</antialias>
          <character>C</character>
          <filled>TRUE</filled>
          <font>serif</font>
          <gap>13</gap>
          <image>/tmp/test.gif</image>
          <lineCap>ROUND</lineCap>
          <lineJoin>BEVEL</lineJoin>
          <lineJoinMaxSize>3</lineJoinMaxSize>
          <pattern>2 3</pattern>
          <Points>
            <point x="2" y="-3"/>
          </Points>
          <transparent>123</transparent>
        </Symbol>
	<templatePattern>[$ir-wz]*.html</templatePattern>
	<units>MILES</units>
        <Web>
          <browseFormat>text/html</browseFormat>
		<empty>../errors/queryfail1.html</empty>
		<error>../errors/error1.html</error>
		<footer>../templates/footer1.html</footer>
		<header>../templates/header.html</header>
		<imagePath>/tmp/ms_tmp/</imagePath>
		<imageUrl>/ms_tmp/</imageUrl>
                <legendFormat>text/html</legendFormat>
		<log>../logs/ms.log</log>
		<maxScaleDenom>240000</maxScaleDenom>
		<maxTemplate>../templates/maxtemplate1.html</maxTemplate>
		<Metadata>
			<item name="description">Cities</item>
			<item name="title">The Cities</item>
			<item name="author">Norm</item>
		</Metadata>
		<minScaleDenom>120000</minScaleDenom>
		<minTemplate>../templates/mintemplate1.html</minTemplate>
                <queryFormat>text/html</queryFormat>
		<template>http://mapgears.com/templates/myTemplates1.html</template>
                <Validation>
                  <item name="firstname">^[a-zA-Z\-]+$</item>
                  <item name="taxid">^[A-Z]{2}[0-9]{6}$</item>
                </Validation>
	</Web>
</Map>










