Skip to main content
It holds the boundary, the class of each lot line and an optional geographic anchor.

Import

Example

Notes

  • Points are [x, z] in metres. elevation is the world height of the ground.
  • area is the net area in square metres, with holes subtracted. perimeter measures the outer boundary.
  • The lot-line list must have one entry for each boundary edge. An edge without a class is a side line.
  • trueNorthDeg is the clockwise angle from project north (−Z) to true north.
  • To draw the parcel, add a site plan: a saved plan view with no storeyId. It draws the parcel, the dashed setback line and the mass parts of every building. See Model a mass.
  • A site plan is labelled: the length of each lot line, a dimension of each setback, “use, N storeys, H m” on each mass part, and a block with site area, GFA, FAR, coverage and height against the smallest cap of the rules (”!” marks a value that evaluateZoning reports over a cap). The texts are labelMm high on the sheet (2.5 mm when absent). A setback text that does not fit its band at 1:500 is left out. The label of a lower mass part can sit under a part above it.
  • A site in Floorkit is a design aid. It is not a legal survey.
  • Start the geometry kernel before you create this object. See Floorkit.

The saved site

A building model saves its site as site, a BmSite. A build makes the live Site from it. These are its fields: To change the site, send replace-site with the whole new site. It is one undo step. See ReplaceSiteCommand.
  • A plan view with showMassing: true draws the parcel, the setback line and the masses. See Edit a mass.
  • A plan view with no storeyId is a site plan. See Draw a site plan.
  • The IFC export uses the site boundary and georeferencing fields from the saved model.
Inheritance: extends OPElement implements IPlaceable, PlanVectorExportable

Constructor

Properties

ElementType
string
Map<string, OPGeometry>
Map<string, OPGeometry>
Always empty — the parcel is a surface. Kept so dispose() stays uniform.
boolean
boolean
boolean
ISite
string
PolygonProfile
LotLineClass[]
Resolved lot-line classes, one per unique outer-ring edge (side when unset).
GeoAnchor | undefined
number
number
number
number
Read-only. Net parcel area in m² — outer ring minus holes. Computed, read-only.
number
Read-only. Outer-boundary length in m. Computed, read-only.
boolean

Methods

editableSchema

Self-describing editable surface; a host inspector renders this generically.

move

Translate this element by delta (world-space, meters).

rotate

Rotate about Y.

getOPConfig

setOPConfig

Merge a partial config and rebuild geometry.

beginEdit

Start one live edit; a second beginEdit before endEdit keeps the first start.

endEdit

End the live edit; its exact undo and redo, or undefined when no option changed.

getEditAnchors

Draggable handles, in the element’s local frame (y = elevation): - one xz vertex anchor per outer-ring point (v:outer:&lt;i&gt;), and - one xz edge-mid anchor per edge midpoint (m:outer:&lt;i&gt;, edge i→i+1) — the insert-vertex affordance (Mapbox/nebula midpoint handles).

applyEditAnchor

Write back a previewed handle drag (anchors are in local frame, y = elevation): - v:outer:&lt;i&gt; moves outer-ring point i to the dropped (x, z), and - m:outer:&lt;i&gt; inserts a new point on edge i→i+1 at the dropped (x, z); the two edges it makes inherit edge i’s lot-line class.

setOPGeometry

getExportRoots

The parcel is a plan polygon and nothing else, so only top exports.

toDrawing

The parcel boundary (outer ring + excluded holes) as one region primitive.

setOPMaterial

dispose

classifyLotLines

Classify each parcel edge as front / rear / side from the designated street-facing front edge.

siteGroundMesh

The evaluated ground surface of a site as triangles, clipped to its boundary with its holes and its boundary arcs: the facets Floorkit draws the ground lines from and stands walls and context buildings on (finished, the default), or those of existingGroundPoints (existing).

siteContours

The contour lines of the surroundingGround of a site, lowest level first, each joined into one line as far as it runs.

surroundingGroundAt

The height of the surroundingGround of a site at a point [x, z], in world Y: on the triangles of its 3D surface, and past the grid the height of its nearest edge.

Types

ISite

LotLineClass

Zoning class of one parcel edge.

GeoAnchor

WGS84 fix of the local origin.
number
required
number
required
number
Metres above sea level, if known. Carried through, never used by the projection.

SiteGroundKind

Which ground of a site: finished is groundPoints, existing is existingGroundPoints.

SiteGroundMesh type

A triangulated ground surface in world metres, Y up.
number[]
required
x, y, z of each vertex; a vertex shared by triangles is listed once.
number[]
required
Three vertex indices per triangle, counter-clockwise seen from above.

SiteContourOptions

Which contours of a site: every interval metres, each indexEvery-th (default 5) an index line.
number
required
Metres between the levels, above 0. A level is a multiple of it above the sea.
number
Default 5: the levels that are multiples of 5 intervals are index lines.

SiteContour

One line of one level of the surrounding ground.
number
required
Its level above the sea: the world Y height and the ground’s seaLevelAtZero.
number
required
World Y of the line.
boolean
required
Whether it is an index line.
boolean
required
Whether the last point joins the first.
PointXZ[]
required
World XZ.
Last modified on December 1, 2026