- Mastering PostGIS
- Dominik Mikiewicz Michal Mackiewicz Tomasz Nycz
- 85字
- 2021-07-02 22:52:23
Connecting to WFS service
This example is based on the ogr_fwd documentation, so it only shows the required stuff. A full example can be reviewed here:
https://github.com/robe2/pgsql-ogr-fdw
First let's create a foreign server:
CREATE SERVER fdw_wfs_test_opengeo
FOREIGN DATA WRAPPER ogr_fdw
OPTIONS (
datasource 'WFS:http://demo.opengeo.org/geoserver/wfs',
format 'WFS');
Automagically bring in the schema:
IMPORT FOREIGN SCHEMA "topp:tasmania_cities"
FROM SERVER fdw_wfs_test_opengeo INTO data_linked;
And issue a query against the foreign WFS table:
select city_name from data_linked.topp_tasmania_cities;
Since this dataset contains only one record, our result should be Hobart.
推薦閱讀
- Instant Raspberry Pi Gaming
- 亮劍.NET:.NET深入體驗與實戰精要
- 蕩胸生層云:C語言開發修行實錄
- Dreamweaver CS3網頁設計50例
- CorelDRAW X4中文版平面設計50例
- 大數據處理平臺
- Visual C++編程全能詞典
- 數據通信與計算機網絡
- Nginx高性能Web服務器詳解
- 人工智能趣味入門:光環板程序設計
- 菜鳥起飛系統安裝與重裝
- Machine Learning with Apache Spark Quick Start Guide
- Python:Data Analytics and Visualization
- Linux系統下C程序開發詳解
- 貫通開源Web圖形與報表技術全集