Package de.dlr.proseo.geotools.rest
Klasse OverlapControllerImpl
java.lang.Object
de.dlr.proseo.geotools.rest.OverlapControllerImpl
- Alle implementierten Schnittstellen:
OverlapController
Controller to handle the overlap request, which checks whether a specified
polygon overlaps selected or all regions from application.yml.
- Autor:
- Ernst Melchinger
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungorg.springframework.http.ResponseEntity
<Boolean> Checks whether an area, i.e. the Polygon defined by the array poly overlaps at least one of the provided regions.org.springframework.http.ResponseEntity
<Boolean> overlapspoly
(String[] type, RestPolygon restPolygon) Checks whether an area defined by a RestPolygin overlaps at least one of the provided regions.
-
Konstruktordetails
-
OverlapControllerImpl
public OverlapControllerImpl()
-
-
Methodendetails
-
overlaps
Checks whether an area, i.e. the Polygon defined by the array poly overlaps at least one of the provided regions. If none are given, all available region types will be considered. For longer arrays, using the overlapspoly() method with a RestPolygon is recommended, and for high lengths in fact necessary.- Angegeben von:
overlaps
in SchnittstelleOverlapController
- Parameter:
poly
- String array containing latitude (uneven fields)/longitude (uneven fields) pairs in Double format, which together describe an area to be compared to a number of specified regionstype
- String array used to determine which regions (specified in application.yml) to check. If the array parameter is null or empty, all available region types will be considered- Gibt zurück:
- HttpStatus 200 and true if the polygon overlaps one or more of the specified regions (all known regions if none were specified), false otherwise OR HttpStatus 400 and an error message if the input was invalid OR HttpStatus 500 and an error message if the input was valid but the implementation is pending or a problem occurred while trying to process a shape file
-
overlapspoly
public org.springframework.http.ResponseEntity<Boolean> overlapspoly(String[] type, RestPolygon restPolygon) Checks whether an area defined by a RestPolygin overlaps at least one of the provided regions. If none are given, all available region types will be considered.- Angegeben von:
overlapspoly
in SchnittstelleOverlapController
- Parameter:
type
- String array used to determine which regions (specified in application.yml) to check. If the array parameter is null or empty, all available region types will be consideredrestPolygon
- RestPolygon describing an area to be compared to a number of specified regions- Gibt zurück:
- HttpStatus 200 and true if the polygon overlaps one or more of the specified regions (all known regions if none were specified), false otherwise OR HttpStatus 400 and an error message if the input was invalid OR HttpStatus 500 and an error message if the input was valid but the implementation is pending or a problem occurred while trying to process a shape file
-