Package org.opengis.feature.type

Examples of org.opengis.feature.type.PropertyDescriptor


            if (attribute == null) {
                throw new IllegalArgumentException("The second argument of the query "
                        + "function should be the attribute name");
            }
            CoordinateReferenceSystem crs = null;
            PropertyDescriptor ad = ft.getFeatureType().getDescriptor(attribute);
            if (ad == null) {
                throw new IllegalArgumentException("Attribute " + attribute
                        + " could not be found in layer " + layerName);
            } else if(ad instanceof GeometryDescriptor) {
                crs = ((GeometryDescriptor) ad).getCoordinateReferenceSystem();
View Full Code Here


                //only load native attributes configured
                for ( AttributeTypeInfo att : info.getAttributes() ) {
                    String attName = att.getName();
                   
                    //load the actual underlying attribute type
                    PropertyDescriptor pd = ft.getDescriptor( attName );
                    if ( pd == null || !( pd instanceof AttributeDescriptor) ) {
                        throw new IOException("the SimpleFeatureType " + info.getPrefixedName()
                                + " does not contains the configured attribute " + attName
                                + ". Check your schema configuration");
                    }
View Full Code Here

                   
                ab.setDescriptor(node.descriptor);

                for (Entry<String, Object> entry : leaf.value.entrySet()) {

                    PropertyDescriptor descriptor = Types.findDescriptor(type, entry.getKey());

                    if (descriptor == null) {
                        throw new IllegalArgumentException("Cannot find descriptor for attribute "
                                + entry.getKey() + " in type " + type.getName().toString());
                    }

                    ab.add(null, entry.getValue(), descriptor.getName());

                }

                Attribute att = ab.build();
View Full Code Here

                            //only load native attributes configured
                            for ( AttributeTypeInfo att : info.getAttributes() ) {
                                String attName = att.getName();
                               
                                //load the actual underlying attribute type
                                PropertyDescriptor pd = ft.getDescriptor( attName );
                                if ( pd == null || !( pd instanceof AttributeDescriptor) ) {
                                    throw new IOException("the SimpleFeatureType " + info.getPrefixedName()
                                            + " does not contains the configured attribute " + attName
                                            + ". Check your schema configuration");
                                }
View Full Code Here

TOP

Related Classes of org.opengis.feature.type.PropertyDescriptor

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.