horFeature()
Scientific results for this function.
Thin-wall and partial-occlusion fixtures distinguish numerical altitude error from the visible width in a panorama. H04 validation study.
Reconstructions are explicit hypotheses about additional relief above the supplied terrain. Heights are added to the existing DEM, including any surviving remains already represented there. Ditch depths are subtracted. No original ground surface or historical height is inferred. Zero height or depth highlights a footprint without changing elevation.
Every feature and multipart component is used. Points become circular footprints with the supplied diameter. Lines become strips with half the width on each side and round ends. Polygons use their whole area by default for stones, poles, mounds and platforms, and their boundary for banks, ditches and walls. Polygon holes remain holes in area mode; boundary mode includes their edges. Dimensions are metres in a local azimuthal equidistant projection.
Feature heights and the scope of terrain validation.
Implementation arguments, return value and documented modes
| Argument | Formal default | Behaviour in this interface |
|---|---|---|
geometry |
— | A vector filename (including a shapefile or GeoPackage), a terra SpatVector, or an object accepted by terra::vect, with a known CRS. A layer must contain one geometry family: points, lines or polygons. |
type |
c("stone", "pole", "bank", "ditch", "mound", "platform", "wall") |
Structure type: stone, pole, bank, ditch, mound, platform or wall. Stones and poles accept points or polygons; mounds and platforms require polygons; banks, ditches and walls accept lines or polygons. |
height |
0 |
Additional height in metres, nonnegative. Default 0. Ignored for ditches, which use depth. Positive height and depth cannot be combined. |
height_field |
NULL |
Optional attribute column names supplying per-row settings. Do not also supply the corresponding common value. Numeric fields must be numeric, finite and meet the same bounds as common values. Colour fields must contain valid colours. |
depth |
0 |
Nonnegative ditch depth in metres. Default 0; only for ditches. |
depth_field |
NULL |
Optional attribute column names supplying per-row settings. Do not also supply the corresponding common value. Numeric fields must be numeric, finite and meet the same bounds as common values. Colour fields must contain valid colours. |
width |
NULL |
Total width in metres for lines or polygon boundaries. |
width_field |
NULL |
Optional attribute column names supplying per-row settings. Do not also supply the corresponding common value. Numeric fields must be numeric, finite and meet the same bounds as common values. Colour fields must contain valid colours. |
diameter |
NULL |
Diameter in metres for point footprints. |
diameter_field |
NULL |
Optional attribute column names supplying per-row settings. Do not also supply the corresponding common value. Numeric fields must be numeric, finite and meet the same bounds as common values. Colour fields must contain valid colours. |
profile |
NULL |
Either bell or flat. Defaults to bell for banks, ditches and mounds, and flat for stones, poles, platforms and walls. |
use |
NULL |
For polygons, area or boundary. NULL chooses the type's default. |
colour |
NULL |
One opaque R colour, or NULL for the terrain palette. |
colour_field |
NULL |
Optional attribute column names supplying per-row settings. Do not also supply the corresponding common value. Numeric fields must be numeric, finite and meet the same bounds as common values. Colour fields must contain valid colours. |
name |
NULL |
Descriptive label for the layer. Defaults to the structure type. |
Return value
A serialisable skyscapeR.horFeature object. Pass it or a list of these objects as features to createHor with a DEM.
Implementation. R/horizon-features.R. Full function help · Reconstructing features on a DEM · Terrain horizons and panoramas outline · Generating a terrain panorama