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,
  );
}
void geometry=(Geometry? value)

Implementation

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