toSimpleFeatureCollection

fun GeoDataFrame<*>.toSimpleFeatureCollection(name: String? = null, singleGeometryType: Boolean = false): SimpleFeatureCollection

Converts the GeoDataFrame to a SimpleFeatureCollection.

Return

A SimpleFeatureCollection representing the GeoDataFrame.

Parameters

name

Optional name for the SimpleFeatureCollection. Defaults to "geodata" if not specified.

singleGeometryType

Whether to enforce a single geometry type within the collection. Defaults to false.