Package org.geotools.geometry.iso.topograph2D

Examples of org.geotools.geometry.iso.topograph2D.Node


   * of BOUNDARY, but in the original arg Geometry it is actually in the
   * interior due to the Boundary Determination Rule)
   */
  private void copyNodesAndLabels(int argIndex) {
    for (Iterator i = arg[argIndex].getNodeIterator(); i.hasNext();) {
      Node graphNode = (Node) i.next();
      Node newNode = nodes.addNode(graphNode.getCoordinate());
      newNode.setLabel(argIndex, graphNode.getLabel().getLocation(
          argIndex));
    }
  }
View Full Code Here


   * labelling we need to check for nodes that lie in the interior of edges,
   * and in the interior of areas.
   */
  private void labelIsolatedNodes() {
    for (Iterator ni = nodes.iterator(); ni.hasNext();) {
      Node n = (Node) ni.next();
      Label label = n.getLabel();
      // isolated nodes should always have at least one geometry in their
      // label
      Assert.isTrue(label.getGeometryCount() > 0,
          "node with empty label found");
      if (n.isIsolated()) {
        if (label.isNull(0))
          labelIsolatedNode(n, 0);
        else
          labelIsolatedNode(n, 1);
      }
View Full Code Here

   * of BOUNDARY, but in the original arg Geometry it is actually in the
   * interior due to the Boundary Determination Rule)
   */
  public void copyNodesAndLabels(GeometryGraph geomGraph, int argIndex) {
    for (Iterator nodeIt = geomGraph.getNodeIterator(); nodeIt.hasNext();) {
      Node graphNode = (Node) nodeIt.next();
      Node newNode = nodes.addNode(graphNode.getCoordinate());
      newNode.setLabel(argIndex, graphNode.getLabel().getLocation(
          argIndex));
      // node.print(System.out);
    }
  }
View Full Code Here

TOP

Related Classes of org.geotools.geometry.iso.topograph2D.Node

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.