'Sets the Z component of the Point.'

def set_z(self, value):

    if self.hasz:
        self._cs.setOrdinate(2, 0, value)
    else:
        raise GEOSException('Cannot    set    Z    on    2D    Point.')
