createWithZAndM

fun <T : Geometry> createWithZAndM(geometry: T, z: Double?, m: Double?): T

Return a copy of a geometry with the supplied z-coordinate and m-value. If the given geometry already has z-coordinates or m-values, they are replaced in the resulting geometry by the supplied values. The resulting geometry has both Geometry.getHasZ() and Geometry.getHasM() true. If the z-coordinate supplied is null, then the geometry's z-coordinate will be removed, and the resulting geometry has Geometry.hasZ false. If the m-value supplied is null, then the geometry's m-value will be removed, and the resulting geometry has Geometry.hasM false.

Supports true curves.

Return

A copy of the given geometry with its z-coordinates and m-values set to the supplied values.

Since

200.1.0

Parameters

geometry

The geometry from which to create the new geometry.

m

The m value for the new geometry or null if the new geometry should not have an m value.

z

The z value for the new geometry or null if the new geometry should not have a z value.