Tabnine Logo
TileIOUtils
Code IndexAdd Tabnine to your IDE (free)

How to use
TileIOUtils
in
com.oculusinfo.binning.util

Best Java code snippets using com.oculusinfo.binning.util.TileIOUtils (Showing top 2 results out of 315)

origin: unchartedsoftware/aperture-tiles

TileData<T> data = TileIOUtils.tileDataForIndex(index, dataId, serializer, pyramidIO, coarseness, tileProperties);
origin: unchartedsoftware/aperture-tiles

  @Override
  public TileData<T> combine(TileData<T> data, TileIndex index, int coarseness, JSONObject tileProperties) throws IOException, JSONException {
    TileData normalizingData = TileIOUtils.tileDataForIndex(index, _dataId, _serializer, _pyramidIO, coarseness, tileProperties);

    // Need to make sure TileData is of type List<?> for use with BinaryOperationTileView
    if (!(data.getDefaultValue() instanceof List<?>)) {
      data = new ListTileView(data);
    }

    if (!(normalizingData.getDefaultValue() instanceof List<?>)) {
      normalizingData = new ListTileView(normalizingData);
    }

    // Both datasets need to have the same number of buckets for BinaryOperationTileView
    int normalizeSize = getBucketCount((TileData<List<?>>)normalizingData);
    int dataSize = getBucketCount((TileData<List<?>>)data);

    if (dataSize < normalizeSize) {
      data = new ScaledTileView(data, normalizeSize);
    } else if (normalizeSize < dataSize) {
      normalizingData = new ScaledTileView(normalizingData, dataSize);
    }

    return new BinaryOperationTileView(
      data, normalizingData, BinaryOperator.OPERATOR_TYPE.DIVIDE, 0.0);
  }
}
com.oculusinfo.binning.utilTileIOUtils

Javadoc

Utility class for reading tile data

Most used methods

  • tileDataForIndex
    Fetch a desired tile

Popular in Java

  • Creating JSON documents from java classes using gson
  • setRequestProperty (URLConnection)
  • onRequestPermissionsResult (Fragment)
  • addToBackStack (FragmentTransaction)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • JFileChooser (javax.swing)
  • JOptionPane (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now