[mapserver-commits] r9019 - in branches/branch-5-4: docs/ogc
mapserver msautotest/wxs/expected
svn at osgeo.org
svn at osgeo.org
Fri May 15 08:07:47 EDT 2009
Author: tomkralidis
Date: 2009-05-15 08:07:47 -0400 (Fri, 15 May 2009)
New Revision: 9019
Modified:
branches/branch-5-4/docs/ogc/sos_server.txt
branches/branch-5-4/mapserver/HISTORY.TXT
branches/branch-5-4/mapserver/mapogcsos.c
branches/branch-5-4/msautotest/wxs/expected/sos_getobs_datablock.xml
Log:
fix SOS blockSeparator output (#3014)
Modified: branches/branch-5-4/docs/ogc/sos_server.txt
===================================================================
--- branches/branch-5-4/docs/ogc/sos_server.txt 2009-05-15 12:04:41 UTC (rev 9018)
+++ branches/branch-5-4/docs/ogc/sos_server.txt 2009-05-15 12:07:47 UTC (rev 9019)
@@ -479,7 +479,7 @@
**sos_encoding_blockSeparator**
-- *Description:* (Optional) For GetObservation requests using resultModel=om:Observation (SWE DataBlock encoding). Record separator to be used. Default is '@@'
+- *Description:* (Optional) For GetObservation requests using resultModel=om:Observation (SWE DataBlock encoding). Record separator to be used. Default is '\\n'
**sos_encoding_tokenSeparator**
Modified: branches/branch-5-4/mapserver/HISTORY.TXT
===================================================================
--- branches/branch-5-4/mapserver/HISTORY.TXT 2009-05-15 12:04:41 UTC (rev 9018)
+++ branches/branch-5-4/mapserver/HISTORY.TXT 2009-05-15 12:07:47 UTC (rev 9019)
@@ -39,6 +39,8 @@
- Fix mapogcfilter.c not to cause syntax error if PROJ.4 is not compiled
in (#2987)
+- fix SOS blockSeparator output (#3014)
+
Version 5.4.0 (2009-04-22):
---------------------------
Modified: branches/branch-5-4/mapserver/mapogcsos.c
===================================================================
--- branches/branch-5-4/mapserver/mapogcsos.c 2009-05-15 12:04:41 UTC (rev 9018)
+++ branches/branch-5-4/mapserver/mapogcsos.c 2009-05-15 12:07:47 UTC (rev 9019)
@@ -548,6 +548,7 @@
char szTmp[100];
int i=0;
char *pszTokenValue = NULL;
+ char *pszBlockValue = NULL;
const char *pszBlockSep=NULL, *pszTokenSep=NULL;
if (psParent)
@@ -629,15 +630,16 @@
xmlNewNsProp(psSubNode, NULL, BAD_CAST "tokenSeparator", BAD_CAST pszTokenValue);
if (pszBlockSep)
- pszTokenValue = msStringConcatenate(pszTokenValue, (char *)pszBlockSep);
+ pszBlockValue = msStringConcatenate(pszBlockValue, (char *)pszBlockSep);
else
- pszTokenValue = msStringConcatenate(pszTokenValue, "\n");
+ pszBlockValue = msStringConcatenate(pszBlockValue, "\n");
- xmlNewNsProp(psSubNode, NULL, BAD_CAST "blockSeparator", BAD_CAST pszTokenValue);
+ xmlNewNsProp(psSubNode, NULL, BAD_CAST "blockSeparator", BAD_CAST pszBlockValue);
xmlNewNsProp(psSubNode, NULL, BAD_CAST "decimalSeparator", BAD_CAST ".");
msFree(pszTokenValue);
+ msFree(pszBlockValue);
}
}
Modified: branches/branch-5-4/msautotest/wxs/expected/sos_getobs_datablock.xml
===================================================================
--- branches/branch-5-4/msautotest/wxs/expected/sos_getobs_datablock.xml 2009-05-15 12:04:41 UTC (rev 9018)
+++ branches/branch-5-4/msautotest/wxs/expected/sos_getobs_datablock.xml 2009-05-15 12:07:47 UTC (rev 9019)
@@ -43,7 +43,7 @@
</swe:DataRecord>
</swe:components>
<swe:encoding>
- <swe:TextBlock tokenSeparator="," blockSeparator=", " decimalSeparator="."/>
+ <swe:TextBlock tokenSeparator="," blockSeparator=" " decimalSeparator="."/>
</swe:encoding>
</swe:DataBlockDefinition>
</om:resultDefinition>
@@ -84,7 +84,7 @@
</swe:DataRecord>
</swe:components>
<swe:encoding>
- <swe:TextBlock tokenSeparator="," blockSeparator=", " decimalSeparator="."/>
+ <swe:TextBlock tokenSeparator="," blockSeparator=" " decimalSeparator="."/>
</swe:encoding>
</swe:DataBlockDefinition>
</om:resultDefinition>
@@ -125,7 +125,7 @@
</swe:DataRecord>
</swe:components>
<swe:encoding>
- <swe:TextBlock tokenSeparator="," blockSeparator=", " decimalSeparator="."/>
+ <swe:TextBlock tokenSeparator="," blockSeparator=" " decimalSeparator="."/>
</swe:encoding>
</swe:DataBlockDefinition>
</om:resultDefinition>
More information about the mapserver-commits
mailing list