args: geom, flags - Returns a valid_detail row stating if a geometry is valid, and if not a reason why and a location.