I would not think this is a bug. If there are zero decimal places how can any 
software reading the CSV know the number is meant to be a float?

This is a limitation of converting to a text file

From: Michael Sexton <michael.sex...@ga.gov.au>
Sent: Tuesday, 2 November 2021 11:19 AM
To: 'geoserver-users@lists.sourceforge.net' 
<geoserver-users@lists.sourceforge.net>
Subject: [Geoserver-users] 'Zero' for Number of decimals (GML and GeoJSON 
output) in Global settings truncates CSV floats to ints [SEC=UNOFFICIAL]

Hi

This affects CSV output format for 2.19.2

The setting of '0' in 'Number of decimals (GML and GeoJSON output)' for the 
Global settings, which for these output formats leaves the number of decimals 
unbounded, has the unfortunate result of truncating floats in CSV output to 
integers.

I have not checked if this affects other output formats. Is this bug already 
known or should I create a JIRA ticket?

Thanks

Michael Sexton

Data Analyst  |  MEGIS
Minerals Energy Groundwater  |  GEOSCIENCE AUSTRALIA
____________________________________________________________
Phone:  +61 2 6249 9262    Fax:  +61 2 6249 9999
Email:  michael.sex...@ga.gov.au<mailto:michael.sex...@ga.gov.au>    Web:  
www.ga.gov.au<https://aus01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ga.gov.au%2F&data=04%7C01%7Cgraham.humphries%40stategrowth.tas.gov.au%7C0c66c620c6514424fcad08d99d96be6a%7C64ebab8accf44b5ca2d32b4e972d96b2%7C0%7C0%7C637714094528475790%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=B5ptWTFD9eVIki7lqB%2Fj6a%2FGPntWCtuwx%2Bw4Bl3U22o%3D&reserved=0>
Cnr Jerrabomberra Avenue and Hindmarsh Drive Symonston ACT 2609
GPO Box 378 Canberra ACT 2601 Australia
Applying geoscience to Australia's most important challenges


Geoscience Australia Disclaimer: This e-mail (and files transmitted with it) is 
intended only for the person or entity to which it is addressed. If you are not 
the intended recipient, then you have received this e-mail by mistake and any 
use, dissemination, forwarding, printing or copying of this e-mail and its file 
attachments is prohibited. The security of emails transmitted cannot be 
guaranteed; by forwarding or replying to this email, you acknowledge and accept 
these risks.

________________________________

CONFIDENTIALITY NOTICE AND DISCLAIMER
The information in this transmission may be confidential and/or protected by 
legal professional privilege, and is intended only for the person or persons to 
whom it is addressed. If you are not such a person, you are warned that any 
disclosure, copying or dissemination of the information is unauthorised. If you 
have received the transmission in error, please immediately contact this office 
by telephone, fax or email, to inform us of the error and to enable 
arrangements to be made for the destruction of the transmission, or its return 
at our cost. No liability is accepted for any unauthorised use of the 
information contained in this transmission.
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to