I know how to addfeature to point layer,<br>but how to addfeature to line layer<br><br>my $layer=$map-&gt;getLayerByName('cruise');<br>&nbsp;&nbsp;&nbsp; my $poi=new mapscript::pointObj(182.880000,14.090000);my $poi1=new mapscript::pointObj(180.880000, 13.090000);<br>&nbsp;&nbsp;&nbsp; my $lin=new mapscript::lineObj();<br>&nbsp;&nbsp;&nbsp; $lin-&gt;add($poi);$lin-&gt;add($poi1);<br>&nbsp;&nbsp;&nbsp; my $shap=new mapscript::shapeObj();<br>&nbsp;&nbsp;&nbsp; $shap-&gt;add($lin);<br>&nbsp;&nbsp;&nbsp; #$layer-&gt;addFeature($shap);<br>&nbsp;&nbsp;&nbsp; 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>&#32;
      <hr size=1><a href="http://cn.mail.yahoo.com/" target=blank> 
ÑÅ»¢Ãâ·ÑÓÊÏä3.5GÈÝÁ¿£¬20M¸½¼þ£¡</a>