Skip to content

Instantly share code, notes, and snippets.

@kuboris
kuboris / mapexport.py
Created April 13, 2018 14:42
Create PDF map with custom projection using Mapnik and TileMill
#used in jupyter notebook with Python 2
!apt-get install python-cairocffi
!pip install mapnik
import mapnik
import cairocffi as cairo
map = mapnik.Map (1750 ,1185)
mapnik.load_map ( map ,'wallmap.xml')
@kuboris
kuboris / generatemap.py
Created March 6, 2018 21:35
Generate high definition custom map from google maps.
# -*- coding: utf-8 -*-
"""GenerateGmap.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1hYhnGYPXMtxpGCklj9YTcthOYW8PdaKL
"""
!pip install Image