Martin Desruisseaux created SIS-186: ---------------------------------------
Summary: Set Shapefile as a subclass of DataStore Key: SIS-186 URL: https://issues.apache.org/jira/browse/SIS-186 Project: Spatial Information Systems Issue Type: Sub-task Components: Shapefile Reporter: Martin Desruisseaux {{Shapefile}} currently extends {{Object}}. It should extends {{org.apache.sis.storage.DataStore}}, since the later is targeted as the base class of all data readers (currently NetCDF and ISO 19139 metadata). The intend of having a base class for all data readers is to allow applications to process data without knowledge about whether the data are stored in a Shapefile or a NetCDF file. The SIS command-line tools is an example of such application. In the current state of {{DataStore}} class, the main implication is that {{Shapefile}} must implement the {{getMetadata()}} and {{close()}} methods. A proposed implementation is attached to this task. Future {{DataStore}} versions will require more methods, but their API is not yet designed. Of course, if the {{DataStore}} API is considered problematic for {{Shapefile}}, we can revisit it according feedbacks. -- This message was sent by Atlassian JIRA (v6.3.4#6332)