public FeatureType getFirstFeatureType() { for (NestedTable nt : leaves) { if (nt.hasCoords()) return nt.getFeatureType(); } return null; }
public FeatureType getFirstFeatureType() { for (NestedTable nt : leaves) { if (nt.hasCoords()) return nt.getFeatureType(); } return null; }
public FeatureType getFirstFeatureType() { for (NestedTable nt : leaves) { if (nt.hasCoords()) return nt.getFeatureType(); } return null; }
public boolean featureTypeOk(FeatureType ftype, Formatter errlog) { for (NestedTable nt : leaves) { if (!nt.hasCoords()) errlog.format("Table %s featureType %s: lat/lon/time coord not found%n", nt.getName(), nt.getFeatureType()); if (!FeatureDatasetFactoryManager.featureTypeOk(ftype, nt.getFeatureType())) errlog.format("Table %s featureType %s doesnt match desired type %s%n", nt.getName(), nt.getFeatureType(), ftype); if (nt.hasCoords() && FeatureDatasetFactoryManager.featureTypeOk(ftype, nt.getFeatureType())) return true; } return false; }
public boolean featureTypeOk(FeatureType ftype, Formatter errlog) { for (NestedTable nt : leaves) { if (!nt.hasCoords()) errlog.format("Table %s featureType %s: lat/lon/time coord not found%n", nt.getName(), nt.getFeatureType()); if (!FeatureDatasetFactoryManager.featureTypeOk(ftype, nt.getFeatureType())) errlog.format("Table %s featureType %s doesnt match desired type %s%n", nt.getName(), nt.getFeatureType(), ftype); if (nt.hasCoords() && FeatureDatasetFactoryManager.featureTypeOk(ftype, nt.getFeatureType())) return true; } return false; }
public boolean featureTypeOk(FeatureType ftype, Formatter errlog) { for (NestedTable nt : leaves) { if (!nt.hasCoords()) { errlog.format("Table %s featureType %s: lat/lon/time coord not found%n", nt.getName(), nt.getFeatureType()); try { writeConfigXML(errlog); } catch (IOException e) { log.error("featuretypeOk", e); } } if (!FeatureDatasetFactoryManager.featureTypeOk(ftype, nt.getFeatureType())) errlog.format("Table %s featureType %s doesnt match desired type %s%n", nt.getName(), nt.getFeatureType(), ftype); if (nt.hasCoords() && FeatureDatasetFactoryManager.featureTypeOk(ftype, nt.getFeatureType())) return true; } return false; }