code: private List<Coordinate[]> getCoordinateArrays(List<Geometry> geometries) {
  		List<Coordinate[]> res = new ArrayList<Coordinate[]>();
  		for (Geometry geometry : geometries) {
  			res.add(geometry.getCoordinates());
  		}
  		return res;
  	}
docs: Transform the list of geometries into a list of coordinate arrays.