官术网_书友最值得收藏!

Installing Mapnik

Mapnik is a map rendering package. It is a free toolkit to develop mapping applications. It produces high-quality maps and is used on many applications, including OpenStreetMaps.

Windows

Mapnik isn't available for installation as other libraries are. Instead, you need to go to http://mapnik.org/ and follow the download link:

  1. Download the Windows 32-bit package of Mapnik 2.2.
  2. Extract the mapnik-v2.2.0 to C:\ folder.
  3. Then, rename the extracted folder c:\mapnik.
  4. Now, add Mapnik to your PATH.
  5. Open Control Panel and go to System.
  6. Click on the Advanced System Settings link in the left-hand side column.
  7. In the System Properties window, click on the Advanced tab.
  8. Next, click on the Environment Variables button.
  9. In the System variables section, highlight the PATH variable and click on Edit. Add the following paths to the end of the list, each separated with a semicolon, as follows:
    c:\mapnik\bin;c:\mapnik\lib
    
  10. Now, click on the New button; then, set the variable name to PYTHONPATH and value to c:\mapnik\python\2.7\site-packages.

Ubuntu Linux

For this, perform the following:

  1. Go to the terminal or open a new one.
  2. Then, enter the following command:
    sudo apt-get install mapnik
    
主站蜘蛛池模板: 玉门市| 拉萨市| 平度市| 安仁县| 渑池县| 中超| 宾川县| 炎陵县| 台东市| 长顺县| 中江县| 修文县| 扶绥县| 章丘市| 密山市| 江永县| 宁安市| 西安市| 定结县| 蕲春县| 华蓥市| 武功县| 濉溪县| 沁水县| 安新县| 日土县| 金堂县| 博湖县| 江西省| 金塔县| 类乌齐县| 广饶县| 淄博市| 镇远县| 建水县| 上饶县| 开江县| 汤阴县| 衡阳市| 梨树县| 措勤县|