Package org.geotools.styling

Examples of org.geotools.styling.FeatureTypeConstraintImpl


        .toArray(new FeatureTypeConstraint[featureTypeConstraints
            .size()]);
  }

  protected FeatureTypeConstraint parseFeatureTypeConstraint(Node root) {
    FeatureTypeConstraint ftc = new FeatureTypeConstraintImpl();

    NodeList children = root.getChildNodes();
    final int length = children.getLength();
    for (int i = 0; i < length; i++) {
      Node child = children.item(i);
      if ((child == null) || (child.getNodeType() != Node.ELEMENT_NODE)) {
        continue;
      }
      String childName = child.getLocalName();
      if (childName.equalsIgnoreCase("FeatureTypeName")) {
        ftc.setFeatureTypeName(getFirstChildValue(child));
      } else if (childName.equalsIgnoreCase("Filter")) {
        ftc.setFilter(parseFilter(child));
      }
    }
    ftc.setExtents(new Extent[0]);
    if (ftc.getFeatureTypeName() == null)
      return null;
    else
      return ftc;
  }
View Full Code Here

TOP

Related Classes of org.geotools.styling.FeatureTypeConstraintImpl

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.