Package mil.nga.giat.geowave.index

Source Code of mil.nga.giat.geowave.index.IndexUtils

package mil.nga.giat.geowave.index;

import mil.nga.giat.geowave.index.dimension.NumericDimensionDefinition;
import mil.nga.giat.geowave.index.sfc.data.BasicNumericDataset;
import mil.nga.giat.geowave.index.sfc.data.MultiDimensionalNumericData;
import mil.nga.giat.geowave.index.sfc.data.NumericRange;

public class IndexUtils
{
  public static MultiDimensionalNumericData getFullBounds(
      final NumericIndexStrategy indexStrategy ) {
    return getFullBounds(indexStrategy.getOrderedDimensionDefinitions());
  }

  public static MultiDimensionalNumericData getFullBounds(
      final NumericDimensionDefinition[] dimensionDefinitions ) {
    final NumericRange[] boundsPerDimension = new NumericRange[dimensionDefinitions.length];
    for (int d = 0; d < dimensionDefinitions.length; d++) {
      boundsPerDimension[d] = dimensionDefinitions[d].getBounds();
    }
    return new BasicNumericDataset(
        boundsPerDimension);
  }
}
TOP

Related Classes of mil.nga.giat.geowave.index.IndexUtils

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.