ui/src/main/java/ucar/nc2/ui/gis/shapefile/EsriShapefile.java
private void discretize(double[] d, int n) {
    if (coarseness == 0.0)
      return;
    for (int i = 0; i < n; i++) {
      d[i] = (Math.rint(resolution * d[i]) / resolution);
    }
  }
private void discretize(double[] d, int n) {
    if (coarseness == 0.0)
      return;
    for (int i = 0; i < n; i++) {
      d[i] = (Math.rint(resolution * d[i]) / resolution);
    }
  }
Discretize elements of array to a lower resolution.  For
example, if resolution = 100., the value 3.14159265358979 will
be changed to 3.14.

@param d array of values to discretize to lower resolution
@param n number of values in array to discretize