PointBuilder.fromSpatialReference constructor
- SpatialReference? spatialReference
Creates an empty point builder with the specified SpatialReference.
The SpatialReference cannot be changed after instantiation.
Parameters:
spatialReference
— The builder's spatial reference.
Implementation
factory PointBuilder.fromSpatialReference(
SpatialReference? spatialReference) {
_initializeArcGISEnvironmentIfNeeded();
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_PointBuilder_createFromSpatialReference(
spatialReference?._handle ?? ffi.nullptr, errorHandler);
});
final PointBuilder object = PointBuilder._withHandle(handle);
object._spatialReference.cache(spatialReference);
return object;
}