<?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: Obtaining the difference in latitude and longitude from polygon shifting in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/obtaining-the-difference-in-latitude-and-longitude/m-p/185412#M818</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I understand that the distance method you mentioned can help to calculate the distance between 2 geometry. However, I have 2 problems in using that function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) I wasn't able to get the starting geometry as when EditGeometry-&amp;gt;StartEdit() function is fired, any GraphicsLayer-&amp;gt;MouseLeftButtonDown() event will not be triggered. Hence I can't get the starting corrdinate of initial mouse pointer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) The distance that it return is in double of the spatial reference and not in (x,y) or (longitude, latitude) value.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Apr 2013 06:47:23 GMT</pubDate>
    <dc:creator>StanleyHo</dc:creator>
    <dc:date>2013-04-03T06:47:23Z</dc:date>
    <item>
      <title>Obtaining the difference in latitude and longitude from polygon shifting</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/obtaining-the-difference-in-latitude-and-longitude/m-p/185410#M816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to find the difference (in latitude and longitude format) after shifting a polygon from one point in the map to another. How do I do it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;currently I am using GraphicsLayer-&amp;gt;MouseLeftButtonDown event to start the EditGeometry-&amp;gt;StartEdit() function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, once&amp;nbsp; EditGeometry-&amp;gt;StartEdit() function fired, GraphicsLayer-&amp;gt;MouseLeftButtonDown is no longer triggered until EditGeometry-&amp;gt;StopEdit() is fired. Thus, I wasn't able to get the mouse coordinate to compute the difference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any way to get the difference (in Latitude Longitude format)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Apr 2013 08:59:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/obtaining-the-difference-in-latitude-and-longitude/m-p/185410#M816</guid>
      <dc:creator>StanleyHo</dc:creator>
      <dc:date>2013-04-01T08:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining the difference in latitude and longitude from polygon shifting</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/obtaining-the-difference-in-latitude-and-longitude/m-p/185411#M817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could use the GeometryService task class and call the DistanceAsync method - which calculates the distance between two geometries: &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.GeometryService~Distance.html"&gt;http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.GeometryService~Distance.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The distance can be returned in one of the supported formats as per the LinearUnit enumeration: &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.LinearUnit.html"&gt;http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.LinearUnit.html&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2013 06:38:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/obtaining-the-difference-in-latitude-and-longitude/m-p/185411#M817</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2013-04-02T06:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining the difference in latitude and longitude from polygon shifting</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/obtaining-the-difference-in-latitude-and-longitude/m-p/185412#M818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I understand that the distance method you mentioned can help to calculate the distance between 2 geometry. However, I have 2 problems in using that function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) I wasn't able to get the starting geometry as when EditGeometry-&amp;gt;StartEdit() function is fired, any GraphicsLayer-&amp;gt;MouseLeftButtonDown() event will not be triggered. Hence I can't get the starting corrdinate of initial mouse pointer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) The distance that it return is in double of the spatial reference and not in (x,y) or (longitude, latitude) value.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 06:47:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/obtaining-the-difference-in-latitude-and-longitude/m-p/185412#M818</guid>
      <dc:creator>StanleyHo</dc:creator>
      <dc:date>2013-04-03T06:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining the difference in latitude and longitude from polygon shifting</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/obtaining-the-difference-in-latitude-and-longitude/m-p/185413#M819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) I wasn't able to get the starting geometry as when EditGeometry-&amp;gt;StartEdit() function is fired, any GraphicsLayer-&amp;gt;MouseLeftButtonDown() event will not be triggered. Hence I can't get the starting corrdinate of initial mouse pointer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please can you provide some more information on what functionality you're trying to achieve?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) The distance that it return is in double of the spatial reference and not in (x,y) or (longitude, latitude) value. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you provide some more information on exactly what measure you would like to obtain? A coordinate pair refers to a specific location, rather than a distance between two locations.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 07:21:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/obtaining-the-difference-in-latitude-and-longitude/m-p/185413#M819</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2013-04-03T07:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining the difference in latitude and longitude from polygon shifting</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/obtaining-the-difference-in-latitude-and-longitude/m-p/185414#M820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to do the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have 1 point (P1) a 1 rectangle polygon (R1).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;both P1 and R1 is associated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I move R1 from 1 place to another (on the map using Editgeometry-&amp;gt;Startedit()), P1 will get updated by the distance covered by R1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;P1 is in Longitude and Latitude.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will use x,y coordinate for easy illusration&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;initally&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;R1 - (3,4), (5,4), (3,2), (5,2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;P1 - (2,4)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I move R1 by (2,3) [move click and move on the map]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;new position&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;--------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;R1 - (5,7), (7,7), (5,5), (7,5)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Since distance covered is random, I can only get the distance covered by the starting and ending point before I know the distance for the new P1 coordinates.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;P1 - (4,7) [should be this coordinate after computing]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2013 05:36:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/obtaining-the-difference-in-latitude-and-longitude/m-p/185414#M820</guid>
      <dc:creator>StanleyHo</dc:creator>
      <dc:date>2013-04-05T05:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining the difference in latitude and longitude from polygon shifting</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/obtaining-the-difference-in-latitude-and-longitude/m-p/185415#M821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you're handling the EditGeometry.GeometryEdit event that should give you both the new geometry and the old geometry from which you should be able to determine the point to be moved and work out relative to the new geometry where the point should be located. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.EditGeometry~GeometryEdit_EV.html" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.EditGeometry~GeometryEdit_EV.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2013 11:04:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/obtaining-the-difference-in-latitude-and-longitude/m-p/185415#M821</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2013-04-05T11:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining the difference in latitude and longitude from polygon shifting</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/obtaining-the-difference-in-latitude-and-longitude/m-p/185416#M822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks I manage to get it to work with the GeometryEdit event.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2013 02:31:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/obtaining-the-difference-in-latitude-and-longitude/m-p/185416#M822</guid>
      <dc:creator>StanleyHo</dc:creator>
      <dc:date>2013-04-08T02:31:38Z</dc:date>
    </item>
  </channel>
</rss>

