Cannot load WFS, GeoJSON, KML with Add layer from URL

3891
15
08-04-2023 10:39 AM
Labels (1)
RobertoRossi
Frequent Contributor

Veneto Region Environmental Agency publishes meteorological data in several formats:

Available formatsAvailable formats

 

but when I try to use them in ArcGIS Online with the Add layer from URL command

Attempt with GeoJSON formatAttempt with GeoJSON format

 

I receive this error message:

Error GeoJSONError GeoJSON

I have a similar (in some cases different) error with every format.

The only format working is the CSV format, but I can't use it because of the way the coordinates are managed (in a unique geom field)

I give here the URL of different formats available in Add layer from URL (none of the works) if someone can test them:

Thanks

Roberto Rossi

Padua University

Tags (2)
15 Replies
RobertoRossi
Frequent Contributor

Hi @MiguelParedes ,

I'm back again because the Arpav agency, at my request, have today changed the publishing policies and now their service are available also from UK.

I would ask you, please, if you can check if you're able to load in ArcGIS Online Map Viewer the GeoJSON format directly from the URL (Reference the file form the URL and add it to the map). As I told you, in my last post, in this case I receive Unable to add layer error. I'm able to load the service as hosted feature layer, but in this way the Maps, and dashboard I create using that layer will not update, since the layer does not update daily as the original Arpav service does.

Thank you again

Roberto

0 Kudos
MiguelParedes
Esri Contributor

Buongiorno @RobertoRossi 

Thank you for requesting the change.  I can confirm that I now have access to the Geoserver service from Arpav.

As a result, I have added the WFS to the Content in ArcGIS Online, and then viewed the layer Vaolri giornalieri della temperature in Map Viewer:
ArpaV_WFS_RobertoRossi.jpg

If I am not mistaken, updates to the service should pull through since the service is being added directly.

You could pull the layer as JSON with the URL https://gaia.arpa.veneto.it/geoserver/ows?service=WFS&version=2.0.0&request=GetFeature&typename=geon... save the output to a file and then create a service from it, but it will be a static feature layer:

Rmw98RLgJc.jpg

So my recommendation would be to use the WFS.

Hope the above helps.

 

Miguel
0 Kudos
RobertoRossi
Frequent Contributor

Tank you again @MiguelParedes ,

yes, I'm able to add the WFS in ArcGIS Online. The updates work well. The problem is that using the service with the Dashboards, Actions (like Zoom or Pan) do not work with WFS layer. Actions work with JSON (that's the reason why I was trying to use JSON services), which, however, is only static feature layer.

At the moment I'm wondering whether reporting these 2 behaviours as bugs:

  1. Actions do not work with WFS layers
  2. Is not possible to load directly form URL (this) JSON service

Any advice?

Roberto

0 Kudos
MiguelParedes
Esri Contributor

Greetings @RobertoRossi 

Oh, I see.  

To be honest, I do not think the issue with the Dashboard would be considered a bug.

I did some digging around and found an old (2020) Community posting about using WFS with Dashboards. Please, have a look at the resolution from @DerekLaw in OGC WFS Layers on a Dashboard

I would suggest proposing the functionality in the ArcGIS Ideas site.

With respect to your second point (2.) it is indeed possible to add a GeoJSON service to ArcGIS Online. Please see Add layers from a URL on how to do it.  However, this will not help you because ArpaV is publishing a WFS service that supports output in JSON. But still, the service is a WFS. With this in mind, I would suggest checking with Arpav to find out if they can publish services in GeoJSON.

I know this is not probably what you were hoping to hear, but the functionality is just not there yet.

 

Miguel
0 Kudos
RobertoRossi
Frequent Contributor

Thank you for the assistance @MiguelParedes 

I read @DerekLaw answer.

I did not know that "dashboard elements only support map and feature services from the ArcGIS platform"

Indeed, at the moment, WFS seems to work with Indicators, Lists, Details, etc... The only issue I verified is with Actions, has you can check with this Dashboard I created using Arpav WFS services.

Maybe Esri has worked on it to make ArcGIS dashboard more flexible...

Anyway I consider to propose an Idea "Please let Actions work with WFS", or something like that...

 

Regarding JSON, I saw that the URL syntax refereed to WFS (with outputFormat=json parameter), but I thought it should have behave as real JSON.

Thank you again for your precious assistance!

Roberto

0 Kudos
RobertoRossi
Frequent Contributor

@MiguelParedes

I proposed to implementation of Actions for WFS layers in ArcGIS Ideas:

https://community.esri.com/t5/arcgis-dashboards-ideas/let-actions-work-on-wfs-layers/idi-p/1341180/h...

I hope my description (in my poor English) is clear 🙂

Regards

Roberto

0 Kudos