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

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


      final int[] maxBitsPerDimension,
      final SFCType sfc ) {
    final SFCDimensionDefinition[] sfcDimensions = new SFCDimensionDefinition[baseDefinitions.length];
    for (int d = 0; d < baseDefinitions.length; d++) {

      sfcDimensions[d] = new SFCDimensionDefinition(
          baseDefinitions[d],
          maxBitsPerDimension[d]);
    }

    final SpaceFillingCurve[] orderedSfcs = new SpaceFillingCurve[] {
View Full Code Here


      final SFCDimensionDefinition[] sfcDimensions = new SFCDimensionDefinition[baseDefinitions.length];

      for (int d = 0; d < baseDefinitions.length; d++) {
        final int bitsOfPrecision = maxBitsPerDimension[d] - (numTiers - tier - 1);

        sfcDimensions[d] = new SFCDimensionDefinition(
            baseDefinitions[d],
            bitsOfPrecision);
      }

      spaceFillingCurves[tier] = SFCFactory.createSpaceFillingCurve(
View Full Code Here

        }
        else {
          final double bitPrecisionIncrement = ((double) maxBitsPerDimension[d] / (numTiers - 1));
          bitsOfPrecision = (int) (bitPrecisionIncrement * tier);
        }
        sfcDimensions[d] = new SFCDimensionDefinition(
            baseDefinitions[d],
            bitsOfPrecision);
      }

      spaceFillingCurves[tier] = SFCFactory.createSpaceFillingCurve(
View Full Code Here

    final SpaceFillingCurve[] orderedSFCTiers = new SpaceFillingCurve[numLevels];
    final int numDimensions = orderedDimensionDefinitions.length;
    for (int l = 0; l < numLevels; l++) {
      final SFCDimensionDefinition[] sfcDimensions = new SFCDimensionDefinition[numDimensions];
      for (int d = 0; d < numDimensions; d++) {
        sfcDimensions[d] = new SFCDimensionDefinition(
            orderedDimensionDefinitions[d],
            bitsPerDimensionPerLevel[d][l]);
      }
      orderedSFCTiers[l] = SFCFactory.createSpaceFillingCurve(
          sfcDimensions,
View Full Code Here

  public void init(
      final SFCDimensionDefinition[] dimensionDefs ) {
    binsPerDimension = new long[dimensionDefs.length];
    int totalPrecision = 0;
    for (int d = 0; d < dimensionDefs.length; d++) {
      final SFCDimensionDefinition dimension = dimensionDefs[d];
      binsPerDimension[d] = (long) Math.pow(
          2,
          dimension.getBitsOfPrecision());
      totalPrecision += dimension.getBitsOfPrecision();
    }
    minHilbertValue = 0;
    maxHilbertValue = (long) (Math.pow(
        2,
        totalPrecision) - 1);
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.