I use GeoTools to read the geometries from a Shapefile as in this example. 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?
For example: I have this geometry from a Shapefile:
POLYGON ((
4799826.09861662145704 2773995.445373429451138,
4799743.315226384438574 2773981.06054604658857,
4799740.81541012506932 2774021.374029533006251,
4799823.087954664602876 2774033.434061083011329,
4799826.09861662145704 2773995.445373429451138
))
I have read that geometry of Shapefile using GeoTools, and printed the well known text representation. The output is the following:
POLYGON ((
4799826.098616621 2773995.4453734295,
4799743.315226384 2773981.0605460466,
4799740.815410125 2774021.374029533,
4799823.087954665 2774033.434061083,
4799826.098616621 2773995.4453734295
))