I know how to addfeature to point layer,<br>but how to addfeature to line layer<br><br>my $layer=$map->getLayerByName('cruise');<br> my $poi=new mapscript::pointObj(182.880000,14.090000);my $poi1=new mapscript::pointObj(180.880000, 13.090000);<br> my $lin=new mapscript::lineObj();<br> $lin->add($poi);$lin->add($poi1);<br> my $shap=new mapscript::shapeObj();<br> $shap->add($lin);<br> #$layer->addFeature($shap);<br> return $map;<br><br>Is it right?<br>The perl give me the message: Can't call method "save" on an undefined value<br><br>BR, <br>xu<br><br><p>
<hr size=1><a href="http://cn.mail.yahoo.com/" target=blank>
ÑÅ»¢Ãâ·ÑÓÊÏä3.5GÈÝÁ¿£¬20M¸½¼þ£¡</a>