public String getID() { return delegate.getID(); } }
public String getID() { return collection.getID(); }
/** * Used to stage content in memory. * * <p>Client code is encouraged to use DataUtilities.collection( collection ) * * @param collection SimpleFeatureCollection to copy into memory */ public DefaultFeatureCollection( FeatureCollection<SimpleFeatureType, SimpleFeature> collection) { this(collection.getID(), collection.getSchema()); addAll(collection); }
/** * This constructor should not be used by client code. * * @param collection SimpleFeatureCollection to copy into memory */ public TreeSetFeatureCollection( FeatureCollection<SimpleFeatureType, SimpleFeature> collection) { this(collection.getID(), collection.getSchema()); addAll(collection); }
FeatureCollection features = (FeatureCollection) object; if ("id".equals(name.getLocalPart())) { return features.getID();
public String getID() { return delegate.getID(); } }
public String getID() { return fc.getID(); }
public String getID() { return delegate.getID(); }
public String getID() { return delegate.getID(); }
public String getID() { return delegate.getID(); }
public String getId(){ return collection.getID(); }
public String getID() { return delegate.getID(); }
public String getID() { return collection.getID(); }
String fid = feature == null ? "feature" : feature.getIdentifier().toString(); throw new IOException( "Problem with " + collection.getID() + " visiting " + fid + ":" + erp, erp);
@Override public String getID() { timeoutVerifier.checkTimeout(); return delegate.getID(); }
/** * This constructor should not be used by client code. * @param collection SimpleFeatureCollection to copy into memory */ public DefaultFeatureCollection( FeatureCollection<SimpleFeatureType,SimpleFeature> collection ) { this( collection.getID(), collection.getSchema() ); addAll(collection); }
/** * This constructor should not be used by client code. * * @param collection * SimpleFeatureCollection to copy into memory */ public TreeSetFeatureCollection(FeatureCollection<SimpleFeatureType, SimpleFeature> collection) { this(collection.getID(), collection.getSchema()); addAll(collection); }
FeatureCollection features = (FeatureCollection) object; if ( "id".equals( name.getLocalPart() ) ) { return features.getID();
private static FeatureCollection<SimpleFeatureType, SimpleFeature> transformPixelPosToGeoPos(FeatureCollection<SimpleFeatureType, SimpleFeature> fc, GeoCoding geoCoding) { Iterator<SimpleFeature> iterator = fc.iterator(); FeatureCollection<SimpleFeatureType, SimpleFeature> transformedFc = new DefaultFeatureCollection(fc.getID(), fc.getSchema()); while (iterator.hasNext()) { SimpleFeature sourceFeature = iterator.next(); Geometry geometry = (Geometry) sourceFeature.getDefaultGeometry(); GeometryCoordinateSequenceTransformer transformer = new GeometryCoordinateSequenceTransformer(); transformer.setMathTransform(geoCoding.getImageToMapTransform()); transformer.setCoordinateReferenceSystem(geoCoding.getMapCRS()); try { geometry = transformer.transform(geometry); } catch (TransformException e) { throw new IllegalStateException(e); } sourceFeature.setDefaultGeometry(geometry); transformedFc.add(sourceFeature); } return transformedFc; } }
transformer.setMathTransform(mathTransform); final FeatureCollection<SimpleFeatureType, SimpleFeature> sourceCollection = sourceVectorDataNode.getFeatureCollection(); final DefaultFeatureCollection targetCollection = new DefaultFeatureCollection(sourceCollection.getID(), sourceCollection.getSchema()); final FeatureIterator<SimpleFeature> featureIterator = sourceCollection.features(); while (featureIterator.hasNext()) {