I think we may need to duck to the geotools list for this one; the hints mechanism is supposed to be used in this case; but I suspect that most geotools code just says "new GeometryFactory".
So you may need to handle this on a case by case basis...ie have a look at the shapefile datastore; is it respecting the precision model you are supplying. I actually think that Precision should be part of the datastore configuration (since we may not want the same precision out of wfs as we get from shapefile?). I know that WFS GetCapabilities indicates the number of significant digits; I would love to see that communicated as a Precision regardless of any global hints setting. Jody On Thu, Mar 18, 2010 at 2:50 AM, Kemppilä Atte <[email protected]> wrote: > Hi. > > Is it possible to change (JTS Geometry) PrecisionModel that uDig uses? > > I tried to change global defaults, but that didn't seem to have any affect. > > PrecisionModel pm = new PrecisionModel(1); > GeometryFactory gf = new GeometryFactory(pm); > > Hints.putSystemDefault(Hints.JTS_PRECISION_MODEL, pm); > Hints.putSystemDefault(Hints.JTS_GEOMETRY_FACTORY, gf); > > Am I using them correctly? Or is uDig/GeoTools just ignoring those? Can I set > PrecisionModel per service/layer (wfs, shapefile, etc.)? > > -- > Atte Kemppilä > > > _______________________________________________ > User-friendly Desktop Internet GIS (uDig) > http://udig.refractions.net > http://lists.refractions.net/mailman/listinfo/udig-devel > _______________________________________________ User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net http://lists.refractions.net/mailman/listinfo/udig-devel
