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

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


   */
  public static Constraints basicConstraintsFromPoint(
      final double latitudeDegrees,
      final double longitudeDegrees ) {
    // Create a NumericData object using the x axis
    final NumericData latitude = new NumericValue(
        latitudeDegrees);

    // Create a NumericData object using the y axis
    final NumericData longitude = new NumericValue(
        longitudeDegrees);

    final Map<Class<? extends NumericDimensionDefinition>, NumericData> constraintsPerDimension = new HashMap<Class<? extends NumericDimensionDefinition>, NumericData>();
    // Create and return a new IndexRange array with an x and y axis
    // range
View Full Code Here


  @Test
  public void testSingleEntry() {
    final Calendar cal = Calendar.getInstance();
    final NumericData[] dataPerDimension1 = new NumericData[SPATIAL_TEMPORAL_DIMENSIONS.length];
    dataPerDimension1[0] = new NumericValue(
        45);
    dataPerDimension1[1] = new NumericValue(
        45);
    dataPerDimension1[2] = new NumericValue(
        cal.getTimeInMillis());

    final int year = cal.get(Calendar.YEAR);

    cal.set(
        Calendar.DAY_OF_YEAR,
        1);
    final NumericData[] dataPerDimension2 = new NumericData[SPATIAL_TEMPORAL_DIMENSIONS.length];
    dataPerDimension2[0] = new NumericValue(
        45);
    dataPerDimension2[1] = new NumericValue(
        45);
    dataPerDimension2[2] = new NumericValue(
        cal.getTimeInMillis());

    cal.set(
        Calendar.YEAR,
        year - 1);
    final NumericData[] dataPerDimension3 = new NumericData[SPATIAL_TEMPORAL_DIMENSIONS.length];
    dataPerDimension3[0] = new NumericValue(
        45);
    dataPerDimension3[1] = new NumericValue(
        45);
    dataPerDimension3[2] = new NumericValue(
        cal.getTimeInMillis());

    MultiDimensionalNumericData indexedData = new BasicNumericDataset(
        dataPerDimension1);
    final NumericIndexStrategy strategy = new SpatialTemporalFactory().createIndexStrategy(DataType.VECTOR);
View Full Code Here

      this.visibility = visibility;
    }

    @Override
    public NumericData toNumericData() {
      return new NumericValue(
          time);
    }
View Full Code Here

TOP

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

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.