static ZoomFunction<GeometryPipeline> defaultSimplify(FeatureCollector.Feature feature) {
    return zoom -> {
      double tolerance = feature.getPixelToleranceAtZoom(zoom) / 256d;
      SimplifyMethod simplifyMethod = feature.getSimplifyMethodAtZoom(zoom);
      return geom -> switch (simplifyMethod) {
        case RETAIN_IMPORTANT_POINTS -> DouglasPeuckerSimplifier.simplify(geom, tolerance);
        // DP tolerance is displacement, and VW tolerance is area, so square what the user entered to convert from
        // DP to VW tolerance
        case RETAIN_EFFECTIVE_AREAS -> new VWSimplifier().setTolerance(tolerance * tolerance).transform(geom);
        case RETAIN_WEIGHTED_EFFECTIVE_AREAS ->
          new VWSimplifier().setWeight(0.7).setTolerance(tolerance * tolerance).transform(geom);
      };
    };
  }
Returns a geometry pipeline that applies the normal geometry simplification to {@code feature} that would happen
without any geometry pipeline.
planetiler-core/src/main/java/com/onthegomap/planetiler/geo/GeometryPipeline.java