Java 类com.vividsolutions.jts.geom.util.LineStringExtracter 实例源码

项目:jeql    文件:GeomProcFunction.java   
public static Geometry polygonize(Geometry geom) {
    List lines = LineStringExtracter.getLines(geom);
    Polygonizer polygonizer = new Polygonizer();
    polygonizer.add(lines);
    return geom.getFactory().buildGeometry(polygonizer.getPolygons());
}