chap 2 of asdar book. SpatialPoints