Changes between Version 11 and Version 12 of WMSWrapper
- Timestamp:
- 2020-01-31T04:52:29-04:00 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WMSWrapper
v11 v12 12 12 $oMap= new mapObj($mymapfile); 13 13 14 ## Ready stdout for data capture 14 15 msIO_installStdoutToBuffer(); 15 16 17 ## Create OWS Request object 16 18 $request = new OWSRequest(); 17 19 18 //Get Request20 ##Get Request 19 21 foreach ($_GET as $k=>$v) { 20 22 $request->setParameter($k, $v); 21 23 } 22 24 25 ##Dispatch request 23 26 $oMap->OWSDispatch($request); 24 27 … … 27 30 $contenttype = strtolower(msIO_stripStdoutBufferContentType()); 28 31 29 //Capabilities Request32 ##Capabilities Request 30 33 if ($contenttype == "application/vnd.ogc.wms_xml; charset=utf-8"){ 31 34 header('Content-type: application/xml; charset=utf-8'); … … 33 36 } 34 37 35 //getMap jpeg38 ##getMap jpeg 36 39 else if ($contenttype == 'image/jpeg'){ 37 40 header('Content-type: image/jpeg');