<?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 Converting returned DD values to UTM in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/converting-returned-dd-values-to-utm/m-p/514511#M40385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Greetings,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working with a data set that is in UTM projection and I am retrieving Lat/Long values from my database. I am wanting to use the returned values to clip the input dataset by the extent but I need to convert the returned values to UTM first.&amp;nbsp; Is there any conversion functions in arcpy that can take a input variable (MinX, MinY, MaxX, MaxY) or a calculation that I can include in my script to make the conversion? I have not had much luck looking in the forum.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I see an arcpy.ConvertCoordinateNotation_management function but it looks like I may have to write the values to a file. Is that the best way?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any input you may have.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g. My returned values&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-92.675391604123291 42.271719081848012 -92.670545464422318 42.275377107963074&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jun 2012 20:10:02 GMT</pubDate>
    <dc:creator>NickOlson2</dc:creator>
    <dc:date>2012-06-05T20:10:02Z</dc:date>
    <item>
      <title>Converting returned DD values to UTM</title>
      <link>https://community.esri.com/t5/python-questions/converting-returned-dd-values-to-utm/m-p/514511#M40385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Greetings,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working with a data set that is in UTM projection and I am retrieving Lat/Long values from my database. I am wanting to use the returned values to clip the input dataset by the extent but I need to convert the returned values to UTM first.&amp;nbsp; Is there any conversion functions in arcpy that can take a input variable (MinX, MinY, MaxX, MaxY) or a calculation that I can include in my script to make the conversion? I have not had much luck looking in the forum.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I see an arcpy.ConvertCoordinateNotation_management function but it looks like I may have to write the values to a file. Is that the best way?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any input you may have.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g. My returned values&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-92.675391604123291 42.271719081848012 -92.670545464422318 42.275377107963074&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 20:10:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/converting-returned-dd-values-to-utm/m-p/514511#M40385</guid>
      <dc:creator>NickOlson2</dc:creator>
      <dc:date>2012-06-05T20:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Converting returned DD values to UTM</title>
      <link>https://community.esri.com/t5/python-questions/converting-returned-dd-values-to-utm/m-p/514512#M40386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It seems one really only has two options: creating a point feature class and projecting it, or using ConvertCoordinateNotation, which allows you to skip making the original input featureclass, but requires you to make an input table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thus, you don't just need an input FILE, you need an input TABLE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(AML had a handy option for projecting coordinates in a text file... but enough nostalgia for today.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ConvertCoordinateNotation also generates fields for the output coordinate values, so it skips needing AddXY after just projecting a feature class.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 10:53:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/converting-returned-dd-values-to-utm/m-p/514512#M40386</guid>
      <dc:creator>markdenil</dc:creator>
      <dc:date>2012-06-07T10:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Converting returned DD values to UTM</title>
      <link>https://community.esri.com/t5/python-questions/converting-returned-dd-values-to-utm/m-p/514513#M40387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your response. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wrote my values out to a table using the xlwt module and tried to use the ConvertCoordinateNotation function only to realize it creates a point feature class. That won't really solve my problem of returning an extent polygon (MinX, MinY, MaxX, MaxY) that will be used for clip extent.&amp;nbsp; I think it may be best to create a polygon, project it and then try to return the envelope of the feature extent.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2012 12:44:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/converting-returned-dd-values-to-utm/m-p/514513#M40387</guid>
      <dc:creator>NickOlson2</dc:creator>
      <dc:date>2012-06-08T12:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Converting returned DD values to UTM</title>
      <link>https://community.esri.com/t5/python-questions/converting-returned-dd-values-to-utm/m-p/514514#M40388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After you run Convert Coordinate Notation, use its output as input to Minimum Bounding Geometry (Data Management &amp;gt; Features) with these parameter values:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Geometry Type: ENVELOPE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Group Option: ALL&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It will create a rectangle as output. You can then describe the output to get the extent:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;ext = arcpy.Describe("output_envelope").Extent
xmin = ext.XMin
ymin = ext.YMin
...&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:29:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/converting-returned-dd-values-to-utm/m-p/514514#M40388</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2021-12-11T22:29:27Z</dc:date>
    </item>
  </channel>
</rss>

