Skip to content

DiGi.GIS.WebAPI.UI.Constants

github-actions[bot] edited this page Aug 21, 2026 · 6 revisions

DiGi.GIS.WebAPI.UI.Constants Namespace

Classes

Default Class

Provides default values used during conversion of GIS domain objects to glTF.

public static class Default

Inheritance System.Object → Default

Fields

Default.BuildingSearchRadius Field

The radius, in metres, searched around a plan position to find the building standing there.

The 3D viewer knows a picked building by its centroid rather than by its identifier, so the building is recovered by asking for everything within this distance of that point. Small on purpose: it has to be forgiving of the difference between a footprint centroid and a model centroid without reaching a neighbouring building.

public const double BuildingSearchRadius = 5;

Field Value

System.Double

Default.BuildingSearchTolerance Field

The tolerance, in metres, applied to the spatial query behind BuildingSearchRadius.

public const double BuildingSearchTolerance = 5;

Field Value

System.Double

Default.CommunicationWebAPIUri Field

Base URI of the DiGi.Communication.WebAPI extension (hosted by the generic DiGi.WebAPI.WindowsService) used in production.

public const string CommunicationWebAPIUri = "https://api.digiproject.uk";

Field Value

System.String

Default.CommunicationWebAPIUri_Development Field

Base URI of the DiGi.Communication.WebAPI extension (hosted by the generic DiGi.WebAPI.WindowsService) used during local development.

Points at the production service: no DiGi.WebAPI.WindowsService host runs locally by default, and a dead localhost URI made every V2 calculation fail with HTTP 500 (connection refused). Restore a localhost URI (matching the local host port) only when debugging the Communication extension locally.

public const string CommunicationWebAPIUri_Development = "https://api.digiproject.uk";

Field Value

System.String

Default.GISWebAPIUri Field

Base URI of the GIS Web API (DiGi.GIS.WebAPI, hosted by the generic DiGi.WebAPI.WindowsService) this application proxies.

Every outbound request this application makes is built on this value, so the whole application can be pointed at another host by changing it here. The service is deployed on a separate machine and is versioned independently of this application - query GET /information/controllers on it to learn which build is actually answering before relying on a recently added endpoint.

public const string GISWebAPIUri = "https://api.digiproject.uk";

Field Value

System.String

Default.GISWebAPIUri_Development Field

Base URI of the GIS Web API used during local development.

Points at the production service for the same reason CommunicationWebAPIUri_Development does: no host runs locally by default, and a dead localhost URI turns every page of this application into an error. Restore a localhost URI (matching the local host port) only when debugging the GIS Web API locally.

public const string GISWebAPIUri_Development = "https://api.digiproject.uk";

Field Value

System.String

Default.PolygonMinimumPointCount Field

The fewest points a reduced outline is allowed to keep, for an administrative area with no rule of its own and for a building footprint.

public const int PolygonMinimumPointCount = 100;

Field Value

System.Int32

Default.PolygonMinimumPointCount_Country Field

The fewest points a reduced country outline is allowed to keep.

public const int PolygonMinimumPointCount_Country = 30;

Field Value

System.Int32

Default.PolygonMinimumPointCount_Voivodeship Field

The fewest points a reduced voivodeship outline is allowed to keep.

public const int PolygonMinimumPointCount_Voivodeship = 50;

Field Value

System.Int32

Default.PolygonReductionFactor Field

The reduction factor applied to an outline of an administrative area that has no rule of its own.

These outlines are drawn as an overview map a few hundred pixels across, so they are simplified before they are sent rather than after. The factor falls as the area grows: a country outline carries far more points than the map can show, a subdivision barely more.

public const double PolygonReductionFactor = 0.01;

Field Value

System.Double

Default.PolygonReductionFactor_Country Field

The reduction factor applied to a country outline. See PolygonReductionFactor.

public const double PolygonReductionFactor_Country = 1E-05;

Field Value

System.Double

Default.PolygonReductionFactor_County Field

The reduction factor applied to a county outline. See PolygonReductionFactor.

public const double PolygonReductionFactor_County = 0.001;

Field Value

System.Double

Default.PolygonReductionFactor_Voivodeship Field

The reduction factor applied to a voivodeship outline. See PolygonReductionFactor.

public const double PolygonReductionFactor_Voivodeship = 0.001;

Field Value

System.Double

Default.StoreyHeight Field

Default storey height in meters used to extrude 2D building footprints.

public const double StoreyHeight = 3;

Field Value

System.Double

Default.TerrainEnabled Field

Whether the ground surface is added to the scenes that display DiGi.Analytical.Building.Classes.BuildingModel geometry (the 3D viewer and the communication view).

The standalone terrain feature (the Terrain controller and its own pages) shows the surface on its own, where the elevation is correct as stored.

Note that an area smaller than the sampling lattice legitimately holds no points: the counties are sampled at 10 m to 100 m, so a request with a radius below the lattice step answers 404 without meaning that nothing was ever stored there.

public const bool TerrainEnabled = True;

Field Value

System.Boolean

Default.TerrainName Field

The name given to the terrain node of a scene.

public const string TerrainName = "Terrain";

Field Value

System.String

Default.TerrainRadius Field

The radius of the ground surface, in metres, shown around a scene that holds a single building.

A single building has no requested area of its own to borrow, so this is how much ground it is given for context.

public const double TerrainRadius = 100;

Field Value

System.Double

Default.TerrainRequestTimeout Field

The longest a terrain request to the GIS Web API may take, in seconds, before it is abandoned.

Terrain is an optional overlay, so a stalled terrain query must not hold a page request open for the 100 second System.Net.Http.HttpClient default. Abandoning it is answered exactly like an area with no stored elevation points.

public const double TerrainRequestTimeout = 30;

Field Value

System.Double

Default.TerrainUri Field

Base URI of the GIS Web API terrain endpoints.

public const string TerrainUri = "https://api.digiproject.uk/gis/terrain";

Field Value

System.String

Clone this wiki locally