@seasketch/geoprocessing
Version:
Geoprocessing and reporting framework for SeaSketch 2.0
22 lines (19 loc) • 466 B
text/typescript
import { feature } from "@turf/turf";
import { Feature, Polygon } from "../../types/geojson.js";
import { genSampleSketch } from "../../helpers/index.js";
export const selfCrossingPolygon: Feature<Polygon> = feature({
type: "Polygon",
coordinates: [
[
[],
[],
[],
[],
[],
],
],
});
export const selfCrossingSketchPolygon = genSampleSketch(
selfCrossingPolygon.geometry,
"selfCrossingPolygon",
);