Hello

Le 22/07/13 19:41, Nadeem Anjum a écrit :
I will certainly have a look at SIS supported format like a Shapefile or
NetCDF and see if they serve our needs better.

Currently, the NetCDF code is only a metadata reader. So it is probably not yet of much use as a data storage format. The Shapefile code still on a branch - I plan to help with the merge to trunk after I finished the SIS 0.3 release and updated the web site.

What SIS can provide is a reader and writer of metadata in a XML format conformant to an international standard. We can see that as a bibliographical card. For example if "Joe Smith" publishes a map of "amount of car accidents" in area 45°N to 50°N and 10°E to 15°E in January 2012, one can write (from memory - if some convenience constructors are missing, one can always use setter methods):

DefaultExtent extent = new DefaultExtent();
extent.getGeographicElements().add(new DefaultGeographicBoundingBox(10, 15, 45, 50)); extent.getTemporalExtents().add(new DefaultTemporalExtent(...)); // ... incomplete example ...
DefaultMetadata metadata = new DefaultMetadata(
    new DefaultResponsibleParty("Joe Smith"),
new Date(), // Use today date as the date when the metadata has been created.
    new DefaultDataIdentification(
        new DefaultCitation("Amount of car accidents"),
        "An optional short description (abstract) about the map.",
        Locale.ENGLISH, TopicCategory.SOCIETY)));


Now the interesting part is:

    XML.marshall(metadata, new File("myMetadata.xml"));

This will create an ISO 19139 compliant XML file or your metadata. This file should be readable by many geo-catalogue, both commercials and other open source projects.

Conversely, you can read such XML file with XML.unmarshall(...) and use getter methods for fetching the above information.

    Martin

Reply via email to