geometryType property

GeometryType geometryType

The type of geometry to be used by features in the table.

The default geometry type is GeometryType.unknown and represents a non-spatial table. When setting a known geometry type, the spatial reference also needs to be specified via the TableDescription.spatialReference property.

Implementation

GeometryType get geometryType {
  final coreValue = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_TableDescription_getGeometryType(
      _handle,
      errorHandler,
    );
  });
  return GeometryType._fromCoreValue(
    coreValue,
  );
}
void geometryType=(GeometryType value)

Implementation

set geometryType(GeometryType value) {
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_TableDescription_setGeometryType(
      _handle,
      value.coreValue,
      errorHandler,
    );
  });
}