Examples of Overlaps


Examples of org.opengis.filter.spatial.Overlaps

            "      </gml:Polygon> " +
            "   </fes:Overlaps> " +
            "</fes:Filter> ";
        buildDocument(xml);
       
        Overlaps f = (Overlaps) parse();
        assertNotNull(f);
       
        PropertyName e1 = (PropertyName) f.getExpression1();
        assertEquals("Geometry", e1.getPropertyName());
       
        Literal e2 = (Literal) f.getExpression2();
        assertTrue(e2.getValue() instanceof Polygon);
    }
View Full Code Here

Examples of org.opengis.filter.spatial.Overlaps

    }

    public void testOverlapsParse() throws Exception {
        FilterMockData.overlaps(document, document);

        Overlaps overlaps = (Overlaps) parse();

        assertNotNull(overlaps.getExpression1());
        assertNotNull(overlaps.getExpression2());
    }
View Full Code Here

Examples of org.opengis.filter.spatial.Overlaps

    }

    public void testOverlapsParse() throws Exception {
        FilterMockData.overlaps(document, document);

        Overlaps overlaps = (Overlaps) parse();

        assertNotNull(overlaps.getExpression1());
        assertNotNull(overlaps.getExpression2());
    }
View Full Code Here

Examples of org.opengis.filter.spatial.Overlaps

        String encoded = encoder.encodeToString(intersects);
        assertEquals("WHERE SDO_RELATE(\"GEOM\", ?, 'mask=anyinteract querytype=WINDOW') = 'TRUE' ", encoded);
    }
   
    public void testOverlapsFilter() throws Exception {
        Overlaps overlaps = ff.overlaps(ff.property("GEOM"), ff.literal(gf
                .createLineString(new Coordinate[] { new Coordinate(-10.0d, -10.0d),
                        new Coordinate(10d, 10d) })));
        String encoded = encoder.encodeToString(overlaps);
        assertEquals("WHERE SDO_RELATE(\"GEOM\", ?, 'mask=overlapbdyintersect querytype=WINDOW') = 'TRUE' ", encoded);
    }
View Full Code Here

Examples of org.opengis.filter.spatial.Overlaps

        FilterFactory2 ff = (FilterFactory2) dataStore.getFilterFactory();
        GeometryFactory gf = new GeometryFactory();
        PackedCoordinateSequenceFactory sf = new PackedCoordinateSequenceFactory();
        Polygon ls = gf.createPolygon(sf.create(
                new double[] { 5.5, 6, 7, 6, 7, 7, 5.5, 7, 5.5, 6 }, 2));
        Overlaps f = ff.overlaps(ff.property("geo"), ff.literal(ls));
        SimpleFeatureCollection features = featureSource.getFeatures(f);
        assertEquals(1, features.size());
        SimpleFeatureIterator fsi = features.features();
        assertTrue(fsi.hasNext());
        assertEquals(fsi.next().getID(), "not-active.13");
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.