Skip to content

Instantly share code, notes, and snippets.

@bertt
Last active December 15, 2016 20:37
Show Gist options
  • Save bertt/f916aae17aad4a7a8f18e99e30cb0545 to your computer and use it in GitHub Desktop.
Save bertt/f916aae17aad4a7a8f18e99e30cb0545 to your computer and use it in GitHub Desktop.
tip: use Python 2.7 (not 3.5) and the right bit version (64) otherwise
things will go wrong
1] Install
linux:
sudo apt-get install libgeos-dev
pip install shapely
sudo -H pip install quantized-mesh-tile
mac:
brew install geos
sudo pip install --user shapely
sudo -H pip install quantized-mesh-tile
windows:
install osgeo4W64 libraries
pip install shapely
2] Testcase open python
import shapely.geometry
from shapely.geometry import Point
patch = Point(0.0, 0.0).buffer(10.0)
patch
patch.area
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment