Repository navigation
DiGi.GIS.WebAPI.UI.ViewModels
Represents a view model for an administrative areal in 2D, providing access to its references and associated data.
public class AdministrativeAreal2DViewModelInheritance System.Object → AdministrativeAreal2DViewModel
Initializes a new instance of the AdministrativeAreal2DViewModel class.
public AdministrativeAreal2DViewModel();AdministrativeAreal2DViewModel(AdministrativeAreal2DReference, AdministrativeAreal2D, AdministrativeAreal2DReferencePath, IEnumerable<AdministrativeAreal2DReference>) Constructor
Initializes a new instance of the AdministrativeAreal2DViewModel class with specified administrative areal data and references.
public AdministrativeAreal2DViewModel(DiGi.GIS.PostgreSQL.Classes.AdministrativeAreal2DReference? administrativeAreal2DReference, DiGi.GIS.Classes.AdministrativeAreal2D? administrativeAreal2D, DiGi.GIS.PostgreSQL.Classes.AdministrativeAreal2DReferencePath? administrativeAreal2DReferencePath, System.Collections.Generic.IEnumerable<DiGi.GIS.PostgreSQL.Classes.AdministrativeAreal2DReference>? administrativeAreal2DReferences);administrativeAreal2DReference DiGi.GIS.PostgreSQL.Classes.AdministrativeAreal2DReference
The reference to the administrative areal 2D.
administrativeAreal2D DiGi.GIS.Classes.AdministrativeAreal2D
The administrative areal 2D object.
administrativeAreal2DReferencePath DiGi.GIS.PostgreSQL.Classes.AdministrativeAreal2DReferencePath
The path reference for the administrative areal 2D.
administrativeAreal2DReferences System.Collections.Generic.IEnumerable<DiGi.GIS.PostgreSQL.Classes.AdministrativeAreal2DReference>
A collection of references to administrative areals 2D.
Gets the administrative areal 2D object.
public DiGi.GIS.Classes.AdministrativeAreal2D? AdministrativeAreal2D { get; }DiGi.GIS.Classes.AdministrativeAreal2D
Gets the reference to the administrative areal 2D.
public DiGi.GIS.PostgreSQL.Classes.AdministrativeAreal2DReference? AdministrativeAreal2DReference { get; }DiGi.GIS.PostgreSQL.Classes.AdministrativeAreal2DReference
Gets the path reference for the administrative areal 2D.
public DiGi.GIS.PostgreSQL.Classes.AdministrativeAreal2DReferencePath? AdministrativeAreal2DReferencePath { get; }DiGi.GIS.PostgreSQL.Classes.AdministrativeAreal2DReferencePath
Gets a list of references to administrative areals 2D.
public System.Collections.Generic.List<DiGi.GIS.PostgreSQL.Classes.AdministrativeAreal2DReference>? AdministrativeAreal2DReferences { get; }System.Collections.Generic.List<DiGi.GIS.PostgreSQL.Classes.AdministrativeAreal2DReference>
One building dot of a 2D area view: the bounding-box centre of a building_2d row, keyed by the reference and the county part the row is filed under.
A building reference is unique only per county partition - a reference is stored once per county part it was imported under - so the county identifier travels with the reference for any caller-side join, such as the Typology area view's join with the solved typology assignment. X and Y are the centre of the row's bounding-box columns in the same coordinate reference system the point2dsbyreferences endpoint answers in (PL-1992, EPSG:2180, metres). Row order is not contractual.
A relay of DiGi.GIS.PostgreSQL.Classes.Building2DCentroid without its _type discriminator: the browser never spells a type name, and the discriminator alone is most of the upstream payload for a county-sized area.
public class Building2DCentroidViewModelInheritance System.Object → Building2DCentroidViewModel
Initializes a new instance of the Building2DCentroidViewModel class.
public Building2DCentroidViewModel();Initializes a new instance of the Building2DCentroidViewModel class.
public Building2DCentroidViewModel(string reference, int countyId, double x, double y);reference System.String
The building reference key.
countyId System.Int32
The county part identifier the building row is filed under.
The X coordinate of the bounding-box centre.
The Y coordinate of the bounding-box centre.
Gets the county part identifier the building row is filed under.
public int CountyId { get; set; }Gets the building reference key, as addressed by the GIS Web API.
public string Reference { get; set; }Gets the X coordinate of the bounding-box centre, in PL-1992 (EPSG:2180) metres.
public double X { get; set; }Gets the Y coordinate of the bounding-box centre, in PL-1992 (EPSG:2180) metres.
public double Y { get; set; }Represents a view model that provides combined access to Building2DReference and DiGi.GIS.Interfaces.IOccupancyData.
public class Building2DOccupancyDataViewModelInheritance System.Object → Building2DOccupancyDataViewModel
Initializes a new instance of the Building2DOccupancyDataViewModel class.
public Building2DOccupancyDataViewModel();Initializes a new instance of the Building2DOccupancyDataViewModel class.
public Building2DOccupancyDataViewModel(DiGi.GIS.PostgreSQL.Classes.Building2DReference? building2DReference, DiGi.GIS.Interfaces.IOccupancyData? occupancyData);building2DReference DiGi.GIS.PostgreSQL.Classes.Building2DReference
The DiGi.GIS.PostgreSQL.Classes.Building2DReference reference to the 2D building, or null.
occupancyData DiGi.GIS.Interfaces.IOccupancyData
The DiGi.GIS.Interfaces.IOccupancyData containing occupancy data, or null.
Gets the reference to the 2D building associated with this occupancy data view.
public DiGi.GIS.PostgreSQL.Classes.Building2DReference? Building2DReference { get; }DiGi.GIS.PostgreSQL.Classes.Building2DReference
Gets the occupancy data associated with this building 2D occupancy data view.
public DiGi.GIS.Interfaces.IOccupancyData? OccupancyData { get; }DiGi.GIS.Interfaces.IOccupancyData
Represents a view model containing a collection of 2D building references.
public class Building2DReferencesViewModelInheritance System.Object → Building2DReferencesViewModel
Initializes a new instance of the Building2DReferencesViewModel class.
public Building2DReferencesViewModel();Initializes a new instance of the Building2DReferencesViewModel class with a specified collection of 2D building references.
public Building2DReferencesViewModel(System.Collections.Generic.IEnumerable<DiGi.GIS.PostgreSQL.Classes.Building2DReference>? building2DReferences);building2DReferences System.Collections.Generic.IEnumerable<DiGi.GIS.PostgreSQL.Classes.Building2DReference>
The collection of DiGi.GIS.PostgreSQL.Classes.Building2DReference objects to initialize the view model with.
Gets the list of 2D building references associated with this view.
public System.Collections.Generic.List<DiGi.GIS.PostgreSQL.Classes.Building2DReference>? Building2DReferences { get; }System.Collections.Generic.List<DiGi.GIS.PostgreSQL.Classes.Building2DReference>
Represents a 2D view model of a building, providing access to its reference, spatial data, and administrative areal path.
public class Building2DViewModelInheritance System.Object → Building2DViewModel
Initializes a new instance of the Building2DViewModel class.
public Building2DViewModel();Building2DViewModel(Building2DReference, Building2D, AdministrativeAreal2DReferencePath) Constructor
Initializes a new instance of the Building2DViewModel class.
public Building2DViewModel(DiGi.GIS.PostgreSQL.Classes.Building2DReference? building2DReference, DiGi.GIS.Classes.Building2D? building2D, DiGi.GIS.PostgreSQL.Classes.AdministrativeAreal2DReferencePath? administrativeAreal2DReferencePath);building2DReference DiGi.GIS.PostgreSQL.Classes.Building2DReference
The DiGi.GIS.PostgreSQL.Classes.Building2DReference for the building.
building2D DiGi.GIS.Classes.Building2D
The Building2D associated with this view model.
administrativeAreal2DReferencePath DiGi.GIS.PostgreSQL.Classes.AdministrativeAreal2DReferencePath
The DiGi.GIS.PostgreSQL.Classes.AdministrativeAreal2DReferencePath for the building.
Gets the collection of administrative 2D area references for this building view.
public DiGi.GIS.PostgreSQL.Classes.AdministrativeAreal2DReferencePath? AdministrativeAreal2DReferencePath { get; }DiGi.GIS.PostgreSQL.Classes.AdministrativeAreal2DReferencePath
Gets the 2D building associated with this view.
public DiGi.GIS.Classes.Building2D? Building2D { get; }Gets the reference to the 2D building associated with this view.
public DiGi.GIS.PostgreSQL.Classes.Building2DReference? Building2DReference { get; }DiGi.GIS.PostgreSQL.Classes.Building2DReference
Represents a view model for the communication 3D scene view: the buildings of the analyzed circular area (streamed as a binary glTF payload) plus the input parameters required to send the communication calculation request back to the server.
public class CommunicationSceneViewModelInheritance System.Object → CommunicationSceneViewModel
Initializes a new instance of the CommunicationSceneViewModel class.
public CommunicationSceneViewModel(string? title, string? gLBUrl, double centerX, double centerY, double radius);title System.String
The title displayed above the viewer.
gLBUrl System.String
The application relative URL of the binary glTF (.glb) endpoint.
centerX System.Double
The X coordinate of the center of the analyzed circular area.
centerY System.Double
The Y coordinate of the center of the analyzed circular area.
radius System.Double
The radius of the analyzed circular area in meters.
Gets the X coordinate of the center of the analyzed circular area.
public double CenterX { get; }Gets the Y coordinate of the center of the analyzed circular area.
public double CenterY { get; }Gets the application relative URL of the binary glTF (.glb) endpoint.
public string? GLBUrl { get; }Gets the radius of the analyzed circular area in meters.
public double Radius { get; }Gets the title displayed above the viewer.
public string? Title { get; }Represents a view model for an EPW file, providing access to the underlying weather data and structure.
public class EPWFileViewModelInheritance System.Object → EPWFileViewModel
Initializes a new instance of the EPWFileViewModel class.
public EPWFileViewModel();Initializes a new instance of the EPWFileViewModel class.
public EPWFileViewModel(DiGi.EPW.Classes.EPWFile? epwFile);epwFile DiGi.EPW.Classes.EPWFile
The EPW file to be associated with this view model.
Gets the EPW file associated with the EPW file view.
public DiGi.EPW.Classes.EPWFile? EPWFile { get; }Represents a view model for rendering a GLTFScene in the 3D glTF viewer.
Two delivery modes are supported: streamed (the view carries only GLBUrl and the viewer fetches the binary glTF payload, whose scene extras are fully self-describing) and embedded (the scene JSON and the base64 encoded payload are inlined in the page).
public class GLTFSceneViewModelInheritance System.Object → GLTFSceneViewModel
Initializes a new instance of the GLTFSceneViewModel class.
public GLTFSceneViewModel();Initializes a new instance of the GLTFSceneViewModel class for embedded delivery.
public GLTFSceneViewModel(DiGi.GLTF.Classes.GLTFScene? gLTFScene, string? gLTFSceneJson, string? gLBBase64, string? title);gLTFScene DiGi.GLTF.Classes.GLTFScene
The GLTFScene to be rendered.
gLTFSceneJson System.String
The JSON representation of the scene used by the viewer for lights, camera and reference point configuration.
gLBBase64 System.String
The base64 encoded binary glTF (.glb) payload rendered by the viewer.
title System.String
The title displayed above the viewer.
Initializes a new instance of the GLTFSceneViewModel class for streamed delivery: the viewer fetches the binary glTF payload from gLBUrl and reads the scene configuration from its extras.
public GLTFSceneViewModel(string? title, string? gLBUrl, string? scopeBoxSize=null);title System.String
The title displayed above the viewer.
gLBUrl System.String
The application relative URL of the binary glTF (.glb) endpoint.
scopeBoxSize System.String
The default scope box preset in the form "halfX;halfY;zMin;zMax" or "halfX;halfY" (DiGi coordinates; the latter lets the viewer fit the Z range to the buildings' elevation) passed to the viewer, or null for the bounds-fit default. This value can be null.
Gets the base64 encoded binary glTF (.glb) payload rendered by the viewer (embedded delivery only).
public string? GLBBase64 { get; }Gets the application relative URL of the binary glTF (.glb) endpoint (streamed delivery only).
public string? GLBUrl { get; }Gets the GLTFScene to be rendered (embedded delivery only).
public DiGi.GLTF.Classes.GLTFScene? GLTFScene { get; }Gets the JSON representation of the scene used by the viewer for lights, camera and reference point configuration (embedded delivery only).
public string? GLTFSceneJson { get; }Gets the default scope box preset in the form "halfX;halfY;zMin;zMax" or "halfX;halfY" (DiGi coordinates; the latter lets the viewer fit the Z range to the buildings' elevation) passed to the viewer, or null for the bounds-fit default.
public string? ScopeBoxSize { get; }Gets the title displayed above the viewer.
public string? Title { get; }Represents a view model that combines orthographic data and a 2D building reference.
public class OrtoDatasViewModelInheritance System.Object → OrtoDatasViewModel
Initializes a new instance of the OrtoDatasViewModel class.
public OrtoDatasViewModel();Initializes a new instance of the OrtoDatasViewModel class with the specified building reference and orthographic data.
public OrtoDatasViewModel(DiGi.GIS.PostgreSQL.Classes.Building2DReference? building2DReference, DiGi.GIS.Classes.OrtoDatas? ortoDatas);building2DReference DiGi.GIS.PostgreSQL.Classes.Building2DReference
The reference to the 2D building.
ortoDatas DiGi.GIS.Classes.OrtoDatas
The orthographic data associated with the view model.
Gets the reference to the 2D building associated with this view.
public DiGi.GIS.PostgreSQL.Classes.Building2DReference? Building2DReference { get; }DiGi.GIS.PostgreSQL.Classes.Building2DReference
Gets the orthographic data associated with this view.
public DiGi.GIS.Classes.OrtoDatas? OrtoDatas { get; }Represents a view model of the regulated heat transfer coefficients.
public class RegulatedHeatTransferCoefficientsViewModelInheritance System.Object → RegulatedHeatTransferCoefficientsViewModel
Initializes a new instance of the RegulatedHeatTransferCoefficientsViewModel class.
public RegulatedHeatTransferCoefficientsViewModel();RegulatedHeatTransferCoefficientsViewModel(short, IRegulatedHeatTransferCoefficients, Nullable<bool>) Constructor
Initializes a new instance of the RegulatedHeatTransferCoefficientsViewModel class.
public RegulatedHeatTransferCoefficientsViewModel(short year, DiGi.Analytical.Building.HVAC.Interfaces.IRegulatedHeatTransferCoefficients? regulatedHeatTransferCoefficients, System.Nullable<bool> isResidential);year System.Int16
The year associated with the regulated heat transfer coefficients.
regulatedHeatTransferCoefficients DiGi.Analytical.Building.HVAC.Interfaces.IRegulatedHeatTransferCoefficients
The regulated heat transfer coefficients.
isResidential System.Nullable<System.Boolean>
A value indicating whether the building is residential.
Gets a value indicating whether the building is residential.
public System.Nullable<bool> IsResidential { get; }System.Nullable<System.Boolean>
Gets the regulated heat transfer coefficients.
public DiGi.Analytical.Building.HVAC.Interfaces.IRegulatedHeatTransferCoefficients? RegulatedHeatTransferCoefficients { get; }DiGi.Analytical.Building.HVAC.Interfaces.IRegulatedHeatTransferCoefficients
Gets the year associated with the regulated heat transfer coefficients.
public short Year { get; }Represents the state of a background solar radiation job as the solar/jobs routes answer it and the solar radiation viewer polls it.
public class SolarJobViewModelInheritance System.Object → SolarJobViewModel
Initializes a new instance of the SolarJobViewModel class.
public SolarJobViewModel(string jobId, string status, System.Nullable<int> queuePosition, double elapsedSeconds, int receiverCount, string? error);jobId System.String
The unique identifier of the job.
status System.String
The state of the job, the name of an SolarJobStatus member.
queuePosition System.Nullable<System.Int32>
The place of the job in the queue (0 while it runs), or null once it has finished.
elapsedSeconds System.Double
The seconds spent in the current state: waiting while queued, calculating while running, and the calculation time once finished.
receiverCount System.Int32
The number of receiving surfaces (external walls and roofs) the job calculates.
error System.String
The error text of a failed job.
Gets the seconds spent in the current state: waiting while queued, calculating while running, and the calculation time once finished.
public double ElapsedSeconds { get; }Gets the error text of a failed job.
public string? Error { get; }Gets the unique identifier of the job.
public string JobId { get; }Gets the place of the job in the queue (0 while it runs), or null once it has finished.
public System.Nullable<int> QueuePosition { get; }Gets the number of receiving surfaces (external walls and roofs) the job calculates.
public int ReceiverCount { get; }Gets the state of the job, the name of an SolarJobStatus member; a name rather than the number the JSON serializer would write for the enum.
public string Status { get; }Represents a view model for the solar radiation 3D scene view: the building and its neighbours, streamed as a binary glTF payload with the receiving surfaces coloured by their annual irradiation, plus what the legend states about the calculation.
public class SolarSceneViewModelInheritance System.Object → SolarSceneViewModel
Initializes a new instance of the SolarSceneViewModel class.
public SolarSceneViewModel(string? title, string? gLBUrl, string? jobsUrl, string? jobQuery, double radius, string? stationName, string? stationUrl);title System.String
The title displayed above the viewer.
gLBUrl System.String
The application relative URL of the binary glTF (.glb) endpoint.
jobsUrl System.String
The application relative URL of the background job routes (solar/jobs), offered when the scene request is refused as too large.
jobQuery System.String
The query string (id, countyid, radius) a background job is posted with.
radius System.Double
The neighbour radius in metres, measured from the edge of the footprint.
stationName System.String
The name of the EPW weather station, or null when the file does not state it.
stationUrl System.String
The application relative URL of the EPW weather file page of the station.
Gets the application relative URL of the binary glTF (.glb) endpoint.
public string? GLBUrl { get; }Gets the query string (id, countyid, radius) a background job is posted with.
public string? JobQuery { get; }Gets the application relative URL of the background job routes (solar/jobs), offered when the scene request is refused as too large.
public string? JobsUrl { get; }Gets the neighbour radius in metres, measured from the edge of the footprint.
public double Radius { get; }Gets the name of the EPW weather station, or null when the file does not state it.
public string? StationName { get; }Gets the application relative URL of the EPW weather file page of the station.
public string? StationUrl { get; }Gets the title displayed above the viewer.
public string? Title { get; }Represents a view model for a PostgreSQL table, providing access to the underlying table data and structure.
public class TableViewModelInheritance System.Object → TableViewModel
Initializes a new instance of the TableViewModel class.
public TableViewModel();Initializes a new instance of the TableViewModel class.
public TableViewModel(DiGi.PostgreSQL.Table.Classes.Table? table);table DiGi.PostgreSQL.Table.Classes.Table
The PostgreSQL table to be associated with this view model.
Gets the table associated with the table view.
public DiGi.PostgreSQL.Table.Classes.Table? Table { get; }DiGi.PostgreSQL.Table.Classes.Table
The pre-flight answer of GET /typology/buildingcount: how many buildings a Typology solve of an area reads, known before the solve starts, so the area view can say what it is waiting for (DiGi.GIS.WebAPI.UI#29, B1).
public class TypologyAreaCountViewModelInheritance System.Object → TypologyAreaCountViewModel
Initializes a new instance of the TypologyAreaCountViewModel class.
public TypologyAreaCountViewModel();Initializes a new instance of the TypologyAreaCountViewModel class.
public TypologyAreaCountViewModel(System.Nullable<long> count, int countyPartCount, int ceiling, bool clipped);count System.Nullable<System.Int64>
The number of buildings the solve reads, or null when it is not counted.
countyPartCount System.Int32
The number of county parts the solve reads.
ceiling System.Int32
The number of buildings above which a solve is refused.
clipped System.Boolean
A value indicating whether the solve clips its county parts to the area's polygon.
Gets the number of buildings above which a solve is refused with a 413 (BuildingSolveCeiling).
public int Ceiling { get; }Gets a value indicating whether the area is a municipality or subdivision, whose county parts are clipped to its polygon after the read - so Count is an upper bound ("up to") rather than the area's count.
public bool Clipped { get; }Gets the number of buildings the solve reads: the sum over the area's county parts. For a clipped area it is the count of the county parts the area lies in, an upper bound of the area's own buildings. Null for a country, which is not counted - it is refused as above the ceiling outright.
public System.Nullable<long> Count { get; }Gets the number of county parts the solve reads.
public int CountyPartCount { get; }The response of POST /typology/buildings: the solved Typology tree and the flat building list the view renders as dots.
The Root is the recursive tree the view renders as the typology panel: each node carries its name, description, color and children. The Buildings is the flat list of building entries, one per reference the solve classified, each filed under the deepest node holding it - a leaf bucket, or the bucket whose next level dropped the row; the view joins each entry to its dot position by (Reference, CountyId) against the area-scoped centroid endpoint.
public class TypologyBuildingsViewModelInheritance System.Object → TypologyBuildingsViewModel
Initializes a new instance of the TypologyBuildingsViewModel class.
public TypologyBuildingsViewModel();Initializes a new instance of the TypologyBuildingsViewModel class.
public TypologyBuildingsViewModel(DiGi.GIS.WebAPI.UI.ViewModels.TypologyTreeNodeViewModel? root, System.Collections.Generic.List<DiGi.GIS.WebAPI.UI.ViewModels.TypologyBuildingViewModel> buildings);root TypologyTreeNodeViewModel
The root of the solved typology tree, or null when the solve produced no nodes.
buildings System.Collections.Generic.List<TypologyBuildingViewModel>
The flat list of building entries, one per classified reference, filed under the deepest node holding it.
Gets the flat list of building entries, one per classified reference, filed under the deepest node holding it, emitted in the sorted tree's order.
public System.Collections.Generic.List<DiGi.GIS.WebAPI.UI.ViewModels.TypologyBuildingViewModel> Buildings { get; set; }System.Collections.Generic.List<TypologyBuildingViewModel>
Gets the root of the solved typology tree.
public DiGi.GIS.WebAPI.UI.ViewModels.TypologyTreeNodeViewModel? Root { get; set; }One building entry of the Typology area view: the reference that identifies it in the GIS Web API, the county part it was fetched from, and the path of the typology bucket it was solved into.
Coordinates are intentionally absent: the dot positions come from the area-scoped centroid endpoint in DiGi.GIS.WebAPI, joined in the view by (Reference, CountyId). The Path is the filing index chain of the deepest typology bucket holding the building, one integer per level - a leaf's path, or a bucket's own path for a row its next level dropped - which the view uses to locate the node in the tree for the centroid join, the dimming and the grid.
The Id is the building's database identifier, read from the building data table's Database Id column. It serves the links to the 2D details page and the 3D viewer, which address a building by that identifier - it takes no part in the centroid join.
public class TypologyBuildingViewModelInheritance System.Object → TypologyBuildingViewModel
Initializes a new instance of the TypologyBuildingViewModel class.
public TypologyBuildingViewModel();Initializes a new instance of the TypologyBuildingViewModel class.
public TypologyBuildingViewModel(string reference, long id, int countyId, System.Collections.Generic.List<int> path);reference System.String
The building reference key.
id System.Int64
The building's database identifier, or 0 when unknown.
countyId System.Int32
The county part identifier the building was fetched from.
path System.Collections.Generic.List<System.Int32>
The typology path, one filing index per level.
Gets the county part identifier the building was fetched from.
public int CountyId { get; set; }Gets the building's database identifier - the Building2DReference.Id the 2D details and the 3D viewer routes address - or 0 when the column was not projected or the row carried none.
public long Id { get; set; }Gets the typology path, one filing index per level, identifying the deepest bucket the building was solved into.
public System.Collections.Generic.List<int> Path { get; set; }System.Collections.Generic.List<System.Int32>
Gets the building reference key, as addressed by the GIS Web API.
public string Reference { get; set; }One area of GET /typology/childareas: an area one level below one too large for a Typology solve, which the area view offers to open instead (DiGi.GIS.WebAPI.UI#29, B2).
public class TypologyChildAreaViewModelInheritance System.Object → TypologyChildAreaViewModel
Initializes a new instance of the TypologyChildAreaViewModel class.
public TypologyChildAreaViewModel();Initializes a new instance of the TypologyChildAreaViewModel class.
public TypologyChildAreaViewModel(int id, string? code, string? name, int administrativeArealType, System.Nullable<long> count);id System.Int32
The identifier the area view opens the area with - the lowest of its polygon parts.
code System.String
The TERYT code of the area.
name System.String
The name of the area.
administrativeArealType System.Int32
The administrative level of the area, as the integer the area view carries.
count System.Nullable<System.Int64>
The number of buildings of the area, or null when it is not counted.
Gets the administrative level of the area, as the integer of AdministrativeArealType the area view carries in its query string.
public int AdministrativeArealType { get; }Gets the TERYT code of the area.
public string? Code { get; }Gets the number of buildings of the area: exact for a county (the sum over its parts), null for a voivodeship (not counted) or when the count could not be read.
public System.Nullable<long> Count { get; }Gets the identifier the area view opens the area with: the lowest of its polygon parts, since a solve resolves every part from the code.
public int Id { get; }Gets the name of the area.
public string? Name { get; }Represents a single building-data column available for typology grouping, as listed in the Available Columns section.
public class TypologyColumnViewModelInheritance System.Object → TypologyColumnViewModel
Initializes a new instance of the TypologyColumnViewModel class.
public TypologyColumnViewModel();Initializes a new instance of the TypologyColumnViewModel class from a deployed GIS Web API DiGi.PostgreSQL.Table.Classes.Column.
public TypologyColumnViewModel(DiGi.PostgreSQL.Table.Classes.Column column);column DiGi.PostgreSQL.Table.Classes.Column
The source column.
Gets the category grouping of the column.
public string? Category { get; }Gets the integer data type value (0 Undefined through 14 String).
public int DataType { get; }Gets the description of the column.
public string? Description { get; }Gets a value indicating whether the column is numeric and eligible for a Range rule.
public bool IsNumeric { get; }Gets the display name of the column.
public string? Name { get; }Gets the unique identifier (slug) of the column, as addressed by the deployed GIS Web API.
public string? UniqueId { get; }One node of the solved Typology tree as rendered by the area view: the bucket name, description, color and children.
The Color is a CSS hex string (#rrggbb) read from the node's TypologyAppearance via Color(this TypologyAppearance), not a System.Drawing.Color — the view paints CSS, and a serialized color type would add a dependency the page does not need.
The Path is the filing index chain of this node, one integer per level from the root. The view uses it to locate the node in the tree for the centroid join with the building dot positions.
The Count is the number of buildings filed under this node (issue #24). A bucket node counts its own reference set - every row that matched it, including rows that resolved to no bucket at a lower level - so a parent's count can exceed the sum of its children's counts; the root, which the solver never files references on, counts the sum of its children. Every building the count includes is listed in the flat building list under this node or one below it, so the count always equals the buildings the view can show for the node.
public class TypologyTreeNodeViewModelInheritance System.Object → TypologyTreeNodeViewModel
Initializes a new instance of the TypologyTreeNodeViewModel class.
public TypologyTreeNodeViewModel();TypologyTreeNodeViewModel(string, string, string, List<int>, int, List<TypologyTreeNodeViewModel>) Constructor
Initializes a new instance of the TypologyTreeNodeViewModel class.
public TypologyTreeNodeViewModel(string? name, string? description, string? color, System.Collections.Generic.List<int> path, int count, System.Collections.Generic.List<DiGi.GIS.WebAPI.UI.ViewModels.TypologyTreeNodeViewModel>? children);name System.String
The bucket name, as the solver named it.
description System.String
The bucket description, or null when the column carries none.
color System.String
The bucket color as a CSS hex string, or null when the rule maps none for this bucket.
path System.Collections.Generic.List<System.Int32>
The typology path, one filing index per level from the root.
count System.Int32
The number of buildings filed under this node.
children System.Collections.Generic.List<TypologyTreeNodeViewModel>
The sub-typology nodes in ascending bucket value, or null when this node is a leaf.
Gets the sub-typology nodes in ascending bucket value - a range by its Min, a unique value by the value itself - or null when this node is a leaf.
public System.Collections.Generic.List<DiGi.GIS.WebAPI.UI.ViewModels.TypologyTreeNodeViewModel>? Children { get; set; }System.Collections.Generic.List<TypologyTreeNodeViewModel>
Gets the bucket color as a CSS hex string (#rrggbb), or null when the rule maps no appearance for this bucket.
public string? Color { get; set; }Gets the number of buildings filed under this node: a bucket's own reference set (every row that matched it, including rows dropped at a lower level, so a parent can exceed the sum of its children), or the sum of the children for the root.
public int Count { get; set; }Gets the bucket description, the column's description when the column carries one.
public string? Description { get; set; }Gets the bucket name, as the solver named it: the level's column name and the rule data's text.
public string? Name { get; set; }Gets the typology path, one filing index per level from the root.
public System.Collections.Generic.List<int> Path { get; set; }System.Collections.Generic.List<System.Int32>
Represents the administrative-area context the Typology Load modal redirected with: the area the colour-coded building typology is solved for, shown in the Administrative Area card of the area view.
public class TypologyViewViewModelInheritance System.Object → TypologyViewViewModel
Initializes a new instance of the TypologyViewViewModel class.
public TypologyViewViewModel();Initializes a new instance of the TypologyViewViewModel class from the query context of the Load modal redirect.
public TypologyViewViewModel(int id, string? code, DiGi.GIS.PostgreSQL.Enums.AdministrativeArealType administrativeArealType, string? name);id System.Int32
The unique identifier of the administrative area.
code System.String
The code of the administrative area.
administrativeArealType DiGi.GIS.PostgreSQL.Enums.AdministrativeArealType
The type of the administrative area.
name System.String
The name of the administrative area, or null when it could not be read.
Gets the type of the administrative area.
public DiGi.GIS.PostgreSQL.Enums.AdministrativeArealType AdministrativeArealType { get; }DiGi.GIS.PostgreSQL.Enums.AdministrativeArealType
Gets the display name of the administrative area type.
public string AdministrativeArealTypeName { get; }Gets the code of the administrative area.
public string? Code { get; }Gets the unique identifier of the administrative area.
public int Id { get; }Gets the name of the administrative area, read from the GIS Web API by the area identifier, or null when the lookup answered nothing - the page then shows the context it carries on the query alone.
public string? Name { get; }Represents a view model that associates a 2D building reference with its corresponding year built data.
public class YearBuiltDataViewModelInheritance System.Object → YearBuiltDataViewModel
Initializes a new instance of the YearBuiltDataViewModel class.
public YearBuiltDataViewModel();Initializes a new instance of the YearBuiltDataViewModel class with specified building reference and year built data.
public YearBuiltDataViewModel(DiGi.GIS.PostgreSQL.Classes.Building2DReference? building2DReference, DiGi.GIS.Interfaces.IYearBuiltData? yearBuiltData);building2DReference DiGi.GIS.PostgreSQL.Classes.Building2DReference
The reference to the 2D building.
yearBuiltData DiGi.GIS.Interfaces.IYearBuiltData
The year built data associated with the building.
Gets the reference to the 2D building.
public DiGi.GIS.PostgreSQL.Classes.Building2DReference? Building2DReference { get; }DiGi.GIS.PostgreSQL.Classes.Building2DReference
Gets the year built data associated with the building.
public DiGi.GIS.Interfaces.IYearBuiltData? YearBuiltData { get; }