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 Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    reactor.core.publisher.Mono<org.bremersee.geojson.GeoJsonFeatureCollection<org.locationtech.jts.geom.Geometry,Object>>
    Find features mono.
    reactor.core.publisher.Mono<org.bremersee.geojson.GeoJsonFeature<org.locationtech.jts.geom.Geometry,Object>>
    saveFeature(org.locationtech.jts.geom.Geometry geometry)
    Save feature mono.
    reactor.core.publisher.Mono<org.bremersee.geojson.GeoJsonFeature<org.locationtech.jts.geom.Geometry,Object>>
    transform(String id, org.locationtech.jts.geom.Geometry geometry, boolean withBoundingBox)
    Transform mono.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GeoJsonRestController

      public GeoJsonRestController()
  • Method Details

    • transform

      @GetMapping(path="/geo/transform", produces="application/json") public reactor.core.publisher.Mono<org.bremersee.geojson.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<org.bremersee.geojson.GeoJsonFeatureCollection<org.locationtech.jts.geom.Geometry,Object>> findFeatures()
      Find features mono.
      Returns:
      the mono
    • saveFeature

      @PostMapping(path="/geo") public reactor.core.publisher.Mono<org.bremersee.geojson.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