GeoJsonBulkFeatureSource

BulkFeatureSource over a static GeoJSON document. Parses text on each fetchAll call and emits one CachedFeatureRow per Feature in document order. Accepts the GeoJSON top-level shapes (FeatureCollection, Feature, bare Geometry, GeometryCollection); see parseGeoJsonAsFeatureRows for the flattening contract.

Compose with earth.worldwind.layer.cache.CachedBulkFeatureSource to persist rows to a GeoPackage feature store across launches: CachedBulkFeatureSource(GeoJsonBulkFeatureSource(text), store) — useful for .geojson files that should survive across launches without reparsing on every load.

Constructors

Link copied to clipboard
constructor(text: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open 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.