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