<?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 Using ConvertCoordinateNotation_management on geometry objects without writing files in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/using-convertcoordinatenotation-management-on/m-p/547809#M42752</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Howdy Ho All:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone been able to use the ConvertCoordinateNotation_management tool with input and output geometry objects?&amp;nbsp; I've been able to use the geometry objects in other tools be this one returns me "unable to convert coordinate".&amp;nbsp; I'd really rather not loop all my geometries write a file, then re-read the file and re-associated the coordinate with the existing data. Hopefully I'm just not getting the parameter correct for this type of usage. Example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;gcsnad83 = arcpy.SpatialReference(4269) pt = arcpy.Point() pt.X = 42.6544321 pt.Y = -143.132412 ptg = arcpy.PointGeometry(pt,gcsnad83) g = arcpy.Geometry() s = arcpy.ConvertCoordinateNotation_management(ptg, g, "#", "#", "SHAPE", "MGRS", "#", "#")&amp;nbsp;&amp;nbsp; print(arcpy.GetMessages(0)) print s&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Mar 2014 15:06:18 GMT</pubDate>
    <dc:creator>FredSpataro</dc:creator>
    <dc:date>2014-03-05T15:06:18Z</dc:date>
    <item>
      <title>Using ConvertCoordinateNotation_management on geometry objects without writing files</title>
      <link>https://community.esri.com/t5/python-questions/using-convertcoordinatenotation-management-on/m-p/547809#M42752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Howdy Ho All:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone been able to use the ConvertCoordinateNotation_management tool with input and output geometry objects?&amp;nbsp; I've been able to use the geometry objects in other tools be this one returns me "unable to convert coordinate".&amp;nbsp; I'd really rather not loop all my geometries write a file, then re-read the file and re-associated the coordinate with the existing data. Hopefully I'm just not getting the parameter correct for this type of usage. Example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;gcsnad83 = arcpy.SpatialReference(4269) pt = arcpy.Point() pt.X = 42.6544321 pt.Y = -143.132412 ptg = arcpy.PointGeometry(pt,gcsnad83) g = arcpy.Geometry() s = arcpy.ConvertCoordinateNotation_management(ptg, g, "#", "#", "SHAPE", "MGRS", "#", "#")&amp;nbsp;&amp;nbsp; print(arcpy.GetMessages(0)) print s&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 15:06:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-convertcoordinatenotation-management-on/m-p/547809#M42752</guid>
      <dc:creator>FredSpataro</dc:creator>
      <dc:date>2014-03-05T15:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using ConvertCoordinateNotation_management on geometry objects without writing fi</title>
      <link>https://community.esri.com/t5/python-questions/using-convertcoordinatenotation-management-on/m-p/547810#M42753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Fred,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't believe you will be able to use a geometry object for the output.&amp;nbsp; You could create a table in_memory.&amp;nbsp; Ex:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;gcsnad83 = arcpy.SpatialReference(4269) pt = arcpy.Point() pt.X = -13.6544321 pt.Y = -123.132412 ptg = arcpy.PointGeometry(pt,gcsnad83) g = r"IN_MEMORY\table" arcpy.ConvertCoordinateNotation_management(ptg, g, "#", "#", "SHAPE", "MGRS", "#", "#")&amp;nbsp; with arcpy.da.SearchCursor(g, ["MGRS"]) as cursor: &amp;nbsp;&amp;nbsp;&amp;nbsp; for row in cursor: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print row[0]&amp;nbsp; del cursor&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 15:51:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-convertcoordinatenotation-management-on/m-p/547810#M42753</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2014-03-05T15:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using ConvertCoordinateNotation_management on geometry objects without writing fi</title>
      <link>https://community.esri.com/t5/python-questions/using-convertcoordinatenotation-management-on/m-p/547811#M42754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jake:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the quick response.&amp;nbsp; I still get the same error message so maybe it doesn't like the geometry object as an input either?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Executing: ConvertCoordinateNotation in_memory\f776A99E1_FA0B_4D1A_B0D1_081A2469BF22 IN_MEMORY\table # # SHAPE MGRS # "GEOGCS['GCS_North_American_1983',DATUM['D_North_American_1983',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]];-400 -400 1000000000;-100000 10000;-100000 10000;8.98315284119521E-09;0.001;0.001;IsHighPrecision"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Start Time: Wed Mar 05 12:01:20 2014&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WARNING 001293: Coordinate conversion failed for 1 records.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Succeeded at Wed Mar 05 12:01:20 2014 (Elapsed Time: 0.03 seconds)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Probably just create an in memory table for the input as well...?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 17:06:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-convertcoordinatenotation-management-on/m-p/547811#M42754</guid>
      <dc:creator>FredSpataro</dc:creator>
      <dc:date>2014-03-05T17:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using ConvertCoordinateNotation_management on geometry objects without writing fi</title>
      <link>https://community.esri.com/t5/python-questions/using-convertcoordinatenotation-management-on/m-p/547812#M42755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What version of ArcGIS Desktop are you running?&amp;nbsp; I was able to get this to work using 10.2.1.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 17:26:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-convertcoordinatenotation-management-on/m-p/547812#M42755</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2014-03-05T17:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using ConvertCoordinateNotation_management on geometry objects without writing fi</title>
      <link>https://community.esri.com/t5/python-questions/using-convertcoordinatenotation-management-on/m-p/547813#M42756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hmmm... looks like an issue with 10.2.0.&amp;nbsp; I tried both 32 and 64 bit python on this machine and get the same error.&amp;nbsp; On my laptop that has 10.2.1, the 32 bit python works correctly.&amp;nbsp; I don't have the 64 bit version installed there but will update this if there's any issue with that version. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2014 14:33:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-convertcoordinatenotation-management-on/m-p/547813#M42756</guid>
      <dc:creator>FredSpataro</dc:creator>
      <dc:date>2014-03-06T14:33:09Z</dc:date>
    </item>
  </channel>
</rss>

