<?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: How do I manipulate with specific linear unit in GeometryEngine.Instance function in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-i-manipulate-with-specific-linear-unit-in/m-p/798801#M1902</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The documentation should say what the input and output units are.&amp;nbsp;&lt;/P&gt;&lt;P&gt;GeodesicArea always returns square meters. You don't need to project your data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic8236.html" rel="nofollow noopener noreferrer" target="_blank"&gt;ArGIS Pro 2.4 API Reference Guide - GeodesicArea&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GeodesicBuffer assumes the distance passed in is in meters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic8238.html" rel="nofollow noopener noreferrer" target="_blank"&gt;ArcGIS Pro 2.4 API Reference Guide - GeodesicBuffer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need different units, use the LinearUnit class to convert them. For example, if you want to buffer in kilometers instead of meters, convert the distance from kilometers to meters and then pass that to the GeodesicBuffer method.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;LinearUnit kilometers &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; LinearUnit&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Kilometers&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;double&lt;/SPAN&gt; meters &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; kilometers&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;ConvertTo&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;100&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; LinearUnit&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Kilometers&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
Geometry buffer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GeometryEngine&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Instance&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GeodesicBuffer&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;polygon&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; meters&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That being said, we can add methods&amp;nbsp;with a LinearUnit parameter in a future release. Thanks for the suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Annette&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 09:14:38 GMT</pubDate>
    <dc:creator>AnnetteLocke</dc:creator>
    <dc:date>2021-12-12T09:14:38Z</dc:date>
    <item>
      <title>How do I manipulate with specific linear unit in GeometryEngine.Instance function</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-i-manipulate-with-specific-linear-unit-in/m-p/798800#M1901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I manipulate with specific linear unit in GeometryEngine.Instance at specific function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example. GeometryEngine.Instane.GeodesicArea([input Geometry), the output seem/support to be derived from SpatialReference unit of geometry. For example, If I want to get output with meter, how should I manipulate.&lt;/P&gt;&lt;P&gt;Is that require to reproject with WGS 84 whenever I want to calculate in meter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same thing for&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;GeometryEngine.Instance.GeodesicBuffer, GeometryEngine.Instance.Buffer, =&amp;gt; will the distance value derived from spatialreference of the input geometry?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example. If I want to buffer in kilometer how should I do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found some function with the option linear unit in arcgis runtime sdk .net&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/net/10-2/sample-code/GeodesicBuffer/" title="https://developers.arcgis.com/net/10-2/sample-code/GeodesicBuffer/"&gt;Geodesic Buffer | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think, that could be great if these .net libraries are using the common data transfer object dll.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2020 03:19:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-i-manipulate-with-specific-linear-unit-in/m-p/798800#M1901</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-01-28T03:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I manipulate with specific linear unit in GeometryEngine.Instance function</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-i-manipulate-with-specific-linear-unit-in/m-p/798801#M1902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The documentation should say what the input and output units are.&amp;nbsp;&lt;/P&gt;&lt;P&gt;GeodesicArea always returns square meters. You don't need to project your data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic8236.html" rel="nofollow noopener noreferrer" target="_blank"&gt;ArGIS Pro 2.4 API Reference Guide - GeodesicArea&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GeodesicBuffer assumes the distance passed in is in meters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic8238.html" rel="nofollow noopener noreferrer" target="_blank"&gt;ArcGIS Pro 2.4 API Reference Guide - GeodesicBuffer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need different units, use the LinearUnit class to convert them. For example, if you want to buffer in kilometers instead of meters, convert the distance from kilometers to meters and then pass that to the GeodesicBuffer method.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;LinearUnit kilometers &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; LinearUnit&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Kilometers&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;double&lt;/SPAN&gt; meters &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; kilometers&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;ConvertTo&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;100&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; LinearUnit&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Kilometers&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
Geometry buffer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GeometryEngine&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Instance&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GeodesicBuffer&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;polygon&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; meters&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That being said, we can add methods&amp;nbsp;with a LinearUnit parameter in a future release. Thanks for the suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Annette&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:14:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-i-manipulate-with-specific-linear-unit-in/m-p/798801#M1902</guid>
      <dc:creator>AnnetteLocke</dc:creator>
      <dc:date>2021-12-12T09:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I manipulate with specific linear unit in GeometryEngine.Instance function</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-i-manipulate-with-specific-linear-unit-in/m-p/798802#M1903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank &lt;A href="https://community.esri.com/migrated-users/29430" target="_blank"&gt;Annette Locke&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it&amp;nbsp; look like there are two parts, area, distance, distance3d shall be based on geometry spatial reference.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Geodesic, shape preserving .. shall be meter based.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would like to suggest one more item, can you please add return type info into the summary comment of the methods as well?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Visual studio 2017/2019 seem does not fix it well, without resharper, I cannot see the return type.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/480155_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example like below.&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;///         &amp;lt;summary&amp;gt;Gets the geodesic area of a polygon. The area returned is in square meters.&amp;lt;/summary&amp;gt;&amp;lt;param name="geometry"&amp;gt;The intput geometry.&amp;lt;/param&amp;gt;&amp;lt;exception cref="T:System.ArgumentNullException"&amp;gt;Geometry is null or empty.&amp;lt;/exception&amp;gt;&amp;lt;exception cref="T:System.NotImplementedException"&amp;gt;The method is not implemented for GeometryBag or Multipatch.&amp;lt;/exception&amp;gt;&amp;lt;exception cref="T:ArcGIS.Core.Geometry.GeometryObjectException"&amp;gt;Geometry is of the wrong type (i.e. a line).&amp;lt;/exception&amp;gt;&amp;lt;exception cref="T:System.NotImplementedException"&amp;gt;&lt;/SPAN&gt;
        &lt;SPAN class="comment token"&gt;///   Spatial reference of &amp;lt;paramref name="geometry" /&amp;gt;is an image coordinate system.&lt;/SPAN&gt;
        &lt;SPAN class="comment token"&gt;/// &amp;lt;/exception&amp;gt;&amp;lt;returns&amp;gt;&lt;/SPAN&gt;
        &lt;SPAN class="comment token"&gt;///   The calculated geodesic area. The area returned is in square meters.&lt;/SPAN&gt;
        &lt;SPAN class="comment token"&gt;/// &amp;lt;/returns&amp;gt;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;public&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;double&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;GeodesicArea&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Geometry geometry&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;


&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:14:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-i-manipulate-with-specific-linear-unit-in/m-p/798802#M1903</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T09:14:41Z</dc:date>
    </item>
  </channel>
</rss>

