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

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
    
主站蜘蛛池模板: 安义县| 远安县| 建瓯市| 红桥区| 南宁市| 新河县| 宜川县| 陆丰市| 忻州市| 绥芬河市| 冷水江市| 宣武区| 左权县| 龙胜| 通渭县| 达拉特旗| 盐池县| 醴陵市| 肥西县| 千阳县| 宣城市| 丹寨县| 五河县| 从化市| 马尔康县| 大兴区| 赤峰市| 蓝山县| 即墨市| 简阳市| 申扎县| 沙坪坝区| 毕节市| 比如县| 淮滨县| 安福县| 新田县| 益阳市| 新余市| 屏南县| 云和县|