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

项目:Earth    文件:UnaryUnionOp.java   
private void extract(Geometry geom) {
      if (this.geomFact == null) {
          this.geomFact = geom.getFactory();
      }

/*
      PolygonExtracter.getPolygons(geom, polygons);
LineStringExtracter.getLines(geom, lines);
PointExtracter.getPoints(geom, points);
*/
      GeometryExtracter.extract(geom, Polygon.class, this.polygons);
      GeometryExtracter.extract(geom, LineString.class, this.lines);
      GeometryExtracter.extract(geom, Point.class, this.points);
  }
项目:jts    文件:UnaryUnionOp.java   
private void extract(Geometry geom) {
      if (geomFact == null)
          geomFact = geom.getFactory();

/*
      PolygonExtracter.getPolygons(geom, polygons);
LineStringExtracter.getLines(geom, lines);
PointExtracter.getPoints(geom, points);
*/
      GeometryExtracter.extract(geom, Polygon.class, polygons);
      GeometryExtracter.extract(geom, LineString.class, lines);
      GeometryExtracter.extract(geom, Point.class, points);
  }