UNPKG

dufour-peyton-intersection

Version:

Reference Implementation of the Dufour-Peyton Intersection Algorithm. Calculates the Intersections of Arbitrary Polygons with a Geospatial Raster.

10 lines (7 loc) 219 B
"use strict"; const eachPolygon = require("./each-polygon.js"); module.exports = function getPolygons(geojson) { const polygons = []; eachPolygon(geojson, polygon => polygons.push(polygon)); return polygons; };