我想执行一个简单的st_intersects查询:
select st_intersects('MULTIPOLYGON(((1 5,4 8,7 5,4 2,1 5)),((5 5,8 8,11 5,8 2,5 5)))','POLYGON((3 4.5,3 5,4 5,4 4,3 4.5))');
出现以下错误信息并导致控制台崩溃:
Error: GEOSIntersects: TopologyException: side location conflict at: 6 4
这完全不合常理,因为以下查询是有效的:
select st_intersects('MULTIPOLYGON(((1 5,4 8,7 5,4 2,1 5)),((5 5,8 8,11 5,8 2,5 5)))','POLYGON((3 4,3 5,4 5,4 4,3 4))');
两者之间唯一的区别在于最后一个多边形中的4/4.5。
我使用的是POSTGIS 2.2.1版本,这里我错过了什么?