Computing the length of a river network from the original Mondial: From the XSLT part, it is simple. The problem is to find a suitable algorithm that can be implemented in XSLT (the stylesheet is also not very long - my one has 60 lines in three templates).