<?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: Updating Spatial Reference of Map using arcpy in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/updating-spatial-reference-of-map-using-arcpy/m-p/1187450#M56689</link>
    <description>&lt;P&gt;Probably the easiest way to create a spatialReference object is to pull it from another item, such as a map or layer, as you have done in your example, but you can also create one from a .prj file, the name, or factory code and you don't need to use loadFromString. From the &lt;A href="http://sr%20= arcpy.SpatialReference(&amp;quot;Hawaii Albers Equal Area Conic&amp;quot;)" target="_self"&gt;documentation&lt;/A&gt;:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;sr = arcpy.SpatialReference("Hawaii Albers Equal Area Conic")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You would only need loadFromString if you only had the WKT string.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jun 2022 18:13:01 GMT</pubDate>
    <dc:creator>EvanThoms</dc:creator>
    <dc:date>2022-06-28T18:13:01Z</dc:date>
    <item>
      <title>Updating Spatial Reference of Map using arcpy</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/updating-spatial-reference-of-map-using-arcpy/m-p/1185152#M56423</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I'm currently working on automating a workflow that involves creating various maps, nationwide, that all use different state plane coordinate systems. Does arcpy support updating the spatial reference information of the map itself? I understand how to update this information for individual layers, but I'm looking for a way to update the spatial reference information that I would normally update under the map's Properties page.&lt;/P&gt;&lt;P&gt;Any advice welcome, thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 17:45:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/updating-spatial-reference-of-map-using-arcpy/m-p/1185152#M56423</guid>
      <dc:creator>CullenWilliams-Freier1</dc:creator>
      <dc:date>2022-06-22T17:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Updating Spatial Reference of Map using arcpy</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/updating-spatial-reference-of-map-using-arcpy/m-p/1185163#M56424</link>
      <description>&lt;P&gt;Get a handle on the map object and there is a spatialReference property you can read and write to&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/map-class.htm" target="_blank"&gt;Map—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I was able to determine this was available at least as late as v2.6, but older than that, I don't know&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 18:14:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/updating-spatial-reference-of-map-using-arcpy/m-p/1185163#M56424</guid>
      <dc:creator>EvanThoms</dc:creator>
      <dc:date>2022-06-22T18:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Updating Spatial Reference of Map using arcpy</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/updating-spatial-reference-of-map-using-arcpy/m-p/1185202#M56427</link>
      <description>&lt;P&gt;Thanks! I did notice that, and I've been trying to work with that and cannot figure it out (novice Python user, to be sure). Would it look something like this?&lt;/P&gt;&lt;LI-CODE lang="python"&gt;#Get current spatial reference information for a map called "subjectLocationMap".
subjectLocationSR = subjectLocationMap.spatialReference
#Test to see what comes back - in this case, it's "WGS_1984_Web_Mercator_Auxiliary_Sphere"
subjectLocationSR.name
#Picking randomly, let's pretend I want to update the map's spatial reference to NAD 1983 StatePlane Arizona Central (FIPS 0202). Do I think create a string with the desired spatial reference system, then use subjectLocationSR.loadFromString()?&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 19:02:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/updating-spatial-reference-of-map-using-arcpy/m-p/1185202#M56427</guid>
      <dc:creator>CullenWilliams-Freier1</dc:creator>
      <dc:date>2022-06-22T19:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Updating Spatial Reference of Map using arcpy</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/updating-spatial-reference-of-map-using-arcpy/m-p/1187450#M56689</link>
      <description>&lt;P&gt;Probably the easiest way to create a spatialReference object is to pull it from another item, such as a map or layer, as you have done in your example, but you can also create one from a .prj file, the name, or factory code and you don't need to use loadFromString. From the &lt;A href="http://sr%20= arcpy.SpatialReference(&amp;quot;Hawaii Albers Equal Area Conic&amp;quot;)" target="_self"&gt;documentation&lt;/A&gt;:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;sr = arcpy.SpatialReference("Hawaii Albers Equal Area Conic")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You would only need loadFromString if you only had the WKT string.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 18:13:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/updating-spatial-reference-of-map-using-arcpy/m-p/1187450#M56689</guid>
      <dc:creator>EvanThoms</dc:creator>
      <dc:date>2022-06-28T18:13:01Z</dc:date>
    </item>
  </channel>
</rss>

