Opened 17 years ago

Closed 17 years ago

#2146 closed defect (fixed)

SOS output does not use msio_xxx functions

Reported by: assefa Owned by: assefa
Priority: normal Milestone:
Component: SOS Server Version:
Severity: normal Keywords:
Cc: warmerdam, tomkralidis

Description

Currentlly the SOS GetCapbilities and GetObservation use the following code to dump the output :

stream = stdout; xmlDocDump(stream, psDoc);

This causes problem when trying to use the WxS functions from Mapscript

Change History (4)

comment:1 by assefa, 17 years ago

Cc: warmerdam tomkralidis added
Owner: changed from mapserverbugs to assefa
Status: newassigned

modifying the output to this seems to work :

context = msIO_getHandler(stdout);

xmlDocDumpFormatMemoryEnc(psDoc, &buffer, &size, "ISO-8859-1", 1); msIO_contextWrite(context, buffer, size); xmlFree(buffer);

Frank, do you think it is the correct way for dealing with this ?

comment:2 by warmerdam, 17 years ago

Assefa,

Yes, this looks like an appropriate adjustment.

comment:3 by assefa, 17 years ago

Thanks Frank. Fixed commited in r6238.

Tom, please give it a try and close if it works. Thanks.

comment:4 by tomkralidis, 17 years ago

Resolution: fixed
Status: assignedclosed

Tested. Works.

Note: See TracTickets for help on using tickets.