Open Infrastructure Map, a view of infrastructure data in OpenStreetMap
Ignore power values with no units
Russ Garrettb7371e58df2a
diff --git a/schema/functions.sql b/schema/functions.sqlindex 7b4fa4f..750387f 100644--- a/schema/functions.sql+++ b/schema/functions.sql@@ -28,6 +28,9 @@ BEGINval := val * 1e6;ELSIF parts[2] = 'GW' THENval := val * 1e9;+ ELSE+ -- Consider no units to be invalid+ val := NULL;END IF;RETURN val;END