Skip to content

Commit dcd1ecd

Browse files
committed
Comment on FAR values
1 parent f4723ed commit dcd1ecd

File tree

1 file changed

+19
-8
lines changed
  • products/pluto/pluto_build/sql

1 file changed

+19
-8
lines changed

products/pluto/pluto_build/sql/far.sql

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,18 @@ UPDATE pluto
44
SET builtfar = round(bldgarea::numeric / lotarea::numeric, 2)
55
WHERE lotarea != '0' AND lotarea IS NOT NULL;
66

7-
-- using dcp_zoning_maxfar maintained by zoning division
8-
-- base on zoning district 1
7+
-- walks through PLUTO zonedist1, zonedist2, zonedist3 (including split parts like
8+
-- M1-1A/R6B)
9+
-- and sets FAR values using dcp_zoning_maxfar maintained by zoning division
10+
--
11+
-- Note: the FAR fields in dcp_zoning_maxfar have both nulls and "-".
12+
-- "-" acts to suppress the FAR value for lesser-ranked zoning districts.
13+
-- e.g. R8B has commfar of -.
14+
-- if zonedist1 = R8B/C6-2A, we'd expect a 0 commfar value, as opposed to getting the
15+
-- nonzero commfar value from C6-2A.
16+
--
17+
-- By contrast R10H has null commfar,
18+
-- so if zonedist1 = R10H/C6-2A, we'd expect to get the commfar value from C6-2A.
919
UPDATE pluto a
1020
SET
1121
residfar = b.residfar,
@@ -15,7 +25,8 @@ SET
1525
affresfar = b.affresfar
1626
FROM dcp_zoning_maxfar AS b
1727
WHERE a.zonedist1 = b.zonedist;
18-
-- zoning district 1 with / first p art
28+
-- zoning district 1 with / first part (Manufacturing)
29+
-- These are all in the form of a Manufacturing and Residential zone. e.g. M1-1A/R6B
1930
UPDATE pluto a
2031
SET
2132
residfar = (coalesce(a.residfar, b.residfar)),
@@ -26,7 +37,7 @@ SET
2637
FROM dcp_zoning_maxfar AS b
2738
WHERE split_part(a.zonedist1, '/', 1) = b.zonedist;
2839

29-
-- zoning district 1 with / second part
40+
-- zoning district 1 with / second part (Residential)
3041
UPDATE pluto a
3142
SET
3243
residfar = (coalesce(a.residfar, b.residfar)),
@@ -48,7 +59,7 @@ SET
4859
FROM dcp_zoning_maxfar AS b
4960
WHERE a.zonedist2 = b.zonedist;
5061

51-
-- zoning district 2 with / first part
62+
-- zoning district 2 with / first part
5263
UPDATE pluto a
5364
SET
5465
residfar = (coalesce(a.residfar, b.residfar)),
@@ -59,7 +70,7 @@ SET
5970
FROM dcp_zoning_maxfar AS b
6071
WHERE split_part(a.zonedist2, '/', 1) = b.zonedist;
6172

62-
-- zoning district 2 with / second part
73+
-- zoning district 2 with / second part
6374
UPDATE pluto a
6475
SET
6576
residfar = (coalesce(a.residfar, b.residfar)),
@@ -81,7 +92,7 @@ SET
8192
FROM dcp_zoning_maxfar AS b
8293
WHERE a.zonedist3 = b.zonedist;
8394

84-
-- zoning district 3 with / first part
95+
-- zoning district 3 with / first part
8596
UPDATE pluto a
8697
SET
8798
residfar = (coalesce(a.residfar, b.residfar)),
@@ -92,7 +103,7 @@ SET
92103
FROM dcp_zoning_maxfar AS b
93104
WHERE split_part(a.zonedist3, '/', 1) = b.zonedist;
94105

95-
-- zoning district 3 with / second part
106+
-- zoning district 3 with / second part
96107
UPDATE pluto a
97108
SET
98109
residfar = (coalesce(a.residfar, b.residfar)),

0 commit comments

Comments
 (0)