[mapserver-commits] r7125 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Fri Nov 30 11:30:00 EST 2007


Author: warmerdam
Date: 2007-11-30 11:29:59 -0500 (Fri, 30 Nov 2007)
New Revision: 7125

Modified:
   trunk/mapserver/mapwcs11.c
Log:
fix up multipart generation

Modified: trunk/mapserver/mapwcs11.c
===================================================================
--- trunk/mapserver/mapwcs11.c	2007-11-30 04:11:14 UTC (rev 7124)
+++ trunk/mapserver/mapwcs11.c	2007-11-30 16:29:59 UTC (rev 7125)
@@ -577,7 +577,7 @@
     {
         char format_buf[500];
 
-        psGridCRS = xmlNewChild( psDomain, NULL, "GridCRS", NULL );
+        psGridCRS = xmlNewChild( psSD, NULL, "GridCRS", NULL );
 
         
         xmlNewChild( psGridCRS, NULL, "GridBaseCRS", cm.srs_urn );
@@ -842,7 +842,7 @@
 
     msIO_fprintf( 
         stdout, 
-        "\n"
+        "Content-Type: multipart/mixed; boundary=wcs%c%c"
         "--wcs\n"
         "Content-Type: text/xml\n"
         "Content-ID: wcs.xml%c%c"
@@ -863,6 +863,7 @@
         "Content-Transfer-Encoding: binary\n"
         "Content-ID: coverage/wcs.%s\n"
         "Content-Disposition: INLINE%c%c",
+        10, 10, 
         10, 10,
         MS_IMAGE_EXTENSION(map->outputformat),
         MS_IMAGE_MIME_TYPE(map->outputformat),
@@ -876,6 +877,8 @@
           return msWCSException(map, params->version, NULL, NULL);
       }
 
+      msIO_fprintf( stdout, "--wcs--%c%c", 10, 10 );
+
       return MS_SUCCESS;
 }
 #endif



More information about the mapserver-commits mailing list