@Override public void resetIteration() throws IOException { localIterator = getPointFeatureIterator(); } }
public PointCollectionSubset(PointCollectionImpl from, LatLonRect filter_bb, CalendarDateRange filter_date) { super(from.name, from.getTimeUnit(), from.getAltUnits()); this.from = from; this.filter_bb = filter_bb; this.filter_date = filter_date; }
public void calcBounds() throws java.io.IOException { if ((dateRange != null) && (boundingBox != null) && (size() > 0)) return; PointFeatureIterator iter = getPointFeatureIterator(-1); iter.setCalculateBounds(this); try { while (iter.hasNext()) iter.next(); } finally { iter.finish(); } }
@Override public boolean hasNext() throws IOException { if (localIterator == null) resetIteration(); return localIterator.hasNext(); }
StandardPointFeatureIterator(PointCollectionImpl dsg, NestedTable ft, CalendarDateUnit timeUnit, ucar.ma2.StructureDataIterator structIter, Cursor cursor) throws IOException { super(structIter, null); this.collectionDsg = dsg; this.ft = ft; this.timeUnit = timeUnit; this.cursor = cursor; CollectionInfo info = dsg.getInfo(); if (!info.isComplete()) setCalculateBounds(info); }
public void calcBounds() throws java.io.IOException { if ((dateRange != null) && (boundingBox != null) && (size() > 0)) return; PointFeatureIterator iter = getPointFeatureIterator(-1); iter.setCalculateBounds(this); try { while (iter.hasNext()) iter.next(); } finally { iter.finish(); } }
public boolean hasNext() throws IOException { if (localIterator == null) resetIteration(); return localIterator.hasNext(); }
public void resetIteration() throws IOException { localIterator = getPointFeatureIterator(-1); }
public PointCollectionSubset(PointCollectionImpl from, LatLonRect filter_bb, CalendarDateRange filter_date) { super(from.name, from.getTimeUnit(), from.getAltUnits()); this.from = from; if (filter_bb == null) this.boundingBox = from.boundingBox; else this.boundingBox = (from.boundingBox == null) ? filter_bb : from.boundingBox.intersect(filter_bb); if (filter_date == null) { this.dateRange = from.dateRange; } else { this.dateRange = (from.dateRange == null) ? filter_date : from.dateRange.intersect(filter_date); } }
public boolean hasNext() throws IOException { if (localIterator == null) resetIteration(); return localIterator.hasNext(); }
public void resetIteration() throws IOException { localIterator = getPointFeatureIterator(-1); }
@Override public Iterator<PointFeature> iterator() { try { return getPointFeatureIterator(); } catch (IOException e) { throw new RuntimeException(e); } }
@Override public PointFeatureIterator getPointFeatureIterator() throws IOException { return new PointIteratorFiltered(from.getPointFeatureIterator(), filter_bb, filter_date); } }
public PointFeatureIterator getPointFeatureIterator(int bufferSize) throws IOException { return new PointIteratorFiltered(from.getPointFeatureIterator(bufferSize), this.boundingBox, this.dateRange); } }
public PointFeatureIterator getPointFeatureIterator(int bufferSize) throws IOException { return new PointIteratorFiltered(from.getPointFeatureIterator(bufferSize), this.boundingBox, this.dateRange); } }