Examples of featureCount()


Examples of org.locationtech.geogig.api.plumbing.diff.DiffObjectCount.featureCount()

                    .setOldVersion(workTreeId.toString()).setNewVersion(afterTreeId.toString())
                    .call();

            geogig.command(AddOp.class).call();
            console.println(String.format("done. %,d changes actually applied.",
                    diffCount.featureCount()));
            console.flush();

            commit(cli, changeset);
        }
    }
View Full Code Here

Examples of org.locationtech.geogig.api.plumbing.diff.DiffObjectCount.featureCount()

                .setProgressListener(cli.getProgressListener()).call();

        DiffObjectCount staged = geogig.getRepository().index().countStaged(null);
        unstaged = workTree.countUnstaged(null);

        console.println(staged.featureCount() + " features and " + staged.treeCount()
                + " trees staged for commit");
        console.println(unstaged.featureCount() + " features and " + unstaged.treeCount()
                + " trees not staged for commit");
    }
View Full Code Here

Examples of org.locationtech.geogig.api.plumbing.diff.DiffObjectCount.featureCount()

                    .setNewVersion(newVersion);
            cdiff.setFilter(paths);
            DiffObjectCount count = cdiff.call();
            ConsoleReader console = cli.getConsole();
            console.println(String.format("Trees changed: %d, features changed: %,d",
                    count.treeCount(), count.featureCount()));
            console.flush();
            return;
        }

        DiffOp diff = geogig.command(DiffOp.class);
View Full Code Here

Examples of org.opentripplanner.analyst.PointSet.featureCount()

   
    public void testSlice() {
      PointSet points = PointSet.fromGeoJson(new File("src/test/resources/pointset/population.geo.json"));
     
      PointSet all = points.slice(0, points.featureCount());
      assertEquals( all.featureCount(), points.featureCount() );
     
      PointSet firstHalf = points.slice(0, 1);
      assertEquals( firstHalf.featureCount(), 1 );
      assertEquals( firstHalf.getFeature(0).getId(), "XYZ0001" );
     
View Full Code Here

Examples of org.opentripplanner.analyst.PointSet.featureCount()

     
      PointSet all = points.slice(0, points.featureCount());
      assertEquals( all.featureCount(), points.featureCount() );
     
      PointSet firstHalf = points.slice(0, 1);
      assertEquals( firstHalf.featureCount(), 1 );
      assertEquals( firstHalf.getFeature(0).getId(), "XYZ0001" );
     
      PointSet lastHalf = points.slice(1, 2);
      assertEquals( lastHalf.featureCount(), 1 );
      assertEquals( lastHalf.getFeature(0).getId(), "XYZ0002" );
View Full Code Here

Examples of org.opentripplanner.analyst.PointSet.featureCount()

      PointSet firstHalf = points.slice(0, 1);
      assertEquals( firstHalf.featureCount(), 1 );
      assertEquals( firstHalf.getFeature(0).getId(), "XYZ0001" );
     
      PointSet lastHalf = points.slice(1, 2);
      assertEquals( lastHalf.featureCount(), 1 );
      assertEquals( lastHalf.getFeature(0).getId(), "XYZ0002" );
    }

    /* TODO Round trip serialization and deserialization to GeoJSON. */

 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.