fixed font setup, added test script

This commit is contained in:
OSM
2016-08-10 09:17:01 +02:00
parent 7aca80bbb2
commit 3ccab6d65b
2 changed files with 8 additions and 6 deletions

View File

@ -7,7 +7,6 @@
from math import pi,cos,sin,log,exp,atan
from subprocess import call
import sys, os
#import mapnik2 as mapnik
import multiprocessing
import psycopg2
from shapely.geometry import Polygon
@ -18,11 +17,8 @@ import getpass
import argparse
import mapnik
#try:
# import mapnik2 as mapnik
#except:
# import mapnik
custom_fonts_dir = '/usr/share/fonts/'
mapnik.register_fonts(custom_fonts_dir)
DEG_TO_RAD = pi/180
RAD_TO_DEG = 180/pi