public Function<FeatureCollector, FeatureCollector.Feature> newGeometryFactory(String layerName) {
    return features -> geometryFactory.apply(features, layerName);
  }
Generates a factory method which creates a {@link FeatureCollector.Feature} from a {@link FeatureCollector} of the
appropriate geometry type.

@param layerName - name of the layer
@return geometry factory method
planetiler-custommap/src/main/java/com/onthegomap/planetiler/custommap/configschema/FeatureGeometry.java