removeZ static method
- Geometry geometry
Return a copy of the given geometry with its z-coordinate removed.
If the given geometry has no z-values, the given geometry is returned. The resulting geometry has a Geometry.hasZ value of false.
Supports true curves.
Parameters:
geometry
— A geometry.
Return Value: A copy of the given geometry with its z-coordinates removed.
Implementation
static Geometry removeZ(
Geometry geometry,
) {
_initializeArcGISEnvironmentIfNeeded();
final objectHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_GeometryEngine_removeZ(
geometry._handle,
errorHandler,
);
});
return Geometry._fromHandle(
objectHandle,
)!;
}