mercantile replacement utiles! #126
jessekrubin
started this conversation in
General
Replies: 2 comments 7 replies
-
🥳 that's great @jessekrubin FYI, @pka also created a port of Morcantile in Rust: https://github.com/pka/tile-grid |
Beta Was this translation helpful? Give feedback.
6 replies
-
FYI, When we'll switch to pydantic V2, we might want to re-write morecantile in Rust (ping @kylebarron ;-) ) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Morecantile team!
I have used a bunch of
mercantile
in my time, and as a side-project, I have ported (and published) a mostly drop-in replacement formercantile
calledutiles
. It is written with Python + Rust; I used the project as a way of learning some rust. You can check it out at https://github.com/jessekrubin/utiles! It seems to be faster thanmercantile
, although I believe there might be more optimizations that I am not aware of.Differences with mercantile:
utiles
raisesTypeErrors
andValueError
s instead of custom errorsutiles
adds more object oriented functionality to the struct/tuple object typesutiles
adds utils for getting/parsing pmtile-id (based on the hilbert curve)I'm wondering if other Mercantile aficionados would be interested in checking out utiles and possibly contributing to it!
I would be happy to add any
morecantile
functionality to utiles as well.Thank you,
Jesse
PS (edit): it adds type annotations too!
Beta Was this translation helpful? Give feedback.
All reactions