@Api
	public void setGeometry(List<Geometry> geometries) {
		if (geometries.size() == 0) {
			Notify.info(messages.geometricSearchWidgetSelectionSearchNothingSelected());
		} else {
			Integer buffer = (Integer) spiBuffer.getValue();
			if (buffer != 0) {
				SearchCommService.mergeAndBufferGeometries(geometries, buffer, new DataCallback<Geometry[]>() {
					public void execute(Geometry[] result) {
						updateGeometry(geometry, result[1]);
						geometry = result[1];
					}
				});
			} else {
				SearchCommService.mergeGeometries(geometries, new DataCallback<Geometry>() {
					public void execute(Geometry result) {
						updateGeometry(geometry, result);
						geometry = result;
					}
				});
			}
		}
	}
@ Api public void setGeometry ( List < Geometry > geometries ) { if ( geometries . size ( ) == 0 ) { Notify . info ( messages . geometricSearchWidgetSelectionSearchNothingSelected ( ) ) ; } else { Integer buffer = ( Integer ) spiBuffer . getValue ( ) ; if ( buffer != 0 ) { SearchCommService . mergeAndBufferGeometries ( geometries , buffer , new DataCallback < Geometry [ ] > ( ) { public void execute ( Geometry [ ] result ) { updateGeometry ( geometry , result [ 1 ] ) ; geometry = result [ 1 ] ; } } ) ; } else { SearchCommService . mergeGeometries ( geometries , new DataCallback < Geometry > ( ) { public void execute ( Geometry result ) { updateGeometry ( geometry , result ) ; geometry = result ; } } ) ; } } }
Set the current current geometry using the list of geometries which are merged and buffered if requested.

@param geometries geometries to combine