StationFeatureSubset(StationFeatureImpl from, CalendarDateRange filter_date) { super(from.s, from.timeUnit, -1); this.from = from; if (filter_date == null) { this.dateRange = from.dateRange; } else { this.dateRange = (from.dateRange == null) ? filter_date : from.dateRange.intersect(filter_date); } }
public PointCollectionSubset(PointCollectionImpl from, LatLonRect filter_bb, CalendarDateRange filter_date) { super(from.name); 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); } }
protected PointDatasetImpl(PointDatasetImpl from, LatLonRect filter_bb, CalendarDateRange filter_date) { super(from); this.collectionList = from.collectionList; this.featureType = from.featureType; 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); } }
protected PointDatasetImpl(PointDatasetImpl from, LatLonRect filter_bb, CalendarDateRange filter_date) { super(from); this.collectionList = from.collectionList; this.featureType = from.featureType; 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); } }
protected PointDatasetImpl(PointDatasetImpl from, LatLonRect filter_bb, CalendarDateRange filter_date) { super(from); this.collectionList = from.collectionList; this.featureType = from.featureType; 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 StationFeatureSubset(StationTimeSeriesFeatureImpl from, CalendarDateRange filter_date) { super(from.s, from.getTimeUnit(), from.getAltUnits(), -1); this.from = from; if (filter_date == null) { this.dateRange = from.dateRange; } else { this.dateRange = (from.dateRange == null) ? filter_date : from.dateRange.intersect(filter_date); } }
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); } }
RemoteStationCollectionSubset(RemoteStationCollection from, StationHelper sh, LatLonRect filter_bb, CalendarDateRange filter_date) throws IOException { super(from.uri, sh); this.from = from; if (filter_bb == null) this.boundingBoxSubset = from.getBoundingBox(); else this.boundingBoxSubset = (from.getBoundingBox() == null) ? filter_bb : from.getBoundingBox().intersect(filter_bb); if (filter_date == null) { this.dateRangeSubset = from.dateRangeSubset; } else { this.dateRangeSubset = (from.dateRangeSubset == null) ? filter_date : from.dateRangeSubset.intersect(filter_date); } }
Subset(StationCollectionStream from, LatLonRect filter_bb, CalendarDateRange filter_date) throws IOException { super(from.uri, from.getTimeUnit(), from.getAltUnits()); this.from = from; if (filter_bb == null) this.boundingBoxSubset = from.getBoundingBox(); else this.boundingBoxSubset = (from.getBoundingBox() == null) ? filter_bb : from.getBoundingBox().intersect(filter_bb); if (filter_date == null) { this.dateRangeSubset = from.dateRangeSubset; } else { this.dateRangeSubset = (from.dateRangeSubset == null) ? filter_date : from.dateRangeSubset.intersect(filter_date); } }
RemoteStationCollectionSubset(RemoteStationCollection from, LatLonRect filter_bb, CalendarDateRange filter_date) throws IOException { super(from.uri, from.getTimeUnit(), from.getAltUnits()); this.from = from; if (filter_bb == null) this.boundingBoxSubset = from.getBoundingBox(); else this.boundingBoxSubset = (from.getBoundingBox() == null) ? filter_bb : from.getBoundingBox().intersect(filter_bb); if (filter_date == null) { this.dateRangeSubset = from.dateRangeSubset; } else { this.dateRangeSubset = (from.dateRangeSubset == null) ? filter_date : from.dateRangeSubset.intersect(filter_date); } }
PointFeatureCollectionSubset(RemotePointCollection from, LatLonRect filter_bb, CalendarDateRange filter_date) throws IOException { super(from.uri, null); this.from = from; if (filter_bb == null) this.boundingBox = from.getBoundingBox(); else this.boundingBox = (from.getBoundingBox() == null) ? filter_bb : from.getBoundingBox().intersect(filter_bb); if (filter_date == null) { this.dateRange = from.getCalendarDateRange(); } else { this.dateRange = (from.getDateRange() == null) ? filter_date : from.getCalendarDateRange().intersect(filter_date); } } }
PointFeatureCollectionSubset(RemotePointCollection from, LatLonRect filter_bb, CalendarDateRange filter_date) throws IOException { super(from.uri, RemotePointCollection.this.getTimeUnit(), RemotePointCollection.this.getAltUnits(), null); if (filter_bb == null) this.boundingBox = from.getBoundingBox(); else this.boundingBox = (from.getBoundingBox() == null) ? filter_bb : from.getBoundingBox().intersect(filter_bb); if (filter_date == null) { this.dateRange = from.getCalendarDateRange(); } else { this.dateRange = (from.getDateRange() == null) ? filter_date : from.getCalendarDateRange().intersect(filter_date); } } }