1021
- postgis拓展添加:
CREATE EXTENSION postgis;//添加postgis拓展
SELECT postgis_full_version();//查看拓展是否添加成功
- spring boot中post的请求方式:
@PostMapping("/getPagedSpatialQueryInfo")
public XResult<PageInfo<Shuiti>> getPagedSpatialQueryInfo(@RequestParam("pageNo") Integer pageNo, @RequestParam("pageSize") Integer pageSize, @RequestParam("wkt") String wkt){
return new XResult<PageInfo<Shuiti>>(true,"查询成功",spatialAnalysisService.spatialQuery(pageNo,pageSize,wkt));
}
1022
- geoserver切图失败的原因:与wms的连接时间默认设置为60s,修改默认时长,修改为更长的时间,即可解决问题。

