[Featureserver] Json: unrounding of coordinates

Josh Livni josh at umbrellaconsulting.com
Wed Jan 20 13:28:23 EST 2010

I think it's fair to say that for most purposes FeatureServer users don't
mind to lose the extra decimal places, but this is not necessarily true:
 It's quite possible someone is working on a project in a geographically
small area and needs/expects 10+ significant digits.  I'd accept a patch
where this could be defined in featureserver.cfg, for example.


On Wed, Jan 20, 2010 at 10:19 AM, Peter Robins <fs at peterrobins.co.uk> wrote:

> 2010/1/20 Josh Livni <josh at umbrellaconsulting.com>:
> > Workaround for
> > simplejson: http://code.google.com/p/simplejson/issues/detail?id=34
>  (near
> > the end)
> > Or, if using py26's
> > json:
> http://stackoverflow.com/questions/1447287/format-floats-with-standard-json-module
> does that mean that Formats/GeoJSON.py should be changed to
> incorporate one of those patches, in encode.feature()? I tried Tom
> Wuttke's answer at
> http://stackoverflow.com/questions/1447287/format-floats-with-standard-json-module
> and that seems to do the trick. I assume nobody actually wants all
> those extra decimal places? Problem is GeoJSON.py uses cjson if
> present, and AIUI that works w/o this problem.
> _______________________________________________
> Featureserver mailing list
> Featureserver at openlayers.org
> http://featureserver.org/mailman/listinfo/featureserver
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/featureserver/attachments/20100120/10b792e5/attachment.html

More information about the Featureserver mailing list