// base is the max bounds of the layer
Envelope maxBounds = converterService.toInternal(layerInfo.getMaxExtent());
PrecisionModel precisionModel = new PrecisionModel(PrecisionModel.FLOATING);
int srid = geoService.getSridFromCrs(layer.getLayerInfo().getCrs());
GeometryFactory geometryFactory = new GeometryFactory(precisionModel, srid);
Geometry geometry = geometryFactory.toGeometry(maxBounds);
// limit based on authorizations
for (Authentication authentication : authentications) {
for (BaseAuthorization authorization : authentication.getAuthorizations()) {
if (authorization instanceof AreaAuthorization) {