Package org.opengis.feature

Examples of org.opengis.feature.Property


        return createDefaultLabel( feature, options );
      }
      else
      {
        String format = options.getLabelFormat();
        Property property = feature.getProperty( format );
       
        if (property == null)
        {
          return this.undefinedPropertyLabel;
        }
        else
        {
          Object propertyValue = property.getValue();
         
          if (propertyValue == null)
          {
            return this.undefinedValueLabel;
          }
View Full Code Here


    JSONObject objAttributes = new JSONObject();
    String geometryFieldName = feature.getDefaultGeometryProperty()
        .getName().getLocalPart();
    for (Iterator<Property> itr = feature.getProperties().iterator(); itr
        .hasNext();) {
      Property property = itr.next();
      String name = property.getDescriptor().getName().getLocalPart();
      if (!geometryFieldName.equals(name)) {
        Object value = property.getValue();
        objAttributes.put(name, value);
      }
    }
    result.put("attributes", objAttributes);
View Full Code Here

            String geometryFieldName = feature
                .getDefaultGeometryProperty().getName()
                .getLocalPart();
            for (Iterator<Property> itrP = feature.getProperties()
                .iterator(); itrP.hasNext();) {
              Property property = itrP.next();
              String name = property.getDescriptor().getName()
                  .getLocalPart();
              if (!geometryFieldName.equals(name)) {
                Object value = property.getValue();
                attributes += "<br/>" + name + ":"
                    + value.toString();
                if (attributes.length() > 100) {
                  attributes += "<br/>...";
                  break;
View Full Code Here

                String attributes = "";
                for (Iterator<Property> itr = feature
                    .getProperties().iterator(); itr
                    .hasNext();) {
                  Property property = itr.next();
                  String name = property.getDescriptor()
                      .getName().getLocalPart();
                  if (!geometryField.equals(name)) {
                    Object value = property.getValue();
                    value = value == null ? "" : value;
                    attributes += "<br/>" + name + ": "
                        + value.toString();
                    if (attributes.length() > 100) {
                      attributes += "<br/>...";
View Full Code Here

              }

              String attributes = "";
              for (Iterator<Property> itr = feature
                  .getProperties().iterator(); itr.hasNext();) {
                Property property = itr.next();
                String name = property.getDescriptor()
                    .getName().getLocalPart();
                if (!geometryField.equals(name)) {
                  Object value = property.getValue();
                  value = value == null ? "" : value;
                  attributes += "<br/>" + name + ": "
                      + value.toString();
                }
              }
View Full Code Here

              }

              String attributes = "";
              for (Iterator<Property> itr = feature
                  .getProperties().iterator(); itr.hasNext();) {
                Property property = itr.next();
                String name = property.getDescriptor()
                    .getName().getLocalPart();
                if (!geometryField.equals(name)) {
                  Object value = property.getValue();
                  value = value == null ? "" : value;
                  attributes += "<br/>" + name + ": "
                      + value.toString();
                }
              }
View Full Code Here

                String attributes = "";
                for (Iterator<Property> itr = feature
                    .getProperties().iterator(); itr
                    .hasNext();) {
                  Property property = itr.next();
                  String name = property.getDescriptor()
                      .getName().getLocalPart();
                  if (!geometryField.equals(name)) {
                    Object value = property.getValue();
                    value = value == null ? "" : value;
                    attributes += "<br/>" + name + ": "
                        + value.toString();
                    if (attributes.length() > 100) {
                      attributes += "<br/>...";
View Full Code Here

          String geoFieldName = feature.getDefaultGeometryProperty()
              .getDescriptor().getLocalName();
          for (Iterator<Property> itr = feature.getProperties()
              .iterator(); itr.hasNext();) {
            Property pro = itr.next();
            String fieldName = pro.getDescriptor().getName()
                .getLocalPart();
            if (!fieldName.equals(geoFieldName)) {
              String proValue = pro.getValue().toString();
              if (proValue.toLowerCase().contains(lowSearchText)) {
                objTemp.put("foundFieldName", fieldName);
                objTemp.put("value", proValue);
                break;
              }
View Full Code Here

            String geometryField = feature
                .getDefaultGeometryProperty().getName()
                .getLocalPart();
            for (Iterator<Property> itr = feature.getProperties()
                .iterator(); itr.hasNext();) {
              Property property = itr.next();
              String name = property.getDescriptor().getName()
                  .getLocalPart();
              if (!geometryField.equals(name)) {
                Object value = property.getValue();
                attributes += "<br/>" + name + ":"
                    + value.toString();
                if (attributes.length() > 100) {
                  attributes += "<br/>...";
                  break;
View Full Code Here

                    SimpleFeature data = featureBuilderData.buildFeature(sf.getID());
                    for (int j = 0; j < srcAttributeDescriptor.size(); j++) {
                        String srcName = srcAttributeDescriptor.get(j).getLocalName();
                        String dstName = srcName.toLowerCase(); // FIXME: this is a worksroung for SHP 2 PG attrib name conversion. make it general!

                        Property p = sf.getProperty(srcName);
                        if( p!= null) // be lenient about inexistent attributes: consistency checks have already bben performed.
                            data.setAttribute(dstName, sf.getAttribute(srcName));
                        else {
                            if(LOGGER.isDebugEnabled() && ! loggedMissingAttrib.contains(srcName) ) {
                                LOGGER.debug("Skipping attrib "+srcName+" in feature #"+i);
View Full Code Here

TOP

Related Classes of org.opengis.feature.Property

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.