Ticket #2146 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

SOS output does not use msio_xxx functions

Reported by: assefa Assigned to: 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

07/09/07 12:09:00 changed by assefa

  • status changed from new to assigned.
  • owner changed from mapserverbugs to assefa.
  • cc set to warmerdam, tomkralidis.

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 ?

07/09/07 12:24:45 changed by warmerdam

Assefa,

Yes, this looks like an appropriate adjustment.

07/09/07 14:50:00 changed by assefa

Thanks Frank. Fixed commited in r6238.

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

07/10/07 07:34:31 changed by tomkralidis

  • status changed from assigned to closed.
  • resolution set to fixed.

Tested. Works.