Codota Logo
org.deegree.coverage.raster.data.nio
Code IndexAdd Codota to your IDE (free)

How to use org.deegree.coverage.raster.data.nio

Best Java code snippets using org.deegree.coverage.raster.data.nio (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: deegree/deegree3

@Override
protected ByteBufferRasterData createCompatibleEmptyRasterData() {
  return new LineInterleavedRasterData( getView(), getOriginalWidth(), getOriginalHeight(),
                     dataAccess.getReader(), dataInfo, false );
}
origin: deegree/deegree3

@Override
public BandInterleavedRasterData createCompatibleRasterData( DataView view ) {
  return new BandInterleavedRasterData( view, getOriginalWidth(), getOriginalHeight(), dataAccess.getReader(),
                     dataInfo, false );
}
origin: deegree/deegree3

@Override
protected ByteBufferRasterData createCompatibleEmptyRasterData() {
  return new PixelInterleavedRasterData( getView(), getOriginalWidth(), getOriginalHeight(),
                      dataAccess.getReader(), this.dataInfo, false );
}
origin: deegree/deegree3

public float[] getFloatPixel( int x, int y, float[] result ) {
  if ( result == null || result.length < getView().dataInfo.bands ) {
    result = new float[getView().dataInfo.bands];
  }
  for ( int band = 0; band < getView().dataInfo.bands; band++ ) {
    result[band] = getFloatSample( x, y, band );
  }
  return result;
}
origin: deegree/deegree3

public byte[] getBytePixel( int x, int y, byte[] result ) {
  if ( result == null || result.length < getView().dataInfo.bands ) {
    result = new byte[getView().dataInfo.bands];
  }
  for ( int band = 0; band < getView().dataInfo.bands; band++ ) {
    result[band] = getByteSample( x, y, band );
  }
  return result;
}
origin: deegree/deegree3

public double[] getDoublePixel( int x, int y, double[] result ) {
  if ( result == null || result.length < getView().dataInfo.bands ) {
    result = new double[getView().dataInfo.bands];
  }
  for ( int band = 0; band < getView().dataInfo.bands; band++ ) {
    result[band] = getDoubleSample( x, y, band );
  }
  return result;
}
origin: deegree/deegree3

public int[] getIntPixel( int x, int y, int[] result ) {
  if ( result == null || result.length < getView().dataInfo.bands ) {
    result = new int[getView().dataInfo.bands];
  }
  for ( int band = 0; band < getView().dataInfo.bands; band++ ) {
    result[band] = getIntSample( x, y, band );
  }
  return result;
}
origin: deegree/deegree3

/**
 * Fills the entire buffer with no data values. Note this operation is only possible on writable buffers.
 */
public void fillWithNoData() {
  dataAccess.fillWithNoData();
}
origin: deegree/deegree3

/**
 * Use the given bytebuffer as a data source. This method should be handled with much care.
 * 
 * @param buf
 *            to set.
 * @param dataRect
 *            defining the width, height and position of the data.
 */
public void setByteBuffer( ByteBuffer buf, DataView dataRect ) {
  dataAccess.setByteBuffer( buf, dataRect );
}
origin: deegree/deegree3

/**
 * @return The internal ByteBuffer.
 */
public ByteBuffer getByteBuffer() {
  if ( data == null ) {
    prepareBuffer();
  }
  return data;
}
origin: deegree/deegree3

/**
 * @return The internal ByteBuffer.
 */
public ByteBuffer getByteBuffer() {
  return dataAccess.getByteBuffer();
}
origin: deegree/deegree3

/**
 * @return the domain of validity of the byte buffer, which need not be the view on the data.
 */
public RasterRect getBytebufferDomain() {
  return dataAccess.getBytebufferDomain();
}
origin: deegree/deegree3

/**
 * @return the view on the data
 */
public DataView getView() {
  return dataAccess.getView();
}
origin: deegree/deegree3

  /**
   * @return the Reader which supplies this buffer with data, may be <code>null</code>
   */
  public RasterReader getReader() {
    return this.dataAccess.getReader();
  }
}
origin: deegree/deegree3

/**
 * Returns the needed size of the ByteBuffer in bytes.
 * 
 * @return size of the buffer
 */
public final int getRequiredBufferSize() {
  // data.capacity() can not be used if the ByteBuffer was not yet instantiated.
  // return rasterWidth * rasterHeight * dataInfo.bands * dataInfo.dataSize;
  return dataAccess.requiredBufferSize();
}
origin: deegree/deegree3

/**
 * @return true if the view lies totally outside data range.
 */
public boolean isOutside() {
  return dataAccess.isOutside();
}
origin: deegree/deegree3

/**
 * @return true if the view lies totally within data range.
 */
public boolean isWithinDataArea() {
  return dataAccess.isWithinDataArea();
}
origin: deegree/deegree3

@Override
public LineInterleavedRasterData createCompatibleRasterData( DataView view ) {
  return new LineInterleavedRasterData( view, getOriginalWidth(), getOriginalHeight(), dataAccess.getReader(),
                     dataInfo, false );
}
origin: deegree/deegree3

@Override
protected ByteBufferRasterData createCompatibleEmptyRasterData() {
  return new BandInterleavedRasterData( getView(), getOriginalWidth(), getOriginalHeight(),
                     dataAccess.getReader(), this.dataInfo, false );
}
origin: deegree/deegree3

@Override
public PixelInterleavedRasterData createCompatibleRasterData( DataView view ) {
  return new PixelInterleavedRasterData( view, getOriginalWidth(), getOriginalHeight(), dataAccess.getReader(),
                      dataInfo, false );
}
org.deegree.coverage.raster.data.nio

Most used classes

  • ByteBufferRasterData
    This abstract class implements the RasterData interface for ByteBuffer based raster. It is based on
  • PixelInterleavedRasterData
    This class implements a pixel-interleaved, ByteBuffer-based RasterData.
  • BandInterleavedRasterData
    This class implements a band-interleaved, ByteBuffer-based RasterData.
  • BufferAccess
    The BufferAccess glue between the databuffer and the reader (which has access to the real data).
  • LineInterleavedRasterData
    This class implements a line-interleaved, ByteBuffer-based RasterData.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now