/** * Inserts the feature to the index but does not stages it to be committed */ public ObjectId insert(Feature f) throws Exception { return insert(new Feature[] { f }).get(0); }
/** * Inserts the feature to the index but does not stages it to be committed */ public ObjectId insert(Feature f) throws Exception { return insert(new Feature[] { f }).get(0); }
/** * Inserts the feature to the index but does not stages it to be committed */ public ObjectId insert(Feature f) throws Exception { return insert(new Feature[] { f }).get(0); }
@Given("^I have unstaged \"([^\"]*)\"$") public void I_have_unstaged(String feature) throws Throwable { if (feature.equals("points1")) { localRepo.insert(points1); } else if (feature.equals("points2")) { localRepo.insert(points2); } else if (feature.equals("points3")) { localRepo.insert(points3); } else if (feature.equals("points1_modified")) { localRepo.insert(points1_modified); } else if (feature.equals("lines1")) { localRepo.insert(lines1); } else if (feature.equals("lines2")) { localRepo.insert(lines2); } else if (feature.equals("lines3")) { localRepo.insert(lines3); } else { throw new Exception("Unknown Feature"); } }
@Given("^I have unstaged \"([^\"]*)\"$") public void I_have_unstaged(String feature) throws Throwable { if (feature.equals("points1")) { localRepo.insert(points1); } else if (feature.equals("points2")) { localRepo.insert(points2); } else if (feature.equals("points3")) { localRepo.insert(points3); } else if (feature.equals("points1_modified")) { localRepo.insert(points1_modified); } else if (feature.equals("lines1")) { localRepo.insert(lines1); } else if (feature.equals("lines2")) { localRepo.insert(lines2); } else if (feature.equals("lines3")) { localRepo.insert(lines3); } else { throw new Exception("Unknown Feature"); } }
/** * Inserts the Feature to the index and stages it to be committed. */ public ObjectId insertAndAdd(Feature f) throws Exception { ObjectId objectId = insert(f); runCommand(true, "add"); return objectId; }
/** * Inserts the Feature to the index and stages it to be committed. */ public ObjectId insertAndAdd(Feature f) throws Exception { ObjectId objectId = insert(f); runCommand(true, "add"); return objectId; }
/** * Inserts the Feature to the index and stages it to be committed. */ public ObjectId insertAndAdd(Feature f) throws Exception { ObjectId objectId = insert(f); runCommand(true, "add"); return objectId; }
public List<ObjectId> insertAndAdd(Feature... features) throws Exception { List<ObjectId> ids = insert(features); geogigCLI.execute("add"); return ids; }
public List<ObjectId> insertAndAdd(Feature... features) throws Exception { List<ObjectId> ids = insert(features); geogigCLI.execute("add"); return ids; }
public List<ObjectId> insertAndAdd(Feature... features) throws Exception { List<ObjectId> ids = insert(features); geogigCLI.execute("add"); return ids; }
@Given("I modify a feature") public void I_modify_a_feature() throws Throwable { localRepo.insert(points1_modified); }
@Given("I modify a feature") public void I_modify_a_feature() throws Throwable { localRepo.insert(points1_modified); }
@Given("I modify a feature") public void I_modify_a_feature() throws Throwable { localRepo.insert(points1_modified); }
@Given("^I have unstaged an empty feature type$") public void I_have_unstaged_an_empty_feature_type() throws Throwable { localRepo.insert(points1); GeoGIG geogig = localRepo.geogigCLI.newGeoGIG(); final WorkingTree workTree = geogig.getRepository().workingTree(); workTree.delete(pointsName, idP1); geogig.close(); }
@Given("^I have unstaged an empty feature type$") public void I_have_unstaged_an_empty_feature_type() throws Throwable { localRepo.insert(points1); GeoGIG geogig = localRepo.geogigCLI.newGeoGIG(); final WorkingTree workTree = geogig.getRepository().workingTree(); workTree.delete(pointsName, idP1); geogig.close(); }
@Given("^I have unstaged an empty feature type$") public void I_have_unstaged_an_empty_feature_type() throws Throwable { localRepo.insert(points1); GeoGIG geogig = localRepo.geogigCLI.newGeoGIG(); final WorkingTree workTree = geogig.getRepository().workingTree(); workTree.delete(pointsName, idP1); geogig.close(); }