sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Desruisseaux (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SIS-121) AngleFormat should be able to optionally omit zero fields
Date Tue, 13 Aug 2013 13:41:47 GMT

     [ https://issues.apache.org/jira/browse/SIS-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Martin Desruisseaux updated SIS-121:
------------------------------------

    Description: 
{{AngleFormat}} currently formats the degrees, minutes and seconds field unconditionally.
We should be able to omit the fields having a zero value, if desired, for more compact representation.
Optional field can be identified by a question mark in the pattern. For example the 90° value:

* Using {{DD°MM′SS″}} pattern, is always formatted as {{90°00′00″}}.
* Using {{DD°?MM′?SS″?}} pattern, is formatted as {{90°}} since the minutes and seconds
fields are zero.

The use of question mark is by analogy with regular expression, where ? means "zero or one
occurrence of previous character".


  was:
{{AngleFormat}} currently formats the degrees, minutes and seconds field unconditionally.
We should be able to omit the fields having a zero value, if desired, for more compact representation.
Optional field can be identified by a question mark in the pattern. For example the 90° value:

* Using {{DD°MM′SS″}} pattern, is always formatted as {{90°00′00″}}.
* Using {{DD°?MM′?SS″?}} pattern, is formatted as {{90°}} since the minutes and seconds
fields are zero.


    
> AngleFormat should be able to optionally omit zero fields
> ---------------------------------------------------------
>
>                 Key: SIS-121
>                 URL: https://issues.apache.org/jira/browse/SIS-121
>             Project: Spatial Information Systems
>          Issue Type: Improvement
>          Components: Utilities
>    Affects Versions: 0.3
>            Reporter: Martin Desruisseaux
>            Assignee: Martin Desruisseaux
>            Priority: Minor
>             Fix For: 0.4
>
>
> {{AngleFormat}} currently formats the degrees, minutes and seconds field unconditionally.
We should be able to omit the fields having a zero value, if desired, for more compact representation.
Optional field can be identified by a question mark in the pattern. For example the 90° value:
> * Using {{DD°MM′SS″}} pattern, is always formatted as {{90°00′00″}}.
> * Using {{DD°?MM′?SS″?}} pattern, is formatted as {{90°}} since the minutes and
seconds fields are zero.
> The use of question mark is by analogy with regular expression, where ? means "zero or
one occurrence of previous character".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message