Package org.geotools.graph.structure.basic

Examples of org.geotools.graph.structure.basic.BasicEdge


  /**
   * @see GraphBuilder#buildEdge(Node, Node)
   */
  public Edge buildEdge(Node nodeA, Node nodeB) {
    return(new BasicEdge(nodeA,nodeB));
  }
View Full Code Here


        //create an array to store the geometry of each Edge linestring that will need to be merged into one Route object
        Geometry[] geomArray = new Geometry[result.size()];

        //populate the geometry array with the route edges
        for (int i = 0; i < result.size(); i++) {
            BasicEdge eg = (BasicEdge) result.get(i);
            SimpleFeature feature = (SimpleFeature) eg.getObject();
            Geometry geom = (Geometry) feature.getDefaultGeometry();
            geomArray[i] = geom;
        }

        //call the function to merge the geometries into one feature
View Full Code Here

TOP

Related Classes of org.geotools.graph.structure.basic.BasicEdge

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.