Codota Logo
InterpolationType.fromString
Code IndexAdd Codota to your IDE (free)

How to use
fromString
method
in
org.deegree.coverage.raster.interpolation.InterpolationType

Best Java code snippets using org.deegree.coverage.raster.interpolation.InterpolationType.fromString (Showing top 3 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

  /**
   * @return this WCS interpolation type as a raster api type, or <code>null</code> if it the interpolation
   *         method is not supported by the raster api.
   */
  public InterpolationType asRasterAPIType() {
    return InterpolationType.fromString( name() );
  }
}
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 checkOutputOptions( GetCoverage request, CoverageOptions options )
            throws OWSException {
  boolean supported;
  String outputFormat = request.getOutputFormat();
  supported = options.getOutputFormats().contains( outputFormat );
  if ( !supported ) {
    // check for geotiff
    if ( outputFormat == null || !"geotiff".equals( outputFormat.toLowerCase() ) ) {
      throw new OWSException( "Unsupported output format (" + outputFormat + ")",
                  OWSException.INVALID_PARAMETER_VALUE, "FORMAT" );
    }
  }
  String interpolation = request.getInterpolation();
  try {
    supported = options.getInterpolations().contains( InterpolationType.fromString( interpolation ) );
  } catch ( Exception e ) {
    throw new OWSException( "Unsupported interpolation (" + interpolation + ")",
                OWSException.INVALID_PARAMETER_VALUE, "INTERPOLATION" );
  }
  String crs = request.getOutputCRS();
  supported = options.getCRSs().contains( crs );
  if ( !supported ) {
    throw new OWSException( "unsupported response crs (" + crs + ")", OWSException.INVALID_PARAMETER_VALUE,
                "RESPONSE CRS" );
  }
}
org.deegree.coverage.raster.interpolationInterpolationTypefromString

Javadoc

Get interpolation for the given string. This method is case insensitive, words can be separated with a whitespace, minus or underscore.

Popular methods of InterpolationType

  • name
  • toString
  • valueOf

Popular in Java

  • Updating database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • startActivity (Activity)
  • onCreateOptionsMenu (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
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