Package org.neo4j.gis.spatial.rtree.filter

Examples of org.neo4j.gis.spatial.rtree.filter.SearchFilter


    public void union() throws Exception
    {
      // START SNIPPET: s_union
      WKTReader reader = new WKTReader( intersectionLayer.getGeometryFactory() );
        Geometry geometry = reader.read( "POLYGON ((3 3, 3 5, 7 7, 7 3, 3 3))" );
        SearchFilter filter = new SearchIntersectWindow( intersectionLayer, new Envelope( 7, 10, 7, 10 ) );
        GeoPipeline pipeline = GeoPipeline.start( intersectionLayer, filter ).union( geometry );
        // END SNIPPET: s_union
        addImageSnippet( intersectionLayer, pipeline, getTitle() );

        // TODO test?
View Full Code Here


    index.visit(counter, index.getIndexRoot());
    return counter.getResult();
  }
 
  private SearchFilter wrapSearchFilter(final SearchFilter filter) {
    return new SearchFilter() {

      @Override
      public boolean needsToVisit(Envelope envelope) {
        return queryIndexNode(envelope) &&
          filter.needsToVisit(envelope);
View Full Code Here

    index.visit(counter, index.getIndexRoot());
    return counter.getResult();
  }
 
  private SearchFilter wrapSearchFilter(final SearchFilter filter) {
    return new SearchFilter() {

      @Override
      public boolean needsToVisit(Envelope envelope) {
        return queryIndexNode(envelope) &&
          filter.needsToVisit(envelope);
View Full Code Here

TOP

Related Classes of org.neo4j.gis.spatial.rtree.filter.SearchFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.