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

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;  
主站蜘蛛池模板: 榕江县| 汝南县| 富锦市| 岚皋县| 博野县| 桃源县| 图片| 综艺| 穆棱市| 上犹县| 明水县| 普陀区| 舞阳县| 维西| 玉溪市| 云阳县| 木兰县| 阿克苏市| 云安县| 木里| 沾化县| 双鸭山市| 江津市| 瑞安市| 新乡市| 宽甸| 平罗县| 曲松县| 凤山市| 东莞市| 桑植县| 旺苍县| 吉水县| 社旗县| 砚山县| 徐闻县| 清水河县| 涿鹿县| 武冈市| 胶南市| 林甸县|