Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/83.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql 如何获得第一点';类型为path的列的s坐标_Sql_Postgresql_Path_Coordinates_Postgis - Fatal编程技术网

Sql 如何获得第一点';类型为path的列的s坐标

Sql 如何获得第一点';类型为path的列的s坐标,sql,postgresql,path,coordinates,postgis,Sql,Postgresql,Path,Coordinates,Postgis,我有上面的桌子 尝试进行如下查询: SELECT e.id, e.distance, e.height, e.coordinates, e.gtype FROM rf.geometry e WHERE coordinates[0][0] > 10; 我得到了一个错误: ERROR: cannot subscript type path because it is not an array 路径的维度是什么?您是如何构建的?是否有理由不使用几何体或地理类型而不是自定义的“路径”? ER

我有上面的桌子

尝试进行如下查询:

SELECT e.id, e.distance, e.height, e.coordinates, e.gtype FROM rf.geometry e WHERE coordinates[0][0] > 10;
我得到了一个错误:

ERROR:  cannot subscript type path because it is not an array

路径的维度是什么?您是如何构建的?是否有理由不使用几何体或地理类型而不是自定义的“路径”?
ERROR:  cannot subscript type path because it is not an array