Changes between Version 11 and Version 12 of WMSWrapper


Ignore:
Timestamp:
2020-01-31T04:52:29-04:00 (5 years ago)
Author:
Kenneth Hauklien
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WMSWrapper

    v11 v12  
    1212$oMap= new mapObj($mymapfile);
    1313
     14## Ready stdout for data capture
    1415msIO_installStdoutToBuffer();
    1516
     17## Create OWS Request object
    1618$request = new OWSRequest();
    1719
    18 //Get Request
     20##Get Request
    1921foreach ($_GET as $k=>$v) {
    2022    $request->setParameter($k, $v);
    2123}
    2224
     25##Dispatch request
    2326$oMap->OWSDispatch($request);
    2427
     
    2730$contenttype = strtolower(msIO_stripStdoutBufferContentType());
    2831
    29 //Capabilities Request
     32##Capabilities Request
    3033if ($contenttype == "application/vnd.ogc.wms_xml; charset=utf-8"){
    3134    header('Content-type: application/xml; charset=utf-8');
     
    3336}
    3437
    35 //getMap jpeg
     38##getMap jpeg
    3639else if ($contenttype == 'image/jpeg'){
    3740    header('Content-type: image/jpeg');