Table of Contents

Class GeometryFactory

Namespace
SpatialNET
Assembly
SpatialNET.Core.dll

Global access to the default SpatialNET.IGeometryFactory (ADR 0004).

public static class GeometryFactory

Inheritance

Inherited Members

Properties

Default

The factory that algorithms use when their factory parameter is null. Initially null; hosts, the reference implementation and the playground set it at startup.

public static IGeometryFactory? Default { get; set; }

Property Value

IGeometryFactory?

Methods

Resolve(IGeometryFactory?)

Returns factory or, if null, SpatialNET.GeometryFactory.Default.

public static IGeometryFactory Resolve(IGeometryFactory? factory)

Parameters

factory IGeometryFactory?

The explicitly passed factory or null.

Returns

IGeometryFactory

Exceptions

InvalidOperationException

Neither factory nor SpatialNET.GeometryFactory.Default is set.