Thx for your help, sly!

I just amended output-pgsql.c as you proposed:

// Split long linear ways after around 1 degree or 100km (polygons not effected)
if (Options->projection == PROJ_LATLONG)
    split_at = 40000000; /* 1; nivi 7.2.2011 */
else
    split_at = 40000000; /* 100 * 1000; nivi 7.2.2011 */

but I have still the relations split into several parts :frowning:

I get an error during make, to be honest (but I remember having got this error during my first compilation as well…):

make[2]: *** No rule to make target debian/osm2pgsql.1', needed by all-am’. Stop.

Now I try to get around the problem by using an aggregate function querying the planet_line table: ST_Collect. That works for me.

Regards
Nils