Package org.geotools.coverage.io.geotiff.GeoTiffAccess

Examples of org.geotools.coverage.io.geotiff.GeoTiffAccess.Info


   * org.opengis.util.ProgressListener)
   */
  public List<BoundingBox> getHorizontalDomain(boolean global,
      ProgressListener listener) throws IOException {
    ensureNotDisposed();
    Info info = getInfo( listener );
    BoundingBox bbox = info.getBounds();
    return Collections.singletonList( bbox);
  }
View Full Code Here


   * org.opengis.util.ProgressListener)
   */
  public List<Rectangle> getRasterDomain(boolean overall,
      ProgressListener listener) throws IOException {
    ensureNotDisposed();
    Info info = getInfo( listener );   
    return Collections.singletonList(new Rectangle(info.getGeometry().getGridRange2D()));
  }
View Full Code Here

          if (g2w != null || rasterArea != null || g2w != null) {
            final ParameterValue<GridGeometry2D> readParameter = AbstractGridFormat.READ_GRIDGEOMETRY2D
                .createValue();
            if (g2w == null) {
              if (rasterArea == null) {
                Info info = getInfo(null );
                readParameter.setValue(new GridGeometry2D(
                    info.getGeometry().getGridRange2D(),
                    new ReferencedEnvelope(bbox)));
              } else {
                readParameter.setValue(new GridGeometry2D(
                    new GridEnvelope2D(rasterArea),
                    new ReferencedEnvelope(bbox)));
View Full Code Here

      writer.dispose();
      response.addResult(coverage);
      response.setStatus(Status.SUCCESS);

      // update the access
      Info info = getInfo(null);
      info.setExtent( (GeneralEnvelope) coverage.getGridGeometry().getEnvelope() );
      info.setGeometry( coverage.getGridGeometry() );
    } catch (Throwable e) {
      response.addException(new GeoTiffException(null, "IO error", e));
    } finally {
      this.access.globalLock.writeLock().unlock();
    }
View Full Code Here

TOP

Related Classes of org.geotools.coverage.io.geotiff.GeoTiffAccess.Info

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.