On Tue, Jul 26, 2011 at 5:28 PM, Robert Buckley
<[email protected]> wrote:
> Hi,
> I am getting this "0E-11" for certain numeric fields from a Postgis db in my
> wfs response.
> the corresponding value is 0.00000000000.
> Is this normal, instead of just giving out 0.00000000000 or Null?

It is normal. It's actually valid json too, see the grammar for "number", it
allows the usage of scientific notation
http://www.json.org/

As far as I know we have no way to format the number otherwise, making
a patch to do that would not be easy either since the json is written
using a library that handles numbers that way and has no config flags
to do otherwise.
There is some discussion here:
http://jira.codehaus.org/browse/GEOS-2613

Cheers
Andrea


-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------

------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to