pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Brent Wood <Brent.Wood@niwa.co.nz>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: help implementing OGR Postgres foreign data wrapper
Date: Tue, 5 Oct 2021 03:36:09 +0000
Message-ID: <SY4PR01MB7076C00ECBA73CA75AA5D1A1A1AF9@SY4PR01MB7076.ausprd01.prod.outlook.com> (raw )
Hi,
Apologies, this not strictly a Postgres question, but Postgres is so fundamental to what I'm trying to do and this list is generally so helpful, so here I go...
I'm using FDW's to create virtual tables providing access to data from external data sources. This is working well for data in other Postgres databases using the Postgres FDW.
I also want to be able to link to data from WFS services via the OGR FDW (https://www.pgxn.org/dist/ogr_fdw/ )
The first service I'm trying to connect to is:
https://dservices3.arcgis.com/fp1tibNcN9mbExhG/arcgis/services/BOMEC_15_Class_WFS/WFSServer
I can retrieve the capabilities doc in a browser (test 1 passed!) and plot the data as a layer in QGIS (test 2 passed). My next step is to test OGR access via ogrinfo. This I can't seem to get working. I'm assuming I need to sort this out before trying to get the OGR_FDW working.
I've tried:
ogrinfo https://dservices3.arcgis.com/fp1tibNcN9mbExhG/arcgis/services/BOMEC_15_Class_WFS/WFSServer
ogrinfo https://dservices3.arcgis.com/fp1tibNcN9mbExhG/arcgis/services/BOMEC_15_Class_WFS/WFSServer?SERVICE=...
I can only get the following response
ogrinfo https://dservices3.arcgis.com/fp1tibNcN9mbExhG/arcgis/services/BOMEC_15_Class_WFS/WFSServer?SERVICE=...
[1] 3121502
ERROR 1: HTTP error code : 400
ERROR 1: HTTP error code : 400
FAILURE:
Unable to open datasource `https://dservices3.arcgis.com/fp1tibNcN9mbExhG/arcgis/services/BOMEC_15_Class_WFS/WFSServer?SERVICE=... ; with the following drivers.
-> ESRIC
...
-> OGR_PDS
-> WFS
-> OAPIF
...
Can anyone suggest what might be the problem?
Thanks.
Brent Wood
Principal Technician, Fisheries
NIWA
DDI: +64 (4) 3860529
[https://www.niwa.co.nz/static/niwa-2018-horizontal-180.png ] <https://www.niwa.co.nz ;
Brent Wood
Principal Technician - GIS and Spatial Data Management
Programme Leader - Environmental Information Delivery
+64-4-386-0529
National Institute of Water & Atmospheric Research Ltd (NIWA)
301 Evans Bay Parade Hataitai Wellington New Zealand
Connect with NIWA: niwa.co.nz<https://www.niwa.co.nz ; Facebook<https://www.facebook.com/nzniwa ; LinkedIn<https://www.linkedin.com/company/niwa ; Twitter<https://twitter.com/niwa_nz ; Instagram<https://www.instagram.com/niwa_science ;
To ensure compliance with legal requirements and to maintain cyber security standards, NIWA's IT systems are subject to ongoing monitoring, activity logging and auditing. This monitoring and auditing service may be provided by third parties. Such third parties can access information transmitted to, processed by and stored on NIWA's IT systems
view thread (3+ messages) latest in thread
Message-ID: <SY4PR01MB7076C00ECBA73CA75AA5D1A1A1AF9@SY4PR01MB7076.ausprd01.prod.outlook.com>
Permalink: ../SY4PR01MB7076C00ECBA73CA75AA5D1A1A1AF9@SY4PR01MB7076.ausprd01.prod.outlook.com/
Also on: postgresql.org/message-id/SY4PR01MB7076C00ECBA73CA75AA5D1A1A1AF9@SY4PR01MB7076.ausprd01.prod.outlook.com
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: Brent.Wood@niwa.co.nz
Subject: Re: help implementing OGR Postgres foreign data wrapper
In-Reply-To: <SY4PR01MB7076C00ECBA73CA75AA5D1A1A1AF9@SY4PR01MB7076.ausprd01.prod.outlook.com>
References: <SY4PR01MB7076C00ECBA73CA75AA5D1A1A1AF9@SY4PR01MB7076.ausprd01.prod.outlook.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox