<?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: Checking a SpatialReference is WGS84 in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/checking-a-spatialreference-is-wgs84/m-p/827022#M3109</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the tip.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Mar 2020 20:50:16 GMT</pubDate>
    <dc:creator>AbelPerez</dc:creator>
    <dc:date>2020-03-30T20:50:16Z</dc:date>
    <item>
      <title>Checking a SpatialReference is WGS84</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/checking-a-spatialreference-is-wgs84/m-p/827020#M3107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the proper way to check if a&amp;nbsp;SpatialReference is WGS84?&lt;/P&gt;&lt;P&gt;I have tried&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim sr as &lt;SPAN&gt;SpatialReference&amp;nbsp;&lt;/SPAN&gt;= MapView.Active.Camera.SpatialReference&lt;/P&gt;&lt;P&gt;If sr =&amp;nbsp;SpatialReferences.WGS84 &lt;SPAN&gt;Then&amp;nbsp;&lt;/SPAN&gt;IsWGS4=True 'doesnt work&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If sr Is&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;SpatialReferences.WGS84 Then&amp;nbsp;IsWGS4=True 'doesnt work&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If&amp;nbsp;If sr.Name = "GCS_WGS_1984" Then&amp;nbsp;IsWGS4=True 'this works&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2020 18:23:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/checking-a-spatialreference-is-wgs84/m-p/827020#M3107</guid>
      <dc:creator>AbelPerez</dc:creator>
      <dc:date>2020-03-30T18:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Checking a SpatialReference is WGS84</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/checking-a-spatialreference-is-wgs84/m-p/827021#M3108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The easiest way is to check the well-known id.&lt;/P&gt;&lt;P&gt;if (sr.Wkid == SpatialReferences.WGS84.Wkid)&lt;/P&gt;&lt;P&gt;&amp;nbsp; IsWGS84 = true;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you could use the hard-coded wkid = 4326.&amp;nbsp;&lt;/P&gt;&lt;P&gt;if (sr.Wkid == 4326) ... but occasionally these wkids are changed by EPSG so the first way is safer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2020 20:38:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/checking-a-spatialreference-is-wgs84/m-p/827021#M3108</guid>
      <dc:creator>AnnetteLocke</dc:creator>
      <dc:date>2020-03-30T20:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Checking a SpatialReference is WGS84</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/checking-a-spatialreference-is-wgs84/m-p/827022#M3109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the tip.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2020 20:50:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/checking-a-spatialreference-is-wgs84/m-p/827022#M3109</guid>
      <dc:creator>AbelPerez</dc:creator>
      <dc:date>2020-03-30T20:50:16Z</dc:date>
    </item>
  </channel>
</rss>

