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

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    perimeter(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the perimeter of polygonal OSM objects.
    perimeterDensity(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the density of OSM elements (perimeter of items divided by the total area in square-kilometers).
    perimeterDensityGroupByBoundary(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).
    perimeterDensityGroupByBoundaryGroupByTag(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the density of OSM elements grouped by the boundary and the tag.
    perimeterDensityGroupByTag(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the density of OSM elements grouped by the tag.
    perimeterDensityGroupByType(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the density of OSM elements grouped by the OSM type.
    perimeterGroupByBoundary(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the perimeter of polygonal OSM objects grouped by the boundary parameter (bounding box/circle/polygon).
    perimeterGroupByBoundaryGroupByTag(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the perimeter of polygonal OSM objects grouped by the boundary and the tag.
    perimeterGroupByKey(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the perimeter of polygonal OSM objects grouped by the key.
    perimeterGroupByTag(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the perimeter of polygonal OSM objects grouped by the tag.
    perimeterGroupByType(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the perimeter of polygonal OSM objects grouped by the OSM type.
    perimeterRatio(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the ratio of OSM elements satisfying filter2 within items selected by filter.
    perimeterRatioGroupByBoundary(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
    Gives the ratio of the perimeter 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

    • PerimeterController

      public PerimeterController()
  • Method Details

    • perimeter

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

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

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

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

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

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

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

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

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

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

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

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

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