Class SamplingPointsController
java.lang.Object
org.openforis.collect.web.controller.BasicController
org.openforis.collect.web.controller.SamplingPointsController
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexportWorkSamplingDesign(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) loadSamplingPoints(int surveyId, List<String> parentKeys, boolean onlyParentItem, String targetSrsId) updateSamplingPointItem(int surveyId, SamplingDesignItem item) Methods inherited from class org.openforis.collect.web.controller.BasicController
generateFormValidationResponse, getSessionState
-
Constructor Details
-
SamplingPointsController
public SamplingPointsController()
-
-
Method Details
-
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)
-