Package org.geotools.util

Examples of org.geotools.util.MapEntry


                String attName;
                Map attributesMap;
                for (int i = 0; i < attributeCount; i++) {
                    attName = types.get(i).getLocalName();
                    attributesMap = new AttributeMap(attName, feature);
                    entrySet.add(new MapEntry(attName, attributesMap));
                }
            }
            return entrySet;
        }
View Full Code Here


                final SimpleFeatureType featureType = feature.getFeatureType();
                final AttributeDescriptor attributeType = featureType.getDescriptor(attributeName);
                final Object value = feature.getAttribute(attributeName);

                entrySet.add(new DeferredValueEntry("value", value));
                entrySet.add(new MapEntry("name", attributeName));
                entrySet.add(new MapEntry("type", attributeType.getType().getBinding().getName()));

                Object rawValue = value == null ? "" : value;
                boolean isGeometry = Geometry.class.isAssignableFrom(attributeType.getType().getBinding());
                entrySet.add(new MapEntry("isGeometry", Boolean.valueOf(isGeometry)));
                entrySet.add(new MapEntry("rawValue", rawValue));
            }
            return entrySet;
        }
View Full Code Here

TOP

Related Classes of org.geotools.util.MapEntry

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.