"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "modules/unsupported/mbstyle/src/main/java/org/geotools/mbstyle/parse/MBFilter.java" between
geotools-21.1-project.zip and geotools-21.2-project.zip

About: GeoTools (The Open Source Java GIS Toolkit) is a Java code library which provides standards compliant methods for the manipulation of geospatial data.

MBFilter.java  (geotools-21.1-project):MBFilter.java  (geotools-21.2-project)
skipping to change at line 373 skipping to change at line 373
} else { } else {
throw new UnsupportedOperationException("$id \"" + operator + "\ " not valid"); throw new UnsupportedOperationException("$id \"" + operator + "\ " not valid");
} }
} }
// //
// Feature Property // Feature Property
// //
// Existential Filters // Existential Filters
if ("has".equals(operator)) { if ("!has".equals(operator)) {
String key = parse.get(json, 1); String key = parse.get(json, 1);
return ff.isNull(ff.property(key)); // null is the same as no value present return ff.isNull(ff.property(key)); // null is the same as no value present
} else if ("!has".equals(operator)) { } else if ("has".equals(operator)) {
String key = parse.get(json, 1); String key = parse.get(json, 1);
return ff.not(ff.isNull(ff.property(key))); return ff.not(ff.isNull(ff.property(key)));
// Comparison Filters // Comparison Filters
} else if ("==".equals(operator)) { } else if ("==".equals(operator)) {
String key = parse.get(json, 1); String key = parse.get(json, 1);
Object value = parse.value(json, 2); Object value = parse.value(json, 2);
return ff.equal(ff.property(key), ff.literal(value), false); return ff.equal(ff.property(key), ff.literal(value), false);
} else if ("!=".equals(operator)) { } else if ("!=".equals(operator)) {
String key = parse.get(json, 1); String key = parse.get(json, 1);
Object value = parse.value(json, 2); Object value = parse.value(json, 2);
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)