- Geospatial Development By Example with Python
- Pablo Carreira
- 186字
- 2021-07-16 09:30:55
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:
- Download the Windows 32-bit package of Mapnik 2.2.
- Extract the
mapnik-v2.2.0
toC:\
folder. - Then, rename the extracted folder
c:\mapnik
. - Now, add
Mapnik
to your PATH. - Open Control Panel and go to System.
- Click on the Advanced System Settings link in the left-hand side column.
- In the System Properties window, click on the Advanced tab.
- Next, click on the Environment Variables button.
- 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
- Now, click on the New button; then, set the variable name to
PYTHONPATH
and value toc:\mapnik\python\2.7\site-packages
.
Ubuntu Linux
For this, perform the following:
- Go to the terminal or open a new one.
- Then, enter the following command:
sudo apt-get install mapnik
推薦閱讀
- Instant Node Package Manager
- Mastering Zabbix(Second Edition)
- Oracle Exadata性能優化
- Python語言程序設計
- 編寫整潔的Python代碼(第2版)
- 區塊鏈技術進階與實戰(第2版)
- 大話Java:程序設計從入門到精通
- Scratch趣味編程:陪孩子像搭積木一樣學編程
- Developing SSRS Reports for Dynamics AX
- R Data Science Essentials
- Oracle實用教程
- Magento 2 Beginners Guide
- NGUI for Unity
- 人人都能開發RPA機器人:UiPath從入門到實戰
- 百萬在線:大型游戲服務端開發