Open larsga opened 4 years ago
Curiously, the much more straightforward
import mapnik
def mktrans(source, target):
source = mapnik.Projection(source)
target = mapnik.Projection(target)
trans = mapnik.ProjTransform(source, target)
return trans
box = mapnik.Box2d(-5, 55, 35, 67)
source = '+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs'
target = '+proj=merc +ellps=WGS84 +datum=WGS84 +no_defs'
trans = mktrans(source, target)
print trans.forward(box)
also crashes, but if I inline the mktrans
function it does not crash.
This
crashes with: