private FeatureRenderer newFeatureRenderer(FeatureGroup writer, PlanetilerConfig config,
    Consumer<SortableFeature> next) {
    @SuppressWarnings("java:S2095") // closed by FeatureRenderer
    var encoder = writer.newRenderedFeatureEncoder();
    return new FeatureRenderer(
      config,
      rendered -> next.accept(encoder.apply(rendered)),
      stats,
      encoder
    );
  }
Renders map features for all elements from this data source based on the mapping logic defined in {@code profile}.

@param sourcePaths list of paths associated with this source
@param writer      consumer for rendered features
@param config      user-defined parameters controlling number of threads and log interval
planetiler-core/src/main/java/com/onthegomap/planetiler/reader/SourceFeatureProcessor.java