wkt<T extends Point<num> > function
- @Deprecated('Use WKT().parser() instead.')
- PointFactory<
T> point, [ - PointFactory<
T> ? pointWithM
Creates a WKT factory instace using the point
factory.
An optional pointWithM
factory can be given to instantiate any point
objects with M coordinates.
Supported WKT geometry types: 'POINT', 'LINESTRING', 'POLYGON', 'MULTIPOINT', 'MULTILINESTRING', 'MULTIPOLYGON', 'GEOMETRYCOLLECTION'.
Implementation
@Deprecated('Use WKT().parser() instead.')
WktFactory<T> wkt<T extends Point>(
PointFactory<T> point, [
PointFactory<T>? pointWithM,
]) =>
WktFactory<T>(
pointFactory: ({required bool expectM}) =>
expectM ? pointWithM ?? point : point,
);