Skip to content

GeoJSON

GeoJSON is a common format for vector geodata (points, lines, polygons) with properties. In RepliMap, GeoJSON often appears as reference geometry or imported layers that you align with roads, lanes, and junctions, or merge into your map pipeline.

GeoJSON loaded in RepliMap with the GeoJSON tab in the left panel (Import Settings, Field and Value, Elevation Tiers, elevation and signal actions, filtering) and colored reference geometry on the canvas


Typical Uses

  • Road centrelines or boundaries from GIS tools or open data.
  • Area features (zones, polygons) that constrain or annotate the map.
  • Point features (signs, poles, landmarks) as hints for placement or validation.

Coordinate Reference System (CRS)

GeoJSON commonly uses WGS 84 (EPSG:4326), which stores coordinates as longitude and latitude. RepliMap supports converting these coordinates into a local or projected coordinate system during import.

When importing GeoJSON, the Specify the Coordinate Reference System (CRS) dialog allows you to select the appropriate coordinate system.

CRS Option Description
WGS 84 (EPSG:4326) For GeoJSON containing longitude and latitude coordinates.
ENU Converts WGS 84 coordinates into a local East-North-Up coordinate system, using the first GeoJSON coordinate or the loaded XODR georeference when available.
UTM Converts WGS 84 coordinates into the appropriate UTM zone, detected automatically.

If your GeoJSON already uses metre-based coordinates, select the matching ENU or UTM option directly.

Important

Select the correct CRS to ensure proper alignment with your existing map. An incorrect selection can cause positioning errors and affect editing accuracy. The selected CRS is stored in the XODR header when the map is saved.

CRS dialog screenshot
Import GeoJSON dialog: previous-settings selector, coordinate detection warning, required input coordinate system (UTM, projected), optional properties selection, and Remember these settings option

GeoJSON Properties for Visualization

After CRS selection, RepliMap may display the Select GeoJSON Properties dialog. This allows you to choose which GeoJSON properties are used to group and colour data on the map.

  • Fields: Select the property keys used for visualization, such as type.
  • Values: Choose the distinct values to display as separate colour categories, such as way, road_border, traffic_sign, and traffic_light.

Only selected value combinations are displayed as separate categories, helping keep complex GeoJSON data visually organized.

Note

Properties containing more than 30 distinct values are excluded from categorical colouring. Fields such as id are generally unsuitable because they can produce too many individual colour categories.

GeoJSON import settings screenshot
Import settings panel using project settings: Input UTM, Output As input, Properties 3 of 12, with a Change Settings button

GeoJSON Panel

After GeoJSON is loaded, the GeoJSON panel opens as a tab in the left panel, alongside the Hierarchy tab (drag tabs to reorder them; see Left panel tabs). The GeoJSON sidebar keeps reference data under control while you edit: feature styling and visibility, elevation workflows, signals, stop lines, filtering, and reset actions. The panel follows this broad layout:

  1. GeoJSON features — display and style features by property.
  2. Add Elevation — add or compare elevation and manage deviations.
  3. Add Signals — import traffic signals from GeoJSON where supported.
  4. Add Stop Lines — add stop lines from GeoJSON where the dataset supports it.
  5. Reset — clear numeric offsets or related settings.
GeoJSON panel screenshot
GeoJSON Features panel: field styling, Add Elevation, Add Signals, Add Stop Lines, Reset, elevation actions, and filtering

GeoJSON Features

At the top, the Field dropdown chooses which GeoJSON property drives categories (for example type). For each distinct value under that field, the list shows a colour swatch (edit to change how that category is drawn on the canvas) and a visibility toggle so you can show or hide whole categories without removing data.

This matches the property keys and values you chose during import; use it when you want to tune colours or hide clutter while aligning the map.

Add Elevation

Solid buttons support elevation workflows:

  • Add Elevation — apply elevation from the GeoJSON or associated processing (behaviour depends on your data and import pipeline).
  • Compare Elevation — compare against another elevation source or baseline.
  • Save Deviations — store elevation adjustments you have made.
  • Clear Elevation Markers — remove elevation markers from the view.

A numeric field with Reset clears or zeroes the associated offset or adjustment (for example after experiments).

Add Signals

Add Signals imports traffic signals from a GeoJSON file and places them on the map. Signal properties are read from the GeoJSON and mapped using a configurable settings file.

Because GeoJSON datasets may use different property names and values, you can customize the signal mapping without modifying the application.

Configuration file

<RepliMap Installation Folder>
└── StreamingAssets
    └── geojson_settings
        └── geojson_signals_config.json

Update geojson_signals_config.json so the property names and values match your GeoJSON dataset. Then use Add Signals to import traffic signals with the configured mapping.

Note

  • The file must remain named geojson_signals_config.json. If it is renamed, RepliMap will not read the configuration.
  • Before you change the configuration, create a backup of the original geojson_signals_config.json file.

Add Stop Lines

Add Stop Lines imports stop lines from a GeoJSON file and places them on the map. If the GeoJSON contains stop line data in a format supported by RepliMap, the stop lines are created at the positions defined by their X, Y, and Z coordinate values.

For more information about stop lines in RepliMap, see Stop Line.

Elevation Tiers

The Elevation Tiers panel classifies imported GeoJSON data into three tiers: Surface, Bridge, and Tunnel. Each tier has a fixed map colour and a visibility toggle.

Tier Colour Description Default State
Surface Blue Default classification for all imported GeoJSON data. On
Bridge Green GeoJSON data representing roads elevated above underlying road data. Off
Tunnel Red GeoJSON data representing roads below ground level. Off

Manual Classification

Enable the Bridge or Tunnel toggle and click the corresponding GeoJSON data on the map to assign it to the selected tier. The displayed data is immediately updated with the tier's colour. Other data remains unchanged.

Auto-Detect

Auto-detect automatically identifies bridges by comparing the vertical distance between overlapping GeoJSON data. You can configure the minimum vertical distance required for Bridge classification using the Bridge from field (default: 4.5 m).

  1. Set the desired Bridge from threshold.
  2. Click Auto-detect.

GeoJSON data with a vertical gap greater than the defined threshold from the data directly beneath it is classified as Bridge (green). Data at or below the threshold, or without underlying data, remains unchanged.

Load and Save

  • Save — saves the current elevation tier assignments.
  • Load — restores previously saved tier assignments and their corresponding map colours.

GeoJSON Filtering

Use the GeoJSON filtering master toggle to turn filtering on or off. When enabled, Z Mean and Window sliders adjust how features are filtered—typically refining which geometry is emphasised using vertical (Z) statistics. Exact behaviour depends on your data and version.

GeoJSON customizations

GeoJSON has no universal property schema, so imports often need source-specific field mapping. Out-of-the-box automation may not support elevation or signal generation for every dataset. Contact us to define the right mapping for safe, reliable import.


Validation

Before relying on GeoJSON in production:

  • Check for invalid geometries (self-intersections, unclosed rings).
  • Ensure attributes you need for automation are present in properties.