query · world.land

World land enclosures

Returns one bounded derived enclosure record per World land area from authoritative area boundaries and operational fence and gate geometry.

world.land.enclosures(filters?, cursor?, page_size?) -> query-page
Stable ID
world.land.enclosures
Owner
sim.world
Authority
read_only
Timing
immediate
Availability
active-session
Side effects
none
Determinism
stable owner order at the current committed tick
Introduced
1.19.0

Usage

Read one detached whole-area enclosure summary derived from the World land boundary and current operational fence and gate geometry. Use the enclosure and field-access fields to explain whether the complete area is protected and usable; the query cannot change infrastructure or access.

Parameters

Returns

A detached page containing whole-boundary edge, fence, gate, and open-edge counts; enclosure and field-access results; referenced gate-policy information; and a derived infrastructure revision fingerprint.

Cost

Bounded by the page size and current retained land and infrastructure records; results are emitted in stable area identity order.

Fields

IDTypeUnitsRequiredDescription
access_policy_countunsigned-integernoneyesDistinct access policies referenced by boundary gates.
area_idstable-idnoneyesWorld land area identity.
boundary_edge_countunsigned-integernoneyesEdges in the whole area boundary.
enclosedbooleannoneyesWhether every boundary edge is closed by a fence or gate.
fence_edge_countunsigned-integernoneyesBoundary edges covered by fences.
field_accessiblebooleannoneyesWhether the enclosed area has a gate policy permitting field access.
gate_edge_countunsigned-integernoneyesBoundary edges covered by gates.
infrastructure_revisionrevisionnoneyesDerived revision fingerprint of current boundary infrastructure.
open_edge_countunsigned-integernoneyesBoundary edges with no current enclosure.
primary_access_policy_idstring-or-nullnonenoFirst stable gate access-policy identity, when present.

Errors

Examples

local result = world.query("world.land.enclosures", {page_size = 8})
if result.status == "completed" then
    for _, area in ipairs(result.records) do
        ui.row("Field " .. tostring(area.area_id), area.enclosed and "enclosed" or "open")
    end
end

API history

Related symbols

Project references