Of course I missed the last line:
$map = new mapObj("simple.map");
$drawLayer = $map->getLayerByName('drawshape1');
$newshp = new shapeObj(MS_SHAPE_POLYGON);
$newshp = $newshp->fromWKT($curwkt);
$drawLayer->addFeature($newshp);
-jeff
--
Jeff McKenna
GatewayGeo: MapServer
Hi Paul,
I have recently had to upgrade all of my PHP scripts for several
client's applications, to SWIG MapScript, and your fromWKT() note is a
common one in all of my scripts too. Good news though: your/our scripts
are easily updated for SWIG as follows:
$map = new
The ‘native’ PHP MapScript will go away with MapServer 8. Will all the
functionality be added to the SWIG PHP MapScript before that happens? I tried
the transition with the change to MapServer 7.4 and was unsuccessful do to
missing pieces (or my lack of knowledge). Thankfully, others also