build<T extends FeatureObject, E extends Geometry> static method

void build<T extends FeatureObject, E extends Geometry>(
  1. WriteFeatures features, {
  2. required void to(
    1. T feature
    ),
})

Builds geospatial feature objects from the content provided by features.

Built feature object are sent into to callback function.

Only feature objects of T are built, any other objects are ignored. T should be FeatureObject (building both features and feature collections), Feature or FeatureCollection.

Features or feature items on a collection contain a geometry of E.

Implementation

static void build<T extends FeatureObject, E extends Geometry>(
  WriteFeatures features, {
  required void Function(T feature) to,
}) {
  final builder = FeatureBuilder<T, E>._(to);
  features.call(builder);
}