createFeature

Creates a new empty feature. The new feature is only available in memory at this point. Execute FeatureTable.addFeature to commit the new Feature to the table.

Return

A Feature.

Since

200.1.0

Throws

if the feature table is not loaded.


fun createFeature(attributes: Map<String, Any?>, geometry: Geometry?): Feature

Creates a new feature with the provided attribute values and, optionally, geometry. The new feature is only available in memory at this point. Execute FeatureTable.addFeature to commit the new Feature to the table.

Return

A Feature.

Since

200.1.0

Parameters

attributes

The attributes.

geometry

The geometry.

Throws

if the feature table is not loaded.