Table of Contents

Class S101VectorSource

Namespace
EncDotNet.S100.Datasets.S101
Assembly
EncDotNet.S100.Datasets.S101.dll

Adapts an S101Dataset to the pipeline's IVectorSource interface, projecting S-101 feature records into the generic feature model.

public sealed class S101VectorSource : IVectorSourceWithIndex, IVectorSource
Inheritance
S101VectorSource
Implements
Inherited Members
Extension Methods

Constructors

S101VectorSource(S101Dataset)

Creates a vector source over the given S-101 dataset. Resolved feature geometry and the spatial index are cached per dataset instance, so constructing several sources over the same dataset pays that cost only once.

public S101VectorSource(S101Dataset dataset)

Parameters

dataset S101Dataset

The parsed S-101 dataset to adapt.

Exceptions

ArgumentNullException

dataset is null.

Properties

Index

The persistent spatial index over this source's features. May be built lazily on first access; implementations must return the same instance for every call once built.

public IVectorSpatialIndex Index { get; }

Property Value

IVectorSpatialIndex

Metadata

Metadata available immediately after opening the dataset.

public VectorMetadata Metadata { get; }

Property Value

VectorMetadata

Remarks

The horizontal CRS is always EPSG:4326, and CompilationScaleDenominator is reported as 0.

Methods

GetFeatures(BoundingBox?)

Returns all features (when extent is null) or every feature whose geometry MBR overlaps extent. Extent queries are answered from the lazily-built spatial index (see Index); the whole-dataset case returns the cached feature list without touching the tree.

public IReadOnlyList<Feature> GetFeatures(BoundingBox? extent = null)

Parameters

extent BoundingBox

Returns

IReadOnlyList<Feature>