While persisting and querying my coordinate data, I was wondering why the 
decimal digits of my coordinates are rounded to 4 digit places.
Therefore I looked up the usage of org.geotools.geojson.geom.GeometryJSON and 
realized the second constructor supporting to specify the decimals.
Now also looking up org.geotools.geojson.feature.FeatureJSON, I was surprised 
why FeatureJSON does not have a possibility to control the initialization of a 
GeometryJSON instace supporting a given decimal.

The best solution would be to add a second constructor for FeatureJSON as well, 
e.g.:

/**
* Constructs a feature json instance specifying the number of decimals
* to use when encoding floating point numbers.
*/
public FeatureJSON(int decimals) {
 gjson = new GeometryJSON(decimals);
 attio = new DefaultAttributeIO();
}


...or is there a circumstance why this is not yet supported?

Thanks
João Belém

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to