Examples of NumericRange


Examples of mil.nga.giat.geowave.index.sfc.data.NumericRange

            sfcDimensions),
        testOperations.convertToHilbert(
            testValues4,
            compactHilbertCurve,
            sfcDimensions));
    final NumericRange rangeLongitude1 = new NumericRange(
        0,
        1);

    final NumericRange rangeLatitude1 = new NumericRange(
        0,
        1);
    final NumericRange rangeLongitude2 = new NumericRange(
        -21.324967549,
        28.4285637846834432543);

    final NumericRange rangeLatitude2 = new NumericRange(
        -43.7894445665435346547657867847657654,
        32.3254325834896543657895436543543659);

    final NumericRange rangeLongitude3 = new NumericRange(
        -10,
        0);

    final NumericRange rangeLatitude3 = new NumericRange(
        -10,
        0);
    final NumericRange rangeLongitude4 = new NumericRange(
        -Double.MIN_VALUE,
        0);

    final NumericRange rangeLatitude4 = new NumericRange(
        0,
        Double.MIN_VALUE);
    final RangeDecomposition expectedResult1 = expectedResultOperations.decomposeRange(
        new NumericData[] {
          rangeLongitude1,
View Full Code Here

Examples of mil.nga.giat.geowave.index.sfc.data.NumericRange

      }
      else {
        ceiling = mid;
      }
    }
    return new NumericRange(
        dimensionDefinition.denormalize(floor),
        dimensionDefinition.denormalize(ceiling));
  }
View Full Code Here

Examples of mil.nga.giat.geowave.index.sfc.data.NumericRange

    if ((max < 0) || (max > 1)) {
      throw new IllegalArgumentException(
          "Value (" + value + ") is not within bounds. The normalized value (" + max + ") must be within (0,1)");
    }
    // scale it to a value within the dimension definition range
    return new NumericRange(
        boundedDimensionDefinition.denormalize(min),
        boundedDimensionDefinition.denormalize(max));

  }
View Full Code Here

Examples of mil.nga.giat.geowave.index.sfc.data.NumericRange

    // ranges to the native bounds
    if (sfcIdAndBinInfo.rowIdOffset > 1) {
      final NumericData[] data = numericData.getDataPerDimension();
      for (final Entry<Integer, byte[]> entry : sfcIdAndBinInfo.binIds.entrySet()) {
        final int dimension = entry.getKey();
        final NumericRange range = baseDefinitions[dimension].getDenormalizedRange(new BinRange(
            entry.getValue(),
            data[dimension].getMin(),
            data[dimension].getMax(),
            false));
        data[dimension] = range;
View Full Code Here

Examples of mil.nga.giat.geowave.index.sfc.data.NumericRange

              max))
    };
  }

  public NumericData getFullRange() {
    return new NumericRange(0, System.currentTimeMillis()+1);
  }
View Full Code Here

Examples of mil.nga.giat.geowave.index.sfc.data.NumericRange

  }

  @Override
  public NumericRange getDenormalizedRange(
      final BinRange range ) {
    return new NumericRange(
        range.getNormalizedMin(),
        range.getNormalizedMax());
  }
View Full Code Here

Examples of mil.nga.giat.geowave.index.sfc.data.NumericRange

    return max - min;
  }

  @Override
  public NumericRange getBounds() {
    return new NumericRange(
        min,
        max);
  }
View Full Code Here

Examples of mil.nga.giat.geowave.index.sfc.data.NumericRange

  }

  @Override
  public NumericRange getDenormalizedRange(
      final BinRange range ) {
    return new NumericRange(
        range.getNormalizedMin(),
        range.getNormalizedMax());
  }
View Full Code Here

Examples of mil.nga.giat.geowave.index.sfc.data.NumericRange

    int latPosition = fields[0] instanceof LatitudeField ? 0 : 1;
    int longPosition = fields[0] instanceof LatitudeField ? 1 : 0;
    if (fields.length == 1) {
      Envelope env = geometry.getEnvelopeInternal();
      NumericRange r = latPosition == 0 ? new NumericRange(
          env.getMinY(),
          env.getMaxY()) : new NumericRange(
          env.getMinX(),
          env.getMaxX());
      double t0 = rangeData[0].getMax() - r.getMin();
      double t1 = r.getMax() - rangeData[0].getMin();
      return Math.abs(t0 - t1) <= (t0 + t1);
    }
    return geometry.getFactory().createPolygon(
        new Coordinate[] {
          new Coordinate(
View Full Code Here

Examples of mil.nga.giat.geowave.index.sfc.data.NumericRange

    // Create and return a new IndexRange array with an x and y axis
    // range
    for (final TemporalRange range : contraints.constraints) {
      constraintsPerDimension.put(
          TimeDefinition.class,
          new NumericRange(
              range.getStartTime().getTime(),
              range.getEndTime().getTime()));
    }

    final Constraints constraints = new Constraints(
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.