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

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.

主站蜘蛛池模板: 黔江区| 乡城县| 昭觉县| 顺平县| 将乐县| 扶沟县| 柘荣县| 双鸭山市| 浦城县| 平南县| 商丘市| 永川市| 齐齐哈尔市| 庆云县| 资中县| 柳州市| 海原县| 双峰县| 五河县| 罗甸县| 忻州市| 抚顺市| 南昌县| 衡南县| 虎林市| 温泉县| 宜章县| 惠安县| 曲松县| 北辰区| 右玉县| 陆河县| 金阳县| 根河市| 眉山市| 南木林县| 古交市| 灵武市| 建湖县| 五寨县| 军事|