Hi,
I published a feature layer as WFS in agol. It will load in arcgis pro but not in arcmap 10.3 and I do get response in a browser using the url provided by agol:
But what is the layername (which I need for a leafjet page)? also I can't get any available layer in Qgis.
Your help is appreciated, thanks for your time
Bert
Solved! Go to Solution.
Hi Bert Kraan,
I think the layer name you are looking for is Flora:FloraPoint.
Do you mean leafjet or leaflet?
In a Leaflet JS solution you could use something like this (see code below).
This will generate a URL, with which you can retrieve all your 412 FloraPoints in GEOJSON format: https://dservices2.arcgis.com/hZdFa5fDjbrKiphq/arcgis/services/Flora/WFSServer?service=wfs&&version=...
So, it looks like your WFS service is working.
HTH,
Egge-Jan
(See for a full WFS example in Leaflet JS this app: TWIAV - Tips & trucs - Nationale parken in Nederland)
var baseUrl = 'https://dservices2.arcgis.com/hZdFa5fDjbrKiphq/arcgis/services/Flora/WFSServer';
var defaultParams = {
service: 'WFS',
version: '2.0.0',
request: 'GetFeature',
typeName: 'Flora:FloraPoint',
outputFormat: 'GEOJSON'
};
var request = (baseUrl + L.Util.getParamString(defaultParams));
console.log(request);
this is the 10.6 (not 10.3) result:
Hi Bert Kraan,
It looks like you did enter a WFS URL into the Add WMS Server dialog, right?
More info about adding a WFS service in ArcGIS ArcMap 10.6 can be found here:
Adding a WFS service to ArcMap—Help | ArcGIS Desktop
Please note: Available with Data Interoperability license.
HTH,
Egge-Jan
Hi Bert Kraan,
I think the layer name you are looking for is Flora:FloraPoint.
Do you mean leafjet or leaflet?
In a Leaflet JS solution you could use something like this (see code below).
This will generate a URL, with which you can retrieve all your 412 FloraPoints in GEOJSON format: https://dservices2.arcgis.com/hZdFa5fDjbrKiphq/arcgis/services/Flora/WFSServer?service=wfs&&version=...
So, it looks like your WFS service is working.
HTH,
Egge-Jan
(See for a full WFS example in Leaflet JS this app: TWIAV - Tips & trucs - Nationale parken in Nederland)
var baseUrl = 'https://dservices2.arcgis.com/hZdFa5fDjbrKiphq/arcgis/services/Flora/WFSServer';
var defaultParams = {
service: 'WFS',
version: '2.0.0',
request: 'GetFeature',
typeName: 'Flora:FloraPoint',
outputFormat: 'GEOJSON'
};
var request = (baseUrl + L.Util.getParamString(defaultParams));
console.log(request);
Thank you very much Egge-Jan. Yes loading WFS in a WMS might not be a good idea so this had to fail anyway.
I will build upon your example on TWIAV.
Kind regards,
Bert Kraan
Hi Bert Kraan,
Please note: your data is projected in Web Mercator (EPSG:3857), whereas the Dutch national parks example is based on data in the Dutch RD system (EPSG:28992).
As all your data is on the Veluwe, you might consider to republish them in RD.
If any help needed, just drop me a line.
BR,
Egge-Jan