geojson-cover travis-ci npm

generates an s2 cover from geojson

3 years after

geojson-cover

build status

generates an s2 cover from geojson

API

geojsonCover.bboxQueryIndexes(bbox, range); // -> cells
geojsonCover.bboxCellGeoJSON(bbox); // -> geojson
geojsonCover.geometryIndexes(geojson); // -> cells
geojsonCover.geometryGeoJSON(geojson); // -> geojson

// options
geojsonCover.bboxQueryIndexes(bbox, false, {max_index_cells: 50}); // -> cells

options

name default description
max_query_cells 100 the maximum number of S2 cells used for any query coverage.
query_min_level 1 The largest size of a cell permissable in a query.
query_max_level 8 The smallest size of a cell permissable in a query.
max_index_cells 100 the maximum number of S2 cells used for any index coverage.
index_min_level 8 The largest size of a cell permissable in an index.
index_max_level 12 The smallest size of a cell permissable in an index.
index_point_level 15 The index level for point features only.

Related Repositories

vector-river-map

vector-river-map

Tutorial project demonstrating making a web map with vector tiles ...

spatial4j

spatial4j

A Geospatial Library for Java ...

geo-how-to

geo-how-to

commands, notes for open-source geo workflows ...

awesome-machine-learning-python

awesome-machine-learning-python

Machine and Deep Learning in Python ...

carmen

carmen

Mapnik vector tile-based geocoder with support for swappable data sources ...


Top Contributors

morganherlocker tmcw mick

Releases

-   v0.1.2 zip tar