}
public List<PVector> simplifyFeature(Feature feature) {
List<PVector> simplifiedPoints = new ArrayList<PVector>();
if (feature instanceof ShapeFeature) {
ShapeFeature shapeFeature = (ShapeFeature) feature;
List<PVector> points = getPositions(shapeFeature.getLocations());
simplifiedPoints = GeneralizationUtils.simplify(points, tolerance, true);
}
return simplifiedPoints;
}