what layers in WFS published in AGOL?

872
5
Jump to solution
02-24-2020 06:58 AM
BertKraan1
Occasional Contributor III

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:

https://dservices2.arcgis.com/hZdFa5fDjbrKiphq/arcgis/services/Flora/WFSServer?service=wfs&request=g... 

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

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
Egge-Jan_Pollé
MVP Regular Contributor

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);‍‍‍‍‍‍‍‍‍‍‍‍

View solution in original post

0 Kudos
5 Replies
BertKraan1
Occasional Contributor III

this is the 10.6 (not 10.3) result:

0 Kudos
Egge-Jan_Pollé
MVP Regular Contributor

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

Egge-Jan_Pollé
MVP Regular Contributor

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);‍‍‍‍‍‍‍‍‍‍‍‍
0 Kudos
BertKraan1
Occasional Contributor III

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

Egge-Jan_Pollé
MVP Regular Contributor

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

0 Kudos