<?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 Feature to Point conversion for geometry drawn using sketch tool in Javascript Maps SDK in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-to-point-conversion-for-geometry-drawn/m-p/1373639#M83432</link>
    <description>&lt;P&gt;We have used the Maps SDK for JavaScript to create a map app with the sketch tool widget on the map.&amp;nbsp;&lt;BR /&gt;Once the user draws on the map using the sketch tool we are storing the geometry object into the database against a record in our system, so we can add the geometry back to map as a graphic when the record is viewed.&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;We are now looking to store the point for the drawing along with the geometry. We are looking for an equivalent function to PointOnSurface or Feature to Point conversion or centroid. Centroid calculation is not the ideal since that can result outside the geometry and can cause analysis on intersections to be inaccurate.&lt;BR /&gt;&lt;BR /&gt;We want to be able to run this function on multi-part geometries as well.&lt;/P&gt;&lt;P&gt;Is there a method within the SDK or any other open source library, or REST API that can be used to achieve this?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Any resources and/or examples will be helpful.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jan 2024 20:09:50 GMT</pubDate>
    <dc:creator>AmritaPatra</dc:creator>
    <dc:date>2024-01-23T20:09:50Z</dc:date>
    <item>
      <title>Feature to Point conversion for geometry drawn using sketch tool in Javascript Maps SDK</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-to-point-conversion-for-geometry-drawn/m-p/1373639#M83432</link>
      <description>&lt;P&gt;We have used the Maps SDK for JavaScript to create a map app with the sketch tool widget on the map.&amp;nbsp;&lt;BR /&gt;Once the user draws on the map using the sketch tool we are storing the geometry object into the database against a record in our system, so we can add the geometry back to map as a graphic when the record is viewed.&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;We are now looking to store the point for the drawing along with the geometry. We are looking for an equivalent function to PointOnSurface or Feature to Point conversion or centroid. Centroid calculation is not the ideal since that can result outside the geometry and can cause analysis on intersections to be inaccurate.&lt;BR /&gt;&lt;BR /&gt;We want to be able to run this function on multi-part geometries as well.&lt;/P&gt;&lt;P&gt;Is there a method within the SDK or any other open source library, or REST API that can be used to achieve this?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Any resources and/or examples will be helpful.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 20:09:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-to-point-conversion-for-geometry-drawn/m-p/1373639#M83432</guid>
      <dc:creator>AmritaPatra</dc:creator>
      <dc:date>2024-01-23T20:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Feature to Point conversion for geometry drawn using sketch tool in Javascript Maps SDK</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-to-point-conversion-for-geometry-drawn/m-p/1386317#M83734</link>
      <description>&lt;P&gt;Try the geometryService.labelPoints(...) method to see if it gives you what you need:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#labelPoints" target="_self"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#labelPoints&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 21:30:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-to-point-conversion-for-geometry-drawn/m-p/1386317#M83734</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2024-02-23T21:30:23Z</dc:date>
    </item>
  </channel>
</rss>

