- Mastering PostGIS
- Dominik Mikiewicz Michal Mackiewicz Tomasz Nycz
- 70字
- 2021-07-02 22:52:25
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;
推薦閱讀
- 3D Printing with RepRap Cookbook
- Spark編程基礎(chǔ)(Scala版)
- Learning Apache Spark 2
- Windows 8應(yīng)用開發(fā)實戰(zhàn)
- Hands-On Linux for Architects
- VB語言程序設(shè)計
- 大學(xué)計算機應(yīng)用基礎(chǔ)
- 電腦主板現(xiàn)場維修實錄
- Applied Data Visualization with R and ggplot2
- Extending Ansible
- 啊哈C!思考快你一步
- Linux Shell Scripting Cookbook(Third Edition)
- 機床電氣控制與PLC
- 人工智能云平臺:原理、設(shè)計與應(yīng)用
- 納米集成電路制造工藝(第2版)