getData($cleaned,null,$outProj=='900913'?null:$outProj); switch($cleaned["format"]) { case "geojson": case "json": header("Content-type: application/json"); echo json_encode($data); break; default: header("Content-type: text/xml"); to_xml($data); break; } ?>