Would it be worth just providing a number format template? #,##0.00

The approach would It would cover all these options ...

Reference:
- https://docs.oracle.com/javase/7/docs/api/java/text/DecimalFormat.html
--
Jody Garnett


On Fri, 14 Sep 2018 at 03:32, Mauro Bartolomeoli <
mauro.bartolome...@geo-solutions.it> wrote:

> Hi,
> I was asked to improve formatting options for coordinates in WFS output.
>
> Currently we only have the ability to set the max # of decimals. We would
> like to introduce some new options, in particular:
>  - force use of decimals notation, disallowing scientific notation
>  - introduce optional zero (right-)padding for decimals, up to configured
> # of decimals
>
> To implement that I would:
>  - improve the existing GeoTools CoordinateFormatter (force decimal
> encoding is already there, we only need a padWithZeros option)
>  - introduce new options (forceDecimal and padWithZeros) where needed
> (GMLWriter, GML configurations, etc.), leaving the default behaviour
> untouched
>  - introduce the new options in GeoServer FeatureType / Layer
> configurations and related UI
>
> Any concern / advice?
>
> --
>
> Regards,
>
> Mauro Bartolomeoli
>
> ==
> GeoServer Professional Services from the experts! Visit
> http://goo.gl/it488V for more information.
> ==
>
> Dott. Mauro Bartolomeoli
> @mauro_bart
> Technical Lead
>
> GeoSolutions S.A.S.
> Via di Montramito 3/A
> 55054  Massarosa (LU)
> Italy
>
> mobile: +39 393 904 1756
> phone: +39 0584 962313
> fax:      +39 0584 1660272
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>
> Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE
> 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si
> precisa che ogni circostanza inerente alla presente email (il suo
> contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è
> riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il
> messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra
> operazione è illecita. Le sarei comunque grato se potesse darmene notizia.
>
> This email is intended only for the person or entity to which it is
> addressed and may contain information that is privileged, confidential or
> otherwise protected from disclosure. We remind that - as provided by
> European Regulation 2016/679 “GDPR” - copying, dissemination or use of this
> e-mail or the information herein by anyone other than the intended
> recipient is prohibited. If you have received this email by mistake, please
> notify us immediately by telephone or e-mail.
>
> _______________________________________________
> GeoTools-Devel mailing list
> GeoTools-Devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to