Data model for use in spatial algorithms