Draft of OSMParser (writing shapes etc. to output file)