Select to view content in your preferred language

Mean Center

704
2
11-04-2010 11:35 AM
WinnKetchum
Deactivated User
Hello All,

I am using Mean Center script to calculate the mean center for points in 3-dimensions and I noticed that for the x,y coordinates the resulting values are rounded to integers.  However, the Z-value when chosen is rounded to 6 decimal places.  Is there anyway to make the x,y coordinates round to 6 decimal places as well?

Thanks,
Winn
0 Kudos
2 Replies
MannyGimond
Regular Contributor
Winn, if you need that kind of precision, have you considered changing the coordinate system's x-y units to something smaller?
0 Kudos
LaurenScott
Deactivated User
Hi Winn,
This does seem to be a bug... the X and Y coordinate fields are created as FLOAT instead of DOUBLE (my guess is that the reason you are seeing INTEGERS is because the coordinate values are very large).  I have submitted a Change Request and we will get this fixed.  In the meantime, there is an easy work around.  Please use the Add XY Coordinate tool on the Mean Center Output Feature class.  It will add the coordinates as DOUBLEs.  The Mean Center locations are correct, only the values printed in the output table have been rounded.  Please let me know if this doesn't correct the problem.  Thanks so much for posting your question!  I'm sorry this bug created problems for you.

Lauren M Scott, PhD
ESRI
Geoprocessing, Spatial Statistics
0 Kudos