if($inputfile == "" || $outputfile == "")
	{
		print "You must specify an input and output file. See --help.\n";
		exit();
	}
	
	$map = new WeatherMap;
	
	$map->context = 'cacti';
	$map->rrdtool  = read_config_option("path_rrdtool");
	
	print "Reading config from $inputfile\n";
	
	$map->ReadConfig($inputfile);

	$map->DatasourceInit();
	$map->ProcessTargets();
	
	$allitems = array(&$map->links, &$map->nodes);
	reset($allitems);
	
	while( list($kk,) = each($allitems))
	{
		unset($objects);
		$objects = &$allitems[$kk];

		reset($objects);
		while (list($k,) = each($objects))
		{
			unset($myobj);
			$myobj = &$objects[$k];