[mapserver-commits] r9789 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Wed Feb 10 16:42:46 EST 2010
Author: assefa
Date: 2010-02-10 16:42:44 -0500 (Wed, 10 Feb 2010)
New Revision: 9789
Modified:
trunk/mapserver/mapwfs.c
Log:
WFS 1.1:generate optional timeStamp parameter #3309
Modified: trunk/mapserver/mapwfs.c
===================================================================
--- trunk/mapserver/mapwfs.c 2010-02-10 18:42:03 UTC (rev 9788)
+++ trunk/mapserver/mapwfs.c 2010-02-10 21:42:44 UTC (rev 9789)
@@ -1889,8 +1889,20 @@
if(paramsObj->pszVersion && strncmp(paramsObj->pszVersion,"1.1",3) == 0 )
- msIO_printf(" xsi:schemaLocation=\"%s %sSERVICE=WFS&VERSION=%s&REQUEST=DescribeFeatureType&TYPENAME=%s&OUTPUTFORMAT=%s http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd\" numberOfFeatures=\"%d\">\n",
- user_namespace_uri_encoded, script_url_encoded, encoded, encoded_typename, output_schema_format, iNumberOfFeatures);
+ {
+ char timestring[100];
+ struct tm *now;
+ time_t tim=time(NULL);
+
+ now=localtime(&tim);
+
+ sprintf(timestring, "%d-%02d-%02dT%02d:%02d:%02d",
+ now->tm_year+1900, now->tm_mon+1, now->tm_mday,
+ now->tm_hour, now->tm_min, now->tm_sec);
+
+ msIO_printf(" xsi:schemaLocation=\"%s %sSERVICE=WFS&VERSION=%s&REQUEST=DescribeFeatureType&TYPENAME=%s&OUTPUTFORMAT=%s http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd\" timeStamp=\"%s\" numberOfFeatures=\"%d\">\n",
+ user_namespace_uri_encoded, script_url_encoded, encoded, encoded_typename, output_schema_format, timestring, iNumberOfFeatures);
+ }
else
msIO_printf(" xsi:schemaLocation=\"%s %sSERVICE=WFS&VERSION=%s&REQUEST=DescribeFeatureType&TYPENAME=%s&OUTPUTFORMAT=%s\">\n",
user_namespace_uri_encoded, script_url_encoded, encoded, encoded_typename, output_schema_format);
More information about the mapserver-commits
mailing list