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

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    count(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the count of OSM objects.
    countDensity(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the density of OSM elements (number of items divided by the total area in square-kilometers).
    countDensityGroupByBoundary(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the density of OSM objects grouped by the boundary parameter (bounding box/circle/polygon).
    countDensityGroupByBoundaryGroupByTag(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the density of OSM elements grouped by the boundary and the tag.
    countDensityGroupByTag(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the density of OSM elements grouped by the tag.
    countDensityGroupByType(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the density of OSM objects grouped by the OSM type.
    countGroupByBoundary(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the count of OSM objects grouped by the boundary parameter (bounding box/circle/polygon).
    countGroupByBoundaryGroupByTag(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the count of OSM objects grouped by the boundary and the tag.
    countGroupByKey(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the count of OSM objects grouped by the key.
    countGroupByTag(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the count of OSM objects grouped by the tag.
    countGroupByType(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the count of OSM objects grouped by the OSM type.
    countRatio(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the ratio of OSM elements satisfying filter2 within items selected by filter.
    countRatioGroupByBoundary(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the ratio 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

    • CountController

      public CountController()
  • Method Details

    • count

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

      @RequestMapping(value="/groupBy/type", method={GET,POST}, produces={"application/json","text/csv"}) public Response countGroupByType(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception
      Gives the count 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
    • countGroupByBoundary

      @RequestMapping(value="/groupBy/boundary", method={GET,POST}, produces={"application/json","text/csv"}) public Response countGroupByBoundary(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception
      Gives the count of 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
    • countGroupByBoundaryGroupByTag

      @RequestMapping(value="/groupBy/boundary/groupBy/tag", method={GET,POST}, produces={"application/json","text/csv"}) public Response countGroupByBoundaryGroupByTag(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception
      Gives the count 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
    • countGroupByKey

      @RequestMapping(value="/groupBy/key", method={GET,POST}, produces={"application/json","text/csv"}) public Response countGroupByKey(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception
      Gives the count 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
    • countGroupByTag

      @RequestMapping(value="/groupBy/tag", method={GET,POST}, produces={"application/json","text/csv"}) public Response countGroupByTag(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception
      Gives the count 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
    • countDensity

      @RequestMapping(value="/density", method={GET,POST}, produces={"application/json","text/csv"}) public Response countDensity(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception
      Gives the density of OSM elements (number 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
    • countDensityGroupByType

      @RequestMapping(value="density/groupBy/type", method={GET,POST}, produces={"application/json","text/csv"}) public Response countDensityGroupByType(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception
      Gives the density 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
    • countDensityGroupByBoundary

      @RequestMapping(value="/density/groupBy/boundary", method={GET,POST}, produces={"application/json","text/csv"}) public Response countDensityGroupByBoundary(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws Exception
      Gives the density of 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
    • countDensityGroupByBoundaryGroupByTag

      @RequestMapping(value="/density/groupBy/boundary/groupBy/tag", method={GET,POST}, produces={"application/json","text/csv"}) public Response countDensityGroupByBoundaryGroupByTag(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
    • countDensityGroupByTag

      @RequestMapping(value="/density/groupBy/tag", method={GET,POST}, produces={"application/json","text/csv"}) public Response countDensityGroupByTag(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
    • countRatio

      @RequestMapping(value="/ratio", method={GET,POST}, produces={"application/json","text/csv"}) public Response countRatio(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
    • countRatioGroupByBoundary

      @RequestMapping(value="/ratio/groupBy/boundary", method={GET,POST}, produces={"application/json","text/csv"}) public Response countRatioGroupByBoundary(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 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