Skip to content

Opening book details…

Can I read Random Selection in ArcPy Scripts on EtoBox?

Random Selection in ArcPy Scripts by Nanin Trianawati Sugito is a document available to read on EtoBox.

What is Random Selection in ArcPy Scripts about?

The document describes two Python functions for selecting random features from an ArcGIS layer. The SelectRandomByPercent function selects a random sample of features based on a percentage, while SelectRandomByCount selects a fixed number of random features. Both functions use the OID field to randomly sample feature IDs, build a SQL query to select those IDs, and run the query to select the features in ArcGIS.

Author
Nanin Trianawati Sugito
Language
EN