Select by Location from Online Feature Layer using a point

694
1
Jump to solution
08-10-2021 11:35 AM
ChuckBenton
Occasional Contributor

In Pro I can use 'Select By Location', choose an Input Feature Layer from Online (in this case a parcel layer) ->INTERSECT->select 'Points" on the Selecting Features line, then click a point on the map and Apply. The result is a selected parcel. Simple and easy.

It seems this should be simple to script in Python, but I can't find a Select by Location capability in the API. Arcpy has one, but no examples that show how to use an AGOL feature layer as the workspace.

Can anyone point me in the right direction? Thanks in advance!

 

Tags (1)
1 Solution

Accepted Solutions
DavinWalker2
Esri Contributor

Hi,

This documentation on the Python API explains how to apply spatial filters. 

View solution in original post

0 Kudos
1 Reply
DavinWalker2
Esri Contributor

Hi,

This documentation on the Python API explains how to apply spatial filters. 

0 Kudos