I have been trying to connect to a Land Information New Zealand (LINZ) WFS service and filter the data to a given extent and use the LINZ supported BBOX spatial filter (WFS spatial filtering | Toitū Te Whenua Land Information New Zealand (linz.govt.nz)). If I paste the example for Geodetic marks into a browser, I get a bunch of XML returned defining the filtered points for this layer as expected. I had assumed that I could simply take this string and paste it into the ‘Source’ box in the ‘New Data Source’ dialogue for a WFS connection. This appears to work and the ‘Edit Query’ button gives the following query text: --SQL9 CREATE DATASOURCE [WFS DATASOURCE] ( PROPERTY 'Source' '{ "Source": "https:\\/\\/data.linz.govt.nz\\/services;key=YOUR_API_KEY\\/wfs?service=WFS&version=2.0.0&request=GetFeature&typeNames=layer-50787&cql_filter=bbox(shape,-36.764156,174.975230,-36.817467,175.023120)", "SourceAgent": "Mozilla\\/5.0 Manifold\\/9.0", "SourceCache": true, "SourceCacheTemp": true, "SourceUuid": "6b0ab626-ea7f-4fd3-a63b-630da9a5d467" }', PROPERTY 'Type' 'wfs' ); If however I run this query to build the WFS datasource, Manifold returns all LINZ WFS layers at the full extent. Does anyone know what is going on? Is the BBOX filter part not supported by Manifold? I had assumed that the filtering would occur on the server and just the filtered results be returned. It would be great to get to the bottom of this as connecting to a whole of country WFS layer and then filtering on the Manifold side is like pulling teeth. A method to expedite or mitigate this would therefore be very useful. Thanks in advance Note where it says YOUR_API_KEY in the query string, this must be replaced with a free API key. To get this go to LINZ Data Service, click on sign in and make an account.
Landsystems Ltd ... Know your land | www.landsystems.co.nz |