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

How to use
TilePyramidFactory
in
com.oculusinfo.binning

Best Java code snippets using com.oculusinfo.binning.TilePyramidFactory (Showing top 3 results out of 315)

origin: unchartedsoftware/aperture-tiles

  @Override
  public ConfigurableFactory<TilePyramid> createFactory (String name,
                              ConfigurableFactory<?> parent,
                              List<String> path) {
    return new TilePyramidFactory(name, parent, path);
  }
}
origin: unchartedsoftware/aperture-tiles

public TilePyramidFactory (String name, ConfigurableFactory<?> parent,
              List<String> path) {
  super(name, TilePyramid.class, parent, path);
  addProperty(PYRAMID_TYPE);
  addProperty(MINIMUM_X);
  addProperty(MAXIMUM_X);
  addProperty(MINIMUM_Y);
  addProperty(MAXIMUM_Y);
}
origin: unchartedsoftware/aperture-tiles

  @Override
  protected TilePyramid create () throws ConfigurationException {
    String pyramidType = getPropertyValue(PYRAMID_TYPE).toLowerCase();

    if ("webmercator".equals(pyramidType) || "epsg:900913".equals(pyramidType) || "epsg:3857".equals(pyramidType)) {
      return new WebMercatorTilePyramid();
    } else if ("areaofinterest".equals(pyramidType) || "epsg:4326".equals(pyramidType)) {
      double minX = getPropertyValue(MINIMUM_X);
      double maxX = getPropertyValue(MAXIMUM_X);
      double minY = getPropertyValue(MINIMUM_Y);
      double maxY = getPropertyValue(MAXIMUM_Y);
      return new AOITilePyramid(minX, minY, maxX, maxY);
    } else {
      throw new ConfigurationException("Unrecognized pyramid type "+pyramidType);
    }
  }
}
com.oculusinfo.binningTilePyramidFactory

Most used methods

  • <init>
  • addProperty
  • getPropertyValue

Popular in Java

  • Start an intent from android
  • getApplicationContext (Context)
  • addToBackStack (FragmentTransaction)
  • onRequestPermissionsResult (Fragment)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • JButton (javax.swing)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top plugins for Android Studio
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