Codota Logo
RTree.insertBulk
Code IndexAdd Codota to your IDE (free)

How to use
insertBulk
method
in
org.deegree.commons.index.RTree

Best Java code snippets using org.deegree.commons.index.RTree.insertBulk (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: deegree/deegree3

/**
 * @param shapeReader
 */
private static Pair<RTree<Long>, Boolean> createIndex( SHPReader shapeReader ) {
  Envelope env = shapeReader.getEnvelope();
  // use 128 values per rect.
  RTree<Long> result = new RTree<Long>( createEnvelope( env ), -1 );
  // to work around Java's non-existent variant type
  LOG.debug( "Read envelopes from shape file..." );
  Pair<ArrayList<Pair<float[], Long>>, Boolean> p = shapeReader.readEnvelopes();
  LOG.debug( "done reading envelopes." );
  result.insertBulk( p.first );
  return new Pair<RTree<Long>, Boolean>( result, p.second );
}
origin: deegree/deegree3

private void rebuildRtrees() {
  ftToIndex.clear();
  for ( FeatureType ft : ftToFeatures.keySet() ) {
    FeatureCollection fc = ftToFeatures.get( ft );
    Envelope env = fc.getEnvelope();
    if ( env != null ) {
      RTree<Feature> index = new RTree<Feature>( toFloats( env ), 16 );
      List<Pair<float[], Feature>> fBboxes = new ArrayList<Pair<float[], Feature>>( fc.size() );
      for ( Feature f : fc ) {
        Envelope fEnv = f.getEnvelope();
        if ( fEnv != null ) {
          float[] floats = toFloats( fEnv );
          fBboxes.add( new Pair<float[], Feature>( floats, f ) );
        }
      }
      index.insertBulk( fBboxes );
      ftToIndex.put( ft, index );
    }
  }
}
org.deegree.commons.indexRTreeinsertBulk

Javadoc

Builds the index from the given objects with their envelope.

Popular methods of RTree

  • <init>
  • insert
  • query
  • addAfterLast
    Add newEntry after the last not-null entry in the array, starting from index + 1.
  • addOrphanedEntries
  • adjustTree
    Adjust the tree bottom-up after insertion, enlarging the bboxes of parent nodes and splitting the no
  • buildFromFloat
    RB: this method is a duplicate from buildTree, but used only with float arrays. (Sorry no time to re
  • buildTree
  • calculateArea
  • calculateAreaOverlap
  • calculateEnlargement
    Calculate how much does the bbox of an entry needs to be enlarged so that it contains the bbox of th
  • calculateIntersection
  • calculateEnlargement,
  • calculateIntersection,
  • calculatePerimMax,
  • calculatePerimOverlap,
  • calculatePerimeter,
  • checkComp,
  • chooseLeaf,
  • chooseSubtree,
  • condenseTree

Popular in Java

  • Making http post requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • onCreateOptionsMenu (Activity)
  • findViewById (Activity)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
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