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