Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • Shapefile
    • None

    Description

      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.

      Attachments

        1. ExtendsDataStore.patch
          3 kB
          Martin Desruisseaux

        Activity

          People

            jsorel Johann Sorel
            desruisseaux Martin Desruisseaux
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: