code: private static void getAllCoordinates(Geometry geometry, List<Coordinate> coordinates) {
  		if (geometry.getGeometries() != null) {
  			for (Geometry child : geometry.getGeometries()) {
  				getAllCoordinates(child, coordinates);
  			}
  		}
  		if (geometry.getCoordinates() != null) {
  			for (Coordinate coordinate : geometry.getCoordinates()) {
  				coordinates.add(coordinate);
  			}
  		}
  	}
docs: ------------------------------------------------------------------------