Class GeoJsonRestController
java.lang.Object
org.bremersee.geojson.spring.boot.autoconfigure.app.GeoJsonRestController
The geo json rest controller.
- Author:
- Christian Bremer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<GeoJsonFeatureCollection<org.locationtech.jts.geom.Geometry, Object>> Find features mono.reactor.core.publisher.Mono<GeoJsonFeature<org.locationtech.jts.geom.Geometry, Object>> saveFeature(org.locationtech.jts.geom.Geometry geometry) Save feature mono.reactor.core.publisher.Mono<GeoJsonFeature<org.locationtech.jts.geom.Geometry, Object>> Transform mono.
-
Constructor Details
-
GeoJsonRestController
public GeoJsonRestController()
-
-
Method Details
-
transform
@GetMapping(path="/geo/transform", produces="application/json") public reactor.core.publisher.Mono<GeoJsonFeature<org.locationtech.jts.geom.Geometry,Object>> transform(@RequestParam(name="id") String id, @RequestParam(name="geometry") org.locationtech.jts.geom.Geometry geometry, @RequestParam(name="withBoundingBox") boolean withBoundingBox) Transform mono.- Parameters:
id- the idgeometry- the geometrywithBoundingBox- the with bounding box- Returns:
- the mono
-
findFeatures
@GetMapping(path="/geo", produces="application/json") public reactor.core.publisher.Mono<GeoJsonFeatureCollection<org.locationtech.jts.geom.Geometry,Object>> findFeatures()Find features mono.- Returns:
- the mono
-
saveFeature
@PostMapping(path="/geo") public reactor.core.publisher.Mono<GeoJsonFeature<org.locationtech.jts.geom.Geometry,Object>> saveFeature(@RequestBody org.locationtech.jts.geom.Geometry geometry) Save feature mono.- Parameters:
geometry- the geometry- Returns:
- the mono
-