MvtEmptyGeometry

The empty geometry.

Stands in for GeometryFactory.createGeometryCollection(new Geometry[0]), which the previous decoder returned for UNKNOWN geometry types and for features whose commands produced nothing. Renderers reach this through their when fall-through and skip it; a shared instance avoids allocating one per degenerate feature.

Properties

Link copied to clipboard
open override val envelopeInternal: MvtEnvelope

Cached like JTS cached its own; hit-testing calls this per feature on every tap.

Link copied to clipboard
open override val isEmpty: Boolean

True when this geometry carries no coordinates.

Link copied to clipboard
open override val numGeometries: Int

1 for a single geometry, the child count for a multi-geometry, 0 for the empty one.

Functions

Link copied to clipboard
open override fun getGeometryN(n: Int): MvtGeometry

Mirrors Geometry.getGeometryN: returns this for single geometries.