the short answer to my query is “read up on Mapnik”, which I am now doing.