Opened 15 years ago

Closed 15 years ago

#3014 closed defect (fixed)

mapserver SOS blockSeparator=",@@"

Reported by: massimof Owned by: tomkralidis
Priority: normal Milestone: 5.4.1 release
Component: SOS Server Version: unspecified
Severity: normal Keywords: sos, blockSeparator
Cc: assefa

Description

If I send a SOS GetObservation request to mapserver using ResultModel=om:Observation then the response contains the following strange thing:

<swe:encoding> <swe:TextBlock tokenSeparator="," blockSeparator=",@@" decimalSeparator="."/> </swe:encoding>

the problem is blockSeparator=",@@" it should be blockSeparator="@@", without the comma ','

Then anyway in the <om:result> element, the results records are correctly separated by @@ without the extra comma.

My mapfile contains the following: "sos_encoding_blockSeparator" "@@"

Also, whereas the documentation says that the default blockSeparator is @@, if I don't put the sos_encoding_blockSeparator in my mapfile, then no separator is used

I use mapserver 5.2.2

Change History (2)

in reply to:  description comment:1 by tomkralidis, 15 years ago

Cc: assefa added
Milestone: 5.4.1 release
Status: newassigned

Replying to massimof:

If I send a SOS GetObservation request to mapserver using ResultModel=om:Observation then the response contains the following strange thing:

<swe:encoding> <swe:TextBlock tokenSeparator="," blockSeparator=",@@" decimalSeparator="."/> </swe:encoding>

the problem is blockSeparator=",@@" it should be blockSeparator="@@", without the comma ','

Then anyway in the <om:result> element, the results records are correctly separated by @@ without the extra comma.

My mapfile contains the following: "sos_encoding_blockSeparator" "@@"

Fixed (but not committed) this in trunk and branch-5-4 (I don't think we are doing anymore branch-5-2 releases). I'll commit once below is resolved.

Also, whereas the documentation says that the default blockSeparator is @@, if I don't put the sos_encoding_blockSeparator in my mapfile, then no separator is used

Right now the code defaults to "\n" (newline) if no sos_encoding_blockSeparator is used.

What should be our default sos_encoding_blockSeparator? "@@" or "\n". I would prefer the latter (in which case I'll change the sos-howto), and I can't remember where "@@" came from.

Assefa: any comments here?

I use mapserver 5.2.2

comment:2 by tomkralidis, 15 years ago

Resolution: fixed
Status: assignedclosed

Fixes made to codebase, msautotest, docs:

Note: See TracTickets for help on using tickets.