Codota Logo
RasterIOOptions.copyOf
Code IndexAdd Codota to your IDE (free)

How to use
copyOf
method
in
org.deegree.coverage.raster.io.RasterIOOptions

Best Java code snippets using org.deegree.coverage.raster.io.RasterIOOptions.copyOf (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: deegree/deegree3

opts.copyOf( options );
origin: deegree/deegree3

/**
 * Save a raster to a file.
 * 
 * @param raster
 * @param filename
 * @param options
 *            map with options for the raster writer
 * @throws IOException
 */
public static void saveRasterToFile( AbstractRaster raster, File filename, RasterIOOptions options )
            throws IOException {
  RasterIOOptions opts = new RasterIOOptions();
  opts.copyOf( options );
  if ( !opts.contains( RasterIOOptions.OPT_FORMAT ) ) {
    String format = FileUtils.getFileExtension( filename );
    opts.add( RasterIOOptions.OPT_FORMAT, format );
  }
  RasterWriter writer = getRasterWriter( raster, opts );
  if ( writer == null ) {
    log.error( "couldn't find raster writer for " + filename );
    throw new IOException( "couldn't find raster writer" );
  }
  writer.write( raster, filename, options );
}
origin: deegree/deegree3

opts.copyOf( options );
origin: deegree/deegree3

options.copyOf( this.rasterOptions );
options.add( RasterIOOptions.CRS, dstSRS.getAlias() );
options.add( RasterIOOptions.OPT_FORMAT, outputFormat );
origin: deegree/deegree3

try {
  RasterIOOptions rOptions = new RasterIOOptions();
  rOptions.copyOf( options );
  if ( config.getOriginLocation() != null ) {
    rOptions.add( RasterIOOptions.GEO_ORIGIN_LOCATION,
origin: deegree/deegree3

LOG.info( "Creating raster from file: {}", filename );
RasterIOOptions newOpts = RasterIOOptions.forFile( filename );
newOpts.copyOf( options );
AbstractRaster raster = RasterFactory.loadRasterFromFile( filename, newOpts );
ICRS rasterCRS = raster.getCoordinateSystem();
origin: deegree/deegree3

LOG.info( "Creating raster from file: {}", filename );
RasterIOOptions newOpts = RasterIOOptions.forFile( filename );
newOpts.copyOf( options );
AbstractRaster raster = RasterFactory.loadRasterFromFile( filename, newOpts, null );
ICRS rasterCRS = raster.getCoordinateSystem();
origin: deegree/deegree3

height = reader.getRows();
RasterIOOptions opts = new RasterIOOptions();
opts.copyOf( options );
setID( opts );
org.deegree.coverage.raster.ioRasterIOOptionscopyOf

Javadoc

Copies the the values from the given options.

Popular methods of RasterIOOptions

  • <init>
    Set the default loading policy to one configured in the RasterDataContainerFactory
  • add
  • forFile
    Return a RasterIOOption object with the format set according to the given file with an optional Rast
  • get
  • getCRS
  • getRasterOriginLocation
  • setNoData
    no data value. The byte[] can be created from an array of Strings by using the RasterIOOptions#creat
  • contains
  • createNoData
    Create a noData array from the given strings. Each string will be interpreted as the given type.
  • getLoadingPolicy
  • getNoDataValue
    Returns the no data value. A no data value should be added to the RasterIOOptions by using RasterIOO
  • getRasterGeoReference
  • getNoDataValue,
  • getRasterGeoReference,
  • hasRasterGeoReference,
  • readWorldFile,
  • setRasterGeoReference

Popular in Java

  • Finding current android device location
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (Timer)
  • getSharedPreferences (Context)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Path (java.nio.file)
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • JTextField (javax.swing)
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