官术网_书友最值得收藏!

Extracting coordinates from points

Any coordinate (that is, an X, Y, Z or M value) can be extracted from a geometry into a human-readable numeric format. The ST_X, SY_Y, and ST_Z functions are suited for that purpose. For example, to extract the X and Y coordinates of POIs into separate numeric columns, you can use the following:

SELECT id, name, ST_X(way) AS x_coord, ST_Y(way) as y_coord FROM planet_osm_point LIMIT 10;  
主站蜘蛛池模板: 翁牛特旗| 昌吉市| 宜黄县| 土默特右旗| 汶川县| 牟定县| 东山县| 新河县| 锦屏县| 洛宁县| 古蔺县| 宁波市| 遂昌县| 玉门市| 上高县| 申扎县| 静安区| 民县| 三都| 溧阳市| 万载县| 阆中市| 博野县| 邳州市| 新郑市| 铜梁县| 铅山县| 灵台县| 兴和县| 三门峡市| 改则县| 宁远县| 个旧市| 凤翔县| 琼结县| 什邡市| 信丰县| 镇江市| 巴林右旗| 栾城县| 麦盖提县|