@RestController
@RequestMapping(value="/services/utilities/geometry")
public class GeoResController
extends java.lang.Object
构造器和说明 |
---|
GeoResController() |
限定符和类型 | 方法和说明 |
---|---|
Feature |
buffer(java.lang.String geom,
int distance)
生成缓冲区
|
Feature |
convexHull(java.lang.String geom)
凸包分析
|
Feature |
difference(java.lang.String geom1,
java.lang.String geom2)
差集分析
|
double |
distance(java.lang.String geom1,
java.lang.String geom2)
计算两个图形的距离
|
Feature |
intersection(java.lang.String geom1,
java.lang.String geom2)
交集分析
|
Feature |
symDifference(java.lang.String geom1,
java.lang.String geom2)
相交取反分析
|
Feature |
union(java.lang.String geom1,
java.lang.String geom2)
并集分析
|
@GetMapping(value="/buffer") public Feature buffer(java.lang.String geom, int distance)
geom
- GeoJSON字符串distance
- 缓冲距离@GetMapping(value="/distance") public double distance(java.lang.String geom1, java.lang.String geom2)
geom1
- GeoJSON字符串geom2
- GeoJSON字符串@GetMapping(value="/union") public Feature union(java.lang.String geom1, java.lang.String geom2)
geom1
- GeoJSON字符串geom2
- GeoJSON字符串@GetMapping(value="/intersection") public Feature intersection(java.lang.String geom1, java.lang.String geom2)
geom1
- GeoJSON字符串geom2
- GeoJSON字符串@GetMapping(value="/symDifference") public Feature symDifference(java.lang.String geom1, java.lang.String geom2)
geom1
- GeoJSON字符串geom2
- GeoJSON字符串@GetMapping(value="/difference") public Feature difference(java.lang.String geom1, java.lang.String geom2)
geom1
- 地理对象geom2
- 地理对象@GetMapping(value="/convexHull") public Feature convexHull(java.lang.String geom)
geom
- 坐标点数组