opengeospatial / geoapi

GeoAPI provides a set of interfaces in programming languages (currently Java and Python) for geospatial applications. The GeoAPI interfaces closely follow OGC specifications, adaptated to match the expectations of programmers.
http://www.geoapi.org
Apache License 2.0
118 stars 38 forks source link

Replace `Date` (from Java 1) by `Temporal` (from Java 8) #79

Closed desruisseaux closed 5 months ago

desruisseaux commented 2 years ago

Replace usage of java.util.Date (a legacy class from Java 1) by usage of java.time (new package introduced in Java 8). There is two main types of interest:

Instant is relevant to ISO 19111 (referencing by coordinates), while Temporal is good for ISO 19115 (metadata) because it allows users to specify the dates with different degrees of precision (with or without time, with or without timezone, etc.).