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=getcapabilities
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
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=2.0.0&request=GetFea…
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)
<SPAN class="keyword token">var</SPAN> baseUrl <SPAN class="operator token">=</SPAN> <SPAN class="string token">'https://dservices2.arcgis.com/hZdFa5fDjbrKiphq/arcgis/services/Flora/WFSServer'</SPAN><SPAN class="punctuation token">;</SPAN> <SPAN class="keyword token">var</SPAN> defaultParams <SPAN class="operator token">=</SPAN> <SPAN class="punctuation token">{</SPAN> service<SPAN class="punctuation token">:</SPAN> <SPAN class="string token">'WFS'</SPAN><SPAN class="punctuation token">,</SPAN> version<SPAN class="punctuation token">:</SPAN> <SPAN class="string token">'2.0.0'</SPAN><SPAN class="punctuation token">,</SPAN> request<SPAN class="punctuation token">:</SPAN> <SPAN class="string token">'GetFeature'</SPAN><SPAN class="punctuation token">,</SPAN> typeName<SPAN class="punctuation token">:</SPAN> <SPAN class="string token">'Flora:FloraPoint'</SPAN><SPAN class="punctuation token">,</SPAN> outputFormat<SPAN class="punctuation token">:</SPAN> <SPAN class="string token">'GEOJSON'</SPAN> <SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">;</SPAN> <SPAN class="keyword token">var</SPAN> request <SPAN class="operator token">=</SPAN> <SPAN class="punctuation token">(</SPAN>baseUrl <SPAN class="operator token">+</SPAN> L<SPAN class="punctuation token">.</SPAN>Util<SPAN class="punctuation token">.</SPAN><SPAN class="token function">getParamString</SPAN><SPAN class="punctuation token">(</SPAN>defaultParams<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> console<SPAN class="punctuation token">.</SPAN><SPAN class="token function">log</SPAN><SPAN class="punctuation token">(</SPAN>request<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
this is the 10.6 (not 10.3) result:
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.
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
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,
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.