createFromGeometryTypeAndSpatialReference static method
- {required GeometryType geometryType,
- required SpatialReference? spatialReference}
Creates an empty geometry builder which builds geometries of the specified GeometryType.
Parameters:
geometryType
— The builder's geometry type.spatialReference
— The builder's spatial reference.
Return Value: A new geometry builder.
Implementation
static GeometryBuilder createFromGeometryTypeAndSpatialReference(
{required GeometryType geometryType,
required SpatialReference? spatialReference}) {
_initializeArcGISEnvironmentIfNeeded();
final objectHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore
.RT_GeometryBuilder_createFromGeometryTypeAndSpatialReference(
geometryType.coreValue,
spatialReference?._handle ?? ffi.nullptr,
errorHandler);
});
return GeometryBuilder._fromHandle(objectHandle)!;
}