Feature Set has no attribute 'to_geojson'

237
4
Jump to solution
02-15-2018 06:30 PM
NathanielEvatt
New Contributor III

I am trying to get my query results in geojson format but I am getting the error `AttributeError: 'FeatureSet' object has no attribute 'to_geojson'`

What confuses me is that the documentation seems to suggest that feature sets have the attribute to_geojson as shown in the attached images.  Unless I am using it incorrectly.  to_json worked just fine.

Thanks

0 Kudos
1 Solution

Accepted Solutions
JohnYaist1
Esri Contributor

Hi @Nathaniel -

The to_geojson property was added to the FeatureSet at version 1.3 release. 

Are you able to upgrade to get access to it?

View solution in original post

4 Replies
AaronPulver
Esri Regular Contributor

What version of the api do you have? It looks like the property was added in the 1.2.5 release.

You can check by doing:

arcgis.__version__

NathanielEvatt
New Contributor III

Hi Aaron, thanks for the quick reply.

I ran the call and it appears that I am on 1.2.5. 

0 Kudos
JohnYaist1
Esri Contributor

Hi @Nathaniel -

The to_geojson property was added to the FeatureSet at version 1.3 release. 

Are you able to upgrade to get access to it?

View solution in original post

NathanielEvatt
New Contributor III

Radness, that did the trick.  1.3 can be installed using Conda.  Looks like it isn't coming out of the box with ArcPro yet.  But either way it is work. 

Thanks

0 Kudos