Class 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".
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Response perimeter​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the perimeter of polygonal OSM objects.
      Response 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).
      Response 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).
      Response perimeterDensityGroupByBoundaryGroupByTag​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the density of OSM elements grouped by the boundary and the tag.
      Response perimeterDensityGroupByTag​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the density of OSM elements grouped by the tag.
      Response perimeterDensityGroupByType​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the density of OSM elements grouped by the OSM type.
      Response 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).
      Response 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.
      Response perimeterGroupByKey​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the perimeter of polygonal OSM objects grouped by the key.
      Response perimeterGroupByTag​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the perimeter of polygonal OSM objects grouped by the tag.
      Response perimeterGroupByType​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the perimeter of polygonal OSM objects grouped by the OSM type.
      Response perimeterRatio​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the ratio of OSM elements satisfying filter2 within items selected by filter.
      Response 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.
    • Constructor Detail

      • PerimeterController

        public PerimeterController()
    • Method Detail

      • 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
      • 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
      • 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
      • 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
      • 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