+ -- adjust for the fact that countries come in different sizes
+ IF country_code IN ('ca', 'au', 'ru') THEN
+ area := area / 5;
+ ELSIF country_code IN ('br', 'kz', 'cn', 'us', 'ne', 'gb', 'za', 'sa', 'id', 'eh', 'ml', 'tm') THEN
+ area := area / 3;
+ ELSIF country_code IN ('bo', 'ar', 'sd', 'mn', 'in', 'et', 'cd', 'mz', 'ly', 'cl', 'zm') THEN
+ area := area / 2;
+ END IF;
+