Examples of disjoint()


Examples of org.opengis.filter.FilterFactory2.disjoint()

 
  private Filter filterBBox(ReferencedEnvelope bBox, SimpleFeatureType ft)
    throws FactoryRegistryException, IllegalFilterException
  {
    FilterFactory2 ff = CommonFactoryFinder.getFilterFactory2(null);
    Disjoint filter = ff.disjoint(ff.property(ft.getGeometryDescriptor().getLocalName()),
            ff.literal(JTS.toGeometry((BoundingBox) bBox)));
    return filter;
  }
}
View Full Code Here

Examples of org.opengis.filter.FilterFactory2.disjoint()

        GeometryFactory gf = new GeometryFactory();
        PackedCoordinateSequenceFactory sf = new PackedCoordinateSequenceFactory();
        LinearRing shell = gf.createLinearRing(sf.create(new double[] { 4, -1, 4, 5, 6, 5, 6, -1,
                4, -1 }, 2));
        Polygon polygon = gf.createPolygon(shell, null);
        Disjoint dj = ff.disjoint(ff.property(aname("geom")), ff.literal(polygon));
        FeatureCollection features = dataStore.getFeatureSource(tname("road")).getFeatures(dj);
        checkSingleResult(features, "r2");
    }

    public void testEqualsFilter() throws Exception {
View Full Code Here

Examples of org.opengis.filter.FilterFactory2.disjoint()

      return Filter.INCLUDE;
    }
    FilterFactory2 ff = CommonFactoryFinder.getFilterFactory2(null);
    PropertyName geomExpr = ff.property(ft.getGeometryDescriptor().getLocalName());
    Literal bboxExpr = ff.literal(JTS.toGeometry(bBox));
    Disjoint disjointFilter = ff.disjoint(geomExpr, bboxExpr);
   
    return ff.not(disjointFilter);
  }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.