0
Fork 0
mirror of https://github.com/uber/h3-py.git synced 2026-11-16 07:44:46 +00:00
Commit graph

7 commits

Author SHA1 Message Date
AJ Friend
f9c1a944d1
Bump h3lib to v4.4.1 and add new functions/errors (#470)
* bump h3lib to v4.4.0

* bump h3lib to v4.4.1

* tests pass with new version

* add new error codes and some helper functions around error codes

* jupyter-book<2

* is_valid_index

* tests for is_valid_index and get_index_digit

* linting

* good set of tests

* lint

* thank you, coverage tests for tests!

* int api test

* function docstrings

* maybe not

* changelog. don't expose error code helper functions (yet)

* ticks

* don't even mention 'em

* `list` rather than `tuple`, since users are likely to mutate result

* remove justfile

* failing tests

* tests should be passing

* more tests

* swap docs order
2025-11-22 08:17:21 -08:00
AJ Friend
1ac484a8db
h3shape_to_cells_experimental takes string containment modes (#436)
* polygon to cells just takes string arguments

* don't need enum

* docstrings

* have tests use h3shape_to_cells_experimental

* clean up tests

* don't repeat tests

* experimental warning

* Being experimental, try `contain` instead of `containment` in params

* try typing with literal

* add polygon_to_cells_experimental.

Contains coverage and lint errors -- just checking that they raise in CI

* ruff fix

* docs and changelog

* add test_polygon_to_cells_experimental for full coverage

* test notes
2025-01-26 16:57:31 -08:00
AJ Friend
259f31b6c8
cell_to_child_pos, child_pos_to_cell, cell_to_children_size (#405)
* cell_to_child_pos and child_pos_to_cell

* start exposing cell_to_children_size

* checking resolutions

* cell_to_children_size python function

* adding tests from https://github.com/uber/h3-py/pull/404

* fiddling

* fix test_cell_to_vertex; helps coverage by removing untouched branch

* more tests

* lint

* exhaustive test for a few resolution pairs

* lint

* doc strings

* error messages

* stricter test

* playing with argument order. example code in tests looks nicer

* use parent_res instead of res

* Use `res_*` instead of `*_res`

* fix up changelog
2024-09-27 15:25:56 -07:00
AJ Friend
6c4ae92b24
i like this order better (#400) 2024-09-26 12:44:01 -07:00
Shiran Yuan
46a7181b3f
Added Bindings for Vertex-Related Functions (#388)
* Update CHANGELOG.md

* Update h3lib.pxd

* Update latlng.pxd

* Update latlng.pyx

* Update util.pxd

* Update util.pyx

* Update _version.py

* Update __init__.py

* Update __init__.py

* Update test_h3.py

* Update __init__.py

* Update test_h3.py

* Update CHANGELOG.md

* Update __init__.py

* Update test_h3.py

* Update _version.py

* Update test_h3.py

* Update __init__.py

* Update CMakeLists.txt

* Update latlng.pxd

* Update latlng.pyx

* Create vertex.pxd

* Create vertex.pyx

* Update __init__.py

* Update test_h3.py

* Update __init__.py

* Update api_quick.md
2024-08-27 08:05:20 -07:00
AJ Friend
f0fc6df6c3
Introduce LatLngPoly and LatLngMultiPoly (#364)
* introduce LatLngPoly

* LatLngPoly in files other than *.py

* drop 3.7 tests

* intro LatLngMultiPoly to .py files

* ...and to non .py files

* h3shape to just shape in .py files

* Class names

* function names

* H3Shape -> Shape

* filename

* Revert "H3Shape -> Shape"

This reverts commit 389725312f.

* Revert "filename"

This reverts commit b263a3e9dc.

* revert

* fix docs

* fix what David found

* rename params from `shape` to `h3shape`

* ...and a few more

* one more

* def cells_to_h3shape(cells, *, tight=True)
2024-05-18 09:46:14 -07:00
AJ Friend
26285eff78
Docs for polygon interface (#362)
* initial stab at documenting polygon interface

* Separate out verbose descriptions

* Nicer flow

* improvements

* avoid using "set"

* move compact functions

* move geo functions

* "grid distance" is better than "H3 distance"

* lint

* units

* clean up contributing

* warning about function name changes

* don't need to specify title

* update copyright

* add a warning about lat/lng order

* try this

* give the geo_interface link

* sphinx 7.3 introduced an issue

* document bug

* better organization of functions

* green is a friendlier color

* don't need this

* sphinx bug is fixed with 7.3.3
2024-04-17 09:32:40 -07:00