Hi All,
In addition to what I wrote earlier, I figured that what does validate (in GeoNetwork) is the following construction:
<gmd:extent>
<gmd:EX_Extent>
<gmd:temporalElement>
<gmd:EX_TemporalExtent>
<gmd:extent>
<gml:TimePeriod gml:id="ID001">
<gml:beginPosition>2004-01-10T12:00:00</gml:beginPosition>
<gml:endPosition>2007-09-10T12:00:00</gml:endPosition>
</gml:TimePeriod>
</gmd:extent>
</gmd:EX_TemporalExtent>
</gmd:temporalElement>
</gmd:EX_Extent>
</gmd:extent>
Now this is pretty much what we already used, except that the TimePeriod element requires the gml:id attribute with some formatted content to actually pass the validation. I put gml:id="ID001" in the above sample and that does the job. Sorry for my ignorance, but why is this supposed to be there? What is the idea behind the identifier and could I just put anything I wanted in there?
Ciao,
Jeroen
Hi,
gml:id is a resource identifier - in a WFS it provides a handle to get
back the associated GML entity (geometry, feature, time period etc). It
is like an object id or like a primary key in a relational DBMS. The
assignment of the id is made by the resource owner.
Sincerely,
Ron
-----Original Message-----
From: Jeroen Ticheler [mailto:Jeroen.Ticheler@anonymised.com]
Sent: September 11, 2007 6:54 AM
To: geonetwork-devel@lists.sourceforge.net
Subject: Dealing with time in GML part 2
Hi All,
In addition to what I wrote earlier, I figured that what does
validate (in GeoNetwork) is the following construction:
<gmd:extent>
<gmd:EX_Extent>
<gmd:temporalElement>
<gmd:EX_TemporalExtent>
<gmd:extent>
<gml:TimePeriod gml:id="ID001">
<gml:beginPosition>2004-01-10T12:00:00</gml:beginPosition>
<gml:endPosition>2007-09-10T12:00:00</gml:endPosition>
</gml:TimePeriod>
</gmd:extent>
</gmd:EX_TemporalExtent>
</gmd:temporalElement>
</gmd:EX_Extent>
</gmd:extent>
Now this is pretty much what we already used, except that the
TimePeriod element requires the gml:id attribute with some formatted
content to actually pass the validation. I put gml:id="ID001" in the
above sample and that does the job. Sorry for my ignorance, but why
is this supposed to be there? What is the idea behind the identifier
and could I just put anything I wanted in there?
Ciao,
Jeroen
Jeroen,
Thanks for this time example, it helps quite a bit. One question: is there
supposed to be a <gmd:extent> (on line 5) embedded in another <gmd:extent>
(on line 1)?
Thanks,
Ted Habermann
Jeroen Ticheler-3 wrote:
Hi All,
In addition to what I wrote earlier, I figured that what does
validate (in GeoNetwork) is the following construction:
<gmd:extent>
<gmd:EX_Extent>
<gmd:temporalElement>
<gmd:EX_TemporalExtent>
<gmd:extent>
<gml:TimePeriod gml:id="ID001">
<gml:beginPosition>2004-01-10T12:00:00</gml:beginPosition>
<gml:endPosition>2007-09-10T12:00:00</gml:endPosition>
</gml:TimePeriod>
</gmd:extent>
</gmd:EX_TemporalExtent>
</gmd:temporalElement>
</gmd:EX_Extent>
</gmd:extent>
Now this is pretty much what we already used, except that the
TimePeriod element requires the gml:id attribute with some formatted
content to actually pass the validation. I put gml:id="ID001" in the
above sample and that does the job. Sorry for my ignorance, but why
is this supposed to be there? What is the idea behind the identifier
and could I just put anything I wanted in there?
Ciao,
Jeroen
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork
--
View this message in context: http://www.nabble.com/Dealing-with-time-in-GML-part-2-tp12615328s18419p14539789.html
Sent from the geonetwork-devel mailing list archive at Nabble.com.