- transform = mapnik.ProjTransform(longlat,merc)
- merc_bbox = transform.forward(bbox)
+ print(minlat,maxlat,minlon,maxlon)
+
+ transformer = Transformer.from_crs("EPSG:4326", "EPSG:3857", always_xy=True)
+ minP=transformer.transform(minlon,minlat)
+ maxP=transformer.transform(maxlon,maxlat)
+
+ merc_bbox = mapnik.Box2d(minP[0],minP[1],maxP[0],maxP[1])