StandardTrajectoryFeature(Cursor cursor) { super(ft.getFeatureName(cursor), -1); this.cursor = cursor; }
StandardSectionFeature(Cursor cursor) { super(ft.getFeatureName(cursor)); this.cursor = cursor; }
StandardTrajectoryFeature(Cursor cursor, StructureData trajData) { super(ft.getFeatureName(cursor), StandardTrajectoryCollectionImpl.this.getTimeUnit(), StandardTrajectoryCollectionImpl.this.getAltUnits(), -1); this.cursor = cursor; this.trajData = trajData; }
StandardSectionFeature(Cursor cursor, StructureData sectionData) { super(ft.getFeatureName(cursor), StandardSectionCollectionImpl.this.getTimeUnit(), StandardSectionCollectionImpl.this.getAltUnits()); this.cursor = cursor; this.sectionData = sectionData; }
StandardTrajectoryFeature(Cursor cursor, StructureData trajData) { super(ft.getFeatureName(cursor), StandardTrajectoryCollectionImpl.this.getTimeUnit(), StandardTrajectoryCollectionImpl.this.getAltUnits(), -1); this.cursor = cursor; this.trajData = trajData; }
StandardSectionFeature(Cursor cursor, StructureData sectionData) { super(ft.getFeatureName(cursor), StandardSectionCollectionImpl.this.getTimeUnit(), StandardSectionCollectionImpl.this.getAltUnits()); this.cursor = cursor; this.sectionData = sectionData; }
StandardProfileFeature( Cursor cursor, double time) { super( ft.getFeatureName(cursor), ft.getLatitude(cursor), ft.getLongitude(cursor), time, -1); this.cursor = cursor; if (name.equalsIgnoreCase("unknown")) name = timeUnit.makeStandardDateString(time); // use time as the name if (Double.isNaN(time)) { // gotta read an obs to get the time try { PointFeatureIterator iter = getPointFeatureIterator(-1); if (iter.hasNext()) { PointFeature pf = iter.next(); this.time = pf.getObservationTime(); this.name = timeUnit.makeStandardDateString(this.time); } else { this.name = "empty"; } } catch (IOException e) { e.printStackTrace(); } } }
StandardProfileFeature( Cursor cursor, double time, StructureData profileData) { super( ft.getFeatureName(cursor), StandardProfileCollectionImpl.this.getTimeUnit(), StandardProfileCollectionImpl.this.getAltUnits(), ft.getLatitude(cursor), ft.getLongitude(cursor), time, -1); this.cursor = cursor; this.profileData = profileData; if (name.equalsIgnoreCase("unknown")) name = timeUnit.makeStandardDateString(time); // use time as the name if (Double.isNaN(time)) { // gotta read an obs to get the time try { PointFeatureIterator iter = getPointFeatureIterator(-1); if (iter.hasNext()) { PointFeature pf = iter.next(); this.time = pf.getObservationTime(); if (name == null) this.name = timeUnit.makeStandardDateString(this.time); } else { if (name == null) this.name = "empty"; } } catch (IOException e) { e.printStackTrace(); } } }
StandardSectionProfileFeature( Cursor cursor, double time, StructureData profileData) { super( ft.getFeatureName(cursor), StandardSectionCollectionImpl.this.getTimeUnit(), StandardSectionCollectionImpl.this.getAltUnits(), ft.getLatitude(cursor), ft.getLongitude(cursor), time, -1); /* StandardSectionProfileFeature(Cursor cursor, double time, StructureData profileData) { super( StandardSectionCollectionImpl.this.getTimeUnit().makeStandardDateString(time), StandardSectionCollectionImpl.this.getTimeUnit(), StandardSectionCollectionImpl.this.getAltUnits(), ft.getLatitude(cursor), ft.getLongitude(cursor), time, -1); */ this.cursor = cursor; this.profileData = profileData; if (Double.isNaN(time)) { // gotta read an obs to get the time try { PointFeatureIterator iter = getPointFeatureIterator(-1); if (iter.hasNext()) { PointFeature pf = iter.next(); this.time = pf.getObservationTime(); this.name = timeUnit.makeStandardDateString(this.time); } else { this.name = "empty"; } } catch (IOException e) { e.printStackTrace(); } } }
StandardSectionProfileFeature(Cursor cursor, double time, StructureData profileData) { super(ft.getFeatureName(cursor), StandardSectionCollectionImpl.this.getTimeUnit(), StandardSectionCollectionImpl.this.getAltUnits(), ft.getLatitude(cursor), ft.getLongitude(cursor), time, -1); this.cursor = cursor; this.profileData = profileData; if (Double.isNaN(time)) { // gotta read an obs to get the time try { PointFeatureIterator iter = getPointFeatureIterator(); if (iter.hasNext()) { PointFeature pf = iter.next(); this.time = pf.getObservationTime(); this.name = timeUnit.makeCalendarDate(this.time).toString(); } else { this.name = "empty"; } } catch (IOException e) { e.printStackTrace(); } } }
StandardProfileFeature(Cursor cursor, double time, StructureData profileData) { super(ft.getFeatureName(cursor), StandardProfileCollectionImpl.this.getTimeUnit(), StandardProfileCollectionImpl.this.getAltUnits(), ft.getLatitude(cursor), ft.getLongitude(cursor), time, -1); this.cursor = cursor; this.profileData = profileData; if (name.equalsIgnoreCase("unknown")) name = timeUnit.makeCalendarDate(time).toString(); // use time as the name if (Double.isNaN(time)) { // gotta read an obs to get the time try { PointFeatureIterator iter = getPointFeatureIterator(); if (iter.hasNext()) { PointFeature pf = iter.next(); this.time = pf.getObservationTime(); if (name == null) this.name = timeUnit.makeCalendarDate(this.time).toString(); } else { if (name == null) this.name = "empty"; getInfo().nfeatures = 0; } } catch (IOException e) { e.printStackTrace(); } } }