project<R extends Point<num> > method
FeatureCollection<Feature<Geometry> >
project<R extends Point<num> >(
- Projection projection, {
- required CreatePosition<
R> to,
override
Returns a new collection with features projected using projection
.
Target points of R
are created using to
as a point factory.
Implementation
@override
FeatureCollection project<R extends Point>(
Projection projection, {
required CreatePosition<R> to,
}) =>
// Note: returns FeatureCollection, not FeatureCollection<E> as projected
// feature elements could be other than E as a result of some projections.
FeatureCollection(
features: features.convert<Feature>(
(feature) => feature.project(projection, to: to),
lazy: false,
),
);