Class SamplingPointsController
- java.lang.Object
-
- org.openforis.collect.web.controller.BasicController
-
- org.openforis.collect.web.controller.SamplingPointsController
-
@Controller public class SamplingPointsController extends BasicController
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSamplingPointsController.SamplingPointSearchParameters
-
Constructor Summary
Constructors Constructor Description SamplingPointsController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringexportWorkSamplingDesign(javax.servlet.http.HttpServletResponse response, Integer surveyId)org.openforis.collect.web.controller.SamplingPointsController.BoundsloadSamplingPointBounds(int surveyId)org.geojson.FeatureCollectionloadSamplingPointData(int surveyId)voidloadSamplingPointKmlData(int surveyId, javax.servlet.http.HttpServletResponse response)List<SamplingDesignItem>loadSamplingPoints(int surveyId, List<String> parentKeys, boolean onlyParentItem, String targetSrsId)SamplingDesignItemupdateSamplingPointItem(int surveyId, SamplingDesignItem item)-
Methods inherited from class org.openforis.collect.web.controller.BasicController
generateFormValidationResponse, getSessionState
-
-
-
-
Method Detail
-
loadSamplingPoints
@RequestMapping(value="api/survey/{surveyId}/sampling_point_data", method=GET, produces="application/json") @ResponseBody public List<SamplingDesignItem> loadSamplingPoints(@PathVariable int surveyId, @RequestParam(value="parent_keys",required=false) List<String> parentKeys, @RequestParam(value="only_parent_item",required=false,defaultValue="false") boolean onlyParentItem, @RequestParam(value="srs",required=false,defaultValue="EPSG:4326") String targetSrsId)
-
exportWorkSamplingDesign
@RequestMapping(value="api/survey/{surveyId}/sampling_point_data.csv", method=GET) @ResponseBody public String exportWorkSamplingDesign(javax.servlet.http.HttpServletResponse response, @PathVariable("surveyId") Integer surveyId) throws IOException- Throws:
IOException
-
updateSamplingPointItem
@RequestMapping(value="api/survey/{surveyId}/sampling_point_data", method=POST, produces="application/json") @ResponseBody public SamplingDesignItem updateSamplingPointItem(@PathVariable int surveyId, @RequestBody SamplingDesignItem item)
-
loadSamplingPointKmlData
@RequestMapping(value="api/survey/{surveyId}/sampling_point_data.kml", method=GET, produces="application/vnd.google-earth.kml+xml") public void loadSamplingPointKmlData(@PathVariable int surveyId, javax.servlet.http.HttpServletResponse response) throws Exception- Throws:
Exception
-
loadSamplingPointData
@RequestMapping(value="api/survey/{surveyId}/sampling_point_data_features.json", method=GET) @ResponseBody public org.geojson.FeatureCollection loadSamplingPointData(@PathVariable int surveyId)
-
loadSamplingPointBounds
@RequestMapping(value="survey/{surveyId}/sampling_point_bounds.json", method=GET) @ResponseBody public org.openforis.collect.web.controller.SamplingPointsController.Bounds loadSamplingPointBounds(@PathVariable int surveyId)
-
-