Examples of SFCDimensionDefinition


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

      180
    };
    long expectedID = 3074457345618258602L;

    SFCDimensionDefinition[] SPATIAL_DIMENSIONS = new SFCDimensionDefinition[] {
      new SFCDimensionDefinition(
          new LatitudeDefinition(),
          LATITUDE_BITS),
      new SFCDimensionDefinition(
          new LongitudeDefinition(),
          LONGITUDE_BITS)
    };

    SpaceFillingCurve hilbertSFC = SFCFactory.createSpaceFillingCurve(
View Full Code Here

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

      -180
    };
    long expectedID = 0L;

    SFCDimensionDefinition[] SPATIAL_DIMENSIONS = new SFCDimensionDefinition[] {
      new SFCDimensionDefinition(
          new LatitudeDefinition(),
          LATITUDE_BITS),
      new SFCDimensionDefinition(
          new LongitudeDefinition(),
          LONGITUDE_BITS)
    };

    SpaceFillingCurve hilbertSFC = SFCFactory.createSpaceFillingCurve(
View Full Code Here

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

      0
    };
    long expectedID = 768614336404564650L;

    SFCDimensionDefinition[] SPATIAL_DIMENSIONS = new SFCDimensionDefinition[] {
      new SFCDimensionDefinition(
          new LatitudeDefinition(),
          LATITUDE_BITS),
      new SFCDimensionDefinition(
          new LongitudeDefinition(),
          LONGITUDE_BITS)
    };

    SpaceFillingCurve hilbertSFC = SFCFactory.createSpaceFillingCurve(
View Full Code Here

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

      90,
      180
    };

    SFCDimensionDefinition[] SPATIAL_DIMENSIONS = new SFCDimensionDefinition[] {
      new SFCDimensionDefinition(
          new LatitudeDefinition(),
          LATITUDE_BITS),
      new SFCDimensionDefinition(
          new LongitudeDefinition(),
          LONGITUDE_BITS)
    };

    SpaceFillingCurve hilbertSFC = SFCFactory.createSpaceFillingCurve(
View Full Code Here

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

      -180
    };
    long expectedID = 0L;

    SFCDimensionDefinition[] SPATIAL_DIMENSIONS = new SFCDimensionDefinition[] {
      new SFCDimensionDefinition(
          new LatitudeDefinition(),
          LATITUDE_BITS),
      new SFCDimensionDefinition(
          new LongitudeDefinition(),
          LONGITUDE_BITS)
    };

    SpaceFillingCurve hilbertSFC = SFCFactory.createSpaceFillingCurve(
View Full Code Here

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

    int LATITUDE_BITS = 31;
    int LONGITUDE_BITS = 31;

    SFCDimensionDefinition[] SPATIAL_DIMENSIONS = new SFCDimensionDefinition[] {
      new SFCDimensionDefinition(
          new LongitudeDefinition(),
          LONGITUDE_BITS),
      new SFCDimensionDefinition(
          new LatitudeDefinition(),
          LATITUDE_BITS)
    };

    SpaceFillingCurve hilbertSFC = SFCFactory.createSpaceFillingCurve(
View Full Code Here

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

    int LATITUDE_BITS = 31;
    int LONGITUDE_BITS = 31;

    SFCDimensionDefinition[] SPATIAL_DIMENSIONS = new SFCDimensionDefinition[] {
      new SFCDimensionDefinition(
          new LongitudeDefinition(),
          LONGITUDE_BITS),
      new SFCDimensionDefinition(
          new LatitudeDefinition(),
          LATITUDE_BITS)
    };

    SpaceFillingCurve hilbertSFC = SFCFactory.createSpaceFillingCurve(
View Full Code Here

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

    final SFCDimensionDefinition[] sfcDimensions = new SFCDimensionDefinition[SPATIAL_DIMENSIONS.length];
    int totalPrecision = 0;
    final List<Integer> bitsPerDimension = new ArrayList<Integer>();
    for (int d = 0; d < SPATIAL_DIMENSIONS.length; d++) {
      final int bitsOfPrecision = 31;
      sfcDimensions[d] = new SFCDimensionDefinition(
          SPATIAL_DIMENSIONS[d],
          bitsOfPrecision);

      bitsPerDimension.add(bitsOfPrecision);
      totalPrecision += bitsOfPrecision;
View Full Code Here

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

    final SFCDimensionDefinition[] sfcDimensions = new SFCDimensionDefinition[20];

    final List<Integer> bitsPerDimension = new ArrayList<Integer>();
    for (int d = 0; d < sfcDimensions.length; d++) {
      final int bitsOfPrecision = 48;
      sfcDimensions[d] = new SFCDimensionDefinition(
          new BasicDimensionDefinition(
              0,
              1),
          bitsOfPrecision);
View Full Code Here

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

  public void init(
      final SFCDimensionDefinition[] dimensionDefs ) {
    binsPerDimension = new BigDecimal[dimensionDefs.length];
    int totalPrecision = 0;
    for (int d = 0; d < dimensionDefs.length; d++) {
      final SFCDimensionDefinition dimension = dimensionDefs[d];
      binsPerDimension[d] = TWO.pow(dimension.getBitsOfPrecision());
      totalPrecision += dimension.getBitsOfPrecision();
    }
    minHilbertValue = BigInteger.ZERO;
    maxHilbertValue = TWO.pow(
        totalPrecision).subtract(
        BigDecimal.ONE).toBigInteger();
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.