【发布时间】:2019-02-27 08:26:46
【问题描述】:
我有一个具有特定 SRID 的点云。现在我想使用选择查询将整个点云转换为不同的 SRID(这里:4326 lat, lon)。我的第一个超级低效的方法是:
SELECT
ST_X
(
ST_GeometryN( p , n )
) as lon ,
ST_Y
(
ST_GeometryN( p , n )
) as lat
FROM
ST_Ttransform
(
ST_SetSRID
(
ST_GeomFromText
(
'MULTIPOINT
(
10.0 20.0 30.0 , 40.0 50.0 60.0 , 70.0 80.0 90
)' -- three example 3d coordinates
) ,
SRID_FROM -- current pointcloud srid
) ,
SRID_TO -- desired pointcloud srid
)
AS p
CROSS JOIN
generate_series
(
1 ,
ST_NumGeometries( p )
) n
有没有更好的方法来实现这种转变?我需要一次转换大约 10k - 100k 个点。
【问题讨论】:
-
输入点存储在哪里?在postgis表中?在外部文件中?
-
在 MATLAB 中,我使用数据库工具箱将它们作为查询传递。
-
这意味着你有点几何......?以及哪些 SR 存储在 Matlab 中 .. ? matlab中哪个坐标有点?
-
是的,我在 MATLAB 中有带有各种 SRID 的 3D 坐标,我也想在各种 SRID 中进行转换。
-
所以你有一个不同的 SRID 为每个 ca。 10万积分?并希望每个都转换为不同的 SRID?为什么从 Matlab 导入为
Multipoint?
标签: postgresql transform postgis point-clouds srid