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); }
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); }