Opened 13 years ago
Last modified 13 years ago
#4000 new defect
Output formats (Cairo PDF/SVG) fails on Mapscript (mapserver 6.0.1)
Reported by: | mmanso | Owned by: | unicoletti |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | MapScript-Java | Version: | 6.0 |
Severity: | normal | Keywords: | cairo pdf svg fail |
Cc: | tbonfort |
Description
I'm developing a java application using mapscript. With this application can generate on the fly the map file and parse WMS request using OWSRequest object and map.OWSDispatch method.
All works fine when output format are usual: png, jpeg, etc. but when the output format selected are PDF or SVG map.OWSDispatch method return trought stdoutput re result (PDF or SVG binary information) despite having indicated that the dump output in a buffer.
This is the source code used:
OWSRequest req = new OWSRequest(); String parNames[] = request.getParameterNames(); String parValues[] = request.getParameterValues();
for (int i = 0; i < parNames.length; i++){
req.setParameter(parNames[i], parValues[i]);
} mapscript.msResetErrorList(); mapscript.msCleanup(); mapscript.msIO_installStdoutToBuffer();
int owsResult = 0; try {
owsResult = map.OWSDispatch( req );
} catch(UnknownError openGisException) {
} System.out.println("Content Type Striped: " + mapscript.msIO_stripStdoutBufferContentType());
request.getOutputStream().write(mapscript.msIO_getStdoutBufferBytes());
The problem appear at map.OWSDispatch, because in standard output appear result (binary information of PDF file), and the expected method mapscript.msIO_getStdoutBufferBytes() information returns nothing.
Change History (2)
comment:1 by , 13 years ago
Version: | unspecified → 6.0 |
---|
comment:2 by , 13 years ago
Cc: | added |
---|