#shapely

Alexandre B A Villaresvillares@pynews.com.br
2025-05-25

Similar to yesterday's sketch, but I removed all dependency of my old awkward
helper functions. I'm now using just shapely and Py5Vector rotation and lerp.

Code at: github.com/villares/sketch-a-d
More sketch-a-day: abav.lugaralgum.com/sketch-a-d
If you like this, support my work:
paypal.com/donate/?hosted_butt
liberapay.com/Villares
wise.com/pay/me/alexandrev562 #Processing #Python #py5 #CreativeCoding #shapely #loop #hatches

2025-04-15

Debugging a complex Python library via a Jupyter notebook is unfairly good tech, yinz.

Now that I've tried it, I can't go back.

My favorite part of this exercise?

Testing the fix in-place by copying the broken method out of the class, editing it, monkey-patching it back into the class definition, and then re-running the small verification setup I threw together in Jupyter. Newly-created class instances are using the new method and the flow goes from "Busted" to "Working."

(Plus, Jupyter supports matplotlib output, which is huge when what I'm debugging is fundamentally geometric in nature).

#Python #jupyter #matplotlib #shapely

2025-04-03

Finally a new #Shapely feature release! 🎉
Shapely 2.1.0 highlights include initial support for geometries with M or ZM values, functionality for coverage validation and simplification, and a set of other new top-level functions.

For a full overview, see shapely.readthedocs.io/en/late

#python #geopython #geospatial

Code snippet showing the initial support for M values, illustrating that with a POINT M.Image showing the functionality of `shapely.coverage_simplify`: on the left the countries of Africa, on the right the result of topologically simplifying those polygons preserving the coverage.
Alexandre B A Villares 🐍villares@ciberlandia.pt
2025-04-01

I had missed the great episode with Dr. Geoff Boeing at #TalkPythonToMe: #495: #OSMnx: #Python and #OpenStreetMap

I really love OSMnx and use it all the time, often with #py5 (which has a cool #shapely integration that helps).

Episode webpage: talkpython.fm/episodes/show/49

Media file: talkpython.fm/episodes/downloa

Stef's PicksStefsPicks
2025-03-31
2025-03-20
2025-03-19
2025-03-18
2025-03-15
2025-03-14
2025-03-13
2025-03-12

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst