Last active
December 15, 2016 20:37
-
-
Save bertt/f916aae17aad4a7a8f18e99e30cb0545 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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