Another issue, GeoJSON coordinates exhibit the same truncation, even though
feature properties don't.
·
geometry": {
o "type": "Point",
o "coordinates": [
§ 139,
§ -19,
§ 212
]
· },
· "geometry_name": "geometry",
· "properties": {
o "eno": 5757,
o "sampling_feature": "DDH 83-1",
o "sampling_feature_type": "borehole",
o "sampling_feature_subtype": "petroleum - stratigraphic investigation",
o "latitude_gda94": -18.8601667,
o "longitude_gda94": 138.6970111,
From: Michael Sexton <[email protected]>
Sent: Tuesday, 2 November 2021 12:17 PM
To: Humphries, Graham <[email protected]>;
'[email protected]' <[email protected]>
Subject: Re: [Geoserver-users] 'Zero' for Number of decimals (GML and GeoJSON
output) in Global settings truncates CSV floats to ints [SEC=UNOFFICIAL]
Hi Graham
The problem is the setting has an inconsistent behaviour depending on output
format
GML32 with number of decimal places 0:
<coit:latitude_gda94>
-18.8601667
</coit:latitude_gda94>
<coit:longitude_gda94>
138.6970111
</coit:longitude_gda94>
GeoJSON with number of decimal places 0:
"latitude_gda94": -18.8601667,
"longitude_gda94": 138.6970111,
CSV with number of decimal places 0:
latitude_gda94
longitude_gda94
-19
139
From: Humphries, Graham
<[email protected]<mailto:[email protected]>>
Sent: Tuesday, 2 November 2021 11:40 AM
To: Michael Sexton <[email protected]<mailto:[email protected]>>;
'[email protected]'
<[email protected]<mailto:[email protected]>>
Subject: RE: 'Zero' for Number of decimals (GML and GeoJSON output) in Global
settings truncates CSV floats to ints [SEC=UNOFFICIAL]
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 <[email protected]<mailto:[email protected]>>
Sent: Tuesday, 2 November 2021 11:19 AM
To: '[email protected]'
<[email protected]<mailto:[email protected]>>
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: [email protected]<mailto:[email protected]> 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.
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.
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.
_______________________________________________
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users