@Override public void getDetailInfo(java.util.Formatter sf) { super.getDetailInfo(sf); int count = 0; for (DsgFeatureCollection pfc : collectionList) { sf.format("%nPointFeatureCollection %d %n", count); sf.format(" %s %s %n", pfc.getCollectionFeatureType(), pfc.getName()); sf.format(" npts = %d %n", pfc.size()); /* List<Variable> extra = pfc.getExtraVariables(); if (extra.size() > 0) { sf.format(" extra variables = "); for (Variable v : extra) sf.format("%s,", v.getNameAndDimensions()); sf.format("%n"); } */ sf.format(" timeUnit = %s %n", pfc.getTimeUnit()); sf.format(" altUnit = %s %n", pfc.getAltUnits()); count++; } }
static void checkDsgFeatureCollection( DsgFeatureCollection dsg) throws IOException { String what = dsg.getClass().getName(); Assert.assertNotNull(what + " name", dsg.getName()); Assert.assertNotNull(what + " featureTYpe", dsg.getCollectionFeatureType()); Assert.assertNotNull(what + " timeUnit", dsg.getTimeUnit()); // Assert.assertNotNull(what + " altUnits", dsg.getAltUnits()); // Assert.assertNotNull(what + " extraVars", dsg.getExtraVariables()); }
DsgFeatureCollection fc = fdp.getPointFeatureCollectionList().get(0); Assert.assertNotNull("FeatureCollection", fc); Assert.assertEquals(FeatureType.STATION, fc.getCollectionFeatureType());