This repository has been archived by the owner on Jan 12, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support exponential notation in filter values
Closes #311 Includes testcase
- Loading branch information
Sandro Santilli
committed
Nov 7, 2013
1 parent
5a7429d
commit ce4c61c
Showing
4 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,15 @@ | |||
{ | |||
"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": [ | |||
"filterexp.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" | |||
} | |||
}] | |||
} | |||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1 @@ | |||
#world [a = 1.2e3][b = 1.2e-3][c = 1.2e+3] { polygon-fill:#fff; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,21 @@ | |||
<?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" maximum-extent="-20037508.34,-20037508.34,20037508.34,20037508.34"> | |||
|
|||
|
|||
<Style name="world" filter-mode="first"> | |||
<Rule> | |||
<Filter>([a] = 1200) and ([b] = 0.0012) and ([c] = 1200)</Filter> | |||
<PolygonSymbolizer fill="#ffffff" /> | |||
</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> |