/usr/share/doc/mapserver-doc/xmlmapfile/tests/layerset.xml is in mapserver-doc 7.0.7-1build2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 | <?xml version="1.0" encoding="UTF-8"?>
<LayerSet xmlns="http://www.mapserver.org/mapserver" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mapserver.org/mapserver ../mapfile.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 type="MSEXPR">(length('[NAME_E]') < 8)</expression>
<group>group1</group>
<keyImage>/home/myusername/layer1.png</keyImage>
<Label type="TRUETYPE">
<align>LEFT</align>
<angle>AUTO2</angle>
<antialias>TRUE</antialias>
<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>
<text>Test</text>
<wrap>\n</wrap>
</Label>
<LabelLeader>
<gridstep>6</gridstep>
<maxdistance>15</maxdistance>
<Style>
<initialGap>2</initialGap>
</Style>
</LabelLeader>
<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"/>
<gap>13</gap>
<geomTransform>VERTICES</geomTransform>
<lineCap>ROUND</lineCap>
<lineJoin>BEVEL</lineJoin>
<lineJoinMaxSize>3</lineJoinMaxSize>
<maxSize>244</maxSize>
<maxWidth>28</maxWidth>
<minSize>6</minSize>
<minWidth>24</minWidth>
<offset x="12" y="33"/>
<opacity>1253</opacity>
<outlineColorAttribute>[myOulineColorAttribute]</outlineColorAttribute>
<pattern>2 3</pattern>
<size>[mySize]</size>
<symbol type="NAME">star.gif</symbol>
<width>[myWidth]</width>
</Style>
<Style>
<initialGap>2</initialGap>
</Style>
<symbol type="ID">261</symbol>
<template>http://mapgears.com/templates/myTemplates1.html</template>
<text>myText1</text>
</Class>
<classGroup>group1</classGroup>
<classItem>population</classItem>
<Cluster>
<buffer>3.3</buffer>
<filter type="MSEXPR">(type=’road’ and size < 2)</filter>
<group type="REGEX">/ddea/i</group>
<maxdistance>20</maxdistance>
<region>region1</region>
</Cluster>
<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="MSEXPR">(type=’road’ and size < 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>POSTGRESQL</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>
<mask>layerName</mask>
<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>SCALE=AUTO</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>
|