Open Table of Contents

ET GeoWizards Toolbox

Random Points In Polygons
(Go to the main page of the function)

Generates random points located on the polylines of the input polygon dataset. The number of points per polygon can be constant or different for each polygon - based on the values in a numeric field of the input polygon feature class.

Command line syntax

ET_GPRandomPointsInPolygons<input_dataset>  <out_feature class> {number_points_field} {number_points}

Parameters

Expression Explanation
<input_dataset> A Plyline feature class or feature layer
<out_feature class> A String - the full name of the output feature class.
{number_points_field} Optional.  A String numeric field which values will be used to get the number of points to be generated per polygon.
{number_points} Optional. A number that is used in two ways
  • If a number_points_field is specified,  number_points is used as maximum points allowed per polygon
  • If a number_points_field is an empty string, number_points is used as a constant that define the number of  points to be generated per polygon

Note: One of number_points_field or number_points should be specified.

Scripting syntax

ET_GPRandomPointsInPolygons(input_dataset,  out_feature class, number_points_field, number_points)

See the explanations above:
<> - required parameter
{} - optional parameter