use of org.geotoolkit.gml.xml.GeometryProperty in project geotoolkit by Geomatys.
the class GeometryTransformer method convertMultiGeometry.
private GeometryCollection convertMultiGeometry(MultiGeometry mg) {
Geometry[] geometries = mg.getGeometryMember().stream().map(GeometryProperty::getAbstractGeometry).map(geom -> new GeometryTransformer(geom, this).get()).toArray(size -> new Geometry[size]);
final GeometryCollection result = GF.createGeometryCollection(geometries);
applyCRS(result);
return result;
}
Aggregations