public void execute(SearchByPointRequest request, SearchByPointResponse response)
throws Exception {
String[] layerIds = request.getLayerIds();
if (null == layerIds) {
throw new GeomajasException(ExceptionCode.PARAMETER_MISSING, "layerIds");
}
String crsCode = request.getCrs();
if (null == crsCode) {
throw new GeomajasException(ExceptionCode.PARAMETER_MISSING, "crs");
}
org.geomajas.geometry.Coordinate requestLocation = request.getLocation();
if (null == requestLocation) {
throw new GeomajasException(ExceptionCode.PARAMETER_MISSING, "location");
}
Bbox mapBounds = request.getMapBounds();
if (null == mapBounds) {
throw new GeomajasException(ExceptionCode.PARAMETER_MISSING, "mapBounds");
}
Coordinate coordinate = new Coordinate(requestLocation.getX(), requestLocation.getY());
Crs crs = geoService.getCrs2(request.getCrs());
boolean searchFirstLayerOnly;