public void visit(SimpleFeature feature) { visit((org.opengis.feature.Feature) feature); }
public void visit(org.opengis.feature.Feature feature) { /** * Visitor function */ Object result = expr.evaluate(feature); if (result instanceof Comparable) { Comparable value = (Comparable) result; list.add(value); } else { throw new IllegalStateException("Expression is not comparable!"); } }