Skip to content

Commit

Permalink
replaced legacy getBoundingBox with bbox-fns version
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielJDufour committed Dec 22, 2023
1 parent 673c2b9 commit c6fd494
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geowarp.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { booleanIntersects, intersect, polygon } = require("bbox-fns");
const { booleanIntersects, calc: getBoundingBox, intersect, polygon } = require("bbox-fns");
const dufour_peyton_intersection = require("dufour-peyton-intersection");
const fastMax = require("fast-max");
const fastMin = require("fast-min");
Expand Down Expand Up @@ -624,7 +624,7 @@ const geowarp = function geowarp({
const cutline_in_srs = cutline && reprojectGeoJSON(cutline, { reproject: inverse });

// in the future we might want to pull the function getBoundingBox into its own repo
const cutline_bbox_in_srs = cutline && dufour_peyton_intersection.getBoundingBox(cutline_in_srs);
const cutline_bbox_in_srs = cutline && getBoundingBox(cutline_in_srs);

if (!cutline || booleanIntersects(in_bbox, cutline_bbox_in_srs)) {
// update bounding box we sample from based on extent of cutline
Expand Down

0 comments on commit c6fd494

Please sign in to comment.