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

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;  
主站蜘蛛池模板: 手游| 泾源县| 南雄市| 阳西县| 余庆县| 绥江县| 临夏县| 潞西市| 昆山市| 灵石县| 四子王旗| 海宁市| 达尔| 江油市| 桂林市| 建平县| 台东县| 前郭尔| 缙云县| 龙州县| 宁化县| 阳原县| 武平县| 崇义县| 延川县| 诸暨市| 耒阳市| 新津县| 易门县| 历史| 大埔县| 伽师县| 富锦市| 光山县| 丹巴县| 旬阳县| 青海省| 页游| 内江市| 信阳市| 武平县|