Points To Regular Polygons

Running programmatically

Creates regular polygons from points in a point dataset and user defined number of sides, size and rotation angle. The source point will be located in the center of the polygons.

Inputs:

Outputs:

Notes:

Examples:

Size = 30 , Angle = 0, Number sides = 5, Option - Radius Inscribed

RadiusIn

Size = 30 , Angle = 0, Number sides = 5, Option - Radius Circumscribed

RadiusOut

Size = 30 , Angle = 0, Number sides = 5, Option - Side

Side

Size = 30 , Angle = 0, Number sides = 6, Option - Radius Circumscribed

Six

Size = 30 , Angle = 0, Number sides = 7, Option - Radius Circumscribed

Seven

Size = 30 , Angle = 0, Number sides = 8, Option - Radius Circumscribed

Eight

Running Programmatically

(Go to TOP)

Parameters

Expression Explanation
Function Name PointsToRegularPolygons
<input dataset> A String representing the input layer. Must be of Point type.
<output dataset> A String - the full name of the output layer.
<NumberSides> A Double representing  the Generalization  tolerance (in the units of the spatial reference of the input dataset) to be used
<SizeRepresents> Required. A String indicating the meaning of the <SIZE> parameter
  • RadiusIn - radius of the inscribed circle
  • RadiusOut - radius of the circumscribed circle
  • Side - the side of the polygon
{Size} A Double representing the size (see above for options)
{SizeField} A String representing the name of a field in the in the attribute table of the input dataset.  The field has the values for the size of the polygons to be created.
{RotationAngle} A Double representing the rotation angle.
{AngleField} A String representing the name of a field in the in the attribute table of the input dataset.  The field has the values for the rotation angle of the polygons to be created.

Running the function

ETGWPath used in the table below is the  full path to ETGWRun.exe (E.G. "C:\Program Files\ETSpatial Techniques\ETGeo Wizards\ETGWRun.exe")

Language Syntax
Python subprocess.call([ETGWPath, "PointsToRegularPolygons", "input dataset",  "output dataset", "NumberSides", "SizeRepresents", "Size", "", "RotationAngle"])
.NET using ETGWRun.exe StartInfo.FileName = ETGWPath
StartInfo.Arguments = "PointsToRegularPolygons" "input dataset"  "output dataset" "NumberSides" "SizeRepresents"  "Size"  ""  "RotationAngle"
.NET using ETGWOutX.dll PointsToRegularPolygons(input dataset, output dataset, NumberSides, SizeRepresents, Size, "", RotationAngle)
ArcPy arcpy.PointsToRegularPolygons(input dataset, output dataset, "NumberSides" , "SizeRepresents", "Size", "", "RotationAngle")

Notes:

(Go to TOP)