Package org.geotools.data.efeature

Examples of org.geotools.data.efeature.EFeature


                    SimpleFeature feature = eReader.next();
                    assertTrue("Feature[" + count + "]: does not implement ESimpleFeature",feature instanceof ESimpleFeature);
                    EObject eObject = ((ESimpleFeature)feature).eObject();
                    assertNotNull("Feature[" + count + "]: is not contained by an EObject",eObject);                   
                    assertTrue("EObject[" + count + "]: returned by ESimpleFeature is not an " + eType + " instance",cls.isInstance(eObject));
                    EFeature eFeature = ((ESimpleFeature)feature).eFeature();
                    assertNotNull("Feature[" + count + "]: is not contained by an EFeature",eFeature);
                    //assertTrue("EFeature data and Feature are not identical",feature==eFeature.getData());
                    Object n = feature.getAttribute("attribute");
                    assertNotNull("Attribute[" + count + "]: data is null",n);
                    Object g = feature.getAttribute("geometry");
View Full Code Here


     * @generated
     */
    protected T doSwitch(int classifierID, EObject theEObject) {
        switch (classifierID) {
            case EFeaturePackage.EFEATURE: {
                EFeature eFeature = (EFeature)theEObject;
                T result = caseEFeature(eFeature);
                if (result == null) result = defaultCase(theEObject);
                return result;
            }
            default: return defaultCase(theEObject);
View Full Code Here

                        //
                        if(value instanceof EFeature) {
                            //
                            // Cast to EFeature
                            //
                            EFeature eFeature = (EFeature)value;
                            //
                            // ----------------------------------------------------------
                            //  Adapt given EFeature (does nothing if already in context)
                            // ----------------------------------------------------------
                            //  This is a very important step: It's part of the context
                            //  startup problem solution (see EFeatureContextHelper),
                            //  and ensures that context-unaware objects become
                            //  aware of the context they are added to. Without this
                            //  step, EFeature stays context-unaware, preventing
                            //  EFeatureReaders from reading them using a context ID
                            //  known by client code.
                            // ----------------------------------------------------------
                            //
                            eAdapt(eFeature, true);
                            //
                            // Get current ID
                            //
                            String eID = eFeature.getID();
                            //
                            // Resolve unique ID
                            //
                            if( !( eID==null || eID.length()==0 ) ) {
                                eIDFactory.useID(eFeature, eID);
View Full Code Here

TOP

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

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.