Select to view content in your preferred language

Midpoint of Side of Polygon

555
1
Jump to solution
06-30-2022 10:54 AM
KBKnight
New Contributor III

Hi!

I'm working on a complex viewshed analysis project. As part of this, I'm trying to estimate the location of windows on a polygon that represents a building. So, I'm wondering if there is a way to get a set of points from the polygon that represent the midpoint of each side of a polygon? I'm not averse to doing a polygon to polyline conversion or anything like that. Just trying to think through a workflow that can be applied to 100,000+ polygons!

Thank you!

0 Kudos
1 Solution

Accepted Solutions
DanLee
by Esri Regular Contributor
Esri Regular Contributor

You can use the following steps:

1. Run Split Line At Vertices to break polygon boundary into lines.

2. (Optional step) Run Select Layer By Attribute to select Shape_Length > x, if you think window side should be longer than x in length.

3. Run Feature Vertices To Points with MID (midpoint) option on the lines. The output should be what you need.

 

View solution in original post

0 Kudos
1 Reply
DanLee
by Esri Regular Contributor
Esri Regular Contributor

You can use the following steps:

1. Run Split Line At Vertices to break polygon boundary into lines.

2. (Optional step) Run Select Layer By Attribute to select Shape_Length > x, if you think window side should be longer than x in length.

3. Run Feature Vertices To Points with MID (midpoint) option on the lines. The output should be what you need.

 

0 Kudos