double minimalOverlap = feature.getGeometry().getArea() * ratio;
Geometry overlap = location.intersection(feature.getGeometry());
double effectiveOverlap = overlap.getArea();
if (minimalOverlap <= effectiveOverlap) {
log.trace("found " + feature);
Feature dto = converter.toDto(feature);
dto.setCrs(crsCode);
features.add(dto);
}
}
} else {
for (InternalFeature feature : temp) {
log.trace("found " + feature);
Feature dto = converter.toDto(feature);
dto.setCrs(crsCode);
features.add(dto);
}
}
// features.size can again be 0... so check: