public boolean addAll( FeatureCollection<? extends SimpleFeatureType, ? extends SimpleFeature> resource) { return collection.addAll(resource); }
public boolean addAll(Collection<? extends SimpleFeature> toAdd) { return collection.addAll(toAdd); }
public boolean addAll(Collection c) { return delegate.addAll(c); }
public boolean addAll(Collection c) { // must back project any geometry attributes return delegate.addAll(c); }
public boolean addAll(Collection c) { return delegate.addAll( c ); }
public boolean addAll(FeatureCollection c) { return delegate.addAll(c); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { //call "super" FeatureCollection<SimpleFeatureType, SimpleFeature> fc = (FeatureCollection<SimpleFeatureType, SimpleFeature>) value; //add all feature member children fc.addAll(node.getChildValues(SimpleFeature.class)); return fc; } }
public Map<String, IData> merge(List<Map<String, IData>> outputData) { FeatureCollection mergedFeatureCollection = DefaultFeatureCollections.newCollection(); for (Map<String, IData> data : outputData) { FeatureCollection singleFeatureCollection = (FeatureCollection) data.get("result").getPayload(); mergedFeatureCollection.addAll(singleFeatureCollection); } Map<String, IData> result = new HashMap<String, IData>(); result.put("result", new GTVectorDataBinding(mergedFeatureCollection)); return result; }
/** * Return a {@link FeatureCollection} containing the sample features. * * @see org.geotools.data.FeatureSource#getFeatures() */ public FeatureCollection<FeatureType, Feature> getFeatures() throws IOException { FeatureCollection<FeatureType, Feature> fc = new SampleDataAccessFeatureCollection(); fc.addAll(SampleDataAccessData.createMappedFeatures()); return fc; }
public WebProcessingServiceOutput merge(List<WebProcessingServiceOutput> pOutputDataList) { FeatureCollection mergedFeatureCollection = DefaultFeatureCollections.newCollection(); for (WebProcessingServiceOutput output : pOutputDataList) { FeatureCollection singleFeatureCollection = (FeatureCollection) output.getOutputData().get("result").getPayload(); mergedFeatureCollection.addAll(singleFeatureCollection); } Map<String, IData> outputData = new HashMap<String, IData>(); outputData.put("result", new GTVectorDataBinding(mergedFeatureCollection)); WebProcessingServiceOutput result = new WebProcessingServiceOutput(outputData); return result; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { FeatureCollection fc = (FeatureCollection) node.getChildValue(FeatureCollection.class); if (fc != null) { return fc; } List features = node.getChildValues(SimpleFeature.class); fc = DefaultFeatureCollections.newCollection(); fc.addAll(features); return fc; }
@Override public void insertFigures(boolean performInsert, Figure... figures) { Debug.trace("VectorDataFigureEditor.insertFigures " + performInsert + ", " + figures.length); super.insertFigures(performInsert, figures); if (vectorDataNode != null) { vectorDataNode.getFeatureCollection().addAll(toSimpleFeatureList(figures)); } else { // warn } }
public FeatureCollection collection() throws IOException { FeatureCollection copy = new DefaultFeatureCollection( null, featureType ); List list = new ArrayList( contents.size() ); for( FeatureIterator iterator = features(); iterator.hasNext(); ){ Feature feature = iterator.next(); Feature duplicate; try { duplicate = feature.getFeatureType().duplicate( feature ); } catch (IllegalAttributeException e) { throw new DataSourceException( "Unable to copy "+feature.getID(), e ); } list.add( duplicate ); } copy.addAll( list ); return copy; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { FeatureCollection featureCollection = DefaultFeatureCollections.newCollection(); //<element maxOccurs="unbounded" minOccurs="0" ref="gml:featureMember"/> featureCollection.addAll(node.getChildValues(Feature.class)); //<element minOccurs="0" ref="gml:featureMembers"/> Feature[] featureMembers = (Feature[]) node.getChildValue(Feature[].class); if (featureMembers != null) { for (int i = 0; i < featureMembers.length; i++) { featureCollection.add(featureMembers[i]); } } return featureCollection; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { FeatureCollection<SimpleFeatureType, SimpleFeature> featureCollection = DefaultFeatureCollections.newCollection(); //<element maxOccurs="unbounded" minOccurs="0" ref="gml:featureMember"/> featureCollection.addAll(node.getChildValues(SimpleFeature.class)); //<element minOccurs="0" ref="gml:featureMembers"/> SimpleFeature[] featureMembers = (SimpleFeature[]) node.getChildValue(SimpleFeature[].class); if (featureMembers != null) { for (int i = 0; i < featureMembers.length; i++) { featureCollection.add(featureMembers[i]); } } return featureCollection; }
@Override public boolean add(VectorDataNode vectorDataNode) { Assert.notNull(vectorDataNode, "node"); VectorDataNode permanentNode = getPermanentNode(vectorDataNode.getName()); if (permanentNode != null) { permanentNode.getFeatureCollection().addAll(vectorDataNode.getFeatureCollection()); return false; } return super.add(vectorDataNode); }
@Override public void add(int index, VectorDataNode vectorDataNode) { Assert.notNull(vectorDataNode, "node"); VectorDataNode permanentNode = getPermanentNode(vectorDataNode.getName()); if (permanentNode != null) { permanentNode.getFeatureCollection().addAll(vectorDataNode.getFeatureCollection()); return; } super.add(index, vectorDataNode); }
visatApp.showErrorDialog(DLG_TITLE, "The geometry is not contained in the product."); } else { vectorDataLayer.getVectorDataNode().getFeatureCollection().addAll(productFeatures);
targetVDN.getFeatureCollection().addAll(featureCollection); targetVDN.setDefaultStyleCss(sourceVDN.getDefaultStyleCss()); targetVDN.setDescription(sourceVDN.getDescription()); targetVDN.getFeatureCollection().addAll(featureCollection); targetVDN.setDefaultStyleCss(sourceVDN.getDefaultStyleCss()); targetVDN.setDescription(sourceVDN.getDescription());