<?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: Get center (inside) of graphic instead of extent.getCenter in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-center-inside-of-graphic-instead-of-extent/m-p/457548#M42223</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use a &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/geometryservice.htm#labelPoints"&gt;geometry service's labelPoints method&lt;/A&gt;&lt;SPAN&gt;. Or you could use a custom GP service. We don't have a way to do this client side.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Nov 2011 13:53:18 GMT</pubDate>
    <dc:creator>derekswingley1</dc:creator>
    <dc:date>2011-11-09T13:53:18Z</dc:date>
    <item>
      <title>Get center (inside) of graphic instead of extent.getCenter</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-center-inside-of-graphic-instead-of-extent/m-p/457547#M42222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having a problem in an application because of a highly irregular (cresent shaped) parcel, that is resulting in a a center point outside of its bounds.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any way to get a center of a feature/graphic inside a polygon (i.e. ArcToolbox Feature to Point with the "Inside (optional)" box checked)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 13:19:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-center-inside-of-graphic-instead-of-extent/m-p/457547#M42222</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2011-11-09T13:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Get center (inside) of graphic instead of extent.getCenter</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-center-inside-of-graphic-instead-of-extent/m-p/457548#M42223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use a &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/geometryservice.htm#labelPoints"&gt;geometry service's labelPoints method&lt;/A&gt;&lt;SPAN&gt;. Or you could use a custom GP service. We don't have a way to do this client side.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 13:53:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-center-inside-of-graphic-instead-of-extent/m-p/457548#M42223</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-11-09T13:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Get center (inside) of graphic instead of extent.getCenter</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-center-inside-of-graphic-instead-of-extent/m-p/457549#M42224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You can use a &lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/geometryservice.htm#labelPoints"&gt;geometry service's labelPoints method&lt;/A&gt;. Or you could use a custom GP service. We don't have a way to do this client side.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bummer.&amp;nbsp; feature request? a getCenter ({inside:true}) method on geometry would be very very useful.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 13:54:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-center-inside-of-graphic-instead-of-extent/m-p/457549#M42224</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2011-11-09T13:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Get center (inside) of graphic instead of extent.getCenter</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-center-inside-of-graphic-instead-of-extent/m-p/457550#M42225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Calling IArea.LabelPoint will get you a point guaranteed inside the area, while IArea.Centroid will find the center of gravity of the area.&amp;nbsp; In some cases, when mulitpart polygons, polygons with holes, or irrugular shapes as you encountered, the calculted center will fall outside.&amp;nbsp; As Derek pointed out, labelpoint is the one you should try.&amp;nbsp; Because in those cases if you move the point inside, it will no longer be the center.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2011 21:11:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-center-inside-of-graphic-instead-of-extent/m-p/457550#M42225</guid>
      <dc:creator>WeifengHe</dc:creator>
      <dc:date>2011-11-23T21:11:25Z</dc:date>
    </item>
  </channel>
</rss>

