title: Change the precision of geometries read from Shapefile using GeoTools
body: <p>I use <a href="http://geotools.org/" rel="nofollow noreferrer">GeoTools</a> to read the geometries from a Shapefile as in this <a href="http://docs.geotools.org/stable/userguide/library/data/shape.html" rel="nofollow noreferrer">example</a>.
  I have noticed that the coordinates used in the source Shapefile are adjusted to a Java Double type. Consequently the geometries are not exactly the same as in the Shapefile. I would like to increase the precision for these geometries. Any ideas?</p>
  
  <p>For example: I have this geometry from a Shapefile:</p>
  
  <pre><code>POLYGON ((
    4799826.09861662145704 2773995.445373429451138,
    4799743.315226384438574 2773981.06054604658857,
    4799740.81541012506932 2774021.374029533006251,
    4799823.087954664602876 2774033.434061083011329,
    4799826.09861662145704 2773995.445373429451138
  ))
  </code></pre>
  
  <p>I have read that geometry of Shapefile using GeoTools, and printed the well known text representation. The output is the following:</p>
  
  <pre><code>POLYGON ((
    4799826.098616621 2773995.4453734295, 
    4799743.315226384 2773981.0605460466, 
    4799740.815410125 2774021.374029533, 
    4799823.087954665 2774033.434061083, 
    4799826.098616621 2773995.4453734295
  ))
  </code></pre>