<?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 Assign SpatialReference to ArcGISVIew in ArcGIS Maps SDK for Unity Questions</title>
    <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/assign-spatialreference-to-arcgisview/m-p/1280782#M493</link>
    <description>&lt;P&gt;Hi, I have been trying to use the GeographicToWorld method from the ArcGISView, but the SpatialReference is null so it only returns NaN. I've set the project up as described in the GetStarted.&lt;/P&gt;&lt;P&gt;The code so far looks like this:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;ArcGISMapComponent arcGISMapComponent = FindObjectOfType&amp;lt;ArcGISMapComponent&amp;gt;();
ArcGISSpatialReference spatialRef = new ArcGISSpatialReference(4326);
ArcGISPoint po = new ArcGISPoint(7.9, 53.25, 0.0, spatialRef);
var worldPos = arcGISMapComponent.View.GeographicToWorld(po);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Apr 2023 15:21:33 GMT</pubDate>
    <dc:creator>BHenke</dc:creator>
    <dc:date>2023-04-20T15:21:33Z</dc:date>
    <item>
      <title>Assign SpatialReference to ArcGISVIew</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/assign-spatialreference-to-arcgisview/m-p/1280782#M493</link>
      <description>&lt;P&gt;Hi, I have been trying to use the GeographicToWorld method from the ArcGISView, but the SpatialReference is null so it only returns NaN. I've set the project up as described in the GetStarted.&lt;/P&gt;&lt;P&gt;The code so far looks like this:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;ArcGISMapComponent arcGISMapComponent = FindObjectOfType&amp;lt;ArcGISMapComponent&amp;gt;();
ArcGISSpatialReference spatialRef = new ArcGISSpatialReference(4326);
ArcGISPoint po = new ArcGISPoint(7.9, 53.25, 0.0, spatialRef);
var worldPos = arcGISMapComponent.View.GeographicToWorld(po);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 15:21:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/assign-spatialreference-to-arcgisview/m-p/1280782#M493</guid>
      <dc:creator>BHenke</dc:creator>
      <dc:date>2023-04-20T15:21:33Z</dc:date>
    </item>
  </channel>
</rss>

