In ArcGIS Desktop, I can use various tools to interactively select features. These selection tools are handy for making complex selections (tabular or spatial) that would be otherwise cumbersome to perform.
I would like to create an SQL WHERE
clause from my selected features so that I can use the query/selection in programs other than ArcGIS Desktop.
For example, using the selected features in ArcMap, create a string of OBJECTIDs
:
where objectid in
(5982722, 2916887, 1932266, 7961145, 9767401,
5028271, 1280191, 1766943, 1539731, 7509119,
283535, 2908486, 4728132, 1292375, 1376223,
382195, 6840113, 1609989, 3346030, 3617504,
5087102, 6160716, 177817, 2271321, 3535963,
9511098, 739973, 1960256, 660265, 9496836,
6976042, 6830024, 6618473, 8688161, 9325979,
9736524, 5834279, 1704444, 8568749, 7174666,
4697259, 4614739, 8327862, 1177620, 539499)
How can I do this?
I would like the solution to be a quick & easy process (3 clicks or less), to be used many times daily.
Related: