[
https://issues.apache.org/jira/browse/SIS-186?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Johann Sorel resolved SIS-186.
------------------------------
Resolution: Fixed
The new DataStore implementation is both a DataStore and a WritableFeatureSet.
> 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
> Assignee: Johann Sorel
> Priority: Major
> Attachments: ExtendsDataStore.patch
>
>
> {{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
(v8.20.10#820010)