Skip to content

support geojson, wkt polygon input on website#1132

Merged
isaacbrodsky merged 7 commits intouber:masterfrom
isaacbrodsky:website-support-wkt
Mar 25, 2026
Merged

support geojson, wkt polygon input on website#1132
isaacbrodsky merged 7 commits intouber:masterfrom
isaacbrodsky:website-support-wkt

Conversation

@isaacbrodsky
Copy link
Copy Markdown
Collaborator

Supports pasting polygon geometries into the website. There is a default setting for the polygonToCells operation. It uses centroid containment mode (default) and targets the first resolution that produces 50 cells. We could make this configurable via UI that comes up when this mode is engaged.

This could go well with uber/geojson2h3#43 to support pasting point type geometries

@coveralls
Copy link
Copy Markdown

coveralls commented Mar 1, 2026

Coverage Status

coverage: 99.066%. remained the same
when pulling d20d9a9 on isaacbrodsky:website-support-wkt
into d02909c on uber:master.

Comment on lines +5489 to +5497
h3-js@4.4.0:
version "4.4.0"
resolved "https://registry.yarnpkg.com/h3-js/-/h3-js-4.4.0.tgz#858586205d49fc2b164df8e2d1ab855565ee9e81"
integrity sha512-DvJh07MhGgY2KcC4OeZc8SSyA+ZXpdvoh6uCzGpoKvWtZxJB+g6VXXC1+eWYkaMIsLz7J/ErhOalHCpcs1KYog==

h3-js@^3.6.1:
version "3.7.2"
resolved "https://registry.yarnpkg.com/h3-js/-/h3-js-3.7.2.tgz#61d4feb7bb42868ca9cdb2d5cf9d9dda94f9e5a3"
integrity sha512-LPjlHSwB9zQZrMqKloCZmmmt3yZzIK7nqPcXqwU93zT3TtYG6jP4tZBzAPouxut7lLjdFbMQ75wRBiKfpsnY7w==
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how significant this is, but is it worth waiting on an update to geojson2h3 so that we only need to pull in one version of the h3-js library?

Comment on lines +5489 to 5502
h3-js@4.4.0, h3-js@^4.4.0:
version "4.4.0"
resolved "https://registry.yarnpkg.com/h3-js/-/h3-js-4.4.0.tgz#858586205d49fc2b164df8e2d1ab855565ee9e81"
integrity sha512-DvJh07MhGgY2KcC4OeZc8SSyA+ZXpdvoh6uCzGpoKvWtZxJB+g6VXXC1+eWYkaMIsLz7J/ErhOalHCpcs1KYog==

h3-js@^4.1.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/h3-js/-/h3-js-4.1.0.tgz#f8c4a8ad36612489a954f1a0bb3f4b7657d364e5"
integrity sha512-LQhmMl1dRQQjMXPzJc7MpZ/CqPOWWuAvVEoVJM9n/s7vHypj+c3Pd5rLQCkAsOgAoAYKbNCsYFE++LF7MvSfCQ==

"h3-jsv3@npm:h3-js@^3.7.1":
version "3.7.2"
resolved "https://registry.yarnpkg.com/h3-js/-/h3-js-3.7.2.tgz#61d4feb7bb42868ca9cdb2d5cf9d9dda94f9e5a3"
integrity sha512-LPjlHSwB9zQZrMqKloCZmmmt3yZzIK7nqPcXqwU93zT3TtYG6jP4tZBzAPouxut7lLjdFbMQ75wRBiKfpsnY7w==
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand we need the 3.7 for the 3x docs on the website, but can we drop the 4.1 dependency? Would a yarn dedupe clean this up?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comes from deck.gl's dependencies, so I think this is expected.

@isaacbrodsky isaacbrodsky merged commit 6068306 into uber:master Mar 25, 2026
47 checks passed
@isaacbrodsky isaacbrodsky deleted the website-support-wkt branch March 25, 2026 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants