Class GeometryFactory
- Namespace
- SpatialNET
- Assembly
- SpatialNET.Core.dll
Global access to the default SpatialNET.IGeometryFactory (ADR 0004).
public static class GeometryFactoryInheritance
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
Methods
Resolve(IGeometryFactory?)
Returns factory or, if null, SpatialNET.GeometryFactory.Default.
public static IGeometryFactory Resolve(IGeometryFactory? factory)Parameters
factoryIGeometryFactory?-
The explicitly passed factory or
null.
Returns
Exceptions
- InvalidOperationException
-
Neither
factorynor SpatialNET.GeometryFactory.Default is set.