- 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;
推薦閱讀
- R Machine Learning By Example
- Windows 8應用開發實戰
- 模型制作
- 計算機圖形圖像處理:Photoshop CS3
- 城市道路交通主動控制技術
- RPA:流程自動化引領數字勞動力革命
- PostgreSQL Administration Essentials
- DevOps:Continuous Delivery,Integration,and Deployment with DevOps
- Moodle Course Design Best Practices
- Chef:Powerful Infrastructure Automation
- 從零開始學PHP
- Learn SOLIDWORKS 2020
- Cassandra Design Patterns
- 服務科學概論
- 仿蛛機器人的設計與制作