我有一个到 postgresql db 的连接,它返回以下结果
O4, MULTILINESTRING((-91.4272099951079 35.6984820849707,-91.2691971234476 35.8195546559061))
I4, MULTILINESTRING((-91.4668296641028 35.5407821819705,-91.3332878428544 35.7230307833947,-91.1889662757843 35.8834271551078))
使用此查询:
select id, astext(the_geom)from trkl
我正在尝试生成如下文件,我必须反转线 35.xx 应该是第一个,-91.xx 最后是有一个简单的方法可以做到这一点吗?
"O4"
35.62200200, -88.98259200
35.62203500, -88.98240800
35.62202700, -88.98231000
35.62180000, -88.98163400
END:
"I4"
35.62200200, -88.98259200
35.62203500, -88.98240800
35.62202700, -88.98231000
35.62180000, -88.98163400
35.62175700, -88.98149000
35.62172500, -88.97881200
35.62172000, -88.97798500
35.62169800, -88.97752400
END