Class GeoDataController
java.lang.Object
org.openforis.collect.web.controller.GeoDataController
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classGeoDataController.NodeInfo<T extends Node<?>>static class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertCoordinateTo(double x, double y, String srs, String srsIdTo) voidcreateCoordinateValuesKML(int surveyId, int stepNum, int coordinateAttributeId, javax.servlet.http.HttpServletResponse response) loadCoordinateValues(int surveyId, int coordinateAttributeId, String srsId, int recordOffset, int maxNumberOfRecords) loadGeometryValues(int surveyId, int attributeId, String srsId, int recordOffset, int maxNumberOfRecords)
-
Constructor Details
-
GeoDataController
public GeoDataController()
-
-
Method Details
-
convertCoordinateTo
@RequestMapping(value="geo/coordinate/convert.json", method=GET) @ResponseBody public Coordinate convertCoordinateTo(@RequestParam double x, @RequestParam double y, @RequestParam String srs, @RequestParam String srsIdTo) -
loadCoordinateValues
@RequestMapping(value="survey/{surveyId}/data/coordinatevalues.json", method=GET) @ResponseBody public List<GeoDataController.CoordinateAttributePoint> loadCoordinateValues(@PathVariable int surveyId, @RequestParam int coordinateAttributeId, @RequestParam String srsId, @RequestParam int recordOffset, @RequestParam int maxNumberOfRecords) throws Exception - Throws:
Exception
-
loadGeometryValues
@RequestMapping(value="survey/{surveyId}/data/geometries.json", method=GET) @ResponseBody public List<GeoDataController.GeometryNodeInfo> loadGeometryValues(@PathVariable int surveyId, @RequestParam int attributeId, @RequestParam String srsId, @RequestParam int recordOffset, @RequestParam int maxNumberOfRecords) throws Exception - Throws:
Exception
-
createCoordinateValuesKML
@RequestMapping(value="survey/{surveyId}/data/coordinatesvalues.kml", method=GET, produces="application/vnd.google-earth.kml+xml") public void createCoordinateValuesKML(@PathVariable("surveyId") int surveyId, @RequestParam int stepNum, @RequestParam int coordinateAttributeId, javax.servlet.http.HttpServletResponse response) throws Exception - Throws:
Exception
-