Package org.opengis.feature.type

Examples of org.opengis.feature.type.PropertyDescriptor


        combo.setContentProvider(ArrayContentProvider.getInstance());
        combo.setLabelProvider(new LabelProvider() {
            @Override
            public String getText(Object element) {
                if (element instanceof PropertyDescriptor) {
                    PropertyDescriptor descriptor = (PropertyDescriptor) element;
                    return descriptor.getName().getLocalPart();
                }
                return super.getText(element);
            }
        });
        combo.getControl().setEnabled(false);
View Full Code Here


                //check that valus that are non-nillable exist
                if (property.getValue() == null) {
                    String propertyName = property.getName().getLocalPart();
                    AttributeDescriptor attributeType = null;
                    PropertyDescriptor pd = featureType.getDescriptor(propertyName);
                    if(pd instanceof AttributeDescriptor) {
                        attributeType = (AttributeDescriptor) pd;
                    }
                    if ((attributeType != null) && (attributeType.getMinOccurs() > 0)) {
                        String msg = "Property '" + attributeType.getLocalName()
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

      objTemp = new JSONObject();
      Collection<PropertyDescriptor> propertyDescriptors = mapLayer
          .getFeatureSource().getSchema().getDescriptors();
      for (Iterator<PropertyDescriptor> it = propertyDescriptors
          .iterator(); it.hasNext();) {
        PropertyDescriptor propertyDescriptor = it.next();

        objTemp = new JSONObject();
        objTemp
            .put("name", propertyDescriptor.getName()
                .getLocalPart());
        objTemp.put("type", propertyDescriptor.getType().getBinding()
            .getSimpleName());
        arrayTemp.put(objTemp);
      }
      obj.put("fields", arrayTemp);
View Full Code Here

      }
      Collection<PropertyDescriptor> propertyDescriptors = mapLayer
          .getFeatureSource().getSchema().getDescriptors();
      for (Iterator<PropertyDescriptor> it = propertyDescriptors
          .iterator(); it.hasNext();) {
        PropertyDescriptor propertyDescriptor = it.next();
        sb.append("<li>"
            + propertyDescriptor.getName().getLocalPart()
            + " <i>(Type: "
            + propertyDescriptor.getType().getBinding()
                .getSimpleName() + ")</i></li>");
      }
      sb.append("</ul>");

      sb.append("<b>Supported Operations: </b>");
View Full Code Here

            ArrayList<String> fields = new ArrayList<String>();
            Collection<PropertyDescriptor> propertyDescriptors = featureCollection
                .getSchema().getDescriptors();
            for (Iterator<PropertyDescriptor> itr = propertyDescriptors
                .iterator(); itr.hasNext();) {
              PropertyDescriptor propertyDescriptor = itr.next();
              String name = propertyDescriptor.getName()
                  .getLocalPart();
              if (!geometryField.equals(name)) {
                fields.add(name);
              }
            }
View Full Code Here

        ArrayList<String> fields = new ArrayList<String>();
        Collection<PropertyDescriptor> propertyDescriptors = featureCollection
            .getSchema().getDescriptors();
        for (Iterator<PropertyDescriptor> itr = propertyDescriptors
            .iterator(); itr.hasNext();) {
          PropertyDescriptor propertyDescriptor = itr.next();
          String name = propertyDescriptor.getName().getLocalPart();
          if (!geometryField.equals(name)) {
            fields.add(name);
          }
        }
View Full Code Here

      objTemp = new JSONObject();
      Collection<PropertyDescriptor> propertyDescriptors = mapLayer
          .getFeatureSource().getSchema().getDescriptors();
      for (Iterator<PropertyDescriptor> it = propertyDescriptors
          .iterator(); it.hasNext();) {
        PropertyDescriptor propertyDescriptor = it.next();

        objTemp = new JSONObject();
        objTemp
            .put("name", propertyDescriptor.getName()
                .getLocalPart());
        objTemp.put("type", propertyDescriptor.getType().getBinding()
            .getSimpleName());
        arrayTemp.put(objTemp);
      }
      obj.put("fields", arrayTemp);
View Full Code Here

      }
      Collection<PropertyDescriptor> propertyDescriptors = mapLayer
          .getFeatureSource().getSchema().getDescriptors();
      for (Iterator<PropertyDescriptor> it = propertyDescriptors
          .iterator(); it.hasNext();) {
        PropertyDescriptor propertyDescriptor = it.next();
        sb.append("<li>"
            + propertyDescriptor.getName().getLocalPart()
            + " <i>(Type: "
            + propertyDescriptor.getType().getBinding()
                .getSimpleName() + ")</i></li>");
      }
      sb.append("</ul>");

      sb.append("<b>Supported Operations: </b>");
View Full Code Here

        ArrayList<String> fields = new ArrayList<String>();
        Collection<PropertyDescriptor> propertyDescriptors = featureCollection
            .getSchema().getDescriptors();
        for (Iterator<PropertyDescriptor> itr = propertyDescriptors
            .iterator(); itr.hasNext();) {
          PropertyDescriptor propertyDescriptor = itr.next();
          String name = propertyDescriptor.getName().getLocalPart();
          if (!geometryField.equals(name)) {
            fields.add(name);
          }
        }
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.