public PointFeatureIterator getPointFeatureIterator(int bufferSize) throws IOException { Cursor cursorIter = cursor.copy(); StructureDataIterator siter = ft.getLeafFeatureDataIterator( cursorIter, bufferSize); StandardPointFeatureIterator iter = new StandardProfileFeatureIterator(ft, timeUnit, siter, cursorIter); if ((boundingBox == null) || (dateRange == null) || (npts < 0)) iter.setCalculateBounds(this); return iter; }
public PointFeatureIterator getPointFeatureIterator(int bufferSize) throws IOException { Cursor cursorIter = cursor.copy(); StructureDataIterator structIter = ft.getLeafFeatureDataIterator(cursorIter, bufferSize); StandardPointFeatureIterator iter = new StandardProfileFeatureIterator(ft, timeUnit, structIter, cursorIter); if ((boundingBox == null) || (dateRange == null) || (npts < 0)) iter.setCalculateBounds(this); return iter; }
@Override public PointFeatureCollection next() throws IOException { count++; PointFeatureCollection result = new StandardProfileFeature(station, getTimeUnit(), getAltUnits(), ft.getObsTime(cursor), cursor.copy(), profileData); prev = (DsgCollectionImpl) result; return result; }
public PointFeatureIterator getPointFeatureIterator(int bufferSize) throws IOException { Cursor cursor = new Cursor(ft.getNumberOfLevels()); cursor.recnum[1] = recnum; cursor.tableData[1] = stationData; cursor.currentIndex = 1; ft.addParentJoin(cursor); // there may be parent joins StructureDataIterator obsIter = ft.getLeafFeatureDataIterator(cursor, bufferSize); StandardPointFeatureIterator iter = new StandardPointFeatureIterator(ft, timeUnit, obsIter, cursor); if ((boundingBox == null) || (dateRange == null) || (npts < 0)) iter.setCalculateBounds(this); return iter; }
@Override protected PointFeature makeFeature(int recnum, StructureData sdata) throws IOException { cursor.recnum[0] = recnum; cursor.tableData[0] = sdata; // always in the first position cursor.currentIndex = 0; ft.addParentJoin(cursor); // there may be parent joins if (isMissing()) return null; // missing data double obsTime = ft.getObsTime( this.cursor); // must send a copy, since sdata is changing each time, and StandardPointFeature may be stored return new StandardPointFeature(cursor.copy(), timeUnit, obsTime); }
public PointFeatureIterator getPointFeatureIterator(int bufferSize) throws IOException { Cursor cursorIter = cursor.copy(); StructureDataIterator siter = ft.getLeafFeatureDataIterator( cursorIter, bufferSize); StandardPointFeatureIterator iter = new StandardPointFeatureIterator(ft, timeUnit, siter, cursorIter); if ((boundingBox == null) || (dateRange == null) || (npts < 0)) iter.setCalculateBounds(this); return iter; } }
public PointFeatureIterator getPointFeatureIterator(int bufferSize) throws IOException { Cursor cursorIter = cursor.copy(); StructureDataIterator siter = ft.getLeafFeatureDataIterator(cursorIter, bufferSize); StandardPointFeatureIterator iter = new StandardSectionProfileFeatureIterator(ft, timeUnit, siter, cursorIter); if ((boundingBox == null) || (dateRange == null) || (npts < 0)) iter.setCalculateBounds(this); return iter; }
public PointFeatureCollectionIterator getPointFeatureCollectionIterator(int bufferSize) throws IOException { Cursor cursor = new Cursor(ft.getNumberOfLevels()); cursor.recnum[2] = recnum; // the station record cursor.tableData[2] = stationData; // obs(leaf) = 0, profile=1, station(root)=2 cursor.currentIndex = 2; ft.addParentJoin(cursor); // there may be parent joins return new TimeSeriesOfProfileFeatureIterator(cursor); }
@Override public PointFeatureIterator getPointFeatureIterator() throws IOException { Cursor cursorIter = cursor.copy(); StructureDataIterator siter = ft.getLeafFeatureDataIterator(cursorIter); return new StandardPointFeatureIterator(this, ft, timeUnit, siter, cursorIter); }
@Override public PointFeatureIterator getPointFeatureIterator() throws IOException { Cursor cursorIter = cursor.copy(); StructureDataIterator siter = ft.getLeafFeatureDataIterator(cursorIter); return new PointIterator(ft, timeUnit, siter, cursorIter); }
@Override protected boolean isMissing() throws IOException { if (super.isMissing()) return true; // must also check for missing z values return ft.isAltMissing(this.cursor); } }
/** * Make a Station from the station data structure. * * @param stationData station data structure * @param recnum station data recnum within table * @return Station or null, skip this Station */ public StationTimeSeriesFeature makeStation(StructureData stationData, int recnum) { StationFeature s = ft.makeStation(stationData); if (s == null) return null; return new StandardStationFeatureImpl(s, timeUnit, stationData, recnum); }
@Override public PointFeatureIterator getPointFeatureIterator() throws IOException { Cursor cursor = new Cursor(ft.getNumberOfLevels()); cursor.recnum[1] = recnum; cursor.tableData[1] = stationData; cursor.currentIndex = 1; ft.addParentJoin(cursor); // there may be parent joins StructureDataIterator obsIter = ft.getLeafFeatureDataIterator(cursor); return new StandardPointFeatureIterator(this, ft, timeUnit, obsIter, cursor); }
protected PointFeature makeFeature(int recnum, StructureData sdata) throws IOException { cursor.recnum[0] = recnum; cursor.tableData[0] = sdata; // always in the first position cursor.currentIndex = 0; ft.addParentJoin(cursor); // there may be parent joins if (isMissing()) return null; // missing data double obsTime = ft.getObsTime( this.cursor); // must send a copy, since sdata is changing each time, and StandardPointFeature may be stored return new StandardPointFeature(cursor.copy(), timeUnit, obsTime); }
public PointFeatureIterator getPointFeatureIterator(int bufferSize) throws IOException { Cursor cursorIter = cursor.copy(); StructureDataIterator siter = ft.getLeafFeatureDataIterator( cursorIter, bufferSize); StandardPointFeatureIterator iter = new StandardProfileFeatureIterator(ft, timeUnit, siter, cursorIter); if ((boundingBox == null) || (dateRange == null) || (npts < 0)) iter.setCalculateBounds(this); return iter; }
public PointFeatureIterator getPointFeatureIterator(int bufferSize) throws IOException { Cursor cursorIter = cursor.copy(); StructureDataIterator structIter = ft.getLeafFeatureDataIterator(cursorIter, bufferSize); StandardPointFeatureIterator iter = new StandardProfileFeatureIterator(ft, timeUnit, structIter, cursorIter); if ((boundingBox == null) || (dateRange == null) || (npts < 0)) iter.setCalculateBounds(this); return iter; }
public PointFeatureIterator getPointFeatureIterator(int bufferSize) throws IOException { Cursor cursorIter = cursor.copy(); StructureDataIterator siter = ft.getLeafFeatureDataIterator(cursorIter, bufferSize); StandardPointFeatureIterator iter = new StandardSectionProfileFeatureIterator(ft, timeUnit, siter, cursorIter); if ((boundingBox == null) || (dateRange == null) || (npts < 0)) iter.setCalculateBounds(this); return iter; }
@Override protected boolean isMissing() throws IOException { if (super.isMissing()) return true; // must also check for missing z values return ft.isAltMissing(this.cursor); } }
@Override public PointFeatureIterator getPointFeatureIterator(int bufferSize) throws IOException { Cursor cursor = new Cursor(ft.getNumberOfLevels()); cursor.recnum[1] = recnum; cursor.tableData[1] = stationData; cursor.currentIndex = 1; ft.addParentJoin(cursor); // there may be parent joins StructureDataIterator obsIter = ft.getLeafFeatureDataIterator(cursor, bufferSize); StandardPointFeatureIterator iter = new StandardPointFeatureIterator(ft, timeUnit, obsIter, cursor); if ((boundingBox == null) || (dateRange == null) || (npts < 0)) iter.setCalculateBounds(this); return iter; }
protected PointFeature makeFeature(int recnum, StructureData sdata) throws IOException { cursor.recnum[0] = recnum; cursor.tableData[0] = sdata; // always in the first position cursor.currentIndex = 0; ft.addParentJoin(cursor); // there may be parent joins if (isMissing()) return null; // missing data double obsTime = ft.getObsTime( this.cursor); // must send a copy, since sdata is changing each time, and StandardPointFeature may be stored return new StandardPointFeature(cursor.copy(), timeUnit, obsTime); }