Representing and storing geospatial data