sql - 错误 : GEOSIntersects: TopologyException: side location conflict

标签 sql postgresql geometry postgis

我有 PostgreSQL 9.2.4。这是我用来找出一些几何交集结果的表格:

             Column              |           Type           | Modifiers 
---------------------------------+--------------------------+-----------
 id                              | integer                  | 
 full_resolution                 | character varying(2000)  | 
 full_resolution_path            | character varying(256)   | 
 feature_id                      | text                     | 
 full_resolution_initiated_order | character varying(64)    | 
 true_image_feature_footprint_id | integer                  | 
 true_image_tile_footprint_id    | integer                  | 
 full_resolution_time_created    | timestamp with time zone | 
 feature_geom                    | geometry                 | 
 tile_geom                       | geometry                 | 

现在查询:

create Temp table temp4_test as
select id, ST_Intersects(feature_geom,tile_geom),full_resolution
     , full_resolution_path, feature_id, full_resolution_initiated_order
     , true_image_feature_footprint_id, true_image_tile_footprint_id
     , full_resolution_time_created
from temp3_test;

给我这个错误:

ERROR: GEOSIntersects: TopologyException: side location conflict at -122.42466 47.085999999999999

谁能指出我在这里做错了什么?

最佳答案

我找到了“Martin Davis”的答案in this thread :

This occurs because the geometries are invalid, and the current intersects algorithm used in JTS/GEOS has kittens when invalid geometries are used as input. The core dump thing is unfortunate (and obviously got fixed in later versions).

显然,相同的无效数据在 PostGis v1.5 中导致核心转储,但在 v2.0 中引发异常

关于sql - 错误 : GEOSIntersects: TopologyException: side location conflict,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23068880/

相关文章:

sql - PostGIS - 合并不同组中的缓冲区几何(相交时)

MYSQL:从多个表返回计数

mysql - 使用 from 中的子查询优化 SQL

sql - ActiveRecord 查询以避免需要对结果进行额外处理

postgresql - 事务中的游标在go和psql之间的行为不同

python - 如何查询给定坐标(字符串类型的经纬度)中最近的记录?

javascript - 如何在移动网络上使用 CSS、Javascript 创建半圆菜单(子项)?

c++ - 3d 空间中两个 vector 之间的角度

sql - 如何在Sql Server中删除没有属性的xml节点

java - -bash : syntax error near unexpected token `('