Codota Logo
RasterTransformer.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.deegree.coverage.raster.RasterTransformer
constructor

Best Java code snippets using org.deegree.coverage.raster.RasterTransformer.<init> (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: deegree/deegree3

  /**
   * Returns a subset of the raster, transformed into to SRS of the target envelope.
   * 
   * @param raster
   * @param env
   * @param grid
   * @param interpolation
   * @return the transformation result
   * @throws TransformationException
   *             if the transformation fails
   */
  public static AbstractRaster transform( AbstractRaster raster, Envelope env, Grid grid, String interpolation )
              throws TransformationException {
    LOG.debug( "Transforming raster with envelope '{}' and grid '{}', interpolation method '{}'.",
          new Object[] { env, grid, interpolation } );
    AbstractRaster result;
    try {
      RasterTransformer transf = new RasterTransformer( env.getCoordinateSystem() );
      result = transf.transform( raster, env, grid.getWidth(), grid.getHeight(),
                    InterpolationType.fromString( interpolation ) );
    } catch ( Exception e ) {
      LOG.debug( "Original stack trace", e );
      throw new TransformationException( "error while transforming raster result: " + e.getMessage(), e );
    }
    return result;
  }
}
origin: deegree/deegree3

private static void transformRaster( String[] args, String srcCRS, String dstCRS, InterpolationType type,
                   OriginLocation location ) {
  try {
    MemoryTileContainer tileContainer = new MemoryTileContainer();
    for ( int i = 0; i < args.length - 1; i++ ) {
      if ( args[i] != null ) {
        File f = new File( args[i] );
        RasterIOOptions options = RasterIOOptions.forFile( f );
        options.add( RasterIOOptions.GEO_ORIGIN_LOCATION, location.name() );
        tileContainer.addTile( RasterFactory.loadRasterFromFile( f, options ) );
      }
    }
    AbstractRaster srcRaster = new TiledRaster( tileContainer, null );
    RasterTransformer transf = new RasterTransformer( dstCRS );
    srcRaster.setCoordinateSystem( CRSManager.getCRSRef( srcCRS ) );
    AbstractRaster result = transf.transform( srcRaster, type );
    RasterFactory.saveRasterToFile( result, new File( args[args.length - 1] ) );
  } catch ( Exception ex ) {
    System.err.println( "Couldn't transform raster file: " );
    ex.printStackTrace();
    System.exit( 2 );
  }
}
origin: deegree/deegree3

int reqHeight = height;
RasterTransformer rtrans = new RasterTransformer( bbox.getCoordinateSystem() );
if ( bbox.getCoordinateSystem() != null && !bbox.getCoordinateSystem().equals( srs ) ) {
  LOG.debug( "Transforming bbox {} to {}.", bbox, srs );
origin: deegree/deegree3

          throws IllegalArgumentException, UnknownCRSException, IOException {
final RasterTransformer transf = new RasterTransformer( dstSRS );
transf.setBackgroundValue( backgroundValue );
origin: deegree/deegree3

  RasterTransformer transformer = new RasterTransformer( targetCRS );
  result = transformer.transform( this, spatialExtent, rect.width, rect.height, interpolation );
} catch ( TransformationException e ) {
org.deegree.coverage.rasterRasterTransformer<init>

Javadoc

Creates a new RasterTransformer with the given id as the target CRS.

Popular methods of RasterTransformer

  • transform
    Creates a transformed raster from a given source raster. This method transforms the requested envelo
  • createWarp
  • getSubRaster
    Create a new raster that contains all data we need for the transformation.
  • getTargetCRS
  • setBackgroundValue
    Sets the background for the raster transformation.
  • transformDstToSrc
  • warpTransform

Popular in Java

  • Creating JSON documents from java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • JFileChooser (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