This would introduce shapely as a dependency. I don't want to do that.