文档

ST_FromSuperMap

更新时间:

将一个基于超图格式的sfmesh对象转换为一个基于WGS84的sfmesh对象。

语法

sfmesh ST_FromSuperMap(sfmesh  mesh);

参数

参数

描述

mesh

目标sfmesh对象。

描述

基于超图格式的sfmesh对象有天顶坐标系统以及局部坐标系统,对于计算和过滤不够友好,因此需要通过本函数转换为基于WGS84的sfmesh对象,以便进行计算操作。

示例

SELECT ST_AsText(ST_FromSupermap(the_mesh))
FROM t_sm_mesh
ORDER BY num;
-----------------
 {"version" : 1, "srid" : 4326, "root" : 0, "meshes" : [{"root" : 0, "meshgeoms" : ["MESHGEOM(PATCH(POINT Z (116.375228273102 40.000091623698 13.8479756591842)))"], "primitives" : [{"meshgeom" : 0}], "nodes" : [{"primitive" : 0}]}], "primitives" : [{"mesh" : 0}], "nodes" : [{"children" : [1]}, {"primitive" : 0}]}
  • 本页导读 (0)
文档反馈