Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ public IntersectsImpl(Expression expression1, Expression expression2, CQLCrsType
try {
String geojson = GeometryUtils.convertToGeoJson(literal, cqlCrsType);
geometry = GeometryUtils
.readGeometry(geojson)
.map(GeometryUtils::normalizePolygon);
.readGeometry(geojson);
}
catch(Exception ex) {
logger.warn("Exception in parsing, query result will be wrong", ex);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public Optional<Geometry> readCachedGeometry(Object input) {
} else {
j = (String) input;
}
return Optional.of(json.read(j));
return Optional.of(GeometryUtils.normalizePolygon(json.read(j)));
} catch (IOException e) {
// Do nothing
}
Expand Down
Loading