}
private FeatureCollection createFeatureCollection(Collection<OsmPrimitive> prims) {
FeatureDataset dataset = new FeatureDataset(createSchema(prims));
//TODO: use factory instead of passing converter
JTSConverter converter = new JTSConverter(true);
for (OsmPrimitive prim : prims) {
dataset.add(new OsmFeature(prim, converter));
}
return dataset;
}