Package org.geotools.feature

Examples of org.geotools.feature.AttributeType


        schemaAttributes = new ArrayList();
        List createList = form.getCreateableAttributes();
        System.out.println("schemaAtts null, createList: " + createList);
        FeatureType fType = getFeatureType(form, request);
        for (int i = 0; i < fType.getAttributeCount(); i++) {
      AttributeType attType = fType.getAttributeType(i);
      AttributeTypeInfoConfig attributeConfig = new AttributeTypeInfoConfig(attType);
       schemaAttributes.add(attributeConfig);
        //new ArrayList();
        //DataStoreConfig dsConfig = config.
        //FeatureType featureType = config.get
View Full Code Here


        form.getAttributes().add(newAttribute);
    }

    private AttributeForm newAttributeForm(String attributeName,
             FeatureType featureType) {
  AttributeType attributeType = featureType.getAttributeType(attributeName);
        AttributeTypeInfoConfig attributeConfig = new AttributeTypeInfoConfig(attributeType);
        AttributeForm newAttribute = new AttributeForm(attributeConfig,
                attributeType);
        return newAttribute;
    }
View Full Code Here

                        "No schema found, setting featureTypeDTO with "
                        + attributeDTOs);
                } else {
                    for (int index = 0;
                            index < featureType.getAttributeCount(); index++) {
                        AttributeType attrib = featureType.getAttributeType(index);
                        attributeNames.add(attrib.getName());
                        ATTRIBUTENames.add(attrib.getName().toUpperCase());
                    }

                    if (featureTypeDTO.getSchemaAttributes() != null) {
                        for (Iterator a = featureTypeDTO.getSchemaAttributes()
                                                        .iterator();
View Full Code Here

            }
        }
        if( generate ){        
            this.schemaAttributes = new ArrayList();
            for (int i = 0; i < schema.getAttributeCount(); i++) {
                AttributeType attrib = schema.getAttributeType(i);
                this.schemaAttributes.add(new AttributeTypeInfoConfig(attrib));
            }
        }
        else {
            this.schemaAttributes = null;       
View Full Code Here

    public AttributeType[] getTypes(FeatureType schema)
        throws SchemaException {
        int arrSize = properties.size();
        AttributeType[] retArr = new AttributeType[arrSize];
        String curName;
        AttributeType curType;

        for (int i = 0; i < arrSize; i++) {
            curName = ((Property) properties.get(i)).getName();
            curType = schema.getAttributeType(curName);
View Full Code Here

TOP

Related Classes of org.geotools.feature.AttributeType

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.