Skip to contents

The fixtures in inst/fixtures/places/ are the cross-language contract for cells_in_polygon_grid(): each carries a polygon, the grid spec it was computed on, and the expected (cell_id, pct). R and TypeScript read the same bytes, so neither side can quietly adopt its own rounding or antimeridian rule.

Usage

place_fixture(id)

Arguments

id

fixture id (file basename without .json), or a path to one

Value

a list with id, rule, grid, geometry (an sfc) and expected (a tibble of cell_id, pct)