GP Service - Round coordinates of Feature Class output

745
0
08-30-2016 07:34 AM
MaximeDemers
Occasional Contributor III

I have published to arcgis server a python script that output a feature class. I would like to round coordinates of the REST output.

I have tryed to use the XYResolution envrionement setting in the python script but it is ignored

arcpy.env.XYResolution = "0 Meters"

In the JSON output from the REST api, the geometry is not rounded like this

      "geometry": {        "x": -7498445.5090999994,        "y": 6161009.2334999964       }

Any idea why? 
0 Kudos
0 Replies