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 void testFeatureType() throws Exception { SimpleFeatureType result = kmlPlacemarkTransform.convertFeatureType(origType); assertBinding(result, "LookAt", Point.class); assertBinding(result, "Region", LinearRing.class); assertBinding(result, "Folder", String.class); }
@Override public SimpleFeatureType apply(ImportTask task, DataStore dataStore, SimpleFeatureType featureType) throws Exception { return convertFeatureType(featureType); }
@Override public SimpleFeature apply( ImportTask task, DataStore dataStore, SimpleFeature oldFeature, SimpleFeature feature) throws Exception { SimpleFeatureType targetFeatureType = feature.getFeatureType(); SimpleFeature newFeature = convertFeature(oldFeature, targetFeatureType); feature.setAttributes(newFeature.getAttributes()); return feature; } }
private SimpleFeature transform(InlineVectorTransform transform, Object... values) throws Exception { Object[] args = new Object[values.length / 3]; for (int i = 0; i < values.length; i += 3) { args[i] = values[i + 2]; } return transformType(transform, buildType(values), args); }
public AttributeComputeTransform(String field, Class type, String cql) throws CQLException { this.field = field; this.type = type; setCql(cql); }
public PostScriptTransform(String name, List<String> options) { super(options); this.name = name; // force validation since there is no setter for name getExecutable(); }
@Override protected File getExecutable() throws IOException { return getExecutableFromPath("gdal_translate"); }
@Override protected File getExecutable() throws IOException { return getExecutableFromPath("gdalwarp"); }
@Override protected File getExecutable() throws IOException { return getExecutableFromPath("gdaladdo"); }
@Override public void write(byte[] bts) throws IOException { if (getByteCount() > maxSize) { return; } super.write(bts); }
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; } }
@Override public SimpleFeatureType apply( ImportTask task, DataStore dataStore, SimpleFeatureType featureType) throws Exception { return convertFeatureType(featureType); }