Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
add test for #411
Browse files Browse the repository at this point in the history
  • Loading branch information
nebulon42 committed Dec 25, 2016
1 parent 79f209d commit 40e4533
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/rendering/issue_411.mml
Original file line number Diff line number Diff line change
@@ -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": [
"issue_411.mss"
],
"Layer": [{
"id": "test",
"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"
}
}]
}
7 changes: 7 additions & 0 deletions test/rendering/issue_411.mss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#test {
[zoom >= 3][way_pixels > 0.00000010000][way_pixels < 0.00003600000] {
text-face-name: "Arial";
text-name: "[name]";
text-size: 10;
}
}
23 changes: 23 additions & 0 deletions test/rendering/issue_411.result
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?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="test" filter-mode="first">
<Rule>
<MaxScaleDenominator>100000000</MaxScaleDenominator>
<Filter>([way_pixels] > 1e-7) and ([way_pixels] < 0.000036)</Filter>
<TextSymbolizer face-name="Arial" size="10" text="[name]"/>
</Rule>
</Style>
<Layer
name="test"
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>test</StyleName>
<Datasource>
<Parameter name="file"><![CDATA[[absolute path]]]></Parameter>
<Parameter name="type"><![CDATA[shape]]></Parameter>
</Datasource>
</Layer>

</Map>

0 comments on commit 40e4533

Please sign in to comment.