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.
Currently, implementors have to implement all methods enumerated in a Java interface, including the ones declared as optional in OGC/ISO abstract specification. Implementors should be forced to provide only mandatory methods. Other methods should have a default implementation returning Collections.emptyList() if applicable, or null otherwise.
Note that we are already doing that for Python abstract classes. This issue is about doing the same thing for Java interfaces.
Currently, implementors have to implement all methods enumerated in a Java interface, including the ones declared as optional in OGC/ISO abstract specification. Implementors should be forced to provide only mandatory methods. Other methods should have a default implementation returning
Collections.emptyList()
if applicable, ornull
otherwise.Note that we are already doing that for Python abstract classes. This issue is about doing the same thing for Java interfaces.