Package mil.nga.giat.geowave.index.sfc

Examples of mil.nga.giat.geowave.index.sfc.SFCDimensionDefinition


      180
    };
    long expectedID = 3074457345618258602L;

    SFCDimensionDefinition[] SPATIAL_DIMENSIONS = new SFCDimensionDefinition[] {
      new SFCDimensionDefinition(
          new LatitudeDefinition(),
          LATITUDE_BITS),
      new SFCDimensionDefinition(
          new LongitudeDefinition(),
          LONGITUDE_BITS)
    };

    SpaceFillingCurve hilbertSFC = SFCFactory.createSpaceFillingCurve(
View Full Code Here


      -180
    };
    long expectedID = 0L;

    SFCDimensionDefinition[] SPATIAL_DIMENSIONS = new SFCDimensionDefinition[] {
      new SFCDimensionDefinition(
          new LatitudeDefinition(),
          LATITUDE_BITS),
      new SFCDimensionDefinition(
          new LongitudeDefinition(),
          LONGITUDE_BITS)
    };

    SpaceFillingCurve hilbertSFC = SFCFactory.createSpaceFillingCurve(
View Full Code Here

      0
    };
    long expectedID = 768614336404564650L;

    SFCDimensionDefinition[] SPATIAL_DIMENSIONS = new SFCDimensionDefinition[] {
      new SFCDimensionDefinition(
          new LatitudeDefinition(),
          LATITUDE_BITS),
      new SFCDimensionDefinition(
          new LongitudeDefinition(),
          LONGITUDE_BITS)
    };

    SpaceFillingCurve hilbertSFC = SFCFactory.createSpaceFillingCurve(
View Full Code Here

      90,
      180
    };

    SFCDimensionDefinition[] SPATIAL_DIMENSIONS = new SFCDimensionDefinition[] {
      new SFCDimensionDefinition(
          new LatitudeDefinition(),
          LATITUDE_BITS),
      new SFCDimensionDefinition(
          new LongitudeDefinition(),
          LONGITUDE_BITS)
    };

    SpaceFillingCurve hilbertSFC = SFCFactory.createSpaceFillingCurve(
View Full Code Here

      -180
    };
    long expectedID = 0L;

    SFCDimensionDefinition[] SPATIAL_DIMENSIONS = new SFCDimensionDefinition[] {
      new SFCDimensionDefinition(
          new LatitudeDefinition(),
          LATITUDE_BITS),
      new SFCDimensionDefinition(
          new LongitudeDefinition(),
          LONGITUDE_BITS)
    };

    SpaceFillingCurve hilbertSFC = SFCFactory.createSpaceFillingCurve(
View Full Code Here

    int LATITUDE_BITS = 31;
    int LONGITUDE_BITS = 31;

    SFCDimensionDefinition[] SPATIAL_DIMENSIONS = new SFCDimensionDefinition[] {
      new SFCDimensionDefinition(
          new LongitudeDefinition(),
          LONGITUDE_BITS),
      new SFCDimensionDefinition(
          new LatitudeDefinition(),
          LATITUDE_BITS)
    };

    SpaceFillingCurve hilbertSFC = SFCFactory.createSpaceFillingCurve(
View Full Code Here

    int LATITUDE_BITS = 31;
    int LONGITUDE_BITS = 31;

    SFCDimensionDefinition[] SPATIAL_DIMENSIONS = new SFCDimensionDefinition[] {
      new SFCDimensionDefinition(
          new LongitudeDefinition(),
          LONGITUDE_BITS),
      new SFCDimensionDefinition(
          new LatitudeDefinition(),
          LATITUDE_BITS)
    };

    SpaceFillingCurve hilbertSFC = SFCFactory.createSpaceFillingCurve(
View Full Code Here

    final SFCDimensionDefinition[] sfcDimensions = new SFCDimensionDefinition[SPATIAL_DIMENSIONS.length];
    int totalPrecision = 0;
    final List<Integer> bitsPerDimension = new ArrayList<Integer>();
    for (int d = 0; d < SPATIAL_DIMENSIONS.length; d++) {
      final int bitsOfPrecision = 31;
      sfcDimensions[d] = new SFCDimensionDefinition(
          SPATIAL_DIMENSIONS[d],
          bitsOfPrecision);

      bitsPerDimension.add(bitsOfPrecision);
      totalPrecision += bitsOfPrecision;
View Full Code Here

    final SFCDimensionDefinition[] sfcDimensions = new SFCDimensionDefinition[20];

    final List<Integer> bitsPerDimension = new ArrayList<Integer>();
    for (int d = 0; d < sfcDimensions.length; d++) {
      final int bitsOfPrecision = 48;
      sfcDimensions[d] = new SFCDimensionDefinition(
          new BasicDimensionDefinition(
              0,
              1),
          bitsOfPrecision);
View Full Code Here

  public void init(
      final SFCDimensionDefinition[] dimensionDefs ) {
    binsPerDimension = new BigDecimal[dimensionDefs.length];
    int totalPrecision = 0;
    for (int d = 0; d < dimensionDefs.length; d++) {
      final SFCDimensionDefinition dimension = dimensionDefs[d];
      binsPerDimension[d] = TWO.pow(dimension.getBitsOfPrecision());
      totalPrecision += dimension.getBitsOfPrecision();
    }
    minHilbertValue = BigInteger.ZERO;
    maxHilbertValue = TWO.pow(
        totalPrecision).subtract(
        BigDecimal.ONE).toBigInteger();
View Full Code Here

TOP

Related Classes of mil.nga.giat.geowave.index.sfc.SFCDimensionDefinition

Copyright © 2018 www.massapicom. 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.