Interface PeriodDuration #110
-
|
This interface is marked as Effectively deprecated — use java.time.Duration instead. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
|
The main reason is to avoid dependency to external projects. OGC standards try to be implementation-neutral. The only GeoAPI dependency is JSR-363, which is itself another implementation-neutral standard. Adding a dependency to ThreeTen-extra would be choosing a particular implementation (not a JAR defined by a standardisation body), and would impose that choice to all GeoAPI users. Furthermore, some users are very reluctant to projects having many dependencies. For them, each extra dependency is extra work for scanning the JAR for security issues. In the particular case of |
Beta Was this translation helpful? Give feedback.
-
|
Thanks, but this |
Beta Was this translation helpful? Give feedback.
In my understanding, ISO 19108 does not carry location in space. The discussion about position is for a coordinate value in one axis only, the time axis. But I agree that renaming may hep. For helping to find names, below is a bit of context about discussions that occurred inside OGC.
The OGC Temporal Working Group has emphasised that there is a distinction between time represented by a calendar, and time as a coordinate value. The time represented by a calendar follows complicated rules which make calculations difficult. For example, the period between 2000/01/01 and 2001/01/01 depends not only on whether there is leap day in 2000, but also (more difficult to determine) on whether there …