<?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: Spatial Reference question in Transportation Questions</title>
    <link>https://community.esri.com/t5/transportation-questions/spatial-reference-question/m-p/382910#M1282</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;An approach that may work for you is to try the ProjectAs method of the geometry object to create a new geometry in the new coordinate system.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Geometry (arcpy)&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//018z00000070000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//018z00000070000000&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Nov 2012 18:27:33 GMT</pubDate>
    <dc:creator>curtvprice</dc:creator>
    <dc:date>2012-11-28T18:27:33Z</dc:date>
    <item>
      <title>Spatial Reference question</title>
      <link>https://community.esri.com/t5/transportation-questions/spatial-reference-question/m-p/382909#M1281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: luke.kaim&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the search cursor. I want to change the spatial reference on the fly. I believe this can be done with spatial_reference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the input shapefile is in UTM 19N. I want the extents to be in DD. I know I could reproject, but I want to get better at python. What am I doing wrong? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I used the python window in ArcGIS. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;sCur = arcpy.SearchCursor("boundingbox1", "", "CCS_WGS_1984") ... for row in sCur: ...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; geom = row.shape ...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ext = geom.extent&amp;nbsp; # or row.Shape.extent ...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Extent of feature:\nXMin: %f, YMin: %f, \nXMax: %f, YMax: %f" % \ ...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (ext.XMin,ext.YMin,ext.XMax,ext.YMax)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Luke Kaim &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Luke Kaim (SIE)&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-email-small" href="mailto:Lucas.Kaim@maine.edu"&gt;Lucas.Kaim@maine.edu&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;(914)263-7866&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"Don???t complain. Just work harder" (Randy Pausch).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2012 17:57:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/spatial-reference-question/m-p/382909#M1281</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-11-28T17:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial Reference question</title>
      <link>https://community.esri.com/t5/transportation-questions/spatial-reference-question/m-p/382910#M1282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;An approach that may work for you is to try the ProjectAs method of the geometry object to create a new geometry in the new coordinate system.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Geometry (arcpy)&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//018z00000070000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//018z00000070000000&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2012 18:27:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/spatial-reference-question/m-p/382910#M1282</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2012-11-28T18:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial Reference question</title>
      <link>https://community.esri.com/t5/transportation-questions/spatial-reference-question/m-p/382911#M1283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: JSkinn3&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Luke,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If your current UTM coordinate system is in the WGS_1984 datum you won't have to apply a transformation, so you could use the WKID in the SearchCursor.&amp;nbsp; Example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;sCur = arcpy.SearchCursor("boundingbox1", "", 4326) &amp;nbsp;&amp;nbsp;&amp;nbsp; for row in sCur: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; geom = row.shape &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ext = geom.extent&amp;nbsp; # or row.Shape.extent &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Extent of feature:\nXMin: %f, YMin: %f, \nXMax: %f, YMax: %f" % (ext.XMin,ext.YMin,ext.XMax,ext.YMax)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can easily obtain the WKID by selecting the coordinate system in the Data Frame Properties and looking at the details under 'Current Coordinate System'.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2012 18:39:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/spatial-reference-question/m-p/382911#M1283</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-11-28T18:39:27Z</dc:date>
    </item>
  </channel>
</rss>

