ARSYSplotQGIS is a viewer for coordinated excavation records: each row is a point in space (finds, samples, measurements) from a site. It also displays vectors (P2→P3) when those coordinates are available — in the spirit of a vector archaeology concerned with taphonomic and tafo-sedimentary questions. This guide shows how to load data, use the three views, filters, density and profiles, and export paper figures.
ARSYSplotQGIS is primarily a point viewer. Its points are the coordinate records of an excavation — each find with XYZ coordinates in the site reference system. In plan and in section you read where those records sit in space and how they stack in depth.
When the table also stores the ends of a piece (P2 and P3), the plugin draws the corresponding vectors. That supports a vector archaeology approach: not only where objects are, but how they lie — useful for taphonomic and tafo-sedimentary reading of the assemblage (fabric, preferential orientations, slope, depositional context).
The possibility of projecting refits in plan and section also opens the door to including critical information for assessing the incidence of bioturbation factors or material transfer between levels (due to various sedimentary causes). Refits are a clear commitment to providing archaeostratigraphy with markers that can indicate the dimension and behaviour of cultural palimpsests.
Everything happens in a dedicated workspace inside QGIS, not on the main map canvas. Three linked views show the same dataset:
You can colour and filter by attributes (material, level, and so on), show points, vectors or both, exaggerate depth with Stretch Z, explore kernel density, cut an A–B profile, find a record, open a Zoom window or a light 3D scatter, and export a paper figure at a true scale (for example 1∶50 with a 50 cm scale bar).
| The plugin opens in its own workspace window. Its drawings are not added to the QGIS map canvas or layer legend. When you choose Use selected layer, the plugin works with a private copy of the selected point layer; it does not modify the original project layer. |
Load the sample with Load sample, set Draw to Points, and switch Cross-view on. Move the pointer over a point in Plan: the same record is marked in the two sections — and, where P2/P3 exist, you can also see its vector.
The plugin window is divided horizontally into a narrow left column (Load Data, Group and Options) and a right stage, arranged as a 2×2 mosaic of equal-sized cells — three drawing panes and Resources.
sample.csv). The second shows the point and vector counts, for example, 1842 / 2501 points · 1840 vectors: 1842 = points currently visible after applying Group chips and X/Y/Z filters; 2501 = total points loaded (unaffected by these filters); 1840 vectors = number of currently visible rows with a drawable P2→P3 axis..colors file.Display preferences (theme, Draw, Point/Vector/View options, Density parameters, Stretch Z, Cross-view, Group field and chips, XYZ filter spans, colours path, refits path and style, window size) are stored in QGIS settings (QgsSettings) and restored when you reopen the plugin. Last reloads the saved file with its import mapping and reapplies that session snapshot. Opening the plugin does not auto-load the data file — use Last (or Import / Sample / layer) when you want the points back. Profile picks, Measure and Find queries are not persisted.
Each of the three drawing panes has a title bar containing, from left to right, the pane title and the Export, Fit and Zoom icon buttons. Plan may also display a short cue when a profile selection is active.
This cell contains the filters and tools used with the three drawings. For full details, see Resources. The controls listed below are those displayed in the mosaic:
G_orientacio / G_pendent from each row’s P2→P3 axis (using the full table in memory; the file on disk is not modified).-- when the pointer is outside the frame.1. Click the middle Load Data icon (tooltip: Load sample) to load the example dataset. 2. In Group, click one or more chips to show or hide categories. 3. In the bottom-right Resources cell, open Filter and narrow the Z range to display a depth interval. 4. If needed, open Options → Density or Options → Profile. 5. When the Plan view is ready, click its Export icon and try exporting a figure at 1∶50.
There are three ways to load data into the plugin workspace:
material. If this field is missing or empty, a default value is assigned to all points or records.sample.csv file, which contains approximately 2 500 points. Use it to familiarise yourself with the workspace and its controls before importing your own data.CSV / text imports accept .csv, .txt and .tsv in UTF-8 or Latin-1; the delimiter (comma, semicolon, tab or pipe) is detected automatically. Spreadsheets (.xlsx / .ods / .xls) use the GDAL/OGR drivers shipped with QGIS.
Use selected layer also carries the layer’s classification field, colours and point size into the workspace when those settings can be read from the source layer.
To transfer data from the plugin back to the QGIS project, use Options → To QGIS layer in the footer. This creates a QGIS memory point layer containing the complete loaded table and all its attributes. The plugin's group visibility and X/Y/Z filters are not applied: the output contains the full dataset, not just the points currently visible in the drawings. The new layer can be used with QGIS Processing or GRASS. Since it is a temporary memory layer, save it in a permanent format such as GeoPackage if you want to keep it after closing QGIS.
The field reference is Arche10, the single-user version of the ArcheSystem field data recording systems. Field and column names follow the naming conventions used in Arche10. In addition to mapping P1–P2–P3, the goal is to recover as many operative columns as possible without discarding the others.
Full Arche10 header (database order):
| Field | English equivalent | Type | Example |
|---|---|---|---|
id | id | integer | 10482 |
ID2 | ID2 | text | A-I3-017 |
data | date | text / date | 2024-06-12 / 20261021 |
jaciment | site | text | Cueva de Santa Ana |
sector | sector | text | North |
nivell | level | text | 1 / A / 1a |
ue | eu | text | EU-214 |
quadre | square | text | I3 |
numero | number | integer | 17 |
material | material | text | Limeston |
categoria | category | text | Flake |
taxo | taxon | text | - |
cicle | cycle | text | C3 |
p1x | p1x | number (m) | 2.822 |
p1y | p1y | number (m) | 8.437 |
p1z | p1z | number (m) | -0.354 |
p2x | p2x | number (m) | 2.818 |
p2y | p2y | number (m) | 8.478 |
p2z | p2z | number (m) | -0.348 |
p3x | p3x | number (m) | 2.826 |
p3y | p3y | number (m) | 8.396 |
p3z | p3z | number (m) | -0.360 |
orientacio | orientation | text | NWSE |
G_orientacio | orientation | number (°) | 127.4 |
pendent | slope | text | Flat |
G_pendent | slope | number (°) | 1.2 |
llarg | length | millimetres | 48 |
ample | width | millimetres | 22 |
gruix | thickness | millimetres | 8 |
observacions | observations | text | burnt edge |
tipus | type | text | L |
lliure1 | free1 | text | Personal note |
lliure2 | free2 | text | Personal note |
lliure3 | free3 | text | Personal note |
orientacio / pendent are text fields (for example NWSE, Flat). G_orientacio / G_pendent are separate numeric columns:
G_orientacio — azimuth in degrees, 0–360°. 0° = North, increasing clockwise.G_pendent — inclination in degrees, 0–90° from the horizontal (0° = flat, 90° = vertical).The same definitions apply on import, in Drawing options (vector sense) and under Resources → Orientation → Recalculate.
llarg / ample / gruix (and English length / width / thickness) are always millimetres — never metres or centimetres. Coordinates p1x…p3z stay in metres.
You may add as many optional columns as you need beyond this header. They are kept as extra attributes (Find / Point info). For automatic recognition and cleaner Group / colours / filters, it is recommended to use Arche10 field names for optional headers. Alternatively, you may use their English equivalents to facilitate compatibility with international naming conventions (for example, quadre / square). Arbitrary names still load, but they are not mapped to the Arche10 schema.
When you choose Import, a mapping dialog opens. You pick the file (and sheet, if needed), then assign columns to the geometry roles P1 / P2 / P3 and, optionally, to G_orientacio and G_pendent. The points below describe how those dropdowns are filled, how synonyms are recognised, and what happens to every other column after you click OK.
The dialog also includes a Sample dataset button that loads the bundled sample.csv without choosing a file first.
file_name (english), for example jaciment (site), nivell (level), quadre (square). This is for identification only; the mapped value remains the original column name from the file.site→jaciment, level→nivell, g_orientation→G_orientacio, length→llarg, and so on.Patufet) is not guessed automatically: choose it in the dropdown for the matching role.material by default. If a value is blank (or the field is missing from the file), it is stored as (empty) and drawn using the default colour. You can switch Field to any other recovered attribute (categoria, nivell, …).material, categoria, taxo, quadre, …).G_orientacio (azimuth 0–360°, North = 0°, clockwise) and G_pendent (inclination 0–90° from horizontal) are the numeric fields; they are not the text fields orientacio / pendent. On import: finite values already in the file (or mapped in the dialog) are kept; empty cells are filled automatically if the row has a vector axis (P2→P3, or P1→P2 when P3 is missing), using the improved method (geometric axis P2→P3; if the vertical component is significant and points “up”, the sense is flipped so azimuth and inclination follow the downslope / tip direction). Resources → Orientation → Recalculate later overwrites both fields for every loaded row with a vector axis (full table in memory; file on disk unchanged).| Summary: file header = source and dropdown text; Arche10 = internal operative model; synonyms = automatic; unusual names = manual mapping; nothing is lost. |
Each record needs spatial coordinates so the plugin can place it in the drawings. In the ArcheSystem model, the drawn point is always P1; when vector data are available, the vector is P2→P3.
For Size boxes and shaft placement the plugin reads that geometry as: P1 = centre of the object’s base on the ground (the face it rests on); P2→P3 = long axis of that base face (longest side on the ground). Import still normalises rows as below; this reading only steers how real-size boxes and vectors are built in the drawings.
p1x / p1y — horizontal coordinates in Plan (required for point-only imports).p1z — height or depth. For points only (with no P2/P3 mapped), Z may be omitted: missing or empty values are stored as 0. If you map vector columns (P2/P3), every endpoint used must have a complete X/Y/Z coordinate, including P1 Z.P2 and P3 are optional as a pair and define the vector. During import, each row is normalised as follows:
If P1 is missing but P2 and P3 are present, P1 is calculated as the midpoint of P2→P3. The same rules apply in ARSYSplot and ARSYSplotLite.
When a row has a vector axis, the plugin also maintains the numeric angle fields (not the text fields orientacio / pendent):
G_orientacio — azimuth in degrees, 0–360°. 0° = North, increasing clockwise.G_pendent — inclination in degrees, 0–90° from the horizontal (0° = flat, 90° = vertical).On import: finite values already in the file are kept; empty cells are filled if the row has a vector (P2→P3, or P1→P2 when P3 is missing), using the improved method: geometric axis P2→P3; if the vertical component is significant and points “up”, the sense is flipped so azimuth and inclination follow the downslope / tip direction (same sense as the drawn arrows).
Resources → Orientation → Recalculate overwrites both fields for every loaded row that has a vector axis (full table in memory, not only the filtered view; CSV/spreadsheet on disk unchanged). Rows with no P2/P3 axis are skipped.
Site coordinate system: X = east, Y = north, Z = up (metres). For a row with axis endpoints P2 = (x₂,y₂,z₂) and P3 = (x₃,y₃,z₃), the plugin forms the displacement and its length:
Δ = (Δx, Δy, Δz) = P3 − P2, L = ‖Δ‖ = √(Δx² + Δy² + Δz²).
If L is smaller than a numerical epsilon (degenerate segment), no angles are computed. Otherwise the plugin may apply an adaptive sense flip before angles and drawing. The undirected support of the piece (the segment joining P2 and P3) does not move; only the directed sense used for azimuth, arrow tip and related orientation may reverse. The same rule feeds the drawn arrows and G_orientacio / G_pendent:
if |Δz| / L > r and Δz > 0 then Δ ← −Δ
Default threshold r = 0.15 (15 % of length). Nearly horizontal pieces (|Δz|/L ≤ r) keep the recorded P2→P3 sense. When the shaft rises steeply enough that Δz is positive and |Δz|/L exceeds r, Δ is reversed so angles and the arrow follow the tip / downslope sense rather than an “up the slope” sense. After that optional reversal:
G_orientacio):
θ = atan2(Δx, Δy)
in degrees, wrapped to [0, 360). With this argument order, θ = 0° is North and θ increases clockwise (East = 90°). Azimuth is a horizontal bearing: the flip changes which way that bearing points, it does not make the azimuth itself “vertical”. For purely vertical segments (Δx = Δy = 0), azimuth is undefined.G_pendent):
φ = |atan2(Δz, √(Δx² + Δy²))|,
in degrees, then clamped to [0, 90°] (0° = horizontal, 90° = vertical). Because φ uses an absolute value, reversing Δ does not change the inclination magnitude; the flip affects azimuth and arrow sense only.In short: the improved method chooses a stable directed sense for a fixed segment when the vertical component is significant and upward, then derives θ and φ from that sense. Reported angles may be rounded by length (defaults): L < 0.3 m → nearest degree; L < 1 m → two decimals; otherwise full floating precision. The same improved Δ drives arrow direction in Plan / sections / 3D and Size-box orientation when angles are derived from the vector.
The plugin includes a bundled example file (sample.csv, approximately 2 500 points). Click Load sample to open it and explore the workspace without using your own data: points, grouping, filters, density, and so on.
Every row has a P1 point. Approximately 500 rows from archaeological level nivell = 1 also have P2/P3, allowing you to try vectors: set General → Draw to Vectors or Both. To display only those rows, set Group → Field to nivell and leave chip 1 enabled.
Minimal CSV layouts you can import. Missing P1 Z is stored as 0.
1. Points only (P1, no Z) — original headers
p1x |
p1y |
material |
categoria |
nivell |
quadre |
|---|---|---|---|---|---|
| 2.822 | 8.437 | sílex | esquirla | 1 | I3 |
| 4.864 | 7.211 | os | fragment | 1 | H5 |
2. Vector (P1 + P2) with material and measures — corresponding headers
p1x |
p1y |
p1z |
p2x |
p2y |
p2z |
material |
length |
width |
thickness |
|---|---|---|---|---|---|---|---|---|---|
| 2.822 | 8.437 | -0.354 | 2.818 | 8.478 | -0.348 | lithic | 48 | 22 | 8 |
| 4.864 | 7.211 | -0.424 | 4.850 | 7.157 | -0.422 | bone | 114 | 71 | 26 |
In table 2, length / width / thickness are millimetres (Arche10 llarg / ample / gruix).
(empty)..colors file that assigns a colour and, optionally, a Point model shape to each field value. The same format is used in ARSYSplotLite and ARSYSplot. The bundled data/sample.colors shows the expected layout. Click Clear to remove it..colors format: UTF-8 text. A line with only a field name starts a section. Under that section, each category is one line: value;colour;shape (shape may be omitted: value;colour). Colour is #rrggbb. The colours and shapes of a section apply only when that field is the active Group → Field. If you switch Group to another field, or a category value is not listed in the matching section, the plugin keeps its default colour and the current Point model shape.
Example file with two sections (material and nivell), each with two categories:
material lithic;#c9b896;cross bone;#e8dcc8;circle nivell 1;#b5651d;circle 2;#5a6b7a;square
| Section (Group field) | Value | Colour | Shape | Meaning |
|---|---|---|---|---|
material | lithic | #c9b896 | cross | Lithic / stone finds |
| bone | #e8dcc8 | circle | Bone finds |
nivell | 1 | #b5651d | circle | Archaeological level 1 |
| 2 | #5a6b7a | square | Archaeological level 2 |
With Group → Field = material, only the material lines above are used; the nivell block is ignored until you select that field. The bundled data/sample.colors follows the same rules (it styles material and categoria for the sample dataset).
Allowed shape names: circle, square, diamond, triangle, triangle-inverted, equilateral_triangle, pentagon, hexagon, octagon, star, cross, cross2.
The controls in General change how the loaded records are drawn and how the views are framed. They affect the plugin's display, not the source CSV, spreadsheet or QGIS project layer stored on disk.
n, and each vertex as [x,y,z]) instead of that node’s X/Y/Z. Size draws each object as a real-size box from llarg / ample / gruix in millimetres. When G_orientacio / G_pendent are present (or a geometric vector so they can be derived), the box is oriented in 3D and projected onto Plan / sections; otherwise it stays axis-aligned (Plan: length × width; sections: length or width × thickness, with Stretch Z on thickness). The switch is enabled only when those dimension fields are present (English synonyms and the sample’s long / large / depth are recognised).G_orientacio / G_pendent and for Resources → Orientation → Recalculate: if the vertical component is significant and points “up”, the shaft is flipped so the tip follows the downslope / tip direction (same as ARSYSplot). Those numeric fields are azimuth 0–360° (North = 0°, clockwise) and inclination 0–90° from horizontal — not the text fields orientacio / pendent. Fixed off (default): each arrow spans the real P2–P3 segment (possibly reversed). Fixed on: every arrow has the same Length (cm), centred on P1, along that directed sense — so you compare orientations, not object sizes.R16) from the quadre (square) field: it only works when the loaded data include valid quadre (square) values that match the metre coordinates; without that field (or with empty/invalid codes) the switch has no effect. Z step sets the vertical-axis interval on the sections, either automatically or at a fixed interval in centimetres or metres. Open 3D view launches the separate 3D scatter window.Beside Point model, the DPI selector only changes how many screen pixels one point-size millimetre uses (Auto = 96). Lower values draw smaller points on screen; exported figures keep the real millimetre size. Point size ranges from 0 to 10 mm (default 2.20 mm).
Size boxes replace the point symbols only when Draw is Points or Both. The box dimensions are real-world metres from the millimetre fields and are independent of the Point size slider. Size always starts Off after loading data or clicking Options → Reset. Next to Size, Transparent (Off by default; enabled only while Size is On) draws the boxes with a semi-transparent fill so overlaps stay readable; with Transparent Off the fills are opaque. PNG/SVG export follows the same Transparent setting whenever Size is On. Size boxes appear in Plan, Longitudinal, Transversal and Zoom (and follow Stretch Z and an active Profile).
When Size is On, the open 3D window draws the same real-size boxes (P1 base, oriented or axis-aligned) instead of point dots whenever its Draw mode is Points or Both. Transparent and opaque vector placement (base vs upper face, contrast + fine rim) follow the dock. The 3D toolbar Size slider remains a screen radius in pixels for markers and shaft thickness — it does not scale the real-size boxes.
Excavation geometry for Size and vectors: P1 is the centre of the object’s base resting on the ground (the face in contact with the ground). P2→P3 defines the long axis of that base face (its longest side resting on the ground). The Size box uses llarg × ample to define the base footprint, centred on P1, while gruix extends upwards from the base into the object (rather than being distributed ± half around P1). When the angles or orientation vector are missing, the footprint remains axis-aligned at P1, with gruix extending upwards in the same way.
Drawn points remain at P1, on the base. When Draw is set to Points or Both, Size replaces the point glyph with the volume box without changing P1's position.
Vectors follow the actual P2→P3 segment, or use a Fixed length centred on P1 and following the same orientation. Their position depends on the Size and Transparent settings:
PNG/SVG exports preserve the same positioning and styling as displayed on screen.
For example, you want to compare a narrow Z interval with the complete section while keeping the same frame, coordinate axes and visual scale. Turning Adaptive off prevents the frame from adjusting to the smaller filtered subset.
Resources is the bottom-right mosaic cell. Controls below are listed in the order they appear: permanent tools first, then blocks that appear only with Density or Profile.
The Filter section contains three range controls, one each for X, Y and Z. Each control has two limits, so you can define the minimum and maximum coordinate to keep. Only points falling within all three selected ranges remain visible. Loaded refits use the same prism: if any vertex of a refit falls outside the selected X/Y/Z window, the entire refit is hidden (no clipped fragments). Click Reset in the Filter section to restore the full available refits. This reset affects the coordinate filters only: it does not change Point size, Draw mode, Group visibility, Density settings or Stretch Z.
Stretch Z is off by default. When enabled, it applies vertical exaggeration to the Longitudinal and Transversal sections only. The Plan view is not stretched and remains in its normal horizontal coordinate scale.
Z ×5 (m), so the displayed height is not mistaken for the unexaggerated geometry.A layer only 15 cm thick may look almost flat when shown along a long trench. Applying Stretch Z ×5 makes its vertical thickness easier to inspect, while the horizontal X or Y distances and their coordinate labels remain in real metres.
Click Measure, then pick A and B on Plan, Longitudinal or Transversal. The distance is reported in real metres (Stretch Z does not change the value). You can switch view at any time — that starts a new pair on the new pane. Press Esc or click Measure again to stop. Middle-drag still pans while Measure is active.
Resources → Orientation → Recalculate rewrites the numeric angle fields from the geometry of each piece.
G_orientacio — azimuth in degrees, 0–360°. 0° = North, increasing clockwise.G_pendent — inclination in degrees, 0–90° from the horizontal (0° = flat, 90° = vertical).These are not the text fields orientacio / pendent. Recalculate only updates G_orientacio and G_pendent.
On import: finite values already in the file are kept; empty cells are filled automatically if the row has a vector (P2→P3, or P1→P2 when P3 is missing), using the improved method: geometric axis P2→P3; if the vertical component is significant and points “up”, the sense is flipped so azimuth and inclination follow the downslope / tip direction (same sense as the drawn arrows).
When you click Recalculate, those automatic/file values are overwritten for every loaded row that has a vector axis, with the same improved method. Rows with no P2/P3 axis are skipped.
G_orientacio / G_pendent. Use it when file angles are missing, outdated, or you want them to match the drawn arrows exactly.| Use Recalculate when file angles are missing, outdated, or you want them to match exactly the arrow sense shown in Plan / sections / 3D. |
Cross-view is off by default. When switched On, moving the pointer over a record in any of the three main panes marks the corresponding record in the other two panes. The link is based on the same real XYZ record, so you can identify its position across the three projections. Cross-view does not control or update the separate Zoom windows.
The linked record is marked with a blue ring in the other panes.
The Coordinates group shows the pointer position in real metres as three values in X Y Z order (for example 23.67 -- -378.47), while the mouse is over the plot frame of Plan, Longitudinal, Transversal or a Zoom window. Outside that frame the values show --. Stretch Z is removed from Z so the values match Measure and the data. Zoom windows use the same three-value line with a Coordinates: prefix in the top-right part of the window.
X Y Z (or -- placeholders). It updates as you move over a plot frame so you can read map metres without Measure. A missing axis in that view is shown as --.When Density is displayed, the Resources area includes its colour scale and the Invert control. When a Profile is active, it instead provides Profile export options: CSV export and To QGIS for the LONG and/or TRANS section views.
This group appears in Resources only while a Profile is active (Options → Profile with a valid A–B slice). It does not replace Filter or the other permanent tools.
Options → Density builds a KDE surface (kernel density estimation) from the points currently included by the Group selection and X/Y/Z filters. There is no separate On switch: opening the tab calculates and shows the surface. The plugin calls the same QGIS Processing tool as Heatmap (Kernel Density Estimation): it creates a raster grid and, for each cell, adds a weighted contribution from every point that falls within the search Radius. Closer points weigh more; the Kernel function sets how that weight falls off with distance (Quartic, Epanechnikov, and so on). Cell is the raster cell size (resolution). The coloured heatmap is that raster after styling; Isolines are contour lines extracted from the same values. Density and Profile cannot be displayed at the same time. Selecting Density suspends the Profile display but keeps its A and B endpoints; selecting Profile restores the profile and hides Density. Opening General alone does not turn either off — use Redraw to return to the loaded point data.
Kernel models available in the plugin (QGIS Heatmap):
| Kernel | How weight falls with distance | Typical look |
|---|---|---|
| Quartic | Smooth bell that reaches zero at the Radius edge (biweight). | Good general starting choice; balanced peaks and smooth flanks. |
| Epanechnikov | Parabolic curve that also reaches zero at the edge. | Slightly flatter top than Quartic; common theoretical default in KDE. |
| Triweight | Like Quartic but more weight near the centre. | Sharper local peaks; surroundings fade faster. |
| Triangular | Linear drop from the point to zero at the Radius. | Simple cone-shaped influence; clear hard edge at Radius. |
| Uniform | Same weight for every location inside the Radius; nothing outside. | Box-like discs; abrupt boundary, little internal grading. |
| Density values in Plan and in the vertical sections should not be compared as if they were the same absolute measurement: the views have different spatial dimensions and extents. In the sections, Radius and Cell are reduced to prevent a circular kernel from spreading excessively along the much shorter Z dimension. If you change Stretch Z while density is active, the density surface is recalculated so that it remains aligned with the displayed points. |
As a first test, open Density, use Auto for Radius and Cell, select Heatmap with Bands, and choose Quartic as the kernel. Select Both if you also want the isolines drawn over the heatmap. Adjust Radius, Cell and the colour range after checking the result.
Options → Profile extracts a vertical slice from the point cloud. You define the slice by drawing a line between two endpoints, A and B, in the Plan view. The plugin selects points within a vertical prism centred on that line and displays their vertical distribution in the Longitudinal and Transversal section panes.
original_SelectedProfile_YYYYMMDD.csv.Open Options → Find to search the loaded records by their attribute values. The search looks for exact words or values in the available fields. Use AND (default) when all entered search terms must match, or OR when a record may match any one of them.
Options → Refits loads refit chains from a *.refits file. Load the excavation points first so the plugin can determine the site grid, then click Load….
Vertices in the .refits file must use the same site metric grid as the loaded points (the same X/Y metres) — not geographic longitude/latitude, and not another site CRS.
On load, the plugin compares the XY extent of the remountings with that of the point cloud (with a tolerance margin). If no vertex falls inside that box, the file is treated as incoherent:
.refits coordinates, or load points from the same system, before trying again| This check is only XY alignment on the site grid; it does not perform any automatic CRS transformation. |
File format (UTF-8, pipe-separated, with a required header):
id | name | points |
|---|---|---|
| 1 | Refit1 | 2.822,8.437,-0.354;2.850,8.410,-0.360;2.900,8.390,-0.355 |
| 2 | Refit2 | 4.864,7.211,-0.424;4.900,7.180,-0.430 |
id — unique integer ≥ 1.name — label displayed on the chips.points — ordered vertices in x,y,z format (metres, . as the decimal separator), separated by ;. Each chain must contain at least two vertices. Separate directed branches with / (star-shaped spokes or a nodal Y); each branch is drawn as an independent polyline so Direction can mark every tip.Refits are displayed in Plan, Longitudinal and Transversal views, and in the 3D window when it is open. They also respect the Resources X / Y / Z filter: if any node of a remounting lies outside the active ranges, the whole remounting disappears from those views (and from 3D). When a Profile is active, only chains intersecting the A–B prism are displayed in the section views. Use the coloured chips (or All / None) to show or hide individual refits. The On switch projects all loaded remountings on those views; Off hides them without unloading the file.
Line selects the stroke style (Line, Dots, Dash, Dash-dot) and width in mm. Direction adds a filled arrowhead in the refit colour at the end of every branch (element markers are never removed); Arrow sets its size in mm (freely adjustable). Nodes selects the marker used for each element in the file (the same shapes as Point → Model, or None); Dim sets the marker size.
Setting Arrow to 0 hides the Direction arrowheads even when Direction is On (node markers stay).
| Refit vertices are not included in Density (KDE). The density surface always uses the filtered excavation points only. |
Bundled example: data/sample.refits. Most remountings are ordinary two-element pairs (first and last fragment). The exceptions are RefitStar (centre + five tips) and RefitNodal (nodal Y: a 5-element chain with a 3-element branch from the middle node). Most chains sit in archaeological level 1; a few (for example RefitL1-L2, RefitL1-L2-NS) span vertically between levels. With Point info enabled, hovering over a refit vertex opens a translucent green card with white text (in both Dark and Light themes): compact mode lists that node’s id, name, n and X/Y/Z; with Large info the card becomes a remounting pill (name, n, and each vertex as [x,y,z] in file order; branches keep /), not the hovered node’s X/Y/Z alone.
n counts unique elements (distinct x,y,z positions). When the same fragment is listed more than once in the file — for example, the centre of a star repeated on every spoke — it is still counted as a single element.
Star example (RefitStar in sample.refits): still one file row with the same three columns. One centre and five outward spokes are written in points as five directed branches separated by / (each branch centre;tip), so Direction can place a filled arrowhead at every tip:
id | name | points |
|---|---|---|
| 1 | RefitStar | 2.430,4.405,-0.255;2.777,4.188,-0.292/2.430,4.405,-0.255;2.580,4.913,-0.317/2.430,4.405,-0.255;2.575,3.722,-0.298/2.430,4.405,-0.255;3.231,4.136,-0.251/2.430,4.405,-0.255;3.075,4.958,-0.356 |
That single row yields five branches and six unique elements (1 centre + 5 tips). The centre coordinate is repeated once per spoke in points, but n still counts it as one element.
Nodal Y example (RefitNodal): again one row. A main chain of five elements, then /, then a second branch that starts at the middle node and adds three more elements:
id | name | points |
|---|---|---|
| 16 | RefitNodal | 6.200,6.800,-0.400;6.900,7.100,-0.390;7.600,7.400,-0.380/6.900,7.100,-0.390;7.650,6.050,-0.390 |
Element markers always represent the elements listed in the file. Enabling Direction adds arrowheads at the branch tips without removing the node markers.
Black is a separate switch placed immediately above All / None. It is Off by default. When On, the entire refit drawing is painted monochrome — lines, nodes, Direction arrows and any other symbol parts — instead of the refit colour: black in Light mode, white in Dark mode (so it stays readable on the canvas). On Export (PNG/SVG), Black always uses black ink on the white paper sheet, even if the workspace is Dark. With Black on, the export legend does not list each remounting name (they are indistinguishable): the Refits block is a single black line labelled Refit.
In a Zoom window, when refits are loaded, the bottom filter strip is divided into two columns: left = Group chips for the excavation points; right = chips for the loaded refits (each column has its own All / None). Without loaded refits, only the Group column is displayed.
Open it from General → View → Open 3D view. Left-drag orbits, right-drag pans and the mouse wheel zooms; Fit re-frames the loaded data.
Exporting from the 3D window produces a framed perspective figure (not a map at 1∶N), so the Scale options of the 2D export dialog do not appear. Paper size, PNG/SVG, resolution, title, legend and plot colour work as for the 2D views; Box, Labels and Compass follow the 3D switches. Loaded remountings that pass the Refits On / chip / XYZ filters are drawn in 3D when projected.
Each main pane has its own Export button. You can also export from that pane's Zoom window. The export dialog creates a paper figure at a defined map scale, rather than simply taking a screenshot of the current window. The dialog title identifies the view being exported: Export · Plan, Export · Longitudinal or Export · Transversal.
For example, make the Longitudinal view active, enable Stretch Z ×5 and display Density as Both (heatmap and isolines). Click Export, choose A4 landscape, set the scale to 1∶50, select PNG and leave the legend enabled. The resulting figure is ready to insert into a report.
| Where | What it restores |
|---|---|
| Resources → Filter → Reset | Restores the full available X, Y and Z coordinate ranges. Other display settings are unchanged. |
| Resources → Stretch Z → Reset | Sets the vertical exaggeration Factor to 1 (true vertical scale). |
| Options → Reset | Turns all Group categories on; restores the full X/Y/Z ranges and default symbol sizes; sets Draw to Points and Adaptive off; and fits the drawing panes again, including any open Zoom or 3D view. Density and the Dark / Light appearance setting are left unchanged. |
Options → Reset also turns Size and Transparent off, turns vector Fixed off, returns Z step and the screen DPI to Auto, restores the default arrow size and vector Length, and clears any active Measure pair and the Find selection.
Needs QGIS 3.22+ (tested on 3.40 / 3.44), Processing Heatmap and Contour. Licence: GNU GPL-2.0-or-later. Suite: ArcheSystem · Analytics.