<?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: Prevent rounding of Coordinates in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/prevent-rounding-of-coordinates/m-p/447641#M35099</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Appending existing data won't fix the issue if it exists, it occurs at the time of creation&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Oct 2014 15:40:39 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2014-10-08T15:40:39Z</dc:date>
    <item>
      <title>Prevent rounding of Coordinates</title>
      <link>https://community.esri.com/t5/python-questions/prevent-rounding-of-coordinates/m-p/447638#M35096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Working in lat long.&amp;nbsp; I'm doing a bit of code to get the bottom-left coord of a raster and then put a point in a shapefile at that location, however it appears that the lat/long coords are rounded to 3 decimal places when the shapefile is created - in the instance that I'm testing this means the point in the shapefile is offset by approx 2m which isn't good enough.&amp;nbsp; How can I prevent this rounding (it looks like I really want 13dp).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my little bit of code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14127778015995672 jive_text_macro" jivemacro_uid="_14127778015995672" modifiedtitle="true"&gt;
&lt;P&gt;#get coords&lt;/P&gt;
&lt;P&gt;RasterLeft = arcpy.GetRasterProperties_management(myraster, "LEFT").getOutput(0)&lt;/P&gt;
&lt;P&gt;RasterBottom = arcpy.GetRasterProperties_management(myraster, "BOTTOM").getOutput(0)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;#create geometry&lt;/P&gt;
&lt;P&gt;point = arcpy.Point()&lt;/P&gt;
&lt;P&gt;point.X = RasterLeft&lt;/P&gt;
&lt;P&gt;point.Y = RasterBottom&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;pointGeometry = arcpy.PointGeometry(point)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;#copy geometry into shapefile&lt;/P&gt;
&lt;P&gt;arcpy.CopyFeatures_management(pointGeometry, "test.shp")&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 14:23:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/prevent-rounding-of-coordinates/m-p/447638#M35096</guid>
      <dc:creator>BenLeslie1</dc:creator>
      <dc:date>2014-10-08T14:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent rounding of Coordinates</title>
      <link>https://community.esri.com/t5/python-questions/prevent-rounding-of-coordinates/m-p/447639#M35097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you try to &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//002z0000000n000000"&gt;give it a spatial reference &lt;/A&gt;as well, there have been issues with single precision values being used for geometry if a SR isn't specified&amp;nbsp; This may not be the case...but&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 14:31:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/prevent-rounding-of-coordinates/m-p/447639#M35097</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-10-08T14:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent rounding of Coordinates</title>
      <link>https://community.esri.com/t5/python-questions/prevent-rounding-of-coordinates/m-p/447640#M35098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Waaait a minute - this (probably) isn't a rounding issue at all - (I tried Append to put my point into an existing shapefile that has an SR and I get the same geometry)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my input numbers after the decimal point are:&lt;/P&gt;&lt;P&gt;RasterLeft:&amp;nbsp; .3618&lt;STRONG&gt;4&lt;/STRONG&gt;......&lt;/P&gt;&lt;P&gt;RasterBottom:&amp;nbsp; .6945&lt;STRONG&gt;07&lt;/STRONG&gt;.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whereas the geometry is created at:&lt;/P&gt;&lt;P&gt;x:&amp;nbsp; .3618&lt;STRONG&gt;1&lt;/STRONG&gt;........&lt;/P&gt;&lt;P&gt;y:&amp;nbsp; .6945&lt;STRONG&gt;19&lt;/STRONG&gt;......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 15:03:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/prevent-rounding-of-coordinates/m-p/447640#M35098</guid>
      <dc:creator>BenLeslie1</dc:creator>
      <dc:date>2014-10-08T15:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent rounding of Coordinates</title>
      <link>https://community.esri.com/t5/python-questions/prevent-rounding-of-coordinates/m-p/447641#M35099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Appending existing data won't fix the issue if it exists, it occurs at the time of creation&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 15:40:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/prevent-rounding-of-coordinates/m-p/447641#M35099</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-10-08T15:40:39Z</dc:date>
    </item>
  </channel>
</rss>

