Class LengthController
java.lang.Object
org.heigit.ohsome.ohsomeapi.controller.dataaggregation.elements.LengthController
Controller containing the GET and POST request handling methods, which are mapped to
"/elements/length".
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlength
(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) Gives the length of OSM elements.lengthDensity
(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) Gives the density of OSM elements (length of items divided by the total area in square-kilometers).lengthDensityGroupByBoundary
(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) Gives density of OSM elements grouped by the boundary parameter (bounding box/circle/polygon).lengthDensityGroupByBoundaryGroupByTag
(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) Gives the density of OSM elements grouped by the boundary and the tag.lengthDensityGroupByTag
(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) Gives the density of OSM elements grouped by the tag.lengthDensityGroupByType
(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) Gives the density of OSM elements grouped by the OSM type.lengthGroupByBoundary
(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) Gives the length of OSM elements grouped by the boundary parameter (bounding box/circle/polygon).lengthGroupByBoundaryGroupByTag
(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) Gives the length of OSM elements grouped by the boundary and the tag.lengthGroupByKey
(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) Gives the length of OSM elements grouped by the key.lengthGroupByTag
(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) Gives the length of OSM elements grouped by the tag.lengthGroupByType
(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) Gives the length of OSM elements grouped by the OSM type.lengthRatio
(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) Gives the ratio of OSM elements satisfying filter2 within items selected by filter.lengthRatioGroupByBoundary
(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) Gives the ratio of the length of OSM elements satisfying filter2 within items selected by filter grouped by the boundary.
-
Constructor Details
-
LengthController
public LengthController()
-
-
Method Details
-
length
@RequestMapping(value="", method={GET,POST}, produces={"application/json","text/csv"}) public Response length(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception Gives the length of OSM elements. -
lengthGroupByType
@RequestMapping(value="/groupBy/type", method={GET,POST}, produces={"application/json","text/csv"}) public Response lengthGroupByType(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception Gives the length of OSM elements grouped by the OSM type.- Parameters:
servletRequest
-HttpServletRequest
of the incoming requestservletResponse
-HttpServletResponse
of the outgoing response- Returns:
Response
- Throws:
Exception
- thrown by#aggregateGroupByType(RequestResource, HttpServletRequest, HttpServletResponse, boolean, boolean) aggregateGroupByType
-
lengthGroupByBoundary
@RequestMapping(value="/groupBy/boundary", method={GET,POST}, produces={"application/json","text/csv"}) public Response lengthGroupByBoundary(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception Gives the length of OSM elements grouped by the boundary parameter (bounding box/circle/polygon).- Parameters:
servletRequest
-HttpServletRequest
of the incoming requestservletResponse
-HttpServletResponse
of the outgoing response- Returns:
Response
- Throws:
Exception
- thrown by#aggregateGroupByBoundary() aggregateGroupByBoundary
-
lengthGroupByBoundaryGroupByTag
@RequestMapping(value="/groupBy/boundary/groupBy/tag", method={GET,POST}, produces={"application/json","text/csv"}) public Response lengthGroupByBoundaryGroupByTag(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception Gives the length of OSM elements grouped by the boundary and the tag.- Parameters:
servletRequest
-HttpServletRequest
of the incoming requestservletResponse
-HttpServletResponse
of the outgoing response- Returns:
Response
- Throws:
Exception
- thrown by#aggregateGroupByBoundaryGroupByTag(RequestResource, HttpServletRequest, HttpServletResponse, boolean, boolean) aggregateGroupByBoundaryGroupByTag
-
lengthGroupByKey
@RequestMapping(value="/groupBy/key", method={GET,POST}, produces={"application/json","text/csv"}) public Response lengthGroupByKey(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception Gives the length of OSM elements grouped by the key.- Parameters:
servletRequest
-HttpServletRequest
of the incoming requestservletResponse
-HttpServletResponse
of the outgoing response- Returns:
Response
- Throws:
Exception
- thrown by#aggregateGroupByKey(RequestResource, HttpServletRequest, HttpServletResponse, boolean, boolean) aggregateGroupByKey
-
lengthGroupByTag
@RequestMapping(value="/groupBy/tag", method={GET,POST}, produces={"application/json","text/csv"}) public Response lengthGroupByTag(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception Gives the length of OSM elements grouped by the tag.- Parameters:
servletRequest
-HttpServletRequest
of the incoming requestservletResponse
-HttpServletResponse
of the outgoing response- Returns:
Response
- Throws:
Exception
- thrown by#aggregateGroupByTag(RequestResource, HttpServletRequest, HttpServletResponse, boolean, boolean) aggregateGroupByTag
-
lengthDensity
@RequestMapping(value="/density", method={GET,POST}, produces={"application/json","text/csv"}) public Response lengthDensity(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception Gives the density of OSM elements (length of items divided by the total area in square-kilometers). -
lengthDensityGroupByType
@RequestMapping(value="/density/groupBy/type", method={GET,POST}, produces={"application/json","text/csv"}) public Response lengthDensityGroupByType(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception Gives the density of OSM elements grouped by the OSM type.- Parameters:
servletRequest
-HttpServletRequest
of the incoming requestservletResponse
-HttpServletResponse
of the outgoing response- Returns:
Response
- Throws:
Exception
- thrown by#aggregateGroupByType(RequestResource, HttpServletRequest, HttpServletResponse, boolean, boolean) aggregateGroupByType
-
lengthDensityGroupByBoundary
@RequestMapping(value="/density/groupBy/boundary", method={GET,POST}, produces={"application/json","text/csv"}) public Response lengthDensityGroupByBoundary(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception Gives density of OSM elements grouped by the boundary parameter (bounding box/circle/polygon).- Parameters:
servletRequest
-HttpServletRequest
of the incoming requestservletResponse
-HttpServletResponse
of the outgoing response- Returns:
Response
- Throws:
Exception
- thrown by#aggregateGroupByBoundary() aggregateGroupByBoundary
-
lengthDensityGroupByBoundaryGroupByTag
@RequestMapping(value="/density/groupBy/boundary/groupBy/tag", method={GET,POST}, produces={"application/json","text/csv"}) public Response lengthDensityGroupByBoundaryGroupByTag(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception Gives the density of OSM elements grouped by the boundary and the tag.- Parameters:
servletRequest
-HttpServletRequest
of the incoming requestservletResponse
-HttpServletResponse
of the outgoing response- Returns:
Response
- Throws:
Exception
- thrown by#aggregateGroupByBoundaryGroupByTag(RequestResource, HttpServletRequest, HttpServletResponse, boolean, boolean) aggregateGroupByBoundaryGroupByTag
-
lengthDensityGroupByTag
@RequestMapping(value="/density/groupBy/tag", method={GET,POST}, produces={"application/json","text/csv"}) public Response lengthDensityGroupByTag(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception Gives the density of OSM elements grouped by the tag.- Parameters:
servletRequest
-HttpServletRequest
of the incoming requestservletResponse
-HttpServletResponse
of the outgoing response- Returns:
Response
- Throws:
Exception
- thrown by#aggregateGroupByTag(RequestResource, HttpServletRequest, HttpServletResponse, boolean, boolean) aggregateGroupByTag
-
lengthRatio
@RequestMapping(value="/ratio", method={GET,POST}, produces={"application/json","text/csv"}) public Response lengthRatio(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception Gives the ratio of OSM elements satisfying filter2 within items selected by filter.- Parameters:
servletRequest
-HttpServletRequest
of the incoming requestservletResponse
-HttpServletResponse
of the outgoing response- Returns:
Response
- Throws:
Exception
- thrown by#aggregateRatio(RequestResource, HttpServletRequest, HttpServletResponse) aggregateRatio
-
lengthRatioGroupByBoundary
@RequestMapping(value="/ratio/groupBy/boundary", method={GET,POST}, produces={"application/json","text/csv"}) public Response lengthRatioGroupByBoundary(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception Gives the ratio of the length of OSM elements satisfying filter2 within items selected by filter grouped by the boundary.- Parameters:
servletRequest
-HttpServletRequest
of the incoming requestservletResponse
-HttpServletResponse
of the outgoing response- Returns:
Response
- Throws:
Exception
- thrown by#aggregateRatioGroupByBoundary(RequestResource, HttpServletRequest, HttpServletResponse) aggregateRatioGroupByBoundary
-