Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mXi7L-0007KH-FV for pgsql-general@arkaria.postgresql.org; Tue, 05 Oct 2021 10:56:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mXi7K-0003Ec-CR for pgsql-general@arkaria.postgresql.org; Tue, 05 Oct 2021 10:56:14 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mXfYk-0002SX-Ek for pgsql-general@lists.postgresql.org; Tue, 05 Oct 2021 08:12:23 +0000 Received: from mail-me3aus01on2072b.outbound.protection.outlook.com ([2a01:111:f403:7004::72b] helo=AUS01-ME3-obe.outbound.protection.outlook.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mXfYd-0000Gt-Tt for pgsql-general@lists.postgresql.org; Tue, 05 Oct 2021 08:12:21 +0000 ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=hvN46kV74H/Wad24MjhZgFdnqqreDnPWotAGlAFTp4aZ90/yF0RQpryvGYgYGVO/grsJf6TYAX1br7pVx50CP5W33owVpX2iV6RXjahl/1z6mbfUEm/yRAYjT5bAbDfpF2FDuTr+5e6Y/PlUt7YgQFbV98VKiDfmwOfcQ0tzYhllEpoaYkcXspqNLOmwavDmxt8EqhT57rMZ2BUaWdFSFTIBxWXu6Gx7mOL7BaQB+Y2ePwdqTmIeIHHTAN8HWPLakEaI2AnX4ukoZeyFIxeGkSwUusCHFz270rV+xyd69C00z2zc/iJvuipiJQA91V0D1GVB1AitQer95ycaYAlBSg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=nkQRV7Rfb+x89V9f5rOFRfozTlzMFmYiDC7NAKjR8hg=; b=cxuOdm06fw4nsPm4zd08qznwWULouzyeByWDENnmi+KAt2mqOrV74ofRhJB1raoVzlJyfT2UanZNvo542OBv2/GjJSyEYTqczlxRPwkz4k+6hFq8KYezpDT6e5w6P8PpVCyIyeiqprWPrtDoo/Pb2S0ulUYPef7o5ANr3xHFLYS/jswhkV3G2QHuZw4HTPTS0Zpw5qS4ihVLaRWBVgR8UlHj5n32Dl3Z2SHSymy+1XaODaInR6MbxeBBGqRTrqzYKre91o8qLFu40Z3FSqV7ER3B5U2G2isQjYTpUWUJBQZpipPhFiK8pLgY1AOmzjwOSQG343KRbpSnHXctrDp+SQ== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 104.47.71.177) smtp.rcpttodomain=ausvet.com.au smtp.mailfrom=niwa.co.nz; dmarc=bestguesspass action=none header.from=niwa.co.nz; dkim=pass (signature was verified) header.d=niwa.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=niwa.co.nz] dkim=[1,1,header.d=niwa.co.nz] dmarc=[1,1,header.from=niwa.co.nz]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niwa.onmicrosoft.com; s=selector1-niwa-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nkQRV7Rfb+x89V9f5rOFRfozTlzMFmYiDC7NAKjR8hg=; b=olOJa1JyxbkflDKIY3+vGSNCmnrQkrOlq7VPKp3prR9JibiedkX87iVwq3qKn0s+qwKnsSxZutlqugiooBMIlYV+DEiQvR0wKgqkm7/8DSLND0T+XK0f9fra6M3c3Zq8f/BnLNbCOAZNoQXHKKX2iDcjJjG9plxq54voUDCCWSU= Received: from SYAPR01CA0027.ausprd01.prod.outlook.com (2603:10c6:1:1::15) by SY2PR01MB2572.ausprd01.prod.outlook.com (2603:10c6:1:1b::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.19; Tue, 5 Oct 2021 08:12:04 +0000 Received: from SY4AUS01FT017.eop-AUS01.prod.protection.outlook.com (2603:10c6:1:1:cafe::69) by SYAPR01CA0027.outlook.office365.com (2603:10c6:1:1::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.22 via Frontend Transport; Tue, 5 Oct 2021 08:12:04 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 104.47.71.177) smtp.mailfrom=niwa.co.nz; ausvet.com.au; dkim=pass (signature was verified) header.d=niwa.onmicrosoft.com;ausvet.com.au; dmarc=bestguesspass action=none header.from=niwa.co.nz; Received-SPF: Pass (protection.outlook.com: domain of niwa.co.nz designates 104.47.71.177 as permitted sender) receiver=protection.outlook.com; client-ip=104.47.71.177; helo=AUS01-SY4-obe.outbound.protection.outlook.com; Received: from hamlmail.niwa.co.nz (103.229.249.34) by SY4AUS01FT017.mail.protection.outlook.com (10.114.156.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.14 via Frontend Transport; Tue, 5 Oct 2021 08:12:03 +0000 Received: from AUS01-SY4-obe.outbound.protection.outlook.com (mail-sy4aus01lp2177.outbound.protection.outlook.com [104.47.71.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (not verified)) by hamlmail.niwa.co.nz (Postfix) with ESMTPS id A7F1E693618; Tue, 5 Oct 2021 21:12:02 +1300 (NZDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BZSxsLRidbkgCHaK4QNCBm+EdnTXQ+NLU493d7M/nDtds65lhEudZ6dDr+WgwjhJr4KxT9ADdXjGJRk9gAuAng/JzahFg9lrAYBZd3WtVQywXx5zmO6nh49Ud43dunqajv/GP/6ONnrhjqr6qMwyA9B/td2SvtTuQ8uW+mN0lzTkjEs463EKGiOBE4CTg60kReO/1nOIhUDkgJdJrXP7LSKNkVnBrChXn2SdzmwN6O6otrc5x6kJoI2xzaWbh5VdGtweCFR/9WitpaEmnaTuDdIyPWifC7AKf1cWh4z4gYmlkJqYVffFQpkmS1X8F+a9R6N8tDyzNo0CYfRdhF3wcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=nkQRV7Rfb+x89V9f5rOFRfozTlzMFmYiDC7NAKjR8hg=; b=DD03M+JYyOFJNRe2+HwmQMBLSfy6Sx0KMjs0R5iwpm5lqPtseHcXSnfgq2ODUChL45dl4hDdk0D/ih3AZnx5obviGFoWmdY1xArcCKOp1MU2Fohgjk0IUh+qaUK67Rf5ID43Qhv3GcvC/6qTGztN4skhtPcNW/Rcfe2p0bKR2xwAa7DHUh7NtLtI6lyeQ3jgXpi3ZWLuwBYepjA7wDt3D5uhgtkPzgS77egIUWfZJ74+kjBpc8za0D+JTs+XaFIkSVZyOzcPiNTsquWjLmJiOY2ayiq57UK0PeF9ubU80PSC0FwyCJGAaLC86PnFlg2Ot7nYg0AnfdOG0ALw6+HMJg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=niwa.co.nz; dmarc=pass action=none header.from=niwa.co.nz; dkim=pass header.d=niwa.co.nz; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niwa.onmicrosoft.com; s=selector1-niwa-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nkQRV7Rfb+x89V9f5rOFRfozTlzMFmYiDC7NAKjR8hg=; b=olOJa1JyxbkflDKIY3+vGSNCmnrQkrOlq7VPKp3prR9JibiedkX87iVwq3qKn0s+qwKnsSxZutlqugiooBMIlYV+DEiQvR0wKgqkm7/8DSLND0T+XK0f9fra6M3c3Zq8f/BnLNbCOAZNoQXHKKX2iDcjJjG9plxq54voUDCCWSU= Received: from SY4PR01MB7076.ausprd01.prod.outlook.com (2603:10c6:10:145::5) by SY2PR01MB2409.ausprd01.prod.outlook.com (2603:10c6:1:1d::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.19; Tue, 5 Oct 2021 08:11:53 +0000 Received: from SY4PR01MB7076.ausprd01.prod.outlook.com ([fe80::e817:1cde:5298:314]) by SY4PR01MB7076.ausprd01.prod.outlook.com ([fe80::e817:1cde:5298:314%7]) with mapi id 15.20.4566.022; Tue, 5 Oct 2021 08:11:52 +0000 From: Brent Wood To: Ben Madin CC: "pgsql-general@lists.postgresql.org" Subject: Re: help implementing OGR Postgres foreign data wrapper Thread-Topic: help implementing OGR Postgres foreign data wrapper Thread-Index: AQHXuZODJEVkQWnNFE2UVLm8ELoq26vECigAgAACXRc= Date: Tue, 5 Oct 2021 08:11:52 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: suggested_attachment_session_id: b4ac872d-511e-1504-c776-ebf6bfd2f2db Authentication-Results-Original: ausvet.com.au; dkim=none (message not signed) header.d=none;ausvet.com.au; dmarc=none action=none header.from=niwa.co.nz; x-ms-publictraffictype: Email X-MS-Office365-Filtering-Correlation-Id: d50b021d-9283-4645-2882-08d987d7d0d3 x-ms-traffictypediagnostic: SY2PR01MB2409:|SY2PR01MB2572: X-Microsoft-Antispam-PRVS: x-niwa-seemail: Out x-ms-oob-tlc-oobclassifiers: OLM:10000;OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: ZkvmknqdGF158HMRTnW/afZZZ/CO2mTU/efjwnafbtJVxjBbyCRfsmL08uWb2faGMwrU7s7B9U4sMTjLKhQ5Z73NyftoS9asoZlpLqvlBQoHDUszO6oi5fmQTJF+mh2SC6qPIXhdm0LaEnqP/nKME3pumRu4DyaN5OwrDTb/iI0kOTxRI4X+Iv71aiADlhH6NlVQO2CsMdyHCZVuXhq/Vg1XKHMi2OsaEpml0bRvwD/mKY2WNKGBAeE+mrcdj1uFk7RybYT0mU4sXOb+YGluQEn6uJ4gpE/vJm95RkzebBkDcMyvbSSyMJbsvKcyYKSBJ1c83BgvHI1lNRTe9q1ri6HRGhVW1ehfKQ4PLf6Sh+e97sDVtieaCmAPNtQV6JElqxvWCyTl8bWajEjBJ5mHqyzLslqXG+LOZennoRR/w83kP02tGuuCTqMoxPZplMtAxfQYB4KL7RohYpI5Wc9w4Z2KdUixlxUYqiMvyTRHlyttoWcvTMSbQpjJxnYbC9sVxYT8CeB/mS1LTSvy4f726sltIFvgS5npZlUg75C7l2SxdgqNoV4IxoAsMgWOZTeAOeUsmb73tQDwMx3MVtpF8Cn/vGTWtO2Q6QcKlu1ToqeAbq4ffgNuhML3wknfMvc1SwHVmfgRP7teEnpWT1pcdVDrRjBIiR+f19YsrabN9K0Ac7F5y+PIZJP4O6iUa3eGIfc/dgbB/1c1vLj5gdeau90F2N17stEtUkX09BiHiurWSC/Zbhod+/Eq1Z2RXWeHmjGoR8JpazH5WGY8TMivGD9iAfbucAXbrvyTJq96XckPWjHJRCTAKUMV80YOaa7JZqfJh9yWrug8avzn9PzhUA== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SY4PR01MB7076.ausprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(86362001)(8676002)(66946007)(66476007)(33656002)(7696005)(6916009)(53546011)(38100700002)(2906002)(122000001)(66556008)(66446008)(66574015)(64756008)(76116006)(6506007)(19627405001)(55016002)(186003)(508600001)(45080400002)(166002)(83380400001)(38070700005)(8936002)(71200400001)(4326008)(52536014)(9686003)(316002)(26005)(966005)(5660300002);DIR:OUT;SFP:1102; x-ms-exchange-transport-forked: True Content-Type: multipart/alternative; boundary="_000_SY4PR01MB7076C79E198DD461D24A200AA1AF9SY4PR01MB7076ausp_" MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SY2PR01MB2409 X-EOPAttributedMessage: 0 X-MS-Exchange-SkipListedInternetSender: ip=[104.47.71.177];domain=AUS01-SY4-obe.outbound.protection.outlook.com X-MS-Exchange-ExternalOriginalInternetSender: ip=[104.47.71.177];domain=AUS01-SY4-obe.outbound.protection.outlook.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: SY4AUS01FT017.eop-AUS01.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 166008b9-fc63-4ded-a836-08d987d7ca37 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ifTwITS/vtJETPn6eul7jsVe4METWXzRlldSBGh6NGdQBKZqCh6IBV8eL8jsJqwZR29Q3SkF0IvgeoX/WPZBN0c3zF+xcMP/vqiS5x3Nr5Q3/FeQKbF5Dkr0j/6fqHH/2Z3Mjfc036WZCmyLYzoZGauoSCiIQNia8Xy35F5LPikvCladOulIgblTCwrB4eUJtozGLmigL+bBN7AA/oFvHpvMtFz6VlB+ob3A3uGW8ukJOqc5YmEfjiVZKAIQtb+zKjel6fIVK3SQGYcF3HmLOqPErJinz7nZGjf1ls/5mQMzVxjstXJBk1QqX86Ewlfcoae2VzZJ8A9LNaqj7p0tlY1lv3zIv80HWqXyaHcmSuZOwiusbV79oAP1AXBT3HV+mgME6jG50fHzSf0Nl0mwoERxACk0A+NTDTDAQLs2OmJN3oXaW/neXa4gRoYwpOSn3fP4bue8iZZiT3yJp8lFp89gwk6Wocqo8KpZ0kZk31s0bmWzZFIUiey7gQ9o8s+TwRDAnW+w/iQ7dz2HJyOShXwhy0VyM7RsDxeu6trqUlnMQzvj9h6K+mGbfW6BilZYcaI0R43DpL31Snlyg/C/VxMgNT5ByA2MZ9kktOQvxQXUBBtJboKOvqvFzBZK8XxRaEnfca9Fpmmn3PuH6PMwzejSYAw6hvb0ag/f+fzdu2GKLtrHWo4NJ3TsPXJxoT7bE93gsPH7qVF4a80ZxvxdI29vdcm+3/cpENWYXgqk21sqxeO1vEjJdzWULsPytBcLxxaVy9AUSJgJTai3sgy0qgD674wJ8k4C0SqYGFy27Dfvi8WH0pzHRywY9O5ZAUddkCvyBGVRgOmoya7xqyBZi68RHJgsgC7CT6NU+ehcOAfhG2aJWHJMSNDkO5J0sejj+MO3KAmcrSEnjxWt/7z/m8ejXR4tqJPIDtHbxg/Aeas= X-Forefront-Antispam-Report: CIP:103.229.249.34;CTRY:AU;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AUS01-SY4-obe.outbound.protection.outlook.com;PTR:mail-sy4aus01lp2177.outbound.protection.outlook.com;CAT:NONE;SFS:(4636009)(46966006)(36840700001)(47076005)(15974865002)(52536014)(5660300002)(66574015)(156005)(30864003)(45080400002)(336012)(4326008)(55016002)(966005)(83380400001)(9686003)(33656002)(70586007)(7696005)(70206006)(8676002)(36860700001)(316002)(19627405001)(86362001)(53546011)(26005)(8936002)(36906005)(6916009)(186003)(508600001)(82310400003)(2906002)(7636003)(32850700003)(166002)(6506007);DIR:OUT;SFP:1102; X-OriginatorOrg: niwa.co.nz X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Oct 2021 08:12:03.9594 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d50b021d-9283-4645-2882-08d987d7d0d3 X-MS-Exchange-CrossTenant-Id: 41caed73-6a0c-468a-ba49-9ff6aafd1c77 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=41caed73-6a0c-468a-ba49-9ff6aafd1c77;Ip=[103.229.249.34];Helo=[hamlmail.niwa.co.nz] X-MS-Exchange-CrossTenant-AuthSource: SY4AUS01FT017.eop-AUS01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SY2PR01MB2572 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --_000_SY4PR01MB7076C79E198DD461D24A200AA1AF9SY4PR01MB7076ausp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Thanks Ben, How is life treating the AusVet these days? Been quite a few versions under= the bridge since we discussed R and Postgres stuff. 2009 was it?? That kicked some quiescent brain cells into gear. I just tried it from home= , where it also works fine, if a bit sluggish, which seems to be how ESRI s= upports open standards. So it may be some network settings from NIWA causing the failure. At least = I can kick that problem elsewhere!!! Much appreciated. Brent Wood Principal Technician, Fisheries NIWA DDI: +64 (4) 3860529 ________________________________ From: Ben Madin Sent: Tuesday, October 5, 2021 20:57 To: Brent Wood Cc: pgsql-general@lists.postgresql.org Subject: Re: help implementing OGR Postgres foreign data wrapper Hi Brent, not sure why, but it is working for me using ogrinfo: ~ $ ogrinfo https://dservices3.arcgis.com/fp1tibNcN9mbExhG/arcgis/services/= BOMEC_15_Class_WFS/WFSServer\?SERVICE\=3DWFS\&REQUEST\=3DGetCapabilities INFO: Open of `https://dservices3.arcgis.com/fp1tibNcN9mbExhG/arcgis/servic= es/BOMEC_15_Class_WFS/WFSServer?SERVICE=3DWFS&REQUEST=3DGetCapabilities' using driver `WFS' successful. Metadata: ABSTRACT=3DTo develop a marine environment classification for waters in d= epths shallower than 3000 m within the outer boundary of the NZ 200 naut. m= ile EEZ (an OGC WFS Layer). TITLE=3DWFS 1: BOMEC_15_Class_WFS:BOMEC_15_Class (title: BOMEC_15_Class) (Multi Surface= ) not very helpful, but a 400 error might be some kind of encoding problem wi= th request? cheers Ben On Tue, 5 Oct 2021 at 14:18, Brent Wood > wrote: Hi, Apologies, this not strictly a Postgres question, but Postgres is so fundam= ental to what I'm trying to do and this list is generally so helpful, so he= re I go... I'm using FDW's to create virtual tables providing access to data from exte= rnal data sources. This is working well for data in other Postgres database= s using the Postgres FDW. I also want to be able to link to data from WFS services via the OGR FDW (h= ttps://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_Cla= ss_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 ac= cess 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/BOME= C_15_Class_WFS/WFSServer ogrinfo https://dservices3.arcgis.com/fp1tibNcN9mbExhG/arcgis/services/BOME= C_15_Class_WFS/WFSServer?SERVICE=3DWFS&REQUEST=3DGetCapa= bilities I can only get the following response ogrinfo https://dservices3.arcgis.com/fp1tibNcN9mbExhG/arcgis/services/BOME= C_15_Class_WFS/WFSServer?SERVICE=3DWFS&REQUEST=3DGetCapabilities [1] 3121502 ERROR 1: HTTP error code : 400 ERROR 1: HTTP error code : 400 FAILURE: Unable to open datasource `https://dservices3.arcgis.com/fp1tibNcN9mbExhG/a= rcgis/services/BOMEC_15_Class_WFS/WFSServer?SERVICE=3DWFS' 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] 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 Facebook LinkedIn Twitter<= https://aus01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Ftwitter= .com%2Fniwa_nz&data=3D04%7C01%7CBrent.Wood%40niwa.co.nz%7C4ef57eaa3412469bb= b8308d987d5d398%7C41caed736a0c468aba499ff6aafd1c77%7C0%7C0%7C63769017475630= 2980%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik= 1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=3Dmp%2BP6iXSlAab2qdjmf9NwhvdC68QdTFDbwWHi= HlnfsQ%3D&reserved=3D0> Instagram To ensure compliance with legal requirements and to maintain cyber security= standards, NIWA's IT systems are subject to ongoing monitoring, activity l= ogging and auditing. This monitoring and auditing service may be provided b= y third parties. Such third parties can access information transmitted to, = processed by and stored on NIWA's IT systems -- [Ausvet Logo] Dr Ben Madin BVMS MVPHMgmt PhD MANZCVS GAICD Managing Director Mobile: +61 448 887 220 E-mail: ben@ausvet.com.au Website: www.ausvet.com.au Skype: benmadin Address: 5 Shuffrey Street Fremantle, WA 6160 Australia --_000_SY4PR01MB7076C79E198DD461D24A200AA1AF9SY4PR01MB7076ausp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Thanks Ben,

How is life treating the AusVet these days? Been quite a few versions under= the bridge since we discussed R and Postgres stuff. 2009 was it??

That kicked some quiescent brain cells into gear. I just tried it from home= , where it also works fine, if a bit sluggish, which seems to be how ESRI s= upports open standards.

So it may be some network settings from NIWA causing the failure. At least = I can kick that problem elsewhere!!!


Much appreciated.


Brent Wood

Principal Technician, Fisheries
NIWA
DDI:  +64 (4) 3860529


From: Ben Madin <ben@a= usvet.com.au>
Sent: Tuesday, October 5, 2021 20:57
To: Brent Wood <Brent.Wood@niwa.co.nz>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postg= resql.org>
Subject: Re: help implementing OGR Postgres foreign data wrapper
 
Hi Brent,

not sure why, but it is working for me using ogrinfo:

~ $ ogrinfo https://dservices3.arcgis.com/fp1tibNcN9mbExhG/arcgis/services/BOMEC_15_Cla= ss_WFS/WFSServer\?SERVICE\=3DWFS\&REQUEST\=3DGetCapabilities
INFO: Open of `https://dser= vices3.arcgis.com/fp1tibNcN9mbExhG/arcgis/services/BOMEC_15_Class_WFS/WFSSe= rver?SERVICE=3DWFS&REQUEST=3DGetCapabilities'
      using driver `WFS' successful.
Metadata:
  ABSTRACT=3DTo develop a marine environment classification for waters= in depths shallower than 3000 m within the outer boundary of the NZ 200 na= ut. mile EEZ  (an OGC WFS Layer).
  TITLE=3DWFS
1: BOMEC_15_Class_WFS:BOMEC_15_Class (title: BOMEC_15_Class) (Multi Surface= )

not very helpful, but a 400 error might be some kind of encoding probl= em with request?

cheers

Ben



On Tue, 5 Oct 2021 at 14:18, Brent = Wood <Brent.Wood@niwa.co.nz= > wrote:
Hi,

Apologies, this not strictly a Postgres question, but Postgres is so fundam= ental to what I'm trying to do and this list is generally so helpful, so he= re I go...

I'm using FDW's to create virtual tables providing access to data from exte= rnal data sources. This is working well for data in other Postgres database= s using the Postgres FDW.

I also want to be able to link to data from WFS services via the OGR FDW (<= a href=3D"https://aus01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F= %2Fwww.pgxn.org%2Fdist%2Fogr_fdw%2F&data=3D04%7C01%7CBrent.Wood%40niwa.= co.nz%7C4ef57eaa3412469bbb8308d987d5d398%7C41caed736a0c468aba499ff6aafd1c77= %7C0%7C0%7C637690174756263153%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiL= CJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=3DIMqSDsY9Ia= n0t9y3xFnhapgtJiNf2Ya2rAHvR%2BU8zG8%3D&reserved=3D0" originalsrc=3D"htt= ps://www.pgxn.org/dist/ogr_fdw/" shash=3D"gPbzehydkzb7KxjtjBNcAc7BVwawHbROM= 3zBVr8QS3+1ajhoRjOrppJip1CJTRj2y4nhYWc8whZOpeo7ay/laH3kyCCze73bl1qAo7Iofk+f= GLr/rxl/LF1lFlLjIWzVw+3hR280XFBnWFG2+DW0nW8zrZlorfj5C61CePeyrcw=3D" id=3D"x= _gmail-m_-8650404683200396749LPlnk" target=3D"_blank">https://www.pgxn.org/= dist/ogr_fdw/)
The first service I'm trying to connect to is:

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 ac= cess 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:

I can only get the following response
...
  -> OGR_PDS
  -> WFS
  -> OAPIF
...

Can anyone suggest what might be the problem?

Thanks.

Brent Wood

Principal Technician, Fisheries
NIWA
DDI:  +64 (4) 3860529
Brent Wood
Principal Technician - GIS and Spatial Data Managem= ent
Programme Leader - Environmental Information Delive= ry
+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 Facebook LinkedIn Twitter Instagram
To ensure compliance with legal requirement= s and to maintain cyber security standards, NIWA's IT systems are subject t= o ongoing monitoring, activity logging and auditing. This monitoring and au= diting service may be provided by third parties. Such third parties can access information transmitted to, process= ed by and stored on NIWA's IT systems


--

3D"Ausvet

Dr Ben Madin
&= nbsp;
BVMS MVPHMgmt PhD MANZCVS GAICD
Managing Director
Skype:&n= bsp;benmadin
Address: 
5 Shuffrey Street
Fremantle, WA 6160
Australia
--_000_SY4PR01MB7076C79E198DD461D24A200AA1AF9SY4PR01MB7076ausp_--