- 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
推薦閱讀
- 新編Visual Basic程序設(shè)計上機實驗教程
- Angular UI Development with PrimeNG
- Interactive Applications Using Matplotlib
- PhpStorm Cookbook
- Spring+Spring MVC+MyBatis整合開發(fā)實戰(zhàn)
- 單片機C語言程序設(shè)計實訓(xùn)100例
- Learning Apache Cassandra
- 深度學(xué)習(xí)程序設(shè)計實戰(zhàn)
- C語言程序設(shè)計實踐
- Mastering VMware Horizon 7(Second Edition)
- jQuery從入門到精通(微課精編版)
- Web前端開發(fā)最佳實踐
- Java高手是怎樣煉成的:原理、方法與實踐
- Android高級開發(fā)實戰(zhàn):UI、NDK與安全
- Learning ECMAScript 6