forked from OpenTreeMap/otm-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChoices.sql
More file actions
109 lines (96 loc) · 9.8 KB
/
Choices.sql
File metadata and controls
109 lines (96 loc) · 9.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
CREATE TABLE treemap_choices (
id integer NOT NULL,
field character varying(255) NOT NULL,
value character varying(255) NOT NULL,
key character varying(255) DEFAULT ''::character varying NOT NULL,
key_type character varying DEFAULT ''::character varying NOT NULL
);
CREATE SEQUENCE treemap_choices_id_seq
START WITH 1
INCREMENT BY 1
NO MAXVALUE
NO MINVALUE
CACHE 1;
SELECT pg_catalog.setval('treemap_choices_id_seq', 79, true);
ALTER TABLE treemap_choices ALTER COLUMN id SET DEFAULT nextval('treemap_choices_id_seq'::regclass);
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (2, 'factoid', 'Interesting Quote', '2', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (3, 'factoid', 'How You Can Help', '3', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (4, 'factoid', 'Editing', '4', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (5, 'factoid', 'Interesting Fact', '5', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (12, 'status', 'Height (in feet)', '1', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (13, 'status', 'Diameter (in inches)', '2', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (14, 'alert', 'Needs Watering', '1', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (15, 'alert', 'Needs Pruning', '2', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (16, 'alert', 'Should Be Removed', '3', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (17, 'alert', 'Pest or Disease present', '4', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (18, 'alert', 'Guard Should be Removed', '5', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (19, 'alert', 'Stakes and Ties Should be Removed', '6', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (20, 'alert', 'Construction Work in the Area', '7', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (21, 'alert', 'Touching Wires', '8', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (22, 'alert', 'Blocking Signs or Traffic Signals', '9', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (23, 'alert', 'Improperly Pruned or Topped', '10', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (24, 'action', 'Watered', '1', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (25, 'action', 'Pruned', '2', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (26, 'action', 'Fruit or Nuts Harvested', '3', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (27, 'action', 'Removed', '4', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (28, 'action', 'Inspected', '5', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (29, 'local', 'Landmark Tree', '1', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (30, 'local', 'Local Carbon Fund', '2', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (31, 'local', 'Fruit Gleaning Project', '3', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (32, 'local', 'Historically Significant Tree', '4', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (1, 'factoid', 'General', '1', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (33, 'sidewalk_damage', 'Minor or No Damage', '1', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (34, 'sidewalk_damage', 'Raised More Than 3/4 Inch', '2', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (35, 'condition', 'Dead', '1', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (36, 'condition', 'Critical', '2', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (37, 'condition', 'Poor', '3', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (38, 'condition', 'Fair', '4', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (39, 'condition', 'Good', '5', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (40, 'condition', 'Very Good', '6', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (41, 'condition', 'Excellent', '7', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (42, 'bool_set', 'Yes', 'True', 'bool');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (43, 'bool_set', 'No', 'False', 'bool');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (71, 'canopy_condition', 'Small Gaps (up to 25% missing)', '2', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (70, 'canopy_condition', 'Full - No Gaps', '1', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (72, 'canopy_condition', 'Moderate Gaps (up to 50% missing)', '3', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (73, 'canopy_condition', 'Large Gaps (up to 75% missing)', '4', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (74, 'canopy_condition', 'Little or None (up to 100% missing)', '5', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (75, 'plot_type', 'Other', '10', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (6, 'plot_type', 'Tree Pit in a paved area', '4', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (7, 'plot_type', 'Median', '5', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (8, 'plot_type', 'Tree Lawn or Planting strip', '6', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (9, 'plot_type', 'Island', '7', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (10, 'plot_type', 'Raised Planter', '8', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (11, 'plot_type', 'Open / Unrestricted', '9', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (77, 'powerline_conflict_potential', 'Yes', '1', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (78, 'powerline_conflict_potential', 'No', '2', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (79, 'powerline_conflict_potential', 'Unknown', '3', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (80, 'fauna', 'Squirrel', '80', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (81, 'fauna', 'Raccoon', '81', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (82, 'fauna', 'Opossum', '82', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (83, 'fauna', 'Housecat', '83', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (84, 'fauna', 'Human', '84', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (85, 'fauna', 'California Scrub Jay', '85', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (86, 'fauna', 'Anna’s Hummingbird', '86', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (87, 'fauna', 'Hutton’s Vireo', '87', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (88, 'fauna', 'American Crow', '88', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (89, 'fauna', 'American Robin', '89', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (90, 'fauna', 'California Towhee', '90', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (91, 'fauna', 'Rufous-backed Chickadee', '91', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (92, 'fauna', 'Bushtit', '92', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (93, 'fauna', 'Mourning Dove', '93', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (94, 'fauna', 'Northern Mockingbird', '94', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (95, 'fauna', 'Calfornia Sister butterfly', '95', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (96, 'fauna', 'Western Fence Lizard', '96', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (97, 'fauna', 'Arboreal Salamander', '97', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (98, 'fauna', 'Red-backed Jumping Spider', '98', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (99, 'fauna', 'Orb-weaving Spider', '99', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (100, 'crown_width', '.5-5 ft', '2.5', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (101, 'crown_width', '5-10 ft', '7.5', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (102, 'crown_width', '10-20 ft', '15', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (103, 'crown_width', '20-30 ft', '25', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (104, 'crown_width', '30-40 ft', '35', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (105, 'crown_width', '40-50 ft', '45', 'int');
INSERT INTO treemap_choices (id, field, value, key, key_type) VALUES (106, 'crown_width', '50-100 ft', '75', 'int');
ALTER TABLE ONLY treemap_choices
ADD CONSTRAINT treemap_choices_pkey PRIMARY KEY (id);