Index ¦ Archives

Calculating Polygon Centroid with OGR Python Bindings

A simple recipe for calculating the centroid values for polygon features, whether singlepart or multipart.


Python Regular Expression Word Boundaries

When using word boundaries, it is important to keep in mind that special characters can create unexpected results.


Normalizing Strings

A simple Python class for string normalization that utilizes the standard library.

© Diego Ripley. Built using Pelican. Theme by Giulio Fidente on GitHub. .