ShapefileBulkFeatureSource

BulkFeatureSource for ESRI Shapefiles. Downloads the .shp/.dbf/.prj/.cpg quartet from shpUrl (sidecars derived by extension), parses every record through ShapefileLayerFactory, and emits one CachedFeatureRow per record with the geometry extracted as a CachedGeometry and the DBF attributes encoded as a JSON object string.

MultiPatch records produce TriangleMesh renderables on the factory path — those are dropped here because CachedGeometry has no triangle-index model. Use a non-cached source if you need MultiPatch.

Constructors

Link copied to clipboard
constructor(shpUrl: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun close()

Release any resources held by the source (HTTP client, etc.). Idempotent default no-op.

Link copied to clipboard
open suspend override fun fetchAll(): Flow<CachedFeatureRow>
Link copied to clipboard
open suspend fun readBySector(sector: Sector): Flow<CachedFeatureRow>

Read only the rows intersecting sector. The default ignores sector and returns fetchAll — a plain network source has no spatial index. A cache-backed source overrides it to serve viewport reads from a spatially-indexed store.