Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Uber h3 polyfill CLI

NotificationsYou must be signed in to change notification settings

stepankuzmin/h3-polyfill

Repository files navigation

Build Status

h3-polyfill is a library and a command line interface to Uberh3 polyfill.

It takes an input polygon as a GeoJSON file and outputs hex as a GeoJSON polygon feature collection.

screenshot

Installation

npm i h3-polyfill

Usage

consth3Polyfill=require("h3-polyfill");constpolygon={type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:[[[-122.40898669999721,37.81331899998324],[-122.35447369999936,37.71980619999785],[-122.4798767000009,37.815157199999845],[-122.40898669999721,37.81331899998324]]]}};consthex=h3Polyfill(polygon,7);

CLI Usage

Usage: h3-polyfill<polygon.geojson><resolution>

Example:

npx h3-polyfill polygon.geojson 7> hex.geojson

Sponsor this project

 

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp