Skip to content

squareGrid returns rectangles? #1948

@arunasank

Description

@arunasank

I generated a bbox from these polygons:
image

this is my code:

const tbox = require('@turf/bbox');
const arctic = require('./arctic.json');
const bbox = tbox.default(arctic);
const sq = require('@turf/square-grid');

const cellSide = 40;
console.log(JSON.stringify(sq.default(bbox, cellSide, {units: 'kilometers'})));

turf-bbox gives me this:

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions