This GIS does not support spatial analysis.

2222
6
02-01-2017 06:46 AM
JillKelly
New Contributor III

Is this error more likely due to technical issues (that I'm trying to create a buffer in an unprojected/geographic crs, following the example in the california forest fires demo) or access (having failed to properly authenticate or have "credits" or do the equivalent of "check out an extension" or some such)? 

gis = GIS(username='mine',password='mine')

What else would I need for the GIS to support spatial analysis?

0 Kudos
6 Replies
by Anonymous User
Not applicable

Jill Kelly‌ could you paste your code and the error message that is returned? Also to connect to a GIS, you need to specify the URL, either to ArcGIS Online or a Portal for ArcGIS as shown here: https://developers.arcgis.com/python/guide/working-with-different-authentication-schemes/#ArcGIS-Onl...

JillKelly
New Contributor III

I am able to produce:

so to the best of my knowledge, I am authenticated.  I have also been able to display maps. 

The specific line giving the no-spatial-analysis error is:

PlotDiscs = create_buffers(PlotPoints, [11.2838], None, 'Meters', output_name='PlotDiscs400m')

where PlotPoints is

PlotPoints also displays as it ought to on the map.

ps -- changing the url from the one they gave me when I signed up for a developer account to arcgis.com as your link instructs for an organization makes no difference.  I am part of an organization, but I signed up as an individual, and we haven't yet connected me to them.

Full error message:

AMani-esristaff wrote:

Jill Kelly could you paste your code and the error message that is returned? Also to connect to a GIS, you need to specify the URL, either to ArcGIS Online or a Portal for ArcGIS as shown here: https://developers.arcgis.com/python/guide/working-with-different-authentication-schemes/#ArcGIS-Onl...

0 Kudos
TedHallum
New Contributor II

I'm currently completing a web-course in Esri Academy titled "Performing Analysis Using ArcGIS API for Python."

This course first has you import the GIS object, then it has you construct the GIS object to initialize a connection to https://www.arcgis.com (using your own user name and password for your ArcGIS organizational account).

Later, the course instructs you to use find_hot_spots() to perform hot spot analysis and determine the area with high concentrations of traffic stops.

However, when I try to run find_hot_spots(), I receive the error "This GIS does not support spatial analysis."

I have the ArcGIS Pro for Personal Use license.

Notably, I can runs this line:

print("Logged in as " + str(gis.properties.user.username) + " to " + gis.properties.portalName)

Which, returns the following:
Logged in as [user_name] to ArcGIS Online

Many thanks to anyone who can point me in the right direction. Here is a screenshot of what I'm experiencing:

0 Kudos
PeterDi_Turi
New Contributor II

Hello, Ted!

Perhaps it may be too late, but I, too, am taking the same course and encountered the same error.  The key is that you cannot perform spatial analysis with just an Esri public account.  You will need to have an ArcGIS Online account as a result of being part of an organization or have an ArcGIS for Personal Use license, or have a free login from an Esri MOOC class giving you access to ArcGIS Online.  Since I'm writing this during COVID-19, you should have other free training options from Esri that can also provide access.  I hope this helps!

                                                                                                                 ...pete...

0 Kudos
JasonWestley
New Contributor

someone in my org received this error when running some drivetime analysis in a notebook. Their account seemed to have the right privileges and credits to run the analysis. Only making them a full admin (which I don't want to do) made the error go away.

hojin00kim
New Contributor

Wondering if this issue has been solved by ESRI? I have exactly same problem and error that TedHellum above message. 

 

0 Kudos