Examples of FeatureVisitor


Examples of org.opengis.feature.FeatureVisitor

    }
   
    public void testVisitor() throws IOException {
        Filter filter = ff.equal(ff.property("someAtt"), ff.literal("1"), false);
        SimpleFeatureCollection collection = new FilteringSimpleFeatureCollection(delegate, filter);
        collection.accepts(new FeatureVisitor() {
           
            public void visit(Feature feature) {
                assertEquals(1, feature.getProperty("someAtt").getValue());
               
            }
View Full Code Here

Examples of org.opengis.feature.FeatureVisitor

        final String[] properties = { "cat", "str1", "the_geom" };
        final SimpleFeatureType featureType;
        featureType = getTypeView(featureName, schemaLocation, GEOS_ARCHSITES_11.CRS, properties);

        final FeatureVisitor assertor = new FeatureAssertor(featureType);

        GetFeatureParser parser = getParser(featureName, schemaLocation, featureType, data);

        int nof = parser.getNumberOfFeatures();
        assertEquals(expectedCount, nof);
View Full Code Here

Examples of org.opengis.feature.FeatureVisitor

        final String[] properties = { "the_geom", "NAME", "THUMBNAIL", "MAINPAGE" };
        final SimpleFeatureType featureType;
        featureType = getTypeView(featureName, schemaLocation, GEOS_POI_10.CRS, properties);

        final FeatureVisitor assertor = new FeatureAssertor(featureType);

        GetFeatureParser parser = getParser(featureName, schemaLocation, featureType, data);

        int nof = parser.getNumberOfFeatures();
        assertEquals(-1, nof);
View Full Code Here

Examples of org.opengis.feature.FeatureVisitor

        final String[] properties = { "the_geom", "STATE_NAME", "STATE_FIPS", "SUB_REGION",
                "SAMP_POP" };
        final SimpleFeatureType featureType;
        featureType = getTypeView(featureName, schemaLocation, GEOS_STATES_11.CRS, properties);

        final FeatureVisitor assertor = new FeatureAssertor(featureType) {
            @Override
            public void visit(final Feature feature) {
                super.visit(feature);
                final String fid = feature.getIdentifier().getID();
                final int numPolygons;
View Full Code Here

Examples of org.opengis.feature.FeatureVisitor

        final String[] properties = { "the_geom", "STATE_NAME", "STATE_FIPS", "SUB_REGION",
                "SAMP_POP" };
        final SimpleFeatureType featureType;
        featureType = getTypeView(featureName, schemaLocation, GEOS_STATES_11.CRS, properties);

        final FeatureVisitor assertor = new FeatureAssertor(featureType) {
            @Override
            public void visit(final Feature feature) {
                super.visit(feature);
                final String fid = feature.getIdentifier().getID();
                final int numPolygons;
View Full Code Here

Examples of org.opengis.feature.FeatureVisitor

        final String[] properties = { "the_geom", "label" };
        final SimpleFeatureType featureType;
        featureType = getTypeView(featureName, schemaLocation, GEOS_ROADS_11.CRS, properties);

        final FeatureVisitor assertor = new FeatureAssertor(featureType);

        GetFeatureParser parser = getParser(featureName, schemaLocation, featureType,
                GEOS_ROADS_11.DATA);

        int nof = parser.getNumberOfFeatures();
View Full Code Here

Examples of org.opengis.feature.FeatureVisitor

        final String[] properties = { "the_geom", "label" };
        final SimpleFeatureType featureType;
        featureType = getTypeView(featureName, schemaLocation, GEOS_ROADS_10.CRS, properties);

        final FeatureVisitor assertor = new FeatureAssertor(featureType);

        GetFeatureParser parser = getParser(featureName, schemaLocation, featureType,
                GEOS_ROADS_10.DATA);

        int nof = parser.getNumberOfFeatures();
View Full Code Here

Examples of org.opengis.feature.FeatureVisitor

        final String[] properties = { "the_geom", "CNTRY_NAME", "POP_CLASS" };
        final SimpleFeatureType featureType;
        featureType = getTypeView(featureName, schemaLocation, GEOS_TASMANIA_CITIES_11.CRS,
                properties);

        final FeatureVisitor assertor = new FeatureAssertor(featureType);

        GetFeatureParser parser = getParser(featureName, schemaLocation, featureType,
                GEOS_TASMANIA_CITIES_11.DATA);

        int nof = parser.getNumberOfFeatures();
View Full Code Here

Examples of org.opengis.feature.FeatureVisitor

        final String[] properties = { "geometry", "instanceName", "instanceCode" };

        final SimpleFeatureType featureType = getTypeView(featureName, schemaLocation, srsName,
                properties);

        final FeatureVisitor assertor = new FeatureAssertor(featureType);

        GetFeatureParser parser = getParser(featureName, schemaLocation, featureType,
                CUBEWERX_GOVUNITCE.DATA);
        int nof = parser.getNumberOfFeatures();
        assertEquals(-1, nof);
View Full Code Here

Examples of org.opengis.feature.FeatureVisitor

                CUBEWERX_ROADSEG.DATA);

        int nof = parser.getNumberOfFeatures();
        assertEquals(-1, nof);

        FeatureVisitor assertor = new FeatureAssertor(featureType);
        testParseGetFeatures(featureName, featureType, parser, assertor, 3);
    }
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.