java.lang.Object
org.heigit.ohsome.ohsomeapi.controller.dataaggregation.elements.AreaController

@RestController @RequestMapping("/elements/area") public class AreaController extends Object
Controller containing the GET and POST servletRequest handling methods, which are mapped to "/elements/area".
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    area(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the area of OSM objects.
    areaDensity(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the density of OSM elements (area of items divided by the total area in square-kilometers).
    areaDensityGroupByBoundary(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the density of OSM elements grouped by the boundary parameter (bounding box/circle/polygon).
    areaDensityGroupByBoundaryGroupByTag(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the density of OSM elements grouped by the boundary and the tag.
    areaDensityGroupByTag(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the density of OSM elements grouped by the tag.
    areaDensityGroupByType(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the density of OSM elements grouped by the OSM type.
    areaGroupByBoundary(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the area OSM objects grouped by the boundary parameter (bounding box/circle/polygon).
    areaGroupByBoundaryGroupByTag(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the area of OSM objects grouped by the boundary and the tag.
    areaGroupByKey(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the area of OSM objects grouped by the key.
    areaGroupByTag(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the area of OSM objects grouped by the tag.
    areaGroupByType(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the area of OSM objects grouped by the OSM type.
    areaRatio(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the ratio of OSM elements satisfying filter2 within items selected by filter.
    areaRatioGroupByBoundary(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the ratio of the area of OSM elements satisfying filter2 within items selected by filter grouped by the boundary.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AreaController

      public AreaController()
  • Method Details

    • area

      @RequestMapping(value="", method={GET,POST}, produces={"application/json","text/csv"}) public Response area(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception
      Gives the area of OSM objects.
      Parameters:
      servletRequest - HttpServletRequest of the incoming request
      servletResponse - HttpServletResponse of the outgoing response
      Returns:
      Response
      Throws:
      Exception - thrown by aggregate
    • areaGroupByType

      @RequestMapping(value="/groupBy/type", method={GET,POST}, produces={"application/json","text/csv"}) public Response areaGroupByType(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception
      Gives the area of OSM objects grouped by the OSM type.
      Parameters:
      servletRequest - HttpServletRequest of the incoming request
      servletResponse - HttpServletResponse of the outgoing response
      Returns:
      Response
      Throws:
      Exception - thrown by #aggregateGroupByType(RequestResource, HttpServletRequest, HttpServletResponse, boolean, boolean) aggregateGroupByType
    • areaGroupByBoundary

      @RequestMapping(value="/groupBy/boundary", method={GET,POST}, produces={"application/json","text/csv"}) public Response areaGroupByBoundary(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception
      Gives the area OSM objects grouped by the boundary parameter (bounding box/circle/polygon).
      Parameters:
      servletRequest - HttpServletRequest of the incoming request
      servletResponse - HttpServletResponse of the outgoing response
      Returns:
      Response
      Throws:
      Exception - thrown by #aggregateGroupByBoundary() aggregateGroupByBoundary
    • areaGroupByBoundaryGroupByTag

      @RequestMapping(value="/groupBy/boundary/groupBy/tag", method={GET,POST}, produces={"application/json","text/csv"}) public Response areaGroupByBoundaryGroupByTag(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception
      Gives the area of OSM objects grouped by the boundary and the tag.
      Parameters:
      servletRequest - HttpServletRequest of the incoming request
      servletResponse - HttpServletResponse of the outgoing response
      Returns:
      Response
      Throws:
      Exception - thrown by #aggregateGroupByBoundaryGroupByTag(RequestResource, HttpServletRequest, HttpServletResponse, boolean, boolean) aggregateGroupByBoundaryGroupByTag
    • areaGroupByKey

      @RequestMapping(value="/groupBy/key", method={GET,POST}, produces={"application/json","text/csv"}) public Response areaGroupByKey(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception
      Gives the area of OSM objects grouped by the key.
      Parameters:
      servletRequest - HttpServletRequest of the incoming request
      servletResponse - HttpServletResponse of the outgoing response
      Returns:
      Response
      Throws:
      Exception - thrown by #aggregateGroupByKey(RequestResource, HttpServletRequest, HttpServletResponse, boolean, boolean) aggregateGroupByKey
    • areaGroupByTag

      @RequestMapping(value="/groupBy/tag", method={GET,POST}, produces={"application/json","text/csv"}) public Response areaGroupByTag(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception
      Gives the area of OSM objects grouped by the tag.
      Parameters:
      servletRequest - HttpServletRequest of the incoming request
      servletResponse - HttpServletResponse of the outgoing response
      Returns:
      Response
      Throws:
      Exception - thrown by #aggregateGroupByTag(RequestResource, HttpServletRequest, HttpServletResponse, boolean, boolean) aggregateGroupByTag
    • areaDensity

      @RequestMapping(value="/density", method={GET,POST}, produces={"application/json","text/csv"}) public Response areaDensity(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception
      Gives the density of OSM elements (area of items divided by the total area in square-kilometers).
      Parameters:
      servletRequest - HttpServletRequest of the incoming request
      servletResponse - HttpServletResponse of the outgoing response
      Returns:
      Response
      Throws:
      Exception - thrown by aggregate
    • areaDensityGroupByType

      @RequestMapping(value="/density/groupBy/type", method={GET,POST}, produces={"application/json","text/csv"}) public Response areaDensityGroupByType(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 request
      servletResponse - HttpServletResponse of the outgoing response
      Returns:
      Response
      Throws:
      Exception - thrown by #aggregateGroupByType(RequestResource, HttpServletRequest, HttpServletResponse, boolean, boolean) aggregateGroupByType
    • areaDensityGroupByBoundary

      @RequestMapping(value="/density/groupBy/boundary", method={GET,POST}, produces={"application/json","text/csv"}) public Response areaDensityGroupByBoundary(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception
      Gives the density of OSM elements grouped by the boundary parameter (bounding box/circle/polygon).
      Parameters:
      servletRequest - HttpServletRequest of the incoming request
      servletResponse - HttpServletResponse of the outgoing response
      Returns:
      Response
      Throws:
      Exception - thrown by #aggregateGroupByBoundary() aggregateGroupByBoundary
    • areaDensityGroupByBoundaryGroupByTag

      @RequestMapping(value="/density/groupBy/boundary/groupBy/tag", method={GET,POST}, produces={"application/json","text/csv"}) public Response areaDensityGroupByBoundaryGroupByTag(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 request
      servletResponse - HttpServletResponse of the outgoing response
      Returns:
      Response
      Throws:
      Exception - thrown by #aggregateGroupByBoundaryGroupByTag(RequestResource, HttpServletRequest, HttpServletResponse, boolean, boolean) aggregateGroupByBoundaryGroupByTag
    • areaDensityGroupByTag

      @RequestMapping(value="/density/groupBy/tag", method={GET,POST}, produces={"application/json","text/csv"}) public Response areaDensityGroupByTag(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 request
      servletResponse - HttpServletResponse of the outgoing response
      Returns:
      Response
      Throws:
      Exception - thrown by #aggregateGroupByTag(RequestResource, HttpServletRequest, HttpServletResponse, boolean, boolean) aggregateGroupByTag
    • areaRatio

      @RequestMapping(value="/ratio", method={GET,POST}, produces={"application/json","text/csv"}) public Response areaRatio(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 request
      servletResponse - HttpServletResponse of the outgoing response
      Returns:
      Response
      Throws:
      Exception - thrown by #aggregateRatio(RequestResource, HttpServletRequest, HttpServletResponse) aggregateRatio
    • areaRatioGroupByBoundary

      @RequestMapping(value="/ratio/groupBy/boundary", method={GET,POST}, produces={"application/json","text/csv"}) public Response areaRatioGroupByBoundary(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception
      Gives the ratio of the area of OSM elements satisfying filter2 within items selected by filter grouped by the boundary.
      Parameters:
      servletRequest - HttpServletRequest of the incoming request
      servletResponse - HttpServletResponse of the outgoing response
      Returns:
      Response
      Throws:
      Exception - thrown by #aggregateRatioGroupByBoundary(RequestResource, HttpServletRequest, HttpServletResponse) aggregateRatioGroupByBoundary