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
Solved! Go to Solution.
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?
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__
Hi Aaron, thanks for the quick reply.
I ran the call and it appears that I am on 1.2.5.
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?
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