Package mil.nga.giat.geowave.index

Examples of mil.nga.giat.geowave.index.ByteArrayId


          NATIVE_FIELD_HANDLER_LIST);
    }

    @Override
    public ByteArrayId getAdapterId() {
      return new ByteArrayId(
          "test");
    }
View Full Code Here


    }

    @Override
    public ByteArrayId getDataId(
        final TestGeometry entry ) {
      return new ByteArrayId(
          entry.id);
    }
View Full Code Here

  }
 
  public static class AnotherAdapter extends TestGeometryAdapter {
    @Override
    public ByteArrayId getAdapterId() {
      return new ByteArrayId(
          "test1");
    }
View Full Code Here

    if (!checkName(coverageName)) {
      LOGGER.warn("Unable to find data adapter for '" + coverageName + "'");
      return null;
    }

    final DataAdapter<?> adapter = geowaveAdapterStore.getAdapter(new ByteArrayId(
        coverageName));
    return ((RasterDataAdapter) adapter).getMetadata().keySet().toArray(
        new String[] {});
  }
View Full Code Here

    if (!checkName(coverageName)) {
      LOGGER.warn("Unable to find data adapter for '" + coverageName + "'");
      return null;
    }

    final DataAdapter<?> adapter = geowaveAdapterStore.getAdapter(new ByteArrayId(
        coverageName));
    return ((RasterDataAdapter) adapter).getMetadata().get(
        name);
  }
View Full Code Here

      }
    }
    actualResults.close();

    if (testFeature != null) {
      final ByteArrayId dataId = new ByteArrayId(
          testFeature.getID());
      final ByteArrayId adapterId = new ByteArrayId(
          testFeature.getFeatureType().getTypeName());

      if (geowaveStore.deleteEntry(
          index,
          dataId,
View Full Code Here

  protected boolean checkName(
      final String coverageName ) {
    Utilities.ensureNonNull(
        "coverageName",
        coverageName);
    final DataAdapter<?> adapter = geowaveAdapterStore.getAdapter(new ByteArrayId(
        coverageName));
    return (adapter != null) && (adapter instanceof RasterDataAdapter);
  }
View Full Code Here

  @Override
  public GeneralEnvelope getOriginalEnvelope(
      final String coverageName ) {
    final DataStatistics<?> statistics = geowaveStatisticsStore.getDataStatistics(
        new ByteArrayId(
            coverageName),
        BoundingBoxDataStatistics.STATS_ID);
    // try to use both the bounding box and the overview statistics to
    // determine the width and height at the highest resolution
    if (statistics instanceof BoundingBoxDataStatistics) {
View Full Code Here

  @Override
  public GridEnvelope getOriginalGridRange(
      final String coverageName ) {
    DataStatistics<?> statistics = geowaveStatisticsStore.getDataStatistics(
        new ByteArrayId(
            coverageName),
        BoundingBoxDataStatistics.STATS_ID);
    int width = 0;
    int height = 0;
    // try to use both the bounding box and the overview statistics to
    // determine the width and height at the highest resolution
    if (statistics instanceof BoundingBoxDataStatistics) {
      final BoundingBoxDataStatistics<?> bboxStats = (BoundingBoxDataStatistics<?>) statistics;
      statistics = geowaveStatisticsStore.getDataStatistics(
          new ByteArrayId(
              coverageName),
          OverviewStatistics.STATS_ID);
      if (statistics instanceof OverviewStatistics) {
        final OverviewStatistics overviewStats = (OverviewStatistics) statistics;
        width = (int) Math.ceil(((bboxStats.getMaxX() - bboxStats.getMinX()) / overviewStats.getResolutions()[0].getResolution(0)));
View Full Code Here

          coverageName,
          resolutionLevels[imageChoice.intValue()][0],
          resolutionLevels[imageChoice.intValue()][1]);
    }

    final RasterDataAdapter adapter = (RasterDataAdapter) geowaveAdapterStore.getAdapter(new ByteArrayId(
        coverageName));
    final CloseableIterator<GridCoverage> gridCoverageIt = queryForTiles(
        pixelDimension,
        state.getRequestEnvelopeTransformed(),
        resolutionLevels[imageChoice.intValue()][0],
View Full Code Here

TOP

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

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.