如何使用postgis缩小多边形?

时间:2016-06-15 08:53:27

标签: postgis

我正在使用postgis 2.2,如何使用postgis查询将多边形缩小到10米?

这是我的多边形

  

POLYGON((72.89994120597838 19.070245311788284,72.89981782436371)   19.069915760688904,72.9002845287323 19.070001951039718,72.9003381729126 19.070341641985888,72.89991974830626 19.07023517176424,72.89994120597838 19.070245311788284))

1 个答案:

答案 0 :(得分:0)

你可以像这样st_buffer函数

选择st_buffer(st_geogfromtext(' POLYGON)((72.89994120597838 19.070245311788284,72.89981782436371 19.069915760688904, 72.9002845287323 19.070001951039718,72.9003381729126 19.070341641985888,72.89991974830626 19.07023517176424, 72.89994120597838 19.070245311788284))'), -10

http://www.postgis.org/docs/ST_Buffer.html