Class LayerExtractController
java.lang.Object
org.tailormap.api.controller.LayerExtractController
@RequestMapping(path="${tailormap-api.base-path}/{viewerKind}/{viewerName}/layer/{appLayerId}/extract")
public class LayerExtractController
extends Object
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionLayerExtractController(FeatureSourceRepository featureSourceRepository, CreateLayerExtractService createLayerExtractService, FeatureSourceFactoryHelper featureSourceFactoryHelper) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?> download(GeoService service, GeoServiceLayer layer, Application application, AppTreeLayerNode appTreeLayerNode, String downloadId) Download the result of an extract request.org.springframework.http.ResponseEntity<?> extract(@Valid GeoServiceLayer layer, GeoService service, Application application, AppTreeLayerNode appTreeLayerNode, String clientId, LayerExtractController.ExtractOutputFormat outputFormat, Set<String> attributes, String filter, String sortBy, String sortOrder) org.springframework.http.ResponseEntity<?> formats(@Valid GeoServiceLayer layer, GeoService service, Application application, AppTreeLayerNode appTreeLayerNode)
-
Constructor Details
-
LayerExtractController
public LayerExtractController(FeatureSourceRepository featureSourceRepository, CreateLayerExtractService createLayerExtractService, FeatureSourceFactoryHelper featureSourceFactoryHelper)
-
-
Method Details
-
download
@GetMapping(path="/download/{downloadId}") public org.springframework.http.ResponseEntity<?> download(@ModelAttribute GeoService service, @ModelAttribute GeoServiceLayer layer, @ModelAttribute Application application, @ModelAttribute AppTreeLayerNode appTreeLayerNode, @PathVariable String downloadId) throws MalformedURLException Download the result of an extract request. The extract generation should be initiated first by a POST to/{viewerKind}/{viewerName}/layer/{appLayerId}/extract/{clientId}.- Throws:
MalformedURLException
-
formats
@GetMapping("/formats") public org.springframework.http.ResponseEntity<?> formats(@Valid @ModelAttribute @Valid GeoServiceLayer layer, @ModelAttribute GeoService service, @ModelAttribute Application application, @ModelAttribute AppTreeLayerNode appTreeLayerNode) -
extract
@Transactional @PostMapping("/{clientId}") public org.springframework.http.ResponseEntity<?> extract(@Valid @ModelAttribute @Valid GeoServiceLayer layer, @ModelAttribute GeoService service, @ModelAttribute Application application, @ModelAttribute AppTreeLayerNode appTreeLayerNode, @PathVariable String clientId, @RequestParam LayerExtractController.ExtractOutputFormat outputFormat, @RequestParam(required=false) Set<String> attributes, @RequestParam(required=false) String filter, @RequestParam(required=false) String sortBy, @RequestParam(required=false,defaultValue="asc") String sortOrder)
-