- 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;
推薦閱讀
- Microsoft Dynamics CRM Customization Essentials
- Machine Learning for Cybersecurity Cookbook
- 計算機圖形學
- Hands-On Neural Networks with Keras
- 傳感器技術應用
- iClone 4.31 3D Animation Beginner's Guide
- Apache Spark Deep Learning Cookbook
- 現代傳感技術
- 統計學習理論與方法:R語言版
- 數據庫系統原理及應用教程(第5版)
- 邊緣智能:關鍵技術與落地實踐
- FPGA/CPLD應用技術(Verilog語言版)
- 嵌入式GUI開發設計
- 大數據案例精析
- 基于RPA技術財務機器人的應用與研究