@@ -4,8 +4,18 @@ UPDATE pluto
44SET builtfar = round(bldgarea::numeric / lotarea::numeric , 2 )
55WHERE 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.
919UPDATE pluto a
1020SET
1121 residfar = b .residfar ,
1525 affresfar = b .affresfar
1626FROM dcp_zoning_maxfar AS b
1727WHERE 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
1930UPDATE pluto a
2031SET
2132 residfar = (coalesce(a .residfar , b .residfar )),
2637FROM dcp_zoning_maxfar AS b
2738WHERE split_part(a .zonedist1 , ' /' , 1 ) = b .zonedist ;
2839
29- -- zoning district 1 with / second part
40+ -- zoning district 1 with / second part (Residential)
3041UPDATE pluto a
3142SET
3243 residfar = (coalesce(a .residfar , b .residfar )),
4859FROM dcp_zoning_maxfar AS b
4960WHERE a .zonedist2 = b .zonedist ;
5061
51- -- zoning district 2 with / first part
62+ -- zoning district 2 with / first part
5263UPDATE pluto a
5364SET
5465 residfar = (coalesce(a .residfar , b .residfar )),
5970FROM dcp_zoning_maxfar AS b
6071WHERE split_part(a .zonedist2 , ' /' , 1 ) = b .zonedist ;
6172
62- -- zoning district 2 with / second part
73+ -- zoning district 2 with / second part
6374UPDATE pluto a
6475SET
6576 residfar = (coalesce(a .residfar , b .residfar )),
8192FROM dcp_zoning_maxfar AS b
8293WHERE a .zonedist3 = b .zonedist ;
8394
84- -- zoning district 3 with / first part
95+ -- zoning district 3 with / first part
8596UPDATE pluto a
8697SET
8798 residfar = (coalesce(a .residfar , b .residfar )),
92103FROM dcp_zoning_maxfar AS b
93104WHERE split_part(a .zonedist3 , ' /' , 1 ) = b .zonedist ;
94105
95- -- zoning district 3 with / second part
106+ -- zoning district 3 with / second part
96107UPDATE pluto a
97108SET
98109 residfar = (coalesce(a .residfar , b .residfar )),
0 commit comments