Package mil.nga.giat.geowave.vector.query

Examples of mil.nga.giat.geowave.vector.query.SpatialDecimationQuery


    // data adapter Ids
    try (final CloseableIterator<Index> indices = indexStore.getIndices()) {
      final List<CloseableIterator<SimpleFeature>> results = new ArrayList<CloseableIterator<SimpleFeature>>();
      while (indices.hasNext()) {
        final Index index = indices.next();
        final SpatialDecimationQuery accumuloQuery;
        if ((query == null)) {
          accumuloQuery = new SpatialDecimationQuery(
              Arrays.asList(new ByteArrayId[] {
                adapter.getAdapterId()
              }),
              index,
              width,
              height,
              pixelSize,
              filter,
              adapter,
              envelope,
              authorizations);
        }
        else if (query.isSupported(index)) {
          // construct the query
          accumuloQuery = new SpatialDecimationQuery(
              Arrays.asList(new ByteArrayId[] {
                adapter.getAdapterId()
              }),
              index,
              query.getIndexConstraints(index.getIndexStrategy()),
              query.createFilters(index.getIndexModel()),
              width,
              height,
              pixelSize,
              filter,
              adapter,
              envelope,
              authorizations);
        }
        else {
          continue;
        }
        results.add((CloseableIterator<SimpleFeature>) accumuloQuery.query(
            accumuloOperations,
            new MemoryAdapterStore(
                new DataAdapter[] {
                  adapter
                }),
View Full Code Here

TOP

Related Classes of mil.nga.giat.geowave.vector.query.SpatialDecimationQuery

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.