Package org.locationtech.udig.tools.geometry.split

Examples of org.locationtech.udig.tools.geometry.split.SplitStrategy


          return splitResult;
        }

  public static List<Geometry> executeSplitStrategy(final Geometry geomTosplit, final LineString splitLine) {

    final SplitStrategy splitOp = new SplitStrategy(splitLine);
    List<Geometry> splitResult = new ArrayList<Geometry>();

    if (splitOp.canSplit(geomTosplit)) {

      splitResult = splitOp.split(geomTosplit);
    }
    return splitResult;
  }
View Full Code Here


    return splitted;
  }

  private List<Geometry> testSplitResults(Geometry splitee, LineString splitter) {

    SplitStrategy strategy = new SplitStrategy(splitter);
    List<Geometry> splitted = strategy.split(splitee);

    assertNotNull(splitted);

    Geometry union = null;
    for (int i = 0; i < splitted.size(); i++) {
View Full Code Here

    return splitted;
  }

  private List<Geometry> testSplitResults2(Geometry splitee, LineString splitter) {

    final SplitStrategy splitOp = new SplitStrategy(splitter);
    List<Geometry> geomSplit = new ArrayList<Geometry>();

    if (splitOp.canSplit(splitee)) {

      geomSplit = splitOp.split(splitee);

    }

    return geomSplit;
  }
View Full Code Here

          splitLine,
          (CoordinateReferenceSystem) splitLine.getUserData(),
          desiredCRS);
      SplitFeatureBuilder sfb = new SplitFeatureBuilder();
      sfb.splitLine = splitReprojected;
      sfb.splitStrategy = new SplitStrategy(splitLine);
      sfb.splitResultList = null;
      sfb.originalGeometryList = new LinkedList<Geometry>();
      sfb.featuresThatSufferedSplit = new LinkedList<SimpleFeature>();
      sfb.featureList = featureList;
      sfb.desiredCRS = desiredCRS;
View Full Code Here

TOP

Related Classes of org.locationtech.udig.tools.geometry.split.SplitStrategy

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.