UNPKG

@seasketch/geoprocessing

Version:

Geoprocessing and reporting framework for SeaSketch 2.0

65 lines (58 loc) 1.08 kB
import { Polygon, Sketch } from "../../../types/index.js"; import { genSampleSketch } from "../../../helpers/index.js"; // bbox - [xmin, ymin, xmax, ymax] // pixel - [left, bottom, right, top] export const quad1Poly: Sketch<Polygon> = genSampleSketch({ type: "Polygon", coordinates: [ [ [-2, 2], [-2, 18], [-18, 18], [-18, 2], [-2, 2], ], ], }); export const quad2Poly: Sketch<Polygon> = genSampleSketch({ type: "Polygon", coordinates: [ [ [2, 2], [2, 18], [18, 18], [18, 2], [2, 2], ], ], }); export const allQuadPoly: Sketch<Polygon> = genSampleSketch({ type: "Polygon", coordinates: [ [ [-18, -18], [-18, 18], [18, 18], [18, -18], [-18, -18], ], ], }); export const outsideQuadPoly: Sketch<Polygon> = genSampleSketch({ type: "Polygon", coordinates: [ [ [30, 30], [30, 50], [50, 50], [50, 30], [30, 30], ], ], }); export default { quad1Poly, quad2Poly, allQuadPoly, outsideQuadPoly, };