Geometry DropZs( Geometry geometry, bool allowNonZGeometry )
Overloads Function DropZs( _ ByVal geometry As Geometry, _ ByVal allowNonZGeometry As Boolean _ ) As Geometry
Parameters
- geometry
- The input geometry.
- allowNonZGeometry
- If true, then a new geometry is returned with the Geometry.HasZ property set to true no matter if the input geometry has the property set to true or not. If false and the geometry Geometry.HasZ property is false, then an exception will be thrown.
Return Value
The geometry with the Z-values set to NaN. If the geometry is empty and the Geometry.HasZ property is true, then the input geometry is returned unchanged. Otherwise, if allowNonZGeometry is true, a new geometry is returned with the Geometry.HasZ property set to true.