@seasketch/geoprocessing
Version:
Geoprocessing and reporting framework for SeaSketch 2.0
65 lines (58 loc) • 1.08 kB
text/typescript
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: [
[
[],
[],
[],
[],
[],
],
],
});
export const allQuadPoly: Sketch<Polygon> = genSampleSketch({
type: "Polygon",
coordinates: [
[
[-18, -18],
[-18, 18],
[],
[],
[-18, -18],
],
],
});
export const outsideQuadPoly: Sketch<Polygon> = genSampleSketch({
type: "Polygon",
coordinates: [
[
[],
[],
[],
[],
[],
],
],
});
export default {
quad1Poly,
quad2Poly,
allQuadPoly,
outsideQuadPoly,
};