geometry property

  1. @override
Geometry? geometry
override

The geometry defines the shape and location of the GeoElement.

Implementation

@override
Geometry? get geometry {
  final objectHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_Feature_getGeometry(_handle, errorHandler);
  });
  return Geometry._fromHandle(objectHandle);
}
  1. @override
void geometry=(Geometry? value)
override

Implementation

@override
set geometry(Geometry? value) {
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_Feature_setGeometry(
        _handle, value?._handle ?? ffi.nullptr, errorHandler);
  });
}