<?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: Latitude and Longtitude in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/latitude-and-longtitude/m-p/178699#M776</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks. I will look into the LocalGeometryService.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Apr 2013 05:38:14 GMT</pubDate>
    <dc:creator>StanleyHo</dc:creator>
    <dc:date>2013-04-05T05:38:14Z</dc:date>
    <item>
      <title>Latitude and Longtitude</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/latitude-and-longtitude/m-p/178693#M770</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;I need to draw polygons on the map but the polygon&amp;nbsp; coordinates is based on latitude and longitude.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I convert latitude and longitude from map X and Y coordinate?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I do the reverse?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2013 02:21:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/latitude-and-longtitude/m-p/178693#M770</guid>
      <dc:creator>StanleyHo</dc:creator>
      <dc:date>2013-03-28T02:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Latitude and Longtitude</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/latitude-and-longtitude/m-p/178694#M771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use the GeometryService to project between different coordinate systems. The Project tool will also take a datum transformation if needed. See &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~Project.html"&gt;http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.GeometryService~Project.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2013 10:13:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/latitude-and-longtitude/m-p/178694#M771</guid>
      <dc:creator>DavidMartin</dc:creator>
      <dc:date>2013-03-28T10:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Latitude and Longtitude</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/latitude-and-longtitude/m-p/178695#M772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having trouble understanding GeometryService that you mention. i can't seems to find the latitude, longitude conversion and vice versa.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, from the samples, I discover that it plots the polygon based on latitude and longitude.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;string polyCoordinate = "2.5,-1 2.5,1 -2.5,1 -2.5,-1 2.5,-1";
ESRI.ArcGIS.Client.Geometry.PointCollectionConverter pointConverter = new ESRI.ArcGIS.Client.Geometry.PointCollectionConverter();
ESRI.ArcGIS.Client.Geometry.PointCollection pointCollection = pointConverter.ConvertFromString(polyCoordinate) as ESRI.ArcGIS.Client.Geometry.PointCollection;

//setup the polygon
Polygon aoi = new Polygon();
aoi.Rings.Add(pointCollection);

BrushConverter brushConv = new BrushConverter();
SimpleFillSymbol symbol = new SimpleFillSymbol();
symbol.BorderBrush = brushConv.ConvertFromString(areaData.Color) as SolidColorBrush;
symbol.BorderThickness = 1;
symbol.Fill = brushConv.ConvertFromString(areaData.FillColor) as SolidColorBrush;

ESRI.ArcGIS.Client.Projection.WebMercator mercator = new ESRI.ArcGIS.Client.Projection.WebMercator();
Graphic polygon = new Graphic();
polygon.Geometry = mercator.FromGeographic(aoi);
polygon.Symbol = symbol;
graphicsLayer.Graphics.Add(polygon);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Each point is based on latitude and longitude value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I got a problem. Firstly, my web will be cached map (downloaded periodically and use offline) and not downloaded realtime.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is WebMercator still usable?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If WebCator isn't usable, can show me an example on how to convert map point to latitude and longitude and vice versa?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:09:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/latitude-and-longtitude/m-p/178695#M772</guid>
      <dc:creator>StanleyHo</dc:creator>
      <dc:date>2021-12-11T09:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Latitude and Longtitude</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/latitude-and-longtitude/m-p/178696#M773</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 translating between WGS1984 and Web Mercator Auxiliary Sphere there is a WebMercator class to support this very common case: &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Projection.WebMercator_members.html"&gt;http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Projection.WebMercator_members.html&lt;/A&gt;&lt;SPAN&gt;. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise - for the greatest flexibility you should look at &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Geometry.CoordinateConversion_members.html"&gt;http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Geometry.CoordinateConversion_members.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:45:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/latitude-and-longtitude/m-p/178696#M773</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2013-04-02T06:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Latitude and Longtitude</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/latitude-and-longtitude/m-p/178697#M774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I got a question if the cached map (in WebMercator format) is downloaded from the web?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I take the cache map offline, can I still use the webMercator class to transalte between WGS1984 and webmercator and vice versa?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 06:51:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/latitude-and-longtitude/m-p/178697#M774</guid>
      <dc:creator>StanleyHo</dc:creator>
      <dc:date>2013-04-03T06:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Latitude and Longtitude</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/latitude-and-longtitude/m-p/178698#M775</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;Yes the WebMercator class is part of the API and therefore will remain alongside your application if it goes "offline". You can also use the LocalGeometryService offline, if you're using the Standard license level. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To use cached maps offline you'll need to create a Tile Package, or take a copy/extract of the server-side cache.&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:16:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/latitude-and-longtitude/m-p/178698#M775</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2013-04-03T07:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Latitude and Longtitude</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/latitude-and-longtitude/m-p/178699#M776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks. I will look into the LocalGeometryService.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2013 05:38:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/latitude-and-longtitude/m-p/178699#M776</guid>
      <dc:creator>StanleyHo</dc:creator>
      <dc:date>2013-04-05T05:38:14Z</dc:date>
    </item>
  </channel>
</rss>

