storeDelegate.modifyFeatures(names, values, filter); return; } else if (writeQuery.getFilter() == Filter.EXCLUDE storeDelegate.modifyFeatures(names, values, mixed.getFilter()); } else { storeDelegate.modifyFeatures(names, values, mixed.getFilter());
public void modifyFeatures(AttributeDescriptor[] type, Object[] value, Filter filter) throws IOException { delegate().modifyFeatures(type, value, filter); }
public void modifyFeatures(Name name, Object value, Filter filter) throws IOException { delegate().modifyFeatures(name, value, filter); }
public void modifyFeatures(Name[] names, Object[] values, Filter filter) throws IOException { delegate().modifyFeatures(names, values, filter); }
public void modifyFeatures(AttributeDescriptor type, Object value, Filter filter) throws IOException { delegate().modifyFeatures(type, value, filter); }
public void modifyFeatures(AttributeDescriptor type, Object value, Filter filter) throws IOException { fstore.modifyFeatures(type, value, filter); }
public void modifyFeatures(AttributeDescriptor[] type, Object[] value, Filter filter) throws IOException { fstore.modifyFeatures(type, value, filter); }
public void modifyFeatures(AttributeType type, Object value, Filter filter) throws IOException { wrappedStore.modifyFeatures(type, value, filter); }
public void modifyFeatures(Name[] names, Object[] values, Filter filter) throws IOException { delegate().modifyFeatures(names, values, filter); }
public void modifyFeatures(Name name, Object value, Filter filter) throws IOException { delegate().modifyFeatures(name, value, filter); } public void modifyFeatures(String name, Object attributeValue, Filter filter)
public void modifyFeatures(AttributeDescriptor type, Object value, Filter filter) throws IOException { delegate().modifyFeatures(type, value, filter); }
public void modifyFeatures(AttributeDescriptor[] type, Object[] value, Filter filter) throws IOException { delegate().modifyFeatures(type, value, filter); }
@DeleteMapping(path = "{product:.+}/ogcLinks") public void deleteProductLinks( @PathVariable(name = "collection", required = true) String collection, @PathVariable(name = "product", required = true) String product) throws IOException { // check the product exists queryProduct(collection, product, q -> {}); // prepare the update Filter filter = getProductFilter(collection, product); runTransactionOnProductStore( fs -> fs.modifyFeatures(OpenSearchAccess.OGC_LINKS_PROPERTY_NAME, null, filter)); }
@DeleteMapping(path = "{product:.+}/metadata") public void deleteCollectionMetadata( @PathVariable(name = "collection", required = true) String collection, @PathVariable(name = "product", required = true) String product) throws IOException { // check the product exists queryProduct(collection, product, q -> {}); // prepare the update Filter filter = getProductFilter(collection, product); runTransactionOnProductStore( fs -> fs.modifyFeatures(OpenSearchAccess.METADATA_PROPERTY_NAME, null, filter)); }
private void updateThumbnail(String collection, String product, byte[] thumbnail) throws IOException { // prepare the update Filter filter = getProductFilter(collection, product); runTransactionOnProductStore( fs -> { // set the description to the specified value fs.modifyFeatures(OpenSearchAccess.QUICKLOOK_PROPERTY_NAME, thumbnail, filter); }); }
@DeleteMapping(path = "{collection}/metadata") public void deleteCollectionMetadata( @PathVariable(name = "collection", required = true) String collection) throws IOException { // check the collection is there queryCollection(collection, q -> {}); // prepare the update Filter filter = FF.equal(FF.property(COLLECTION_ID), FF.literal(collection), true); runTransactionOnCollectionStore( fs -> fs.modifyFeatures(OpenSearchAccess.METADATA_PROPERTY_NAME, null, filter)); }
@DeleteMapping(path = "{collection}/ogcLinks") public void deleteCollectionLinks( @PathVariable(name = "collection", required = true) String collection) throws IOException { // check the collection is there queryCollection(collection, q -> {}); // prepare the update Filter filter = FF.equal(FF.property(COLLECTION_ID), FF.literal(collection), true); runTransactionOnCollectionStore( fs -> fs.modifyFeatures(OpenSearchAccess.OGC_LINKS_PROPERTY_NAME, null, filter)); }
private void updateDescription(String collection, String product, String description) throws IOException { // prepare the update Filter filter = getProductFilter(collection, product); runTransactionOnProductStore( fs -> { // set the description to the specified value final FeatureType schema = fs.getSchema(); final String nsURI = schema.getName().getNamespaceURI(); fs.modifyFeatures( new NameImpl(nsURI, OpenSearchAccess.DESCRIPTION), description, filter); }); }
public void testGetFeatureStoreModifyFeatures2() throws IOException { FeatureStore road = (FeatureStore) data.getFeatureSource("ROAD"); AttributeType name = roadType.getAttributeType("NAME"); road.modifyFeatures(new AttributeType[] { name, }, new Object[] { "changed", }, rd1Filter); FeatureCollection results = road.getFeatures(rd1Filter); assertEquals("changed", results.features().next().getAttribute("NAME")); }
public void testGetFeatureStoreModifyFeatures1() throws IOException { FeatureStore road = (FeatureStore) data.getFeatureSource("ROAD"); AttributeType name = roadType.getAttributeType("NAME"); road.modifyFeatures(name, "changed", rd1Filter); FeatureCollection results = road.getFeatures(rd1Filter); assertEquals("changed", results.features().next().getAttribute("NAME")); }