[mapnik] better handling of long geometries