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.
  • 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.
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.

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.
Last modified on October 11, 2026