Examples of GeoWaveEmptyTransaction


Examples of mil.nga.giat.geowave.vector.plugin.transaction.GeoWaveEmptyTransaction

    double minx = -90.0, maxx = 90.0, miny = -180.0, maxy = 180.0;

    DataStatistics<SimpleFeature> bboxStats = null;
    if (query.getFilter().equals(
        Filter.INCLUDE)) {
      Map<ByteArrayId, DataStatistics<SimpleFeature>> stats = this.components.getDataStatistics(new GeoWaveEmptyTransaction(
          this.components));
      bboxStats = stats.get(BoundingBoxDataStatistics.STATS_ID);
    }
    if (bboxStats != null) {
      minx = ((BoundingBoxDataStatistics) bboxStats).getMinX();
      maxx = ((BoundingBoxDataStatistics) bboxStats).getMaxX();
      miny = ((BoundingBoxDataStatistics) bboxStats).getMinY();
      maxy = ((BoundingBoxDataStatistics) bboxStats).getMaxY();
    }
    else {

      final FeatureReader<SimpleFeatureType, SimpleFeature> reader = new GeoWaveFeatureReader(
          query,
          new GeoWaveEmptyTransaction(
              this.components),
          this.components);
      if (reader.hasNext()) {
        minx = 90.0;
        maxx = -90.0;
View Full Code Here

Examples of mil.nga.giat.geowave.vector.plugin.transaction.GeoWaveEmptyTransaction

  @SuppressWarnings("rawtypes")
  protected int getCountInternal(
      final Query query )
      throws IOException {
    Map<ByteArrayId, DataStatistics<SimpleFeature>> stats = this.components.getDataStatistics(new GeoWaveEmptyTransaction(
        this.components));
    DataStatistics<SimpleFeature> countStats = stats.get(CountDataStatistics.STATS_ID);
    if (countStats != null && query.getFilter().equals(Filter.INCLUDE)) {
      return (int) ((CountDataStatistics) countStats).getCount();
    }
    else {
      final FeatureReader<SimpleFeatureType, SimpleFeature> reader = new GeoWaveFeatureReader(
          query,
          new GeoWaveEmptyTransaction(
              this.components),
          this.components);
      int count = 0;
      while (reader.hasNext()) {
        reader.next();
View Full Code Here

Examples of mil.nga.giat.geowave.vector.plugin.transaction.GeoWaveEmptyTransaction

    final GeoWaveFeatureSource source = new GeoWaveFeatureSource(
        this,
        adapter);
    return source.getReaderInternal(
        query,
        new GeoWaveEmptyTransaction(
            source.getComponents()));
  }
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.