Package org.geotools.filter.function

Examples of org.geotools.filter.function.Classifier


   * @param property
   * @param classNumber
   * @return
   */
  public List<Rule> equalIntervalClassification(FeatureCollection features, String property, int classNumber, boolean open) {
    Classifier groups = null;
    try {
      final Function classify = ff.function("EqualInterval", ff.property(property), ff.literal(classNumber));
      groups = (Classifier) classify.evaluate(features);
      //System.out.println(groups.getSize());
      if (groups instanceof RangedClassifier)
View Full Code Here


   * @param property
   * @return
   */
  public List<Rule> uniqueIntervalClassification(FeatureCollection features,
      String property) {
    Classifier groups = null;
    int classNumber = features.size();
    try {
      final Function classify = ff.function("UniqueInterval", ff.property(property), ff.literal(classNumber));
      groups = (Classifier) classify.evaluate(features);
      if (groups instanceof RangedClassifier)
View Full Code Here

     * @param property
     * @param classNumber
     * @return
     */
    public List<Rule> jenksClassification(FeatureCollection features, String property, int classNumber, boolean open) {
        Classifier groups = null;
        try {
            final Function classify = ff.function("Jenks", ff.property(property), ff.literal(classNumber));
            groups = (Classifier) classify.evaluate(features);
            //System.out.println(groups.getSize());
            if (groups instanceof RangedClassifier)
View Full Code Here

TOP

Related Classes of org.geotools.filter.function.Classifier

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.