setUserData method

void setUserData(
  1. Object? userData
)

A simple scheme for applications to add their own custom data to a Geometry. An example use might be to add an object representing a Coordinate Reference System.

Note that user data objects are not present in geometries created by construction methods.

@param userData an object, the semantics for which are defined by the application using this Geometry

Implementation

void setUserData(Object? userData) {
  this.userData = userData;
}