I can work on that. Should that be another JIRA ticket?
On Fri, Jun 7, 2013 at 9:14 AM, Martin Desruisseaux < [email protected]> wrote: > Le 07/06/13 05:29, Travis L Pinney a écrit : > > +1 on the CLI. >> >> Could I integrate this with the shapefile format: >> >> sis metadata foo.shp >> >> and have it print out the metadata? >> > > Of course :-) This is the intend, and the DataStore / DataStoreConnection > / DataStoreProvider stuff recently committed were designed with exactly > this idea in mind :-). > > The tasks on the Shapefile format side would be: > > * Extend DataStore (the "Shapefile" class could be renamed > "ShapefileStore") and implement the getMetadata() method. > * Provide a ShapefileStoreProvider class, which extend > DataStoreProvider and implement the canOpen(...) method. This method > should perform a cheap check, like looking for some magic number at > the beginning of the file, for determining if the file is a > Shapefile or not. > > > Martin > >
