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

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


    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

    // 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

              max))
    };
  }

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

  }

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

    return max - min;
  }

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

  }

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

    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

    // 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

    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

TOP

Related Classes of mil.nga.giat.geowave.index.sfc.data.NumericRange

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.