@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 checkInfo( DsgFeatureCollection dsg) throws IOException { Assert.assertNotNull(dsg.getBoundingBox()); Assert.assertNotNull(dsg.getCalendarDateRange()); Assert.assertNotNull(dsg.size() > 0); }