Geospatial Development By Example with Python
上QQ阅读APP看书,第一时间看更新

Installing Shapely

Shapely is a package for the manipulation and analysis of two dimensional geometries. It can perform operations such as union and subtraction of geometries. It also can perform tests and comparisons, such as when a geometry intersects other geometries.

Windows

Here's what you need to do:

  1. As before, download the prebuilt wheel; this time, look for a file named Shapely‑1.5.13‑cp27‑none‑win32.whl.
  2. Then, install it with pip.

Ubuntu Linux

Here are the steps you need to perform:

  1. Go to the terminal or open a new one with Ctrl + T.
  2. Enter the following command:
    sudo pip install shapely