Examples of changeResolution()


Examples of edu.caltech.csn.geocell.GeocellContainer.changeResolution()

    for (Point pt : TestLocations.getLocations().values()) {
      final GeocellContainer gc = new GeocellContainer(pt, 1);

      // For the entire range of Geohash resolutions.
      for (int i = 5; i < 55; i += 5) {
        gc.changeResolution(i);
        final String t = converter.fromGeocellContainer(gc);
        final long geocell = converter.toGeocell(t);
        assertEquals(gc.getGeocell(), geocell);
      }
    }
View Full Code Here

Examples of edu.caltech.csn.geocell.GeocellContainer.changeResolution()

      final GeocellContainer gc = new GeocellContainer(pt, 1);

      // For the entire range of Geomodel resolutions.
      // (Library unofficially supports non-multiples of 4).
      for (int i = 4; i < 58; i++) {
        gc.changeResolution(i);
        final String t = geoModelConv.fromGeocellContainer(gc);
        final long geocell = geoModelConv.toGeocell(t);
        assertEquals(gc.getGeocell(), geocell);
      }
    }
View Full Code Here

Examples of edu.caltech.csn.geocell.GeocellContainer.changeResolution()

    for (Point pt : TestLocations.getLocations().values()) {
      final GeocellContainer gc = new GeocellContainer(pt, 1);

      // For the entire range of Geostring resolutions.
      for (int i = 1; i < 58; i++) {
        gc.changeResolution(i);
        final String t = geostringConv.fromGeocellContainer(gc);
        final long geocell = geostringConv.toGeocell(t);
        assertEquals(gc.getGeocell(), geocell);
      }
    }
View Full Code Here

Examples of edu.caltech.csn.geocell.GeocellContainer.changeResolution()

    for (Point pt : TestLocations.getLocations().values()) {
      final GeocellContainer gc = new GeocellContainer(pt, 1);

      // For the entire range of GeocellInt resolutions.
      for (int i = 1; i < 27; i++) {
        gc.changeResolution(i);
        final int t = converter.fromGeocellContainer(gc);
        final long geocell = converter.toGeocell(t);
        assertEquals(gc.getGeocell(), geocell);
      }
    }
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.