Class GeoJsonRestController

java.lang.Object
org.bremersee.geojson.spring.boot.autoconfigure.app.GeoJsonRestController

@RestController public class GeoJsonRestController extends Object
The geo json rest controller.
Author:
Christian Bremer
  • 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 id
      geometry - the geometry
      withBoundingBox - 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