Ticket #2146 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

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

Changed 6 years ago by assefa

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

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 ?

Changed 6 years ago by warmerdam

Assefa,

Yes, this looks like an appropriate adjustment.

Changed 6 years ago by assefa

Thanks Frank. Fixed commited in r6238.

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

Changed 6 years ago by tomkralidis

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

Tested. Works.

Note: See TracTickets for help on using tickets.