[GIS] Install Shapely with GEOS on heroku

geosshapely

I have a web mapping app running on Heroku. My app is written in python. Using pip I was able to install various pure python libraries that were needed. I would now like to install Shapely too. This is simple enough (with pip) but I am unsure how to install the geos pre-requisite within the virtualenv (venv) directory. I would much appreciate any pointers.

Thanks,
John

Best Answer

Haven't tried, but found a tweet that looks promising and leads to a repo even more promising.

Seems like the concept of "buildpack" is a way to get things loaded on Heroku, and someone has made GEOS iavailable as a buildpack. By setting a custom geos-path you can install Shapely via pip and it will find GEOS.