Package com.vividsolutions.jts.geom

Examples of com.vividsolutions.jts.geom.Geometry.buffer()


  {   
    List bufs = new ArrayList();
    for (Iterator it = new GeometryCollectionIterator(g); it.hasNext(); ) {
      Geometry comp = (Geometry) it.next();
      if (comp instanceof GeometryCollection) continue;
      bufs.add(comp.buffer(distance));
    }
    return FunctionsUtil.getFactoryOrDefault(g)
            .createGeometryCollection(GeometryFactory.toGeometryArray(bufs));
  }
 
View Full Code Here


   
  }
 
  public Geometry getFinalGeometry(){
    Geometry g = gf.createLineString(new Coordinate[]{a.pos, b.pos});
    return g.buffer(width/2, 2, BufferParameters.CAP_ROUND);
  }
 
  public LineString getLineString(){
    return gf.createLineString(new Coordinate[]{a.pos, b.pos});
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.