z level contours

This data contains a piece of script able to rebuild a Z-level map of a surface.

Even when the contours happen to contain one island or more.

It isn't as easy at it looks, so I share it with you, in case someone else needs it.