public boolean filter(NestedPointFeatureCollection pointFeatureCollection) { StationProfileFeature stationFeature = (StationProfileFeature) pointFeatureCollection; return stationHelper.getStation(stationFeature.getName()) != null; } }
public boolean filter(NestedPointFeatureCollection pointFeatureCollection) { StationProfileFeature stationFeature = (StationProfileFeature) pointFeatureCollection; return getStationHelper().getStation(stationFeature.getName()) != null; } }
@Override public boolean filter(PointFeatureCC pointFeatureCollection) { StationProfileFeature stationFeature = (StationProfileFeature) pointFeatureCollection; return getStationHelper().getStation(stationFeature.getName()) != null; } }
public int writeProfile (StationProfileFeature spf, ProfileFeature profile) throws IOException { int count = 0; for (PointFeature pf : profile) { if (!headerDone) { if (id_strlen == 0) id_strlen = profile.getName().length() * 2; writeHeader(spf, profile, pf); headerDone = true; } writeObsData(pf); count++; } Integer stnIndex = stationIndexMap.get(spf.getName()); if (stnIndex == null) { System.out.printf("BAD station %s%n", spf.getName()); } else { writeProfileData(stnIndex, profile, count); } return count; }
public int writeProfile (StationProfileFeature spf, ProfileFeature profile) throws IOException { profile.resetIteration(); int count = 0; while (profile.hasNext()) { PointFeature pf = profile.next(); if (!headerDone) { if (id_strlen == 0) id_strlen = profile.getName().length() * 2; writeHeader(spf, profile, pf); headerDone = true; } writeObsData(pf); count++; } Integer stnIndex = stationIndexMap.get(spf.getName()); if (stnIndex == null) { System.out.printf("BAD station %s%n", spf.getName()); } else { writeProfileData(stnIndex, profile, count); } return count; }
int countProfiles = 0; for (StationProfileFeature spf : fc) { name_strlen = Math.max(name_strlen, spf.getName().length()); if (spf.size() >= 0) countProfiles += spf.size();
while (fc.hasNext()) { StationProfileFeature spf = fc.next(); name_strlen = Math.max(name_strlen, spf.getName().length()); if (spf.size() >= 0) countProfiles += spf.size();