嗨,我正试图获得距离某一点10公里范围内的所有点数,但我一直在
错误:在具有不同SRID的两个GEOMETRIES上操作
这是我的问题:
SELECT * FROM milllocations_30aug2014 WHERE st_distance(milllocations_30aug2014.shape, ST_GeomFromText('POINT(-93.62011857184822 51.02535700166606)', 4269))< 10000
milllocations_30aug2014.shape也是这样的:0101000020E61000007CF9F5285CAF5DC088DE3D0AD7834B40
感谢您的帮助
答案 0 :(得分:0)
我设法使用st_transform修复它
SELECT DISTINCT * FROM " + areaTable.getValue() + " WHERE st_distance(ST_Transform("+areaTable.getValue()+".shape,4269), ST_GeomFromText('POINT("+longitude+" "+latitude+")', 4269))< 10000