官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 余干县| 濮阳县| 大方县| 报价| 美姑县| 利川市| 宝坻区| 彭泽县| 财经| 灵台县| 无锡市| 大悟县| 佛坪县| 恩平市| 安塞县| 沧源| 扶沟县| 威远县| 思南县| 道孚县| 印江| 涞源县| 正镶白旗| 柳江县| 安泽县| 通化市| 中宁县| 威信县| 马龙县| 台中县| 那坡县| 荆州市| 阳春市| 兖州市| 南通市| 正宁县| 封开县| 绥芬河市| 成安县| 丹东市| 鲁甸县|