Extracting information from spatial datasets