Skip to content

Commit

Permalink
added test/test.overlaps.js
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielJDufour committed Feb 26, 2023
1 parent 6c63d0a commit ab0bbb6
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/test.overlaps.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import test from "flug";
import { GeoExtent } from "../src/geo-extent.js";

test("raster overlaps tile", ({ eq }) => {
const raster = new GeoExtent([205437, 3268524, 230448, 3280290], { srs: "EPSG:32615" });

const tile = new GeoExtent({
_southWest: {
lat: -85.0511287798066,
lng: -180
},
_northEast: {
lat: 85.0511287798066,
lng: 180
}
});

eq(raster.overlaps(tile), true);
eq(tile.overlaps(raster), true);
});

0 comments on commit ab0bbb6

Please sign in to comment.