<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Creating sectors in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/creating-sectors/m-p/1642319#M98256</link>
    <description>&lt;P&gt;Basic code&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import numpy as np

def _arc_sector(radius=100, start=0, stop=1, step=0.1, xc=0.0, yc=0.0):
    """Create an arc from a specified radius, centre and start/stop angles

    Requires:
    ---------
    `radius` : number
        cirle radius from which the arc is obtained
    `start`, `stop`, `step` : numbers
        angles in degrees
    `xc`, `yc` : number
        center coordinates in projected units

    Returns:
    --------
      points on the arc
    """
    start, stop = sorted([start, stop])
    angle = np.deg2rad(np.arange(start, stop, step))
    x_s = radius*np.cos(angle)         # X values
    y_s = radius*np.sin(angle)         # Y values
    pnts = np.c_[x_s, y_s]
    cent = np.array([xc, yc])
    pnts = pnts + cent
    sector = np.concatenate((cent[None, :], pnts, cent[None, :]), axis=0)
    return sector&lt;/LI-CODE&gt;&lt;P&gt;Sample to give you an idea&lt;/P&gt;&lt;LI-CODE lang="python"&gt;radius = 10.
x_c, y_c = 0., 0.

line_ang = 45.  # your line angle/direction... 

start, stop = line_ang - 22.5, line_ang + 22.5  # start and stop relative to it

ar = _arc_sector(radius=10, start=start, stop=stop, step=2.0, xc=x_c, yc=y_c)&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="arc.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/138631i1855BB6C5CCD1C03/image-size/medium?v=v2&amp;amp;px=400" role="button" title="arc.png" alt="arc.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Aug 2025 13:00:58 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2025-08-15T13:00:58Z</dc:date>
    <item>
      <title>Creating sectors</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/creating-sectors/m-p/1642310#M98255</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a set of lines that denote a direction of movement.&amp;nbsp; I would like to create 45 degree sectors that are centred on each line (i.e.) 22.5 degrees on either side of the existing line.&amp;nbsp; I've tried the distance and direction tool but not sure if it's the correct tool for the job or if I'm not using it correctly - any suggestions?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Aug 2025 12:31:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/creating-sectors/m-p/1642310#M98255</guid>
      <dc:creator>DavidMercer</dc:creator>
      <dc:date>2025-08-15T12:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Creating sectors</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/creating-sectors/m-p/1642319#M98256</link>
      <description>&lt;P&gt;Basic code&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import numpy as np

def _arc_sector(radius=100, start=0, stop=1, step=0.1, xc=0.0, yc=0.0):
    """Create an arc from a specified radius, centre and start/stop angles

    Requires:
    ---------
    `radius` : number
        cirle radius from which the arc is obtained
    `start`, `stop`, `step` : numbers
        angles in degrees
    `xc`, `yc` : number
        center coordinates in projected units

    Returns:
    --------
      points on the arc
    """
    start, stop = sorted([start, stop])
    angle = np.deg2rad(np.arange(start, stop, step))
    x_s = radius*np.cos(angle)         # X values
    y_s = radius*np.sin(angle)         # Y values
    pnts = np.c_[x_s, y_s]
    cent = np.array([xc, yc])
    pnts = pnts + cent
    sector = np.concatenate((cent[None, :], pnts, cent[None, :]), axis=0)
    return sector&lt;/LI-CODE&gt;&lt;P&gt;Sample to give you an idea&lt;/P&gt;&lt;LI-CODE lang="python"&gt;radius = 10.
x_c, y_c = 0., 0.

line_ang = 45.  # your line angle/direction... 

start, stop = line_ang - 22.5, line_ang + 22.5  # start and stop relative to it

ar = _arc_sector(radius=10, start=start, stop=stop, step=2.0, xc=x_c, yc=y_c)&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="arc.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/138631i1855BB6C5CCD1C03/image-size/medium?v=v2&amp;amp;px=400" role="button" title="arc.png" alt="arc.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Aug 2025 13:00:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/creating-sectors/m-p/1642319#M98256</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-08-15T13:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Creating sectors</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/creating-sectors/m-p/1643209#M98327</link>
      <description>&lt;P&gt;Thanks!&amp;nbsp; I'll give this a try&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 11:36:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/creating-sectors/m-p/1643209#M98327</guid>
      <dc:creator>DavidMercer</dc:creator>
      <dc:date>2025-08-19T11:36:21Z</dc:date>
    </item>
  </channel>
</rss>

