static private org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(CompositeDatasetFactory.class);
static boolean debug = false;
static public FeatureDataset factory(String location, FeatureType wantFeatureType, DatasetCollectionManager dcm, Formatter errlog) throws IOException {
TimedCollection collection = new TimedCollection(dcm, errlog);
if (collection.getDatasets().size() == 0) {
throw new FileNotFoundException("Collection is empty; spec="+dcm);
}
if (wantFeatureType == FeatureType.ANY_POINT) {
TimedCollection.Dataset d = collection.getPrototype();
FeatureDatasetPoint proto = (FeatureDatasetPoint) FeatureDatasetFactoryManager.open(FeatureType.ANY_POINT, d.getLocation(), null, errlog);
wantFeatureType = proto.getFeatureType();
proto.close(); // LOOK - try to use
}