use of org.polymap.core.data.feature.GetBoundsRequest in project polymap4-core by Polymap4.
the class FeatureRenameProcessor method boundsRequest.
@Produces(GetBoundsRequest.class)
public void boundsRequest(GetBoundsRequest request, ProcessorContext context) throws Exception {
Query transformed = transformQuery(request.query.get(), context);
context.sendRequest(new GetBoundsRequest(transformed));
}
use of org.polymap.core.data.feature.GetBoundsRequest in project polymap4-core by Polymap4.
the class PipelineFeatureSource method getBoundsInternal.
@Override
@SuppressWarnings("hiding")
protected ReferencedEnvelope getBoundsInternal(Query query) throws IOException {
try {
GetBoundsRequest request = new GetBoundsRequest(query);
AtomicReference<ReferencedEnvelope> result = new AtomicReference();
newExecutor().execute(pipeline, request, (GetBoundsResponse r) -> {
result.set(r.bounds.get());
});
return result.get();
} catch (Exception e) {
Throwables.propagateIfInstanceOf(e, IOException.class);
throw Throwables.propagate(e);
}
}
Aggregations