Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from mholthausen/extract-nested-expressions
Fixes extraction of nested expressions with more than two filter
- Loading branch information
Showing
5 changed files
with
2,122 additions
and
1,796 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
IMAGECOLOR "#f3f3e9" | ||
LAYER | ||
NAME roads_inline | ||
TYPE LINE | ||
EXTENT -20026376.39 -20048966.10 20026376.39 20048966.10 | ||
PROJECTION | ||
"init=epsg:3857" | ||
END | ||
CLASS | ||
MAXSCALEDENOM 500000 | ||
MINSCALEDENOM 25000 | ||
EXPRESSION (('[class]' = 'railways') AND ('[service]' != 'spur') AND ('[type]' = 'rail')) | ||
END | ||
END |
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { Style } from 'geostyler-style'; | ||
|
||
const lineExpressionStyle: Style = [{ | ||
name: 'roads_inline', | ||
rules: [ | ||
{ | ||
name: '', | ||
filter: [ | ||
'&&', | ||
['==', 'class', 'railways'], | ||
['!=', 'service', 'spur'], | ||
['==', 'type', 'rail'] | ||
], | ||
scaleDenominator: { max: 500000, min: 25000 }, | ||
symbolizers: [] | ||
} | ||
] | ||
}]; | ||
|
||
export default lineExpressionStyle; |
Oops, something went wrong.