}
public void testAnalysis2(String osm, int years, int days) throws IOException {
SpatialDatabaseService spatial = new SpatialDatabaseService(graphDb());
OSMLayer layer = (OSMLayer) spatial.getLayer(osm);
OSMDataset dataset = (OSMDataset) layer.getDataset();
Map<String, User> userIndex = new HashMap<String, User>();
long latestTimestamp = 0L;
long firstTimestamp = Long.MAX_VALUE;
for (Node cNode : dataset.getAllChangesetNodes()) {
long timestamp = (Long) cNode.getProperty("timestamp", 0L);
Node userNode = dataset.getUser(cNode);
String name = (String) userNode.getProperty("name");
User user = userIndex.get(name);
if (user == null) {
user = new User(userNode.getId(), name);