Package org.neo4j.gis.spatial.pipes.filtering

Examples of org.neo4j.gis.spatial.pipes.filtering.FilterCQL


    /**
     * @see FilterCQL
     */
    public GeoPipeline cqlFilter(String cql) throws CQLException {
      return addPipe(new FilterCQL(layer, cql));
    }
View Full Code Here


        // START SNIPPET: s_filter_by_cql_using_complex_cql
        long counter  = GeoPipeline.start( osmLayer ).cqlFilter(
                        "highway is not null and geometryType(the_geom) = 'LineString'" ).count();
        // END SNIPPET: s_filter_by_cql_using_complex_cql
       
        FilterCQL filter = new FilterCQL(osmLayer,"highway is not null and geometryType(the_geom) = 'LineString'" );
        filter.setStarts( GeoPipeline.start( osmLayer ));
        assertTrue( filter.hasNext() );
        while(filter.hasNext())
        {
            filter.next();
            counter --;
        }
        assertEquals( 0, counter );
    }
View Full Code Here

TOP

Related Classes of org.neo4j.gis.spatial.pipes.filtering.FilterCQL

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.