| MapServer OGC:WMC Example |
| Input Mapfile | |
|---|---|
| Mapscript code: |
// load mapscript
dl("php_mapscript.dll");
// required SWIG include (contains constants for PHP7)
include("C:/ms4w/apps/phpmapscriptng-swig/include/mapscript.php");
// instantiate a new Map Object
// with the mapfile as an argument
$oMap = new mapObj("C:/ms4w/apps/ms-ogc-workshop/context/demo.map");
// output an OGC:WMC document to disk
$oMap->saveMapContext("ogc_wmc_output.cml");
|
| Output OGC:WMC Document |