Clean up code in qgis_map_serv.cpp