Select to view content in your preferred language

Unable to add layer The layer cannot be added to the map.

529
1
08-01-2023 04:48 AM
Sputnik1969
New Contributor

Hi,

We have an API call that returns the following GeoJson:

{ "type" : "FeatureCollection", "features" : [{ "type" : "Feature", "geometry" : { "type" : "Point", "coordinates" : [-3.211057, 50.865305] }, "id" : "64b68dfa8c717f3be0c0371f", "properties" : { "ID" : "64b68dfa8c717f3be0c0371f", "Parent ID" : "64b68df98c717f3be0c0371b", "Full Name" : "test\\rainfall\\geometry types\\cso\\sid & otter\\bosorne rd 2_csoeo_st just no 2", "Item Factory" : "Rainfall CSO", "Display Name" : "Dunkeswell_STW_Dunkeswell no 2", "Description" : "<Not Set>", "Data Type" : "Double-Bool Point Array" } }] }

 

 

This appears to be valid GeoJson.

However, when I try and add this as an "Add layer from URL" in ArcGIS, I get the following error:

"Unable to add layer The layer cannot be added to the map."

Any ideas of what I could be doing wrong?

Tags (1)
1 Reply
Sputnik1969
New Contributor

The issue is that the URL contains a space in a name and this space is being translated to a +. 

Does anyone know why it does this?

0 Kudos