Skip to main content
A ZoningRuleSet holds the zoning rules of a site. There are five kinds of rule: ratio-cap, envelope-plane, height-cap, separation and no-build-zone.

Import

Example

Notes

  • Points are [x, z] in metres.
  • An envelope-plane rises from a class of lot lines (edgeClass) or from one outer edge (edgeIndex). Give one, not both. Edge i runs from outerRing[i] to outerRing[i + 1].
  • Give validateZoningRuleSet the edge count of the lot to refuse an edgeIndex that is not an edge. The model check of a site does this for you.
  • A no-build-zone is a region where no mass may stand. evaluateZoning reports each mass over it, with the area it covers.
  • A region on a siteCoverage cap limits the coverage of that part of the lot: the footprint at grade inside the region, divided by the area of the region.
  • The numbers of ZONING_PRESETS are example numbers, not law. Check the rules of your jurisdiction before you use them.

basicZoningRules

validateZoningRuleSet

Every problem with a rule set, as BmIssues rooted at path (so validateBuildingModel can nest it).

ZONING_PRESETS

Example rule sets of four common zoning shapes.

Types

BasicZoningInput

string
number
number
Ground footprint ÷ site area, 0–1.
number
Metres above grade.
Partial<Record<LotLineClass, number>>
Per lot-line-class setbacks at grade (vertical planes).
number
AreaKind[]

ZoningRuleSet

string
required
string
string
Free text — “NYC R6”, “Bengaluru BBMP 2020” — provenance lives with the consumer.
ZoningRule[]
required
AreaKind[]
Storey area kinds that count toward floorAreaRatio. Default ["gross"].

ZoningRule

RatioCapRule

'ratio-cap'
required
string
required
'floorAreaRatio' | 'siteCoverage' | 'volumeRatio'
required
floorAreaRatio = counted GFA ÷ site area; siteCoverage = ground footprints ÷ site area; volumeRatio = gross volume ÷ site area (BMZ).
number
required
PolygonProfile
Only with siteCoverage: limit the coverage of this part of the lot instead — the at-grade footprint inside the region ÷ the region’s area. World XZ metres.

HeightCapRule

"height-cap"
required
string
required
number
required
Metres above grade (the site elevation).

SeparationRule

"separation"
required
string
required
number
required
Minimum clear distance between two masses whose vertical ranges overlap, metres.

NoBuildZoneRule

'no-build-zone'
required
string
required
PolygonProfile
required
Where no mass may stand (a sight triangle, an easement), world XZ metres.
Last modified on October 25, 2026