CREATING A MAP OF INDIA RAILWAY TRACKS USING MAPNIK

First, fetch datasource from OSM.  To manually create your datasource follow:

https://docs.oracle.com/cd/E35413_01/doc.722/e35412/ins_post_installation.htm#autoId10

You can also, fetch data from:

http://download.geofabrik.de/asia.html

download .osm.bz2 file. Then unzip  the file and rename it.

After that open python interpreter. Then create map and style it. For, the code go to: https://abhinavhanda.wordpress.com/2017/06/17/mapnik/

Now, give permission to the requried .shp file from your datasource so that it can be executed.  You can check permission status of your file using command: ll and then use:

chmod 777 /address of file/file.shp

Now, you can connect your datasource in your python interpreter.

Create a .py file and copy code from: https://abhinavhanda.wordpress.com/2017/06/17/mapnik/ into your .py file.

Your data has been rendered and you will get a .png image as output.

india.png

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s