Hi Liosha,

Thank you for your great osm2pm.pl! It’s helping me a lot with maps for 7ways. I need your help with a problem I’m having here (Brazil). It seems that some long roads are not being split by osm2pm.pl, despite using max_road_nodes=N, and I added the condition in bold as an workaround. It seems to fix my problem and I can now convert the resulting mp to 7w, but I’m not sure if t’s OK. Would please comment on that? Also, I didn’t understand what the first condition below does, I’d much appreciate if you could explain that.

            elsif ( $rnod == 1 + $values->{max_road_nodes} // 999 ) {
                $countlong ++;
                $break = $prev;
                push @breaks, $break;
                $rnod = 2;
            }

** elsif ( ($i % 2000 ) == 0 ) {
$countlong ++;
$break = $i;
push @breaks, $break;
$rnod = 2;
}
**

Thanks in advance,
– Fidelis Assis