[OSGeodata] geodata stylesheets
nbarker at ittvis.com
Thu Aug 3 11:04:36 EDT 2006
Thanks for the list, and the version numbers, if I get the WCS retrieval
fully working this way then the others will be very similar.
The Sensor Observation Service would be interesting in terms of
generating GeoRSS, and there are a couple flying around at the moment
(MapServer has support).
I have concerns about how much useful metadata you can retrieve from a
getcapabilities call, the time period is important, and also since most
getcapabilites are dynamic should you just fetch every time - or say
file size (as determined by an http head request) is an indicator of
whether to fetch?
I have copied the concerning bits from the stylesheet here but they
relate to populating the database schema
<!-- boolean ok for classifying type? -->
<!-- evaluate bbox, so not just to get -180,-90,180,90 from lazy
<xsl:with-param name="list" select="//wcs:lonLatEnvelope"/>
<!-- what value should we put in here? -->
<entry name="date"><xsl:value-of select="date:date-time()"/></entry>
<!-- need to a describeCoverage here, but this could be different
for every coverage offering brief and we are only storing
<!-- CRS ref is forced to epsg:4326 -->
From: Kralidis,Tom [Burlington] [mailto:Tom.Kralidis at ec.gc.ca]
Sent: Thursday, August 03, 2006 3:54 PM
To: geodata at geodata.osgeo.org
Subject: RE: [OSGeodata] geodata stylesheets
This is quite nice!
If we assume all of metadata will be encoded in XML, we should probably
list what XSLT's we need, a few off the top of my head:
> -----Original Message-----
> From: Norman Barker [mailto:nbarker at ittvis.com]
> Sent: 03 August, 2006 10:44 AM
> To: geodata at geodata.osgeo.org
> Subject: [OSGeodata] geodata stylesheets
> Following on from our earlier discussions I wrote a
> stylesheet targeted towards extracting information from a
> getcapabilities response;
> I have attached the test capabilities response (just a crude
> manufactured example), the stylesheet (you will need the
> exslt extensions for your language (java has them already,
> firefox will need the pure text versions), and the output (I
> have made this Java serializable specific - doesn't have to be).
> I have put comments inline in <xsl:template
> match="wcs:Service"> in metadata_wcs_1.0.0.xsl, where I think
> we are missing info, or have questions. From the
> capabilities we can't get time periods, and we struggle to
> get some meaningful data.
> Please let me have your comments, I think I am going to go
> down the stylesheet route for extracting the data and then
> pulling it into Java and hence in the persistence model - if
> this isn't recommended please let me know.
More information about the Geodata