Utilities for dealing with vector data