Adding should-be-failing test for #60

This commit is contained in:
Tom MacWright 2011-08-24 12:25:02 -04:00
parent 7c2a5aa9a1
commit d3b2bfc199
3 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,14 @@
{
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"Stylesheet": [
"issue60.mss"
],
"Layer": [{
"name": "world",
"srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over",
"Datasource": {
"file": "http://tilemill-data.s3.amazonaws.com/test_data/shape_demo.zip",
"type": "shape"
}
}]
}

View File

@ -0,0 +1,6 @@
#world {
[NET_INFLOW > -30000] { polygon-fill: #f00; }
[NET_INFLOW > -10000] { polygon-fill: #0f0; }
}
#world [OBJECTID=12] { polygon-pattern-file:url(../resources/textures/stripe.png); }

View File

@ -0,0 +1,40 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map[]>
<Map srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over">
<Style name="world" filter-mode="first">
<Rule>
<Filter>([OBJECTID] = 12) and ([NET_INFLOW] &gt; -10000)</Filter>
<PolygonSymbolizer fill="#00ff00" />
<PolygonPatternSymbolizer file="[absolute path]" />
</Rule>
<Rule>
<Filter>([OBJECTID] = 12) and ([NET_INFLOW] &gt; -30000)</Filter>
<PolygonSymbolizer fill="#ff0000" />
<PolygonPatternSymbolizer file="[absolute path]" />
</Rule>
<Rule>
<Filter>([OBJECTID] = 12)</Filter>
<PolygonPatternSymbolizer file="[absolute path]" />
</Rule>
<Rule>
<Filter>([NET_INFLOW] &gt; -10000)</Filter>
<PolygonSymbolizer fill="#00ff00" />
</Rule>
<Rule>
<Filter>([NET_INFLOW] &gt; -30000)</Filter>
<PolygonSymbolizer fill="#ff0000" />
</Rule>
</Style>
<Layer
name="world"
srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over">
<StyleName>world</StyleName>
<Datasource>
<Parameter name="file"><![CDATA[[absolute path]]]></Parameter>
<Parameter name="type"><![CDATA[shape]]></Parameter>
</Datasource>
</Layer>
</Map>