Skip to content

Enum for dimensionality or topological dimension #220

@navispatial

Description

@navispatial

The new enum specified as:

/// An enum for *dimensionality* or *topological dimension* in the context of
/// geospatial applications.
enum Dimensionality {
  /// A dimensionality representing a *punctual* geometry (or position, point,
  /// vertex, node, marker etc.) with the topological dimension of `0`.
  punctual(0),

  /// A dimensionality representing a *linear* geometry (or chain, line string,
  /// polyline, path, curve etc.) with the topological dimension of `1`.
  linear(1),

  /// A dimensionality representing an *areal* geometry (or polygon, area,
  /// surface, box etc.) with the topological dimension of `2`.
  areal(2),

  /// A dimensionality representing a *volymetric* geometry (or tetrahedron,
  /// polyhedron, volyme, cube etc.) with the topological dimension of `3`.
  volymetric(3);

  const Dimensionality(this.topologicalDimension);

  /// The topological dimension (`0`: punctual, `1`: linear, `2`: areal,
  /// `3`: volymetric).
  final int topologicalDimension;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request🌐 geobaseRelated to the code package "geobase"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions