Adding should-be-failing test for #60
This commit is contained in:
parent
7c2a5aa9a1
commit
d3b2bfc199
14
test/rendering/issue60.mml
Normal file
14
test/rendering/issue60.mml
Normal 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"
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
}
|
6
test/rendering/issue60.mss
Normal file
6
test/rendering/issue60.mss
Normal 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); }
|
40
test/rendering/issue60.result
Normal file
40
test/rendering/issue60.result
Normal 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] > -10000)</Filter>
|
||||||
|
<PolygonSymbolizer fill="#00ff00" />
|
||||||
|
<PolygonPatternSymbolizer file="[absolute path]" />
|
||||||
|
</Rule>
|
||||||
|
<Rule>
|
||||||
|
<Filter>([OBJECTID] = 12) and ([NET_INFLOW] > -30000)</Filter>
|
||||||
|
<PolygonSymbolizer fill="#ff0000" />
|
||||||
|
<PolygonPatternSymbolizer file="[absolute path]" />
|
||||||
|
</Rule>
|
||||||
|
<Rule>
|
||||||
|
<Filter>([OBJECTID] = 12)</Filter>
|
||||||
|
<PolygonPatternSymbolizer file="[absolute path]" />
|
||||||
|
</Rule>
|
||||||
|
<Rule>
|
||||||
|
<Filter>([NET_INFLOW] > -10000)</Filter>
|
||||||
|
<PolygonSymbolizer fill="#00ff00" />
|
||||||
|
</Rule>
|
||||||
|
<Rule>
|
||||||
|
<Filter>([NET_INFLOW] > -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>
|
Loading…
Reference in New Issue
Block a user