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