public boolean delete(Feature f) throws Exception { return delete(null, f); }
public boolean delete(Feature f) throws Exception { return delete(null, f); }
/** * Deletes a feature from the index * * @param f * @return * @throws Exception */ public boolean deleteAndAdd(@Nullable GeogigTransaction transaction, Feature f) throws Exception { boolean existed = delete(transaction, f); if (existed) { if (transaction != null) { transaction.command(AddOp.class).call(); } else { geogig.command(AddOp.class).call(); } } return existed; }
/** * Deletes a feature from the index * * @param f * @return * @throws Exception */ public boolean deleteAndAdd(GeogigTransaction transaction, Feature f) throws Exception { boolean existed = delete(transaction, f); if (existed) { if (transaction != null) { transaction.command(AddOp.class).call(); } else { geogig.command(AddOp.class).call(); } } return existed; }