Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
giscience
big-data
ohsome
libs
ohsome-filter
Commits
2f8bdb6d
Verified
Commit
2f8bdb6d
authored
May 05, 2020
by
Martin Raifer
Browse files
Merge branch 'master' into 1.1
parents
efc6ae93
81098137
Changes
4
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
2f8bdb6d
1.1.2
-----
*
Fix more spelling of keywords in error messages.
1.
1.1
-----
*
Improve documentation by adding some examples to readme.
*
Fix spelling of keywords in error messages.
1.
1.0
-----
...
...
README.md
View file @
2f8bdb6d
...
...
@@ -15,7 +15,7 @@ Add the module to your maven dependencies (`pom.xml`):
<dependency>
<groupId>
org.heigit.ohsome
</groupId>
<artifactId>
ohsome-filter
</artifactId>
<version>
1.1.
0
</version>
<version>
1.1.
2
</version>
</dependency>
…
<repository>
...
...
pom.xml
View file @
2f8bdb6d
...
...
@@ -6,7 +6,7 @@
<groupId>
org.heigit.ohsome
</groupId>
<artifactId>
ohsome-filter
</artifactId>
<version>
1.1.
1
</version>
<version>
1.1.
2
</version>
<description>
A flexible filtering library for OSM entities.
</description>
<packaging>
jar
</packaging>
...
...
src/main/java/org/heigit/ohsome/filter/FilterParser.java
View file @
2f8bdb6d
...
...
@@ -101,15 +101,15 @@ public class FilterParser {
final
Parser
<
FilterExpression
>
unit
=
ref
.
lazy
().
between
(
parensStart
,
parensEnd
)
.
or
(
filter
);
final
Parser
<
String
>
and
=
whitespace
.
followedBy
(
Patterns
.
string
(
"and"
).
toScanner
(
"
AND
"
))
.
followedBy
(
Patterns
.
string
(
"and"
).
toScanner
(
"
and
"
))
.
followedBy
(
whitespace
)
.
map
(
ignored
->
"or"
);
final
Parser
<
String
>
or
=
whitespace
.
followedBy
(
Patterns
.
string
(
"or"
).
toScanner
(
"
OR
"
))
.
followedBy
(
Patterns
.
string
(
"or"
).
toScanner
(
"
or
"
))
.
followedBy
(
whitespace
)
.
map
(
ignored
->
"or"
);
final
Parser
<
String
>
not
=
whitespace
.
followedBy
(
Patterns
.
string
(
"not"
).
toScanner
(
"
NOT
"
))
.
followedBy
(
Patterns
.
string
(
"not"
).
toScanner
(
"
not
"
))
.
followedBy
(
whitespace
)
.
map
(
ignored
->
"not"
);
final
Parser
<
FilterExpression
>
parser
=
new
OperatorTable
<
FilterExpression
>()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment