public SimpleFeatureType inline( ImportTask task, DataStore dataStore, SimpleFeatureType featureType) throws Exception { for (InlineVectorTransform tx : filter(transforms, InlineVectorTransform.class)) { try { tx.init(); featureType = tx.apply(task, dataStore, featureType); } catch (Exception e) { error(tx, e); } } return featureType; }
public SimpleFeature inline(ImportTask task, DataStore dataStore, SimpleFeature oldFeature, SimpleFeature feature) throws Exception { for (InlineVectorTransform tx : filter(transforms, InlineVectorTransform.class)) { try { feature = tx.apply(task, dataStore, oldFeature, feature); if (feature == null) { break; } } catch (Exception e) { error(tx, e); } } return feature; }
public SimpleFeature inline( ImportTask task, DataStore dataStore, SimpleFeature oldFeature, SimpleFeature feature) throws Exception { for (InlineVectorTransform tx : filter(transforms, InlineVectorTransform.class)) { try { feature = tx.apply(task, dataStore, oldFeature, feature); if (feature == null) { break; } } catch (Exception e) { error(tx, e); } } return feature; } }
public SimpleFeatureType inline(ImportTask task, DataStore dataStore, SimpleFeatureType featureType) throws Exception { for (InlineVectorTransform tx : filter(transforms, InlineVectorTransform.class)) { try { tx.init(); featureType = tx.apply(task, dataStore, featureType); } catch (Exception e) { error(tx, e); } } return featureType; }
private SimpleFeature transformType( InlineVectorTransform transform, SimpleFeatureType type, Object... values) throws Exception { transform.init(); SimpleFeatureBuilder sfb = new SimpleFeatureBuilder(type); SimpleFeature orig = sfb.buildFeature("x22", values); ImportTask task = new ImportTask(); SimpleFeatureType newType; if (transform instanceof ReprojectTransform) { // ReprojectTransform does stuff with task newType = type; } else { newType = transform.apply(task, null, type); } sfb = new SimpleFeatureBuilder(newType); SimpleFeature neu = sfb.buildFeature("z19", values); transform.apply(task, null, orig, neu); return neu; }