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. The keys of this map will be treated as case insensitive.

geometry

The geometry.

Throws

Throws an IllegalStateException error if the FeatureTable is not loaded.