Package org.geotools.data.efeature

Examples of org.geotools.data.efeature.EFeatureIterator


                String eType = type[0].toString();               
                int count = 0;
                TreeIterator<EObject> eObjects = eResource.getAllContents();               
                EFeatureFilter eFilter = new EFeatureFilter(where);
                EFeatureQuery eQuery = new EFeatureQuery(eObjects, eFilter);
                EFeatureIterator it = eQuery.iterator();
                while(it.hasNext()) {
                    EObject eObject = it.next();
                    String eID = EcoreUtil.getID(eObject);
                    trace("eID: " + eID);
                    count++;
                }
               
View Full Code Here


                String eType = type[0].toString();               
                int count = 0;
                TreeIterator<EObject> eObjects = eResource.getAllContents();               
                EFeatureFilter eFilter = new EFeatureFilter(where);
                EFeatureQuery eQuery = new EFeatureQuery(eObjects, eFilter);
                EFeatureIterator it = eQuery.iterator();
                while(it.hasNext()) {
                    it.next();
                    count++;
                }
               
                assertEquals("Feature count mismatch",0,count);               
                trace("Count["+eType+"]: " + count,TIME_DELTA);
View Full Code Here

                String eType = type[0].toString();               
                int count = 0;
                TreeIterator<EObject> eObjects = eResource.getAllContents();               
                EFeatureFilter eFilter = new EFeatureFilter(where);
                EFeatureQuery eQuery = new EFeatureQuery(eObjects, eFilter);
                EFeatureIterator it = eQuery.iterator();
                while(it.hasNext()) {
                    EObject eObject = it.next();
                    count++;
                    if(count==5) {
                        assertTrue("Object " + eObject + " is not an " +
                          "instance of EFeatureCompatibleData",
                          eObject instanceof EFeatureCompatibleData);
View Full Code Here

            for(Object[] type : eTypeData) {
                int count = 0;
                String eType = type[0].toString();               
                TreeIterator<EObject> eObjects = eResource.getAllContents();               
                EFeatureQuery eQuery = EFeatureUtils.toEFeatureQuery(eObjects, filter);
                EFeatureIterator it = eQuery.iterator();
                while(it.hasNext()) {
                    it.next();
                    count++;
                }
                assertEquals("Feature count mismatch",4,count);
                trace("Count["+eType+"]: " + count,TIME_DELTA);
               
View Full Code Here

            dTime();
            int count = 0;
            TreeIterator<EObject> eObjects = eResource.getAllContents();               
            EFeatureFilter eFilter = new EFeatureFilter(where);
            EFeatureQuery eQuery = new EFeatureQuery(eObjects, eFilter);
            EFeatureIterator it = eQuery.iterator();
            while(it.hasNext()) {
                EObject eObject = it.next();
                assertTrue("EObject " + eObject + " is not an " +
                        "instance of EFeatureData", eObject instanceof EFeatureData);
                EFeatureData<?,?> eFeatureData = (EFeatureData<?,?>)eObject;
                Object a = eFeatureData.getAttribute();
                Object g = eFeatureData.getGeometry();
View Full Code Here

            dTime();
           
            int count = 0;
            TreeIterator<EObject> eObjects = eResource.getAllContents();               
            EFeatureQuery eQuery = EFeatureUtils.toEFeatureQuery(eFeatureDataInfo, eObjects, filter);
            EFeatureIterator it = eQuery.iterator();
            while(it.hasNext()) {
                EObject eObject = it.next();
                assertTrue("EObject " + eObject + " is not an " +
                        "instance of EFeatureData", eObject instanceof EFeatureData);
                EFeatureData<?,?> eFeatureData = (EFeatureData<?,?>)eObject;
                Object a = eFeatureData.getAttribute();
                Object g = eFeatureData.getGeometry();
View Full Code Here

            dTime();
           
            int count = 0;
            TreeIterator<EObject> eObjects = eResource.getAllContents();               
            EFeatureQuery eQuery = EFeatureUtils.toEFeatureQuery(eFeatureDataInfo, eObjects, filter);
            EFeatureIterator it = eQuery.iterator();
            while(it.hasNext()) {
                EObject eObject = it.next();
                assertTrue("EObject " + eObject + " is not an " +
                        "instance of EFeatureData", eObject instanceof EFeatureData);
                EFeatureData<?,?> eFeatureData = (EFeatureData<?,?>)eObject;
                Object a = eFeatureData.getAttribute();
                Object g = eFeatureData.getGeometry();
View Full Code Here

            eAttribute = EFeatureTestsPackage.eINSTANCE.getEFeatureData_Attribute();
           
            TreeIterator<EObject> eObjects = eResource.getAllContents();               
            EFeatureFilter eFilter = new EFeatureFilter(where);
            EFeatureQuery eQuery = new EFeatureQuery(eObjects, eFilter);
            EFeatureIterator it = eQuery.iterator();
            EObject eFeature = it.next();       
            Object v = 1200L;
            System.out.println("V: " + v);
            ChangeRecorder r = new ChangeRecorder(eFeature);
            Object o1 = eFeature.eGet(eAttribute);
            System.out.println("2: " + o1);
View Full Code Here

    public EFeatureFilter getFilter() {
        return eWhere;
    }

    public EFeatureIterator iterator() {
        return new EFeatureIterator(from, eWhere);
    }
View Full Code Here

TOP

Related Classes of org.geotools.data.efeature.EFeatureIterator

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.