Hi,
There is a configuration item "Maximum number of decimals" in the Publishing tab for the layer settings. I had a try with Geoserver 2.3.1 on Windows and with the topp:states layer and it appeared that this setting has an effect only on the GML2 outputformat which is the default for WFS 1.0.0 and selectable also for WFS 1.1.0. With all other output formats (GML3, CSV, json) I get always all the decimals. It would be nice to get the decimal cutter to work for all output formats, next best to mention in the documentation and user interface that only GML2 is affected.
-Jukka Rahkonen-
On Wed, May 15, 2013 at 11:04 AM, Rahkonen Jukka
<jukka.rahkonen@anonymised.com>wrote:
Hi,
There is a configuration item "Maximum number of decimals" in the
Publishing tab for the layer settings. I had a try with Geoserver 2.3.1 on
Windows and with the topp:states layer and it appeared that this setting
has an effect only on the GML2 outputformat which is the default for WFS
1.0.0 and selectable also for WFS 1.1.0. With all other output formats
(GML3, CSV, json) I get always all the decimals. It would be nice to get
the decimal cutter to work for all output formats, next best to mention in
the documentation and user interface that only GML2 is affected.
I believe this was discussed at some point on the mailing lists already,
have you checked the archives?
By the way, now that I think about it, decimal cutting is dangerous
business, as you might start with a topologically valid geometry and end up
with one that is not.
Cheers
Andrea
--
GeoServer training in Milan, 6th & 7th June 2013! Visit
http://geoserver.geo-solutions.it for more information.
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------