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.<div>
<br></div><div><br clear="all"> -Josh<br>
<br><br><div class="gmail_quote">On Wed, Jan 20, 2010 at 10:19 AM, Peter Robins <span dir="ltr"><<a href="mailto:fs@peterrobins.co.uk">fs@peterrobins.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
2010/1/20 Josh Livni <<a href="mailto:josh@umbrellaconsulting.com">josh@umbrellaconsulting.com</a>>:<br>
<div class="im">> Workaround for<br>
> simplejson: <a href="http://code.google.com/p/simplejson/issues/detail?id=34" target="_blank">http://code.google.com/p/simplejson/issues/detail?id=34</a> (near<br>
> the end)<br>
> Or, if using py26's<br>
> json: <a href="http://stackoverflow.com/questions/1447287/format-floats-with-standard-json-module" target="_blank">http://stackoverflow.com/questions/1447287/format-floats-with-standard-json-module</a><br>
<br>
</div>does that mean that Formats/GeoJSON.py should be changed to<br>
incorporate one of those patches, in encode.feature()? I tried Tom<br>
Wuttke's answer at<br>
<div class="im"><a href="http://stackoverflow.com/questions/1447287/format-floats-with-standard-json-module" target="_blank">http://stackoverflow.com/questions/1447287/format-floats-with-standard-json-module</a><br>
</div>and that seems to do the trick. I assume nobody actually wants all<br>
those extra decimal places? Problem is GeoJSON.py uses cjson if<br>
present, and AIUI that works w/o this problem.<br>
<div><div></div><div class="h5">_______________________________________________<br>
Featureserver mailing list<br>
<a href="mailto:Featureserver@openlayers.org">Featureserver@openlayers.org</a><br>
<a href="http://featureserver.org/mailman/listinfo/featureserver" target="_blank">http://featureserver.org/mailman/listinfo/featureserver</a><br>
</div></div></blockquote></div><br></div>