Class AggregateRequestExecutor
java.lang.Object
org.heigit.ohsome.ohsomeapi.executor.RequestExecutor
org.heigit.ohsome.ohsomeapi.executor.AggregateRequestExecutor
Holds relevant execution methods for various aggregation requests.
-
Field Summary
Fields inherited from class org.heigit.ohsome.ohsomeapi.executor.RequestExecutor
ATTRIBUTION, df, servletRequest, servletResponse, TEXT, URL
-
Constructor Summary
ConstructorDescriptionAggregateRequestExecutor
(RequestResource requestResource, javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse, boolean isDensity) -
Method Summary
Modifier and TypeMethodDescriptionPerforms a count|length|perimeter|area calculation.Performs a count|length|perimeter|area calculation grouped by the boundary.
-
Constructor Details
-
AggregateRequestExecutor
public AggregateRequestExecutor(RequestResource requestResource, javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse, boolean isDensity)
-
-
Method Details
-
aggregate
Performs a count|length|perimeter|area calculation.- Returns:
Response
- Throws:
RuntimeException
- if an unsupported RequestResource type is used. Only COUNT, LENGTH, PERIMETER, and AREA are permitted hereException
- thrown by#processParameters() processParameters
,count
, orsum
-
aggregateGroupByBoundary
Performs a count|length|perimeter|area calculation grouped by the boundary.
-