- 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.
推薦閱讀
- 基于LabWindows/CVI的虛擬儀器設(shè)計與應(yīng)用
- 走入IBM小型機(jī)世界
- 最后一個人類
- 80x86/Pentium微型計算機(jī)原理及應(yīng)用
- Ruby on Rails敏捷開發(fā)最佳實踐
- 新編計算機(jī)圖形學(xué)
- Extending Ansible
- Linux內(nèi)核精析
- 自動化生產(chǎn)線安裝與調(diào)試(三菱FX系列)(第二版)
- 基于元胞自動機(jī)的人群疏散系統(tǒng)建模與分析
- JSP網(wǎng)絡(luò)開發(fā)入門與實踐
- Mastercam X5應(yīng)用技能基本功特訓(xùn)
- 人工智能基礎(chǔ)
- 工業(yè)機(jī)器人與自控系統(tǒng)的集成應(yīng)用
- Kubernetes Design Patterns and Extensions