'Returns a string containing the reason for any invalidity.'

@property
def valid_reason(self):

    if (not GEOS_PREPARE):
        raise GEOSException(u'Upgrade    GEOS    to    3.1    to    get    validity    reason.')
    return capi.geos_isvalidreason(self.ptr).decode()
