project<R extends Point<num>> method

  1. @override
Feature<Geometry> project<R extends Point<num>>(
  1. Projection projection, {
  2. required CreatePosition<R> to,
})
override

Returns a new feature with geometry projected using projection.

Target points of R are created using to as a point factory.

Transforms only geometry of this feature. Other members, id and properties, are set without modifications to a new feature object.

Implementation

@override
Feature project<R extends Point>(
  Projection projection, {
  required CreatePosition<R> to,
}) =>
    Feature(
      id: _id,
      properties: _properties,
      geometry: _geometry?.project<R>(projection, to: to),
    );