Skip to main content

Multi-line geometry

Define multiple lines

This geometry type defines multiple points that form multiple distinct lines. Use it to describe assets composed of multiple linear objects, e.g. roads that intersect other roads, hedgerows with gaps.

An item with multi-line geometry displayed on the map

How to draw

When editing item geometry (or any other geometry field in Alloy), the Geometry Editor appears. The row of draw tools indicates which geometry types are allowed by the item's design (or the source of the field).

The draw tools are dimmed out if the relevant geometry type isn't allowed

Select the Line tool and then select a starting point on the map. Continue selecting points along your desired line. To finish drawing, double-select the final point. The tool will remain active, enabling you to select it again and add more lines as needed.

Demonstrating the Multi-Line tool in the Geometry Editor

To edit a line, select an existing point (your mouse will snap to it) and drag it to a different position. To add a new point to a line, select and hold anywhere along it, and then drag the new point into position! Use the Erase tool to remove points from lines as needed.

Select Done to save your changes.

Editing the points of lines in the Geometry Editor

Example GeoJSON

To access the underlying code of the current geometry, select Menu in the Geometry Editor and choose GeoJson view.

{
"type": "MultiLineString",
"coordinates": [
[
[-1.532748, 52.289917],
[-1.532489, 52.289978],
[-1.532427, 52.289954]
],
[
[-1.532415, 52.289949],
[-1.532343, 52.289921]
]
]
}