Java 实现的 R-Tree,PRTree 1.5 发布

openkk 13年前
     <div id="p_fullcontent" class="detail">     <p><a href="/misc/goto?guid=4958336205007012357" target="_blank">PRTree</a>是一个实现了优先级R-Tree以及空间索引的Java开发包,<br /> 该版本更新了 RTree 以支持超过2维的数据。<br /> 代码示例:</p>     <p><span style="color:#0000ff;"></span></p>     <pre class="brush:java; toolbar: true; auto-links: false;">PRTree tree = new PRTree (new Rectangle2DConverter (), 10);  Rectangle2D rx = new Rectangle2D.Double (0, 0, 1, 1);  tree.load (Collections.singletonList (rx));  for (Rectangle2D r : tree.find (0, 0, 1, 1)) {      System.out.println ("found a rectangle: " + r);  }</pre>     <br />     <p></p>    </div>