Geometry geometry = (Geometry) literal;
if (!WORLD.contains(geometry.getEnvelopeInternal()) && !WORLD.equals(geometry.getEnvelopeInternal())) {
if(LOGGER.isLoggable(Level.FINE)){
LOGGER.fine("SOLR cannot deal with filters using geometries that span beyond the whole world, clip feature geometry to world");
}
geometry = geometry.intersection(JTS.toGeometry(WORLD));
}
//Splits segments exceeds the 180 degrees longitude limit to conforms to SOLR WKT manager specification
//Using JTS Densify, all segments exceeds the 180 degrees length will be densified, not only the one exceeds it in longitude!
Envelope env = geometry.getEnvelopeInternal();
if(env.getWidth() > SOLR_DISTANCE_TOLERANCE){