Hot answers tagged

1

The server is expecting the bounds to be in urn:ogc:def:crs:EPSG::102582 (wfs:DefaultCRS) - the standard just requires that layers report a "standard" wgs84 bounding box too.


1

First you must specify the WFS (or GML) version new ol.format.WFS({version: '1.0.0'}) otherwise OpenLayers will assume WFS 1.1.0 (GML3). Before OpenLayers version 6.5.0 it had to be specified using new ol.format.WFS({gmlFormat: new ol.format.GML2()}) Since your source does not support EPSG:3857 output you will also need to transform the result from EPSG:...


1

You need to install pyproj correctly for WFS to work correctly - a quick check of the referenced line shows it is trying to create a projection (epsg:4326) there. So as the error message says: Valid PROJ.4 data directory not found.Either set the path using the environmental variable PROJ_LIB or with `pyproj.datadir.set_data_dir`.


1

You actually only need to add this line to your code after loading the WFS layer: wfslayer.setOpacity(0.5) # enter opacity (transparency) value from 0-1 So overall, your code should be: uri ='http://gstore.unm.edu/apps/rgis/datasets/6ca5428a-a78c-4c82-8120-da70dc92f2cc/services/ogc/wfs?SERVICE=wfs&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=...


Only top voted, non community-wiki answers of a minimum length are eligible