<?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 GP Service - Round coordinates of Feature Class output in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/gp-service-round-coordinates-of-feature-class/m-p/362434#M28598</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have published to arcgis server a python script that output a feature class. I would like to round coordinates of the REST output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tryed to use the XYResolution envrionement setting in the python script but it is ignored&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.env.XYResolution = "0 Meters"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the JSON output from the REST api, the geometry is not rounded like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "geometry": {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "x": -7498445.5090999994,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "y": 6161009.2334999964&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }

Any idea why? &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 16:22:56 GMT</pubDate>
    <dc:creator>MaximeDemers</dc:creator>
    <dc:date>2021-12-12T16:22:56Z</dc:date>
    <item>
      <title>GP Service - Round coordinates of Feature Class output</title>
      <link>https://community.esri.com/t5/python-questions/gp-service-round-coordinates-of-feature-class/m-p/362434#M28598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have published to arcgis server a python script that output a feature class. I would like to round coordinates of the REST output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tryed to use the XYResolution envrionement setting in the python script but it is ignored&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.env.XYResolution = "0 Meters"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the JSON output from the REST api, the geometry is not rounded like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "geometry": {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "x": -7498445.5090999994,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "y": 6161009.2334999964&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }

Any idea why? &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:22:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/gp-service-round-coordinates-of-feature-class/m-p/362434#M28598</guid>
      <dc:creator>MaximeDemers</dc:creator>
      <dc:date>2021-12-12T16:22:56Z</dc:date>
    </item>
  </channel>
</rss>

